Showing posts with label moved. Show all posts
Showing posts with label moved. Show all posts

Tuesday, March 20, 2012

ASP - SQL server connection Issue

Hello All,

I am building an application using SQL server 2000. When I was using SQL database on my local machine it works great but now I moved the database on the server and as soon as I try to connect it gives me this error message.

What I am doing wrong?

An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)**

Thanks

Check web.config if it is pointing to the right server.

bullpit

|||

Bingo...

Thanks

Thursday, March 8, 2012

AS2005 OWC11 HTTP - Connection Problem.

I am trying to get an OWC11 pivot table ActiveX component to work over the internet with AS2005. I have read so many articles, and I have moved forward, but there doesn't seem to be any final answer.

Here is the set up. 1 Server that is running IIS6, WIN2003, SQL2005/SP1. I set up the connection string as

PivotTable1.ConnectionString = Provider=MSOLAP.3;Data Source=http://<ip to server>/olap/msdmpump.dll;Initial Catalog=<olapDatabaseName>
PivotTable1.DataMember = "<CUBE NAME>"

I set up the HTTP pump described in this article: http://www.microsoft.com/technet/prodtechnol/sql/2005/httpasws.mspx

I set up an IUSR role for the cube to be read.

I set up SQL and AS for remote access over TCP/IP.

I even set the AS2005 for anonymous access. I wll turn this back after the test.

Everything works fine at the intranet level, but as soon as I'm outside the domain.. boom, it won't connect.. I ran the SQL profiler, and gotten the cryptic XML parsingg error for IUSR log-in. At any rate, I'm all out of ideas and tricks.

I saw similar lines of discussion, but never a successful conclusion as of yet. Any suggestions would be much appreciated.

-Young K

<html xmlns="http://www.w3.org/1999/xhtml" >
<head
<title>Test</title>
</head>

<body>

<object classid="clsid:0002E55a-0000-0000-C000-000000000046" id="PivotTable1">
<param name="XMLData" value="<xml
xmlns:x="urn:schemas-microsoft-com:office:excel">
<x:PivotTable>
<x:OWCVersion>11.0.0.5531 </x:OWCVersion>
<x:DisplayScreenTips/>
<x:CubeProvider>msolap</x:CubeProvider>
<x:CacheDetails/>
<x:PivotView>
<x:IsNotFiltered/>
</x:PivotView>
</x:PivotTable>
</xml>">
<table width='100%' cellpadding='0' cellspacing='0' border='0'
height='8'><tr><td bgColor='#336699' height='25' width='10%'> </td><td
bgColor='#666666'width='85%'><font face='Tahoma' color='white' size='4'><b>
Missing: Microsoft Office Web Components</b></font></td></tr><tr><td
bgColor='#cccccc' width='15'> </td><td bgColor='#cccccc' width='500px'><br>
<font face='Tahoma' size='2'>This page requires the Microsoft Office Web
Components.<p align='center'> <a
href='http://www.microsoft.com/downloads/details.aspx?FamilyID=7287252c-402e-4f72-97a5
-e0fd290d4b76&DisplayLang=en'>Click
here to install Microsoft Office Web Components.</a>.

</font>

<font
face='Tahoma' size='2'>This page also requires Microsoft Internet Explorer
5.01 or higher.

<p align='center'><a
href='http://www.microsoft.com/windows/ie/default.htm'> Click here to install
the latest Internet Explorer</a>.</font><br>&nbsp;</td></tr></table>
</object>
<br>
<br>
<input type="button" id="button1" value="click here">
<script language="vbscript">
sub button1_onclick()
PivotTable1.ConnectionString = Provider=MSOLAP.3;Data Source=http://<ip to server>/olap/msdmpump.dll;Initial Catalog=<olapDatabaseName>
PivotTable1.DataMember = "<CUBE NAME>"

Dim oPivot
Set oPivot = PivotTable1.Object
'Set the timeout to 10 secondsr
oPivot.Connection.CommandTimeout = 10

end sub
</script>

</body>
</html>

My bad. I installed the OLEDB 9 on the client machine and it works like a charm. Go me, go.

