Re: Connecting to SQL server from ASP.NET app

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



The error message "When connecting to SQL Server 2005, this failure may be
caused by the fact that under the default settings SQL Server does not allow
remote connections" is suggesting that the default installation of SQL
Server 2005 does not enable TCP/IP access. In the Start menu go to All
Programs, Microsoft SQL Server 2005, Configuration Tools, SQL Server
Configuration Manager. There you can enable TCP/IP connectivity. Or you
could change the connection string to use Local Named Pipes instead of TCP.
Try changing "(local)" to "." (that's a single period).
Paul Shapiro

"RJT" <RJT@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:EE243E8D-D7CD-4A82-A8B1-1D7BAB62E70A@xxxxxxxxxxxxxxxx
I am using SBS 2003 Premium edition. I created an ASP.NET application on a
development box using the SQLExpress express engine and everything there
worked great. When I migrated it to the SBS 2003, I cannot get it to find
the instance of SQL server and I constantly receive:

An error has occurred while establishing a connection to the server. When
connecting to SQL Server 2005, this failure may be caused by the fact that
under the default settings SQL Server does not allow remote connections.
(provider: SQL Network Interfaces, error: 26 - Error Locating
Server/Instance
Specified)

I've done much research over the past 2 days and not a single posting has
been helpful. I've disabled the Windows firewall (have an external
firewall
device), SQL logs do not show an attempted login (so it's not a user
rejection issue), the connection string is simple:

Server=(local);Initial Catalog=TASCMgr;Integrated Security=True;

The IIS application user id IUSR_<server> has been added to the SQL Server
security lists...


.



Relevant Pages

  • Re: Error "SQL Server does not allow remote connections"
    ... The application could not connect to the sql server db. ... network is blocking the connection. ... SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 ... integratedSecurity, SqlConnection owningObject) +737554 ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Connection from remote computer to network SQL Server
    ... There is no firewall on the W2K machine acting as the SQL server. ... I tried making the SQL machine a "trusted" on the router. ... connection works. ... To find the IP address of your computer inside the network, ...
    (microsoft.public.access.adp.sqlserver)
  • ADO.net Orcas Samples Install Problem
    ... An error has occurred while establishing a connection to the server. ... When connecting to SQL Server 2005, this failure may be caused by the ... SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, ... or am I better off with a full SQL Server install. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: OpenDataSource SQL Server xpress problem
    ... I tried your suggestions with some success. ... I tried setting up the .odc file through the Word Mail Merge wizard as ... If I work through the dialog to connect and then click the 'Test Connection' ... but I suspect it's because until recently most SQL Server ...
    (microsoft.public.word.mailmerge.fields)
  • Re: Exception trying to import data from Excel .
    ... An attempt to install Microsoft SQL Server 2005 this week has not gone ... The connection type "EXCEL" specified for connection manager ... to create a connection manager for an unknown connection type. ...
    (microsoft.public.sqlserver.tools)