472,802 Members | 1,318 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Connecting to sqlserver2003 on windows server 2003 from asp.net on windows server2003

Hi All,

Came across a post wherin you had helped somebody with a similar
problem and was wondering if you could help us out with it.

Our problem is ,

We have a development SQL Server 2000 (running on Win2K SP4) machine
that we want to run on a Windows 2003 server machine and access it via
our internal LAN. We have opened the firewall to allow our applications
on the LAN to connect to SQL server in the machine.

The problem comes when we try to connect to SQL from the LAN from an
ASP.Net application running on another machine with windows 2003
server installed. In that case I get "SQL server does not exist..."
error. Connecting from Query analyzer with the same username and
password (sa and password) works fine.

if i have the asp.net application running on a Xp machine, then
connection is succesful.

even disabling the firewall did not help.

So to summarise:
I run the same connection code (and connection string) on the same
client machine to connect to a SQL Server 2000 database via a firewall
both on Windows 2003 server machines.
The ASP.Net application throws an error when run from the 2003 server
machine but runs succesfully if run from an Xp machine. The connection
code and connection string are identical.
Can you suggest why this is happening?

Jun 13 '06 #1
3 1943
can you provide us with the connection string that you are using right now?

--

Bruno Alexandre
(a Portuguese in Københanv, Danmark)
"Vinod R.Shenoy" <vi************@gmail.com> escreveu na mensagem
news:11**********************@f6g2000cwb.googlegro ups.com...
Hi All,

Came across a post wherin you had helped somebody with a similar
problem and was wondering if you could help us out with it.

Our problem is ,

We have a development SQL Server 2000 (running on Win2K SP4) machine
that we want to run on a Windows 2003 server machine and access it via
our internal LAN. We have opened the firewall to allow our applications
on the LAN to connect to SQL server in the machine.

The problem comes when we try to connect to SQL from the LAN from an
ASP.Net application running on another machine with windows 2003
server installed. In that case I get "SQL server does not exist..."
error. Connecting from Query analyzer with the same username and
password (sa and password) works fine.

if i have the asp.net application running on a Xp machine, then
connection is succesful.

even disabling the firewall did not help.

So to summarise:
I run the same connection code (and connection string) on the same
client machine to connect to a SQL Server 2000 database via a firewall
both on Windows 2003 server machines.
The ASP.Net application throws an error when run from the 2003 server
machine but runs succesfully if run from an Xp machine. The connection
code and connection string are identical.
Can you suggest why this is happening?

Jun 13 '06 #2
thanx for the reply. yes here is the connection string i use:

<add key="ConnectionString" value="user id=sa; password=masters;
initial catalog=PepsiCoPortal; server=asdosdbserver;" />

we have already tried using network library =dbmssocn

and impersonate =true also.
the problem is if i connect to the db on the 2003 machine from an xp
machine there is no issue at all.
but when my application from a windows 2003 machine connect to the db
on another 2003 machine,this problem arises.

also funnily enough, when we tried the same setup on some other 2003
machines(freshly formatted) there was no problem at all in connecting
!!!

but in quite a few 2003 machine pairs this problem occurs. please
advise .

Bruno Alexandre wrote:
can you provide us with the connection string that you are using right now?

--

Bruno Alexandre
(a Portuguese in Københanv, Danmark)
"Vinod R.Shenoy" <vi************@gmail.com> escreveu na mensagem
news:11**********************@f6g2000cwb.googlegro ups.com...
Hi All,

Came across a post wherin you had helped somebody with a similar
problem and was wondering if you could help us out with it.

Our problem is ,

We have a development SQL Server 2000 (running on Win2K SP4) machine
that we want to run on a Windows 2003 server machine and access it via
our internal LAN. We have opened the firewall to allow our applications
on the LAN to connect to SQL server in the machine.

The problem comes when we try to connect to SQL from the LAN from an
ASP.Net application running on another machine with windows 2003
server installed. In that case I get "SQL server does not exist..."
error. Connecting from Query analyzer with the same username and
password (sa and password) works fine.

if i have the asp.net application running on a Xp machine, then
connection is succesful.

even disabling the firewall did not help.