PivotTable1.ConnectionString = "Provider=MSOLAP.3;Persist Security Info=True;Data Source=http://[target server]/olap/msmdpump.dll;Initial Catalog=PNGReportOLAP;User Id=[user id];Password=[password]"

I used that connection string. Yowsers.. It has taken me two days. But it is working. Have fun, y'all.

Young K.

|||

My bad. I installed the OLEDB 9 on the client machine and it works like a charm. Go me, go.

PivotTable1.ConnectionString = "Provider=MSOLAP.3;Persist Security Info=True;Data Source=http://[target server]/olap/msmdpump.dll;Initial Catalog=PNGReportOLAP;User Id=[user id];Password=[password]"

I used that connection string. Yowsers.. It has taken me two days. But it is working. Have fun, y'all.

Young K.

|||

My bad. I installed the OLEDB 9 on the client machine and it works like a charm. Go me, go.

PivotTable1.ConnectionString = "Provider=MSOLAP.3;Persist Security Info=True;Data Source=http://[target server]/olap/msmdpump.dll;Initial Catalog=PNGReportOLAP;User Id=[user id];Password=[password]"

I used that connection string. Yowsers.. It has taken me two days. But it is working. Have fun, y'all.

Young K.

|||

My bad. I installed the OLEDB 9 on the client machine and it works like a charm. Go me, go.

PivotTable1.ConnectionString = "Provider=MSOLAP.3;Persist Security Info=True;Data Source=http://[target server]/olap/msmdpump.dll;Initial Catalog=PNGReportOLAP;User Id=[user id];Password=[password]"

I used that connection string. Yowsers.. It has taken me two days. But it is working. Have fun, y'all.

Young K.

|||I went into same problem long ago, what i did was giving the IUSR a permission on the Analysis server. I think its a bad idea, but as you said, I was running out of ideas "any comment is welcomed". I have some issues regarding initializing the Pivote table client side, its some how slow. Any ideas are welcomed|||

I am trying to do what you did.The xml string that is assigned to PivotTable.XMLData.Thexml string is shown below. I use analysis services and sql server 2000.

<xml xmlns:x="urnTongue Tiedchemas-microsoft-comSurpriseffice:excel">

- <xStick out tongueivotTable>

<xSurpriseWCVersion>12.0.0.4518</xSurpriseWCVersion>

<x:NoDisplayAlerts />

<xBig SmileisplayScreenTips />

<x:MaxHeight>523</x:MaxHeight>

<x:MaxWidth>923</x:MaxWidth>

<x:CubeProvider>msolap.2</x:CubeProvider>

<xBig SmileisplayFieldList />

<x:CacheDetails />

<x:ConnectionString>Provider=SQLOLEDB;Cache Authentication=False;Initial Catalog=Test_OLAP;Data Source=http://<ip>/Bin/msdmpump.dll; Impersonation Level=Impersonate;Mode=ReadWrite;Auto Synch Period=20000;Default Isolation Mode=0;Default MDX Visual Mode=0;MDX Compatibility=0;MDX Unique Name Style=0;Non Empty Threshold=0;SQLQueryMode=Calculated;Safety Options=1;Secured Cell Value=0;SQL Compatibility=0;Compression Level=0;Real Time Olap=False;Packet Size=4096</x:ConnectionString>

<xBig SmileataMember>TestCube</xBig SmileataMember>

- <xStick out tongueivotView>

<x:IsNotFiltered />

<x:UseProviderFormatting />

</xStick out tongueivotView>

</xStick out tongueivotTable>

</xml>

I am not sure what you mean by instaling OLEDB 9 solves your problem.In my case,I can see the embeded Pivot table and the Pivot table field list.But am not seeing the dimensions.Rather an icon with a plug is shown.I am able to acces the ms.asp page on the <ip> server. Is there any way to debug and find out the problem.

AS2005 OWC11 HTTP - Connection Problem.

I am trying to get an OWC11 pivot table ActiveX component to work over the internet with AS2005. I have read so many articles, and I have moved forward, but there doesn't seem to be any final answer.

