473,387 Members | 1,431 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.

Help me in Specifying Connection string to SQL server 2000 running on remote machine

Hi All

I am dealing a project in ASP.NET in which I have to establish a connection
to SQL Server 2000 database,where the database was located on a remote
system.
For this I have used SQLConnection object and specified the connetion
string.But when it comes to establish a connection its giving me the Error
that

I. Connection string : workstation id=localhost;packet size=4096;user
id=sa;data source=192.168.0.106;persist security info=False;initial
catalog=db

Error : System.Data.SqlClient.SqlException: Login failed for user 'sa'.
Reason: Not associated with a trusted SQL Server connection.

then I have inserted one new attribute 'Network = dbmssocn' and modified
the connection string as below

II. Connection string : workstation id=localhost;packet size=4096;user
id=sa;data source=192.168.0.106;Network=DBMSSOCN;persist security
info=False; initial catalog=db

then I got the below Error when try to establish a connection.

Error : System.Data.SqlClient.SqlException: SQL Server does not exist or
access denied

Note:

1. Here the client machine has VS.NET and IIS installed on it and the SQL
Server 2000 is running on a remote machine but both are in the same
"Workgroup network".

2.The authentication mode of the SQL Server 2000 is Mixed Authentivation(SQL
Server and Windows)

3.Firewall is also enabled on the remote machine where the SQL Server 2000
is ruuning,

4.Both Client and Server running on Windows Xp OS with SP2 installed.

Hence,I am requesting you people to help in specifying the correct
connection string(I mean where I have done the mistake)so that I can
establish a connection.

5.One more issue is that its working fine when as desktop application(i.e, I
am able to extablish connection from a desktop application done in
VB.NET,but wasn't working in web application.)Please let me know my
mistake...........as I have gone through so many forums and didn't find
solution for this.

Thanks in advance
Vighneswar
Nov 19 '05 #1
1 2261
http://www.connectionstrings.com

"vighnesh" <vi******@nannacomputers.com> wrote in message
news:eA*************@TK2MSFTNGP11.phx.gbl...
Hi All

I am dealing a project in ASP.NET in which I have to establish a connection to SQL Server 2000 database,where the database was located on a remote
system.
For this I have used SQLConnection object and specified the connetion
string.But when it comes to establish a connection its giving me the Error
that

I. Connection string : workstation id=localhost;packet size=4096;user
id=sa;data source=192.168.0.106;persist security info=False;initial
catalog=db

Error : System.Data.SqlClient.SqlException: Login failed for user 'sa'.
Reason: Not associated with a trusted SQL Server connection.

then I have inserted one new attribute 'Network = dbmssocn' and modified the connection string as below

II. Connection string : workstation id=localhost;packet size=4096;user
id=sa;data source=192.168.0.106;Network=DBMSSOCN;persist security
info=False; initial catalog=db

then I got the below Error when try to establish a connection.

Error : System.Data.SqlClient.SqlException: SQL Server does not exist or access denied

Note:

1. Here the client machine has VS.NET and IIS installed on it and the SQL
Server 2000 is running on a remote machine but both are in the same
"Workgroup network".

2.The authentication mode of the SQL Server 2000 is Mixed Authentivation(SQL Server and Windows)

3.Firewall is also enabled on the remote machine where the SQL Server 2000
is ruuning,

4.Both Client and Server running on Windows Xp OS with SP2 installed.

Hence,I am requesting you people to help in specifying the correct
connection string(I mean where I have done the mistake)so that I can
establish a connection.

5.One more issue is that its working fine when as desktop application(i.e, I am able to extablish connection from a desktop application done in
VB.NET,but wasn't working in web application.)Please let me know my
mistake...........as I have gone through so many forums and didn't find
solution for this.

Thanks in advance
Vighneswar

Nov 19 '05 #2

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

Similar topics

8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
10
by: Brian Conway | last post by:
I have no idea what is going on. I have a Login screen where someone types in their login information and this populates a datagrid based off of the login. Works great in debug and test through...
1
by: William Urban | last post by:
Hello all, first time posting here and I am running into a pickle of a problem. Here is the scenario. I have a Windows 2000 server running IIS and an ASP.net C# application. The application...
15
by: DavidS | last post by:
Have Visual Studio.NET installed on MS 2000 Professional OS laptop. No issue ever with web development and SQL connections. Purchased new laptop with XP Professional SP2!!!!!!!! & Visual...
16
by: peshekeedweller | last post by:
Using asp.net 1.1. vb.net 2003. I am trying to connect to a remote sql server 2000 on a virtual machine running windows 2000 server. I can connect through the server explorer in visual studio,...
1
by: Carlos | last post by:
Hi all, I have a ASP.NET app that uses SQL Server 2000 to access the data over the internet and everything works fine . However, I just installed SQL server 2005, and wanted to test the remote...
1
by: A Hirsi | last post by:
I have created a vb .net program as a service that is using a simple ftpclient to connect to a remote server and check the status of a file for subsequent downloading if there have been changes to...
1
by: Brad Isaacs | last post by:
I am working with ASP.NET 2.0 and using an SQL Server 2000 database. I am using Visual Studio 2005 and developing on my Local machine. I am working with Login controls ASP.Configuration, I...
4
by: Brad Isaacs | last post by:
I am working with ASP.NET 2.0 and using an SQL Server 2000 database. I am using Visual Studio 2005 and developing on my Local machine. I am working with Login controls ASP.Configuration, I...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...

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.