Frustrating Error Connecting To SQL 2000 From IIS With .NET 2.0

Jan 3, 2006

I am getting the following error when connecting to SQL 2000 from IIS with .NET 2.0.

It works perfectly with the Test Server that comes with VS 2005.

 
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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: 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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

View 7 Replies


ADVERTISEMENT

Error Connecting To SQL 2000

Aug 12, 2007

I am using Visual Studio 2005 with SQL Server 2000. I'm having an issue where I can build my website just fine for long periods of time, and then for what appears to be no reason, my site errors out when trying to connect to the database with the message below -- the thing is I don't want to use a SQL Server 2005 database, nor do I have Server 2005 or Server Express loaded. How can I unhook this and make it use SQL 2000?"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: TCP Provider, error: 0 - No connection could be made because the target machine actively refused it.) "

View 5 Replies View Related

Error When Connecting To Sql 2000

Sep 11, 2007

I am trying to connect to a sql 2k database using a Microsoft Application block. I get the following error. It is saying about 2005, I verified that SQL 2K is running on the server.
System.Data.SqlClient.SqlException: 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
 
Any help will be appreciated.

View 5 Replies View Related

Error Connecting To SQL 2000

Aug 12, 2007

I am using Visual Studio 2005 with SQL Server 2000. I'm having an issue where I can build my website just fine for long periods of time, and then for what appears to be no reason, my site errors out when trying to connect to the database with the message below -- the thing is I don't want to use a SQL Server 2005 database, nor do I have Server 2005 or Server Express loaded. How can I unhook this and make it use SQL 2000?

"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: TCP Provider, error: 0 - No connection could be made because the target machine actively refused it.) "

View 1 Replies View Related

Getting When Connecting To SQL Server 2005 Error Using MS SQL 2000?

Jun 8, 2007

I'm new to using VS2005 and this is my first project connecting to our MS SQL 2000. App worked fine on my dev PC, connection to the same MS SQL Server. Published the web site to the web server (same server running MS SQL Server) and getting the below error. Is this a permission setup problem on SQL Server or does it really think it's connecting with a MS SQL 2005 database?
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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: 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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

View 16 Replies View Related

Error Connecting To Remote SQL Server 2000 From ASP.NET 2.0

Jul 11, 2007

My environment is Windows Server2003, ASP.NET 2.0, SQL Server 2000 using SQL authentication (names of DB's, sql id's, passwords are identical on both servers)
My web application successfully connects to my database  the web app and the DB are both on the same server (10.144.25.9).This connection string works:
<add name="DefaultDataTierConnectionA" connectionString="Data Source=10.144.25.9,1433; Network Library=DBMSSOCN; Initial Catalog=9D_SQL; User ID=******; Password=******" providerName="System.Data.SqlClient"/>
PROBLEM:
The problem occurs when the DB is mpved to the remote  SQL Server (10.144.25.10). I use almost the identical connection string except for the IP address which is changed to the remote machine. The db name, user, password is same on remote machine as on the local, so everything should work but does'nt. This connection string fails:
 <add name="DefaultDataTierConnectionA" connectionString="Data Source=10.144.25.10,1433; Network Library=DBMSSOCN; Initial Catalog=9D_SQL; User ID=******; Password=******" providerName="System.Data.SqlClient"/>
error (odd error in that I'm connecting to SQL 2000?)  -
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: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: 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: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)
There is no DBA on this project, I'm not sure this is a SQL Server set up problem?  
 
 

View 1 Replies View Related

Error Connecting To Remote SQL 2000 Server

Dec 20, 2007