Here is the set up. 1 Server that is running IIS6, WIN2003, SQL2005/SP1. I set up the connection string as

PivotTable1.ConnectionString = Provider=MSOLAP.3;Data Source=http://<ip to server>/olap/msdmpump.dll;Initial Catalog=<olapDatabaseName>
PivotTable1.DataMember = "<CUBE NAME>"

I set up the HTTP pump described in this article: http://www.microsoft.com/technet/prodtechnol/sql/2005/httpasws.mspx

I set up an IUSR role for the cube to be read.

I set up SQL and AS for remote access over TCP/IP.

I even set the AS2005 for anonymous access. I wll turn this back after the test.

Everything works fine at the intranet level, but as soon as I'm outside the domain.. boom, it won't connect.. I ran the SQL profiler, and gotten the cryptic XML parsingg error for IUSR log-in. At any rate, I'm all out of ideas and tricks.

I saw similar lines of discussion, but never a successful conclusion as of yet. Any suggestions would be much appreciated.

-Young K

<html xmlns="http://www.w3.org/1999/xhtml" >
<head
<title>Test</title>
</head>

<body>

<object classid="clsid:0002E55a-0000-0000-C000-000000000046" id="PivotTable1">
<param name="XMLData" value="<xml
xmlns:x="urn:schemas-microsoft-com:office:excel">
<x:PivotTable>
<x:OWCVersion>11.0.0.5531 </x:OWCVersion>
<x:DisplayScreenTips/>
<x:CubeProvider>msolap</x:CubeProvider>
<x:CacheDetails/>
<x:PivotView>
<x:IsNotFiltered/>
</x:PivotView>
</x:PivotTable>
</xml>">
<table width='100%' cellpadding='0' cellspacing='0' border='0'
height='8'><tr><td bgColor='#336699' height='25' width='10%'> </td><td
bgColor='#666666'width='85%'><font face='Tahoma' color='white' size='4'><b>
Missing: Microsoft Office Web Components</b></font></td></tr><tr><td
bgColor='#cccccc' width='15'> </td><td bgColor='#cccccc' width='500px'><br>
<font face='Tahoma' size='2'>This page requires the Microsoft Office Web
Components.<p align='center'> <a
href='http://www.microsoft.com/downloads/details.aspx?FamilyID=7287252c-402e-4f72-97a5
-e0fd290d4b76&DisplayLang=en'>Click
here to install Microsoft Office Web Components.</a>.

</font>

<font
face='Tahoma' size='2'>This page also requires Microsoft Internet Explorer
5.01 or higher.

<p align='center'><a
href='http://www.microsoft.com/windows/ie/default.htm'> Click here to install
the latest Internet Explorer</a>.</font><br>&nbsp;</td></tr></table>
</object>
<br>
<br>
<input type="button" id="button1" value="click here">
<script language="vbscript">
sub button1_onclick()
PivotTable1.ConnectionString = Provider=MSOLAP.3;Data Source=http://<ip to server>/olap/msdmpump.dll;Initial Catalog=<olapDatabaseName>
PivotTable1.DataMember = "<CUBE NAME>"

Dim oPivot
Set oPivot = PivotTable1.Object
'Set the timeout to 10 secondsr
oPivot.Connection.CommandTimeout = 10

end sub
</script>

</body>
</html>

My bad. I installed the OLEDB 9 on the client machine and it works like a charm. Go me, go.

PivotTable1.ConnectionString = "Provider=MSOLAP.3;Persist Security Info=True;Data Source=http://[target server]/olap/msmdpump.dll;Initial Catalog=PNGReportOLAP;User Id=[user id];Password=[password]"

I used that connection string. Yowsers.. It has taken me two days. But it is working. Have fun, y'all.

Young K.

|||

My bad. I installed the OLEDB 9 on the client machine and it works like a charm. Go me, go.

PivotTable1.ConnectionString = "Provider=MSOLAP.3;Persist Security Info=True;Data Source=http://[target server]/olap/msmdpump.dll;Initial Catalog=PNGReportOLAP;User Id=[user id];Password=[password]"

