dbTalk Databases Forums  

sql server 2000 connection fail

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss sql server 2000 connection fail in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
finn clement hansen
 
Posts: n/a

Default sql server 2000 connection fail - 06-16-2007 , 07:02 AM






Hi group,

being pretty new to setting up sql server, I am stuck.

Have installed sql 2000 server on Win 2000 server, IIS 5.0. I try to connect via ASP script that looks like this:

<%
Set Conn = Server.CreateObject("ADODB.Connection")
ConStr = "PROVIDER=SQLOLEDB; DATA SOURCE=192.168.1.99"
ConStr = ConStr & ";UID=someUser;PWD=somePassword"
ConStr = ConStr & ";initial catalog=myDatabaseName;network library=DBMSSOCN"
Conn.Open ConStr
Conn.Close

Set Conn = Nothing
%>

The IP number is the webserver my router points to on port 80.

But get an HTTP 500 error and "The page cannot be displayed"

Any suggestions as to what I am doing wrong here, would be very much appreciated.

I have run applications for a long time that operate Access databases, but starting a new, an big project, forces me to upgrade to sql databases.

Best wishes
FCH


Reply With Quote
  #2  
Old   
finn clement hansen
 
Posts: n/a

Default Re: sql server 2000 connection fail - 06-18-2007 , 12:38 AM






Hi! Don't bother. I solved the problem myself. Needed to change authentication - and "UID" to "user id".

But thanks anyway.

FCH
"finn clement hansen" <finn (AT) clement-it (DOT) com> skrev i en meddelelse news:ygQci.22$f63.20 (AT) news (DOT) get2net.dk...
Hi group,

being pretty new to setting up sql server, I am stuck.

Have installed sql 2000 server on Win 2000 server, IIS 5.0. I try to connect via ASP script that looks like this:

<%
Set Conn = Server.CreateObject("ADODB.Connection")
ConStr = "PROVIDER=SQLOLEDB; DATA SOURCE=192.168.1.99"
ConStr = ConStr & ";UID=someUser;PWD=somePassword"
ConStr = ConStr & ";initial catalog=myDatabaseName;network library=DBMSSOCN"
Conn.Open ConStr
Conn.Close

Set Conn = Nothing
%>

The IP number is the webserver my router points to on port 80.

But get an HTTP 500 error and "The page cannot be displayed"

Any suggestions as to what I am doing wrong here, would be very much appreciated.

I have run applications for a long time that operate Access databases, but starting a new, an big project, forces me to upgrade to sql databases.

Best wishes
FCH


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.