dbTalk Databases Forums  

ASP and SQL Server (OWC)

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss ASP and SQL Server (OWC) in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Andrew Ofthesong
 
Posts: n/a

Default ASP and SQL Server (OWC) - 09-12-2003 , 07:01 PM






Hi, i have a set of .asp pages that uses owc to connect to Access databases.

Now, i have to change them to read from Sql Server, but i cant.

i do:

<OBJECT CLASSID="clsid:0002E552-0000-0000-C000-000000000046" id="Pivot"
VIEWASTEXT></OBJECT>
<SCRIPT Language = 'VBScript'>
Pivot.ConnectionString = "provider=msolap; Initial Catalog=TestDB; Data
Source = Server1; User ID=Web; Password=Web"
Pivot.DataMember= "qQuery1"

And i get a "Database 'TestDB' does not exist"

he's connecting ok to "Server1" (because if i change server name i get
another error)

I created a "web" user, and allow him public and readdata permissions on
that databases.

I set IIS to allow SqlServer to proccess anonymous connections...

What more can i do??

Thanks a lot



Reply With Quote
  #2  
Old   
Andrew Ofthesong
 
Posts: n/a

Default Re: ASP and SQL Server (OWC) - 09-17-2003 , 10:57 AM






ok, it worked if instead of "Initial Catalog=" y used "database="

"Andrew Ofthesong" <Andrew (AT) NoSpam (DOT) net> escribió en el mensaje
news:%23W$EfpYeDHA.2212 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
Quote:
Hi, i have a set of .asp pages that uses owc to connect to Access
databases.

Now, i have to change them to read from Sql Server, but i cant.

i do:

OBJECT CLASSID="clsid:0002E552-0000-0000-C000-000000000046" id="Pivot"
VIEWASTEXT></OBJECT
SCRIPT Language = 'VBScript'
Pivot.ConnectionString = "provider=msolap; Initial Catalog=TestDB; Data
Source = Server1; User ID=Web; Password=Web"
Pivot.DataMember= "qQuery1"

And i get a "Database 'TestDB' does not exist"

he's connecting ok to "Server1" (because if i change server name i get
another error)

I created a "web" user, and allow him public and readdata permissions on
that databases.

I set IIS to allow SqlServer to proccess anonymous connections...

What more can i do??

Thanks a lot





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.