dbTalk Databases Forums  

Connection issues

microsoft.public.sqlserver.server microsoft.public.sqlserver.server


Discuss Connection issues in the microsoft.public.sqlserver.server forum.



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

Default Connection issues - 08-25-2009 , 06:24 PM






We have a web application that connects fine to Sql on one server but not on
another.

A console application was created and run from the same server that house
IIS. This console program can access and see the tables fine.

Both the Web Server and console program are using the same connection string
with the same user and password.

What would cause the Web Server not to connect?

Thanks,

Tom

Reply With Quote
  #2  
Old   
Eric Isaacs
 
Posts: n/a

Default Re: Connection issues - 08-25-2009 , 07:31 PM






Are both of these websites the same identical website, or are they
running two different code bases that each connect to the same
website? That wasn't entirely clear. If both webservers are running
the identical websites (the same codebase) then I would be looking at
the IIS configuration on the second server as that sounds like the
only difference.

-Eric Isaacs

Reply With Quote
  #3  
Old   
tshad
 
Posts: n/a

Default Re: Connection issues - 08-25-2009 , 08:27 PM



This is the same website that is accessing 2 different SQL Servers
(different machines).

So codebase is the same.

Thanks,

Tom

"Eric Isaacs" <eisaacs (AT) gmail (DOT) com> wrote

Quote:
Are both of these websites the same identical website, or are they
running two different code bases that each connect to the same
website? That wasn't entirely clear. If both webservers are running
the identical websites (the same codebase) then I would be looking at
the IIS configuration on the second server as that sounds like the
only difference.

-Eric Isaacs

Reply With Quote
  #4  
Old   
Dan Guzman
 
Posts: n/a

Default Re: Connection issues - 08-26-2009 , 06:23 AM



Please post the error message. If you are using Windows Authentication,
check to ensure the account has access to the second SQL Server.

--
Hope this helps.

Dan Guzman
SQL Server MVP
http://weblogs.sqlteam.com/dang/

"tshad" <tfs (AT) dslextreme (DOT) com> wrote

Quote:
We have a web application that connects fine to Sql on one server but not
on another.

A console application was created and run from the same server that house
IIS. This console program can access and see the tables fine.

Both the Web Server and console program are using the same connection
string with the same user and password.

What would cause the Web Server not to connect?

Thanks,

Tom

Reply With Quote
  #5  
Old   
tshad
 
Posts: n/a

Default Re: Connection issues - 08-26-2009 , 10:29 AM



"Dan Guzman" <guzmanda (AT) nospam-online (DOT) sbcglobal.net> wrote

Quote:
Please post the error message. If you are using Windows Authentication,
check to ensure the account has access to the second SQL Server.
Unfortunately, don't have the message.

It is on another system that we don't have access to and the only message we
have is from the application itself.

It is they that put the Console program on there system that was able to
connect and see the table.

They are the ones setting up the permissions.

We are just trying to get them things to try to solve the problem.

It works fine in our shop.

Thanks,

Tom

Quote:
--
Hope this helps.

Dan Guzman
SQL Server MVP
http://weblogs.sqlteam.com/dang/

"tshad" <tfs (AT) dslextreme (DOT) com> wrote in message
news:ebnWjsdJKHA.1488 (AT) TK2MSFTNGP03 (DOT) phx.gbl...
We have a web application that connects fine to Sql on one server but not
on another.

A console application was created and run from the same server that house
IIS. This console program can access and see the tables fine.

Both the Web Server and console program are using the same connection
string with the same user and password.

What would cause the Web Server not to connect?

Thanks,

Tom


Reply With Quote
  #6  
Old   
Dan Guzman
 
Posts: n/a

Default Re: Connection issues - 08-26-2009 , 09:24 PM



Quote:
It is they that put the Console program on there system that was able to
connect and see the table.
The console app probably uses a different security context than the IIS. In
lieu of an error message, you can try a a Profiler trace of login failed
events. Ensure IIS has the needed database server access.

--
Hope this helps.

Dan Guzman
SQL Server MVP
http://weblogs.sqlteam.com/dang/

Reply With Quote
  #7  
Old   
tshad
 
Posts: n/a

Default Re: Connection issues - 08-27-2009 , 02:22 AM



"Dan Guzman" <guzmanda (AT) nospam-online (DOT) sbcglobal.net> wrote

Quote:
It is they that put the Console program on there system that was able to
connect and see the table.

The console app probably uses a different security context than the IIS.
In lieu of an error message, you can try a a Profiler trace of login
failed events. Ensure IIS has the needed database server access.

What would the User be for IIS?

Thanks,

Tom
Quote:
--
Hope this helps.

Dan Guzman
SQL Server MVP
http://weblogs.sqlteam.com/dang/

Reply With Quote
  #8  
Old   
Dan Guzman
 
Posts: n/a

Default Re: Connection issues - 08-27-2009 , 07:43 AM



Quote:
What would the User be for IIS?
It depends on your web.config and site settings. For example, you can
specify Impersonate=True and specify a domain account that has the needed
database access as the anonymous user. This can also be done at the app
pool level.

If you have more questions related to the IIS specific settings, post to an
IIS group.

--
Hope this helps.

Dan Guzman
SQL Server MVP
http://weblogs.sqlteam.com/dang/

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 - 2013, Jelsoft Enterprises Ltd.