I'm experiencing a problem connecting to a SQL 2000 server through my ASP code.  My connection string is as follows:
<add name="TheConnectionString" connectionString="driver={Sql Server};provider=MSDASQL;server=10.0.1.42;database=dbname;uid=*********;pwd=*********" providerName="System.Data.Odbc" />
The problem doesn't occur when I run my ASP code from my workstation using VS.NET's builtin webserver.  It makes the connections and executes the CRUD commands successfully.  However, when I publish my site to the webserver (which resides on 10.0.1.16) it fails out with the following error:
System.Data.Odbc.OdbcException: ERROR [08001] [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied.ERROR [01000] [Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (Connect()).
I've verified that the webserver can talk to the DB server by connecting to the remote DB server through SQL Enterprise Manager running locally on the webserver.  If I try to do this with a DSN I get the same results.  I get the same error from any other webserver on the internal network.  The difference between my workstation and the internal network is that I'm using a VPN to connect to our internal network while the webservers are physically connected to it.  Firewalling isn't the issue in this case because the webservers and DB server are on a trusted network.  I've seen other ways of connecting to the DB server including using Named Pipes (which I would rather not do because I don't want to setup a named pipe on the production db server).
I'm relatively new to ASP.NET 2.0, so the above connection string is an adaptation of some old ASP code.  If anybody has any suggestions on a better way to construct this connection string, please let me know.  I've been racking my brains trying to get this to work outside of the devel env.

View 4 Replies View Related

Wierd Error While Connecting To SQL 2000 In ASP.NET Under VS2005

Nov 8, 2006

Hi,

When I try to run the asp.net application (C#) it is throwing the following exception.

"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)"

The problem is I don't have SQL Server 2005 installed in my system. And I am trying to connect a remote SQL 2000 server.

Adding to my confusion, the same code is working fine in another system.

Help please?

View 9 Replies View Related

Error Connecting To SQL 2000 Db The Entry 'MCLConnectionString' Has Already Been Added

Sep 18, 2006

When I try to run my application using VWD from the file system I can connect and run the application and it connects to the remote SQL 2000 server with no problem.However, when I publish to my web server I get the folloiwng error message: Anyone got any ideas?? Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: The entry 'MCLConnectionString' has already been added.Source Error: Line 11: <appSettings/>
Line 12: <connectionStrings>
Line 13: <add name="MCLConnectionString" connectionString="Data Source=GEACO1INTR1;Initial Catalog=MCL;Persist Security Info=True;User ID=ASPNET;Password=PAUL0001" providerName="System.Data.SqlClient"/>
Line 14: </connectionStrings>
Line 15: <system.web>Source File: c:inetpubwwwrootmcltestweb.config    Line: 13  

View 4 Replies View Related

Connecting To SQL 2000 Server Gives SQL 2005 Error Message

Aug 11, 2007

Hi,
Here is the syntax of the connection string within the web.config file:<connectionStrings><clear />
<add name="MyConnectionString" connectionString="Data Source=000.000.000;Initial Catalog=Database Name;Persist Security Info=True;User ID=XXXXXX;Password=XXXXXX;" providerName="System.Data.SqlClient" />
</connectionStrings> 
The test page has a GridView in it which uses the connectionstring fron the web.config file.
Error Message:

View 4 Replies View Related

Error Connecting Database Problem After Moving Databases 2000 To 2005

Nov 9, 2007

I have moved my databases to 2000 to instance of 2005 on the same server.
Now i set databases offline in 2000 as i did upgrade use backup & recovery method.

& my connection string
Password=test;Persist Security Info=True;User ID=test;Initial Catalog=databasename;Data Source=ipaddress

i was using above connection string to connect when using 2000 databases form applications in the production machine

I get the following error when i am running my applications now after moving to 2005


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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

IS it because i have two server on one server or
What do i need to do in order to fix this....tried several thing by searching nothing worked out..

Let me know
thanks


View 9 Replies View Related

Intermittent Login/General Network Error Connecting To A Named Instance Of SQL 2000

Mar 27, 2008

Greetings,

I have a VB 2003 .NET application that I wrote for a customer that connects to a named instance of SQL 2000. Until recently it has been working fine. Lately the program either pops a timeout failure within a few seconds or a general network error. I've increased the connection timeout settings to 90 seconds but the error still pops within a few seconds. I'm thinking something has changed in the environment that prevents a clean connection to the named instance of SQL server.

How should this issue be troubleshoot to determine the problem and what areas need to be looked at?

Thanks

View 3 Replies View Related

Please Help With A Very Frustrating Problem!

May 21, 2006

Hello, the last few days I have been having problems uploading a single database to my server.I uploaded my site and all of my access databases work fine and all pages work fine except for the ones that have anything to do with login controls.  In my site I have a database ASPNETDB.MDF, it is the defualt SQL database created to store membership information.  Now I am not sure why it is not working when I try to connect to it.  Here is the specific error I recieve when I try to use any login control:
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.
 
I have searched and searched the web to try to find an answer to this and have not been able to find a clear one.  Here is what I believe may be causing some of the problems.  Btw, I use Godaddy hosting.
1. Godaddy support told me that I cannot just upload the sql server file to any folder on the server.  They said it has to be on a specific server.  HOwever i do not understand this.  Doesnt an sql express connection allow me to use the database and access it just like my access databases already on my server?
2. Is my connection string in my web.config file correct? : 
add name="LoginConnectionString" connectionString="Data Source=.SQLEXPRESS;AttachDbFilename=|DataDirectory|ASPNETDB.MDF;Integrated Security=True;User Instance=True"
I read somewhere that I may need to include a password and username for the conection but where do I insert this and how do set a password and username up?
If you know anything that could possible help please let me know.  I have really put alot of time into my site and I dont want it to fail becuase of this.  Also, is it possible and easy enough for me to just change the defual so that it uses a access databse instead of sql. 
THANK YOU IN ADVANCE!
Greg

View 5 Replies View Related

Connecting To Sql Server 2000 On Godaddy Error: (provider: Named Pipes Provider, Error: 40 - Could Not Open A Connection To SQL Server)

Mar 5, 2007

Facts:1. I am using my account on Godaddy trying to connect to my sql server db.2. I can get into my db using user id and password.3. Godaddy's help file shows this for a connection string: connectstr = "Driver={SQL Server};SERVER=" & db_server & ";DATABASE="
&db_name & ";UID=" & db_username & ";PWD=" &
db_userpassword4. My connection string: "Server=whsql-v09.prod.mesa1.secureserver.net;uid=dbasolutions;pwd=***;database=DB_87972;"  & _                    "Trusted_Connection=False providerName=System.Data.SqlClient"{password **** out}5. Get error message  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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) I tried to email Godaddy's help desk with this information. There first response: We do not allow remote connections to our sql server database.There second response was to read the help file!Does anybody have any suggestions?  Thanks in advance,bswanson     

View 1 Replies View Related

Frustrating Backup/Restore Issue

Sep 26, 2006

Im running SQL Server 2005

I set up 4 maintenance plans:

1) Full production DBS backup every day at midnight

2) Transaction Backups every 10 minutes starting at 12:10 AM ending at 11:59 PM

3) Full System DBS backups