So to summarise:
I run the same connection code (and connection string) on the same
client machine to connect to a SQL Server 2000 database via a firewall
both on Windows 2003 server machines.
The ASP.Net application throws an error when run from the 2003 server
machine but runs succesfully if run from an Xp machine. The connection
code and connection string are identical.
Can you suggest why this is happening?


Jun 15 '06 #3
try this website:

http://www.connectionstrings.com/

--

Bruno Alexandre
(a Portuguese in Københanv, Danmark)
"Vinod R.Shenoy" <vi************@gmail.com> escreveu na mensagem
news:11**********************@i40g2000cwc.googlegr oups.com...
thanx for the reply. yes here is the connection string i use:

<add key="ConnectionString" value="user id=sa; password=masters;
initial catalog=PepsiCoPortal; server=asdosdbserver;" />

we have already tried using network library =dbmssocn

and impersonate =true also.
the problem is if i connect to the db on the 2003 machine from an xp
machine there is no issue at all.
but when my application from a windows 2003 machine connect to the db
on another 2003 machine,this problem arises.

also funnily enough, when we tried the same setup on some other 2003
machines(freshly formatted) there was no problem at all in connecting
!!!

but in quite a few 2003 machine pairs this problem occurs. please
advise .

Bruno Alexandre wrote:
can you provide us with the connection string that you are using right
now?

--

Bruno Alexandre
(a Portuguese in Københanv, Danmark)
"Vinod R.Shenoy" <vi************@gmail.com> escreveu na mensagem
news:11**********************@f6g2000cwb.googlegro ups.com...
Hi All,

Came across a post wherin you had helped somebody with a similar
problem and was wondering if you could help us out with it.

Our problem is ,

We have a development SQL Server 2000 (running on Win2K SP4) machine
that we want to run on a Windows 2003 server machine and access it via
our internal LAN. We have opened the firewall to allow our applications
on the LAN to connect to SQL server in the machine.

The problem comes when we try to connect to SQL from the LAN from an
ASP.Net application running on another machine with windows 2003
server installed. In that case I get "SQL server does not exist..."
error. Connecting from Query analyzer with the same username and
password (sa and password) works fine.

if i have the asp.net application running on a Xp machine, then
connection is succesful.

even disabling the firewall did not help.

So to summarise:
I run the same connection code (and connection string) on the same
client machine to connect to a SQL Server 2000 database via a firewall
both on Windows 2003 server machines.
The ASP.Net application throws an error when run from the 2003 server
machine but runs succesfully if run from an Xp machine. The connection
code and connection string are identical.
Can you suggest why this is happening?

Jun 16 '06 #4

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

Similar topics

1
by: Tim Meagher | last post by:
I am running ASP code that was migrated from a Windows 2000 Server to a Windows 2003 server. For some reason the connection timeout or command timeout are getting ignored and my query time sout...
1
by: John | last post by:
Hi all can somebody recommend some good newsgroups on Windows Server 2003? Thanks a lot! John
4
by: Sacha Korell | last post by:
First of all, sorry for cross-posting, but this newsgroup is much busier than "aspnet.mobile". I'm trying to create a portal page that redirects depending on the device that is connecting. ...
14
by: David Tilman | last post by:
I've gone throught the MSDN walkthrough "Creating a Web Application Using Visual C# or Visual Basic". When I run the sample I get "Login failed for user 'dbuser'" at the line with...
0
by: Rico | last post by:
Hello, I have an ASP web app with an SQL back end. It's currently connecting to an SQL Server 2000 database using an ODBC DSN. I am currently migrating to a new Windows 2003 Server machine...
10
by: MVChauhan | last post by:
Hi We are planning to move over to SQL Server 2005 in near future. At the moment Website is on a seperate server then the Database. OS for both the server is Window 2003 and currently our data...
8
by: bhochstetler | last post by:
I am needing to build python 2.5 on Windows XP x64 Windows Server 2003 sp1 Platform SDK and am not finding anything documented on the process to use. Has anyone had any success with this? If so has...
2
by: orandov | last post by:
Hi, I am having a problem connecting my .net applications from the application server to the database server. When I run the application from my windows xp (sp2) box it works fine. When I try to...
1
by: rjlorenzo | last post by:
Good Day, I have a problem on my server 2003, when i tried to search the whole data or large data, i got page cannot be displayed but when i tried to installed/setup my asp program on winxp with IIS...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.