I used that connection string. Yowsers.. It has taken me two days. But it is working. Have fun, y'all.

Young K.

|||

My bad. I installed the OLEDB 9 on the client machine and it works like a charm. Go me, go.

PivotTable1.ConnectionString = "Provider=MSOLAP.3;Persist Security Info=True;Data Source=http://[target server]/olap/msmdpump.dll;Initial Catalog=PNGReportOLAP;User Id=[user id];Password=[password]"

I used that connection string. Yowsers.. It has taken me two days. But it is working. Have fun, y'all.

Young K.

|||

My bad. I installed the OLEDB 9 on the client machine and it works like a charm. Go me, go.

PivotTable1.ConnectionString = "Provider=MSOLAP.3;Persist Security Info=True;Data Source=http://[target server]/olap/msmdpump.dll;Initial Catalog=PNGReportOLAP;User Id=[user id];Password=[password]"

I used that connection string. Yowsers.. It has taken me two days. But it is working. Have fun, y'all.

Young K.

|||I went into same problem long ago, what i did was giving the IUSR a permission on the Analysis server. I think its a bad idea, but as you said, I was running out of ideas "any comment is welcomed". I have some issues regarding initializing the Pivote table client side, its some how slow. Any ideas are welcomed|||

I am trying to do what you did.The xml string that is assigned to PivotTable.XMLData.Thexml string is shown below. I use analysis services and sql server 2000.

<xml xmlns:x="urnTongue Tiedchemas-microsoft-comSurpriseffice:excel">

- <xStick out tongueivotTable>

<xSurpriseWCVersion>12.0.0.4518</xSurpriseWCVersion>

<x:NoDisplayAlerts />

<xBig SmileisplayScreenTips />

<x:MaxHeight>523</x:MaxHeight>

<x:MaxWidth>923</x:MaxWidth>

<x:CubeProvider>msolap.2</x:CubeProvider>

<xBig SmileisplayFieldList />

<x:CacheDetails />

<x:ConnectionString>Provider=SQLOLEDB;Cache Authentication=False;Initial Catalog=Test_OLAP;Data Source=http://<ip>/Bin/msdmpump.dll; Impersonation Level=Impersonate;Mode=ReadWrite;Auto Synch Period=20000;Default Isolation Mode=0;Default MDX Visual Mode=0;MDX Compatibility=0;MDX Unique Name Style=0;Non Empty Threshold=0;SQLQueryMode=Calculated;Safety Options=1;Secured Cell Value=0;SQL Compatibility=0;Compression Level=0;Real Time Olap=False;Packet Size=4096</x:ConnectionString>

<xBig SmileataMember>TestCube</xBig SmileataMember>

- <xStick out tongueivotView>

<x:IsNotFiltered />

<x:UseProviderFormatting />

</xStick out tongueivotView>

</xStick out tongueivotTable>

</xml>

I am not sure what you mean by instaling OLEDB 9 solves your problem.In my case,I can see the embeded Pivot table and the Pivot table field list.But am not seeing the dimensions.Rather an icon with a plug is shown.I am able to acces the ms.asp page on the <ip> server. Is there any way to debug and find out the problem.

Saturday, February 25, 2012

AS 2000 with 64 bit OS

I moved one of my AS 2000 olap db new server -Windows 2003 "64-bit" OS with lot more processor then old server "32-bit" Windows OS.

Good news is my cube processing I save 50% time but my query performance is slow, I was thinking my query should fly.

I have AS 2000 "32-bit" in "64-bit" Windows server. I have same settings in AS 2000 as old server.

Thank you - Ashok

Well, first of all, if you running IA 64, you should install 64bit version of Analysis Services and run natively.

Second, running on higher end machine doesnt neccessarily means single query performance is going to improve drastically. With higher-end hardware, you should get higher throughput, ability to handle larger databases.
For single query you might be way better off creating additional aggregations supporting your query patterns. With processing times improving you should be able to afford having higher persentage of aggregations that should improve perofmance.

Edward.
--
This posting is provided "AS IS" with no warranties, and confers no rights.