4) Maintenance on production database: index rebuild, stats, etc.

All the files are sucessfully there but when I try to restore the backup to a new database to make sure its valid it seems I can restore the full backup but the transaction logs seem to be completely disassociated with the full backup. Says there not from the same backup set

I tried the same thing earlier just taking a full backup and then transaction logs in two separate plans and it worked fine. Sometimes it seems to sync up and sometimes it does not. Any help on this issue would be much appreciated

Thanks

Scott

View 7 Replies View Related

Frustrating Visual Studio Crashes When Adding Script Step

Sep 19, 2007

I have two similar packages that are both experiencing this issue.

I need to add a script step to generate an incrementing id for the packages.

Once I add the script step, and then save the package, next time I open the package I get a "Microsoft Visual Studio has encountered a problem and needs to close" error which kills off Visual Studio.

The error signature is:
EventType: clr20r3
P1: devenv.exe
P2: 8.0.50727.762
P3: 45716759
P4: microsoft.sqlserver.txscript
P5: 9.0.242.0
P6: 443f5ab8
P7: 67
P8: d
P9: bbp0yyyc15o2dbouwcacz2m0bodqkotn

If I move the error window to one side, delete the whole Script step, and save the Package, then I can reopen the package again without the error occurring.

Here is the actual code in my script step (in case its of any assistance...)
(I have retyped it from a printout, so it may not be 100%. DOCID is supposed to increment from 1. DREF1 is a system-unique id, that takes up from where the last batch left off, and is a string prefixed by "MP")




Code Snippet

Imports System
Imports System.Data
Imports System.math
Imports Microsoft.SqlServer.Dts.Pipeline.Wrapper
Imports Microsoft.SqlServer.Dta.Runtime.Wrapper

Public Class ScriptMain

Inherits UserComponent
Dim ndx as Int32 = 0

Public Overrides Sub Input0_ProcessInputRow(Byval Row as Input0Buffer)

'
' Add your code here
'
Dim dref as String

ndx = ndx + 1
Row.DOCID = ndx

dref = "MP" + Ctype(ndx + Variables.MPIDOrig, String)
Row.DREF1 = dref
End Sub

Protected Overrides Sub finalize()

Variables.MPID = ndx + Variables.MPIDOrig
MyBase.Finalize()
End Sub
End Class





View 4 Replies View Related

Connecting MS SQL 2000 Thru C++

Sep 6, 2004

Hi,

1)can someone help to explain these 2 lines of codes to me?
I need to change this 2 lines of code to my SQL 2000 database that is connected to my computer locally using Windows NT. How can i change these code?Thanks!

