473,387 Members | 3,781 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

sql server 2000 connection fail

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

Jun 16 '07 #1
1 1604
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" <fi**@clement-it.comskrev i en meddelelse news:yg*************@news.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

Jun 18 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: William F. O'Neill | last post by:
Am using Powerbuilder 8.0.4 and SQL Server 2000. Have just installed Windows XP SP2, and can no longer connect to my SQL Server db. Someone suggested that I need to reset the port for the db at...
3
by: B Moor | last post by:
SServer PC: Win SBS 2003 with 2.6 GHz processor and 1GB RAM SQL Server 2000 v 2000.8.00.76 (sp3) MS Office 2k3 MSJet ms04-014 (latest ost sp8) MDAC v2.8 RTM ADO 2.1 vb6.exe / ADO 2.0 I...
2
by: Vaap | last post by:
I did lot of googling to see if I can solve the SQL server not found problem while trying to run ASP.Net community starter kit from an XP machine to Windows 2003 server hosting SQL server 2000...
6
by: kwdavids | last post by:
I'm getting occasional instances of the error: SQL Server does not exist or access denied I get the error both in application code and from Enterprise Manager. The database is LOCAL. ...
0
by: sameer | last post by:
Environment: OS of sql server 2000 server: windows 2003 standard server , .NEt framework 1.1 , sql server does not have any service pack, machine has the latest Windows service pack. Personal...
3
by: Steve | last post by:
Hi All I downloaded Sql server 2005 express SP2 and attempted to modify the Bootstrapper package files as I did with SP1 When i try to install SQL server as part of my VS 2005 deployment app I...
1
by: Myster Edd | last post by:
I have a strange problem that I think deals with security on SQL 2005. I have a scheduled task that runs on a Windows 2000 machine. It calls a vb script which creates a connection to SQL Server. ...
5
by: marshmallowww | last post by:
I have an Access 2000 mde application which uses ADO and pass through queries to communicate with SQL Server 7, 2000 or 2005. Some of my customers, especially those with SQL Server 2005, have had...
3
by: Mark D Powell | last post by:
I attempted to upgrade my SQL Server 2000 Enterprise Edition (32 bit) to SQL Severer 2005 EE 32 bit and while the prereqs passed the installer will not let me select the version 8.00.x (2000 SP4)...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.