char *connectionString = "dsn=SPS;uid=sa;pwd=;";
hr=pRs->Open(queryString,connectionString,adOpenStatic,adLockOptimistic,adCmdUnknown);

From what i know this is connecting to an instance of the server using sa as login and no password. What does the dns refer to ?

2) If i wan to connect to a database located at the server installed on my computer locally using Windows NT authentication , do i use

"strConnection = _T("Driver={SQL Server};Server=MyServerName;"
"Trusted_Connection=no;"
"Database=SPS;Uid=;Pwd=;");"

If not so,how then?Please kindly advice!

View 1 Replies View Related

Connecting Sql 2000 Sp3 With Asp

Jul 23, 2005

I created a new SQL database using SQL 2000 SP3 on a Windows 2003server. Now when my wed publisher changes his codes in ASP to point tomy new server and SQL database we are getting the message this page cannot be displayed when clicking on the web link. The old SQL databasewas created with SQL 2000 on a Windows 2000 server. Below you will findthe ASP code that we are using. Please Help me!<!--Open Connection to SQL Database--><%'CREATE/OPEN ADO CONNECTION OBJECTDim objConnect, oSurveySet objConnect = Server.CreateObject("ADODB.Connection")oSurvey = "driver={SQL Server};server=SPD-HEAT-01;database=Heat8;" &_"uid=johndoe;pwd=johndoe"objConnect.Open oSurvey,"",""%>

View 1 Replies View Related

Connecting To SQL 2000

Oct 21, 2006

Is is possible to sync SQL Mobile 2005 with SQL Server 2000 using replication? Or do I need to use SQL Server 2005 or drop back to SQL Server 2000 CE.......

Thanks

View 1 Replies View Related

Having Problem While Connecting Sql 2000

Nov 2, 2006

im using sql server 2000 and i m facing this problem plz tell me why is this"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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)"

View 5 Replies View Related

Web Config Connecting To SQL 2000

Feb 11, 2007

Hi all,
 I'm having a frustrating time connection to SQL 2000 from the web.config. I'm getting the following error
 Here is my config
<?xml version="1.0"?><configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> <appSettings/> <connectionStrings> <add name="ConnectionString"      connectionString="Server=xxxx;Database=xxx;uid=xxx;pwd=xxx;"      providerName="System.Data.SqlClient" />   </connectionStrings> <system.web>  <compilation debug="true" strict="false" explicit="true"/>  <authentication mode="Windows"/> </system.web></configuration>
This is the error i get
 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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
Any thoughts?
Thanks.

View 3 Replies View Related

Connecting To Sql Server 2000 In A Lan

May 22, 2007

Hi there,
I have 2 servers on our compny'ssql server does not exist or access denied lan, one with fixed ip and the other one with internal ip. I installed SQL server 2000 on the one with internal ip and I want to access it from the other server. when I want to register sql server instanse , I can see the name of that instance in the list but I can't register it. I keep reciving this error  : sql server does not exist or access denied!
Could any one told me what to do?

View 2 Replies View Related

Connecting To SQL Server 2000

Dec 23, 2005

Hi
I am running Visual Studio 2005 Visual Web Developer Standard Edition on a machine with SQL Server 2000.   Could you please teach me how to modify the connection string below so that it connects to SQL Server 2000 with the database called "VisualWebDev".
Thank you.
Jim
 
<connectionStrings>
<add name="Personal" connectionString="Data Source=.SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Personal.mdf" providerName="System.Data.SqlClient"/>
<remove name="LocalSqlServer"/>
<add name="LocalSqlServer" connectionString="Data Source=.SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|aspnetdb.mdf"/>
</connectionStrings>

View 12 Replies View Related

Connecting Oracle To SQL 2000?

Jan 28, 2005

Hi, i need to build some way of connecting Oracle to SQL Server in order to pull data off Oracle and house it temporarily on SQL 2000 for searching.

Basically we've built an intranet using ASP and SQL 2000 and which also pulls data off Oracle, however our connection to Oracle is very slow so an idea to speed it up would be to have SQL store a temporary snapshot of this data and the ASP site query off the fast connection it has to SQL rather than use our slow connection to Oracle.

This temporary snapshot of Oracle data would be stored on SQL 2000 and updated on a scheduled basis.

Any ideas how to do this, or a better way to work this?

Thing is I tried installing the Official Oracle ODBC & Client software on our SQL 2000 server before and it just took out SQL 2000 so would really like to hear other options.

Thanks in advance,

:confused:

View 2 Replies View Related

Connecting To Access 2000 DB

Mar 19, 2008

I have been using Access 2000 for quite some time and am trying move the application to use SQL Server 2005 Express. Is there any way to connect directly to an Access MDB using SQL Server 2005 Express, or can it only connect to an MDF?

View 3 Replies View Related

Connecting To SQL Server 2000

Jul 23, 2005

Hi,I am total newbie to SQL Server. My new host tells me I can connect throughAccessXP or 2002. I have Access 2000. Can I not connect with that also?Thanks, JA

View 4 Replies View Related

2005 Connecting 2000 ?

Oct 28, 2006

if I install SServer Express EditionCan I connect to SServer 2000 DB ?thanks

View 1 Replies View Related

Connecting SQL 2000 Using SQL 2005

Feb 7, 2007

Hi,I have installed SQL 2005 in my PC and am trying to connect to SQLServer 2000 installed in a different machine. Both the server areinstalled in mixed mode.I can connect to the 2000 server from 2005's SSMS using windowsauthentication mode but fail to connect using SQL authentication.The follwoing message is displayed.Cannot connect to <servername>.Additional information:Login failed for user 'username'. (Microsoft SQL Server, Error: 18456)TIA,Taw.

View 4 Replies View Related

Connecting To SQL Serve 2000

Feb 25, 2008

Hello everyone I€™m trying to figure out a scenario, please help me out through your replies.

I have a server (ETL Server) ETL tool used is SQL Server Integration Services
And I have a source system with SQL Serve 2000 installed.
The problem I€™m facing in here is I€™m not able to get connect to my source system through connection manager.

I had developed few packages earlier but my source was oracle so I had installed oracle client in my ETL Server and got my source component connected to the source system.

Now I wanted to connect to sql sercer database in different server in network.

I would highly appreciate if you could help me out.
Thank you

View 8 Replies View Related

Connecting To The Database In SQL Server 2000

Jan 31, 2007

I am developing a system using VS 2003 with database SQL Server 2000.
In web.config,  I have added the following code in it
    <sessionState
            mode="InProc"
            stateConnectionString="tcpip=127.0.0.1:42424"
            sqlConnectionString="data source=127.0.0.1;Database=grandb;Trusted_Connection=yes"
            cookieless="false"
            timeout="60"
    />
 
Actually I don't know if the above code is correct. My database is stored in the SQL Server 2000 and named as grandb.
Thank you.

View 3 Replies View Related

Connecting To MS SQL Server 2000 From The Different Domains Using Asp.net

Jul 24, 2007

Hi,
      My problem is somewhat like this that, i want to connect my all applications (developed in asp.net)  to one database. In other words i want to make a centralised database that can be accessible from the application running at the different domains. When i did so  by using the same username, password, database and server...i recieve an error that, "connection cannot be establised".
If any body have the solution for this problem. then please do write the "connection string"  for me that can be efficiantly used on the applications running on differnt domains.
Thanks and Regards,
Steve Dcosta
 

View 1 Replies View Related

Connecting Aspx To SQL Server 2000

Jul 24, 2007

Hello All,
 I am just getting started on aspx, coming from an asp background.
I created the following connectionString in my web.config file:<connectionStrings>
<add name="OuWebDB"
connectionString="server=OurServer;database=OurDatabase;uid=TheUser;pwd=ThePassword"providerName="System.Data.SqlClient"
/>
</connectionStrings>
 
when I run this aspx file, from a machine, I get the following error:
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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
Help!!
 
thanks

View 3 Replies View Related

Connecting To Northwind On SQL Server 2000

Jan 14, 2004

I've just installed SQL Server 2000 on my local machine. I'm using the following element in my web.config file for my connection string.

<add key="SqlNWind512" value="server=(local)141.705.84.745;database=Northwind;
user id=sa;pwd=h3fe8eq7;packet size=512;" />

Unfortunately, I'm getting the following error on my aspx page:

SQL Server does not exist or access denied.

I had no problem writing a connection string to connect to the MSDE installed on my computer, but making a connection to the Northwind database on my newly installed SQL Server 2000 Developer edition has been elusive to me.

I'm sure my IP address is correct. The authentication mode for logging into the database via Enterprise Manager is setup to require a password for sa. Therefore, I assume it's required in the connection string???

Maybe not so coincidentally, while I have been able to open this database through the Server Explorer in VS.NET, I'm not able to access it via Enterprise Mananger (no response, it just hangs) or my aspx pages.

I'm dying here!!! Is my connection string wrong? Any insights would be greatly appreciated!

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved