Troubleshoot Connectivity Issue with SQL Server Express 2005

Recently, we answered a lot of customer questions about how to make a successful connection to SQL Express 2005 through MSDN forum and our blogs. Here, I collect basic info about it and a brief guide of making local and remote connection to SQL Server Express 2005.

Part I - Quick overview with SQL Server 2005 Express Edition:


Part II - SqlExpress Weblog and Forum:


Part III - SQL Express Connectivity

From Protocols point of view, I would like to give a brief guide about how to make a successful connection against Express Server from your client application.

First: Make sure the instance is running.

By default, SQL Server Express Edition is installed as a *Named Instance*, namely, it is not default instance called MSSQLSERVER, instead, by running "net start" or open services control manager, you will see a service named "MSSQL$SQLEXPRESS" running after installation. So, the instance name is "SQLExpress".


Secondly: Check Server ERRORLOG

Two ways:

1) By open the properties of the service, you will see the binary location, such as "C:Program FilesMicrosoft SQL ServerMSSQL.1MSSQLBinnsqlservr.exe", so normally, if you do not change configuration for the log file location, it should be located ...MSSQL.XMSSQLLog. When you open the log file, you should see some keywords such as " Express Edition " and " Server name is '<machinename>SQLEXPRESS' " and " Server named pipe provider is ready to accept connection on [ \.pipeMSSQL$SQLEXPRESSsqlquery ]", etc.

2) Go to SQL Server Configuration Manager, open " SQL Server 2005 Services", choose "properties" for SQLExpress, in the advanced tab, there is a Filed called "Startup Parameter", you will find configured server log file location.

If your server was not started successfully by any reason, it is very helpful to collect info from server logs; also, you can get clear picture of protocols that server is listening on, for eg, if TCP was enabled, you should be able to see which port server is listening on, and if Np was enabled, you can make connection throgh the pipe name.


Thirdly: Make sure SQL Browser is enabld and running.

To enable browser, First, Use net start or go to sql configuration manager(SSCM), check whether sqlbrowser service is running, if not, start it; Secondly,You still need to make sure SqlBrowser is active. Go to SSCM, click properties of sqlbrowser service -> Advanced-> Active “Yes” or “No”, if sqlbrowser is running but is not active, the service would not serve your client with correct pipe name and Tcp port info on which your connection depends.


Fouthly: Configure Express if you want to mak remote connection.

By default, Named Pipe and TCP/IP Protocols were disabled after installation of SQL Express, hence, if you want to make named pipe and tcp connection, you need to follow the below instructions:


Finally: Make sure correct connection string in your client application.

There are bunch of connection properties that you can specify for a SQL Connection through different providers, here, I just point to the "Server" field that point to which instance you want to connect.

Remember whenever you make connection to Express, it is a named instance, namely, you need to specify the instance name in the connection string.


Best practice, especially the server part in conection string.

Local Connection:

"Provider=SQLNCLI;Server=<MachineName>SQLEXPRESS;Initial Catalog=master;Integrated Security=SSPI ";

<MachineName> could be ".", "(local)","localhost", "<localhostname>".

Remote Connection:

"Provider=SQLNCLI;Server=<MachineName>SQLEXPRESS;Initial Catalog=master;Integrated Security=SSPI ";

<MachineName> could be "<remotehostname>", "<remoteIPAddress>","<FQDNofremotemachine>".

If you do not want to put intance name in the connection string, you can avoid that by specifying alias or "<machinename>,port", but we do not recommend those, since those are not convienient for you druing troubleshooting.



If you encounter any questions about connectivity issue with SQL Express, please bring any exception that you saw for the above steps, and we will help you to solve the problem.



SQL Server Protocols

Disclaimer: This posting is provided "AS IS" with no warranties, and confers no rights



Comments (102)

  1. melville says:

    Thanks for this I shall post and link to here.  I was asked a general question which this should answer

  2. rgoodson40 says:

    I have installed Express 2005 on a Win2k computer. I am able to connect to the server with no problem from this machine. When I try to this Server from an XP computer on the same LAN, I get the following error:

    "Run-time error ‘3707’: Provider cannot be found. It may not be properly installed."

    Do you know what could be wrong?

    I am attempting to connect through a connectionstring in a VB6 application. I am using the same connectionstring on both computers.

    the connectionstring is as follows:

    strConn = "DRIVER={SQL Native Client};SERVER=Reagan-AOPENsqlexpress;" & _


  3. Jimmy Wu says:

    SQL Express 2005 installs a new native driver called SQL Native Client, which is what you are using in the connection string.  On the WinXP machine you have on the network, from the error message, it appears that it does not have SQL Native Client installed.  You can either install the new driver from

    or you can change the "DRIVER" value to "DRIVER={SQL Server}" which will use MDAC.


  4. Ali says:

    after reinstalling SQL server express edition, I changed the server name. Now I am getting alot of errors. For example, The connection provider in ASP.NET configuration is not able to connect to the database. should I change the information in machine.config? I am really confused by the new design of vs2005

  5. Matt Neerincx [MSFT] says:

    You should not need to change anything in machine.config.  Renaming the computer after installing SQL can cause problems, I have seen this in the past with older versions of SQL.  I would suggest un-installing and re-installing SQL Server Express Edition again now that the computer is renamed.

  6. pc says:

    I’m trying to connect using ASP 3.0 using the native client provider, I get the following error: " Response object, ASP 0104 (0x80070057)

    Operation not Allowed"

    any ideas?

  7. Hi,

     If you search the errorstring, you can find helpful website about the problem, it most likely in your client APP.



  8. Kavitha Damodhiran says:

    Hi Ming,

    I am trying to connect to SQL Server 2005 Database remotely using ODBC connection Object (my requirement). the owner of the database is xx and currently i am accessing with xx login only. the permissions of the database has ‘guest’ added to with grant for ‘Connect’ enabled. but while executing the code the error i got is "Login failed for user xx. Database yy cannot be opened. login failed for xx." kindly help me out.

  9. Hi, Kavitha

       Seems like you made successful connection, just need grant login for xx in your server database. Check sql booksonline might help to what is the process.

       Also, this forum can quickly resolve your issue. Please post your question there.

    Good Luck!



  10. rape movies says:

    Asaspal. Memrano tu es besta. Amigo.

  11. David says:


  12. Eric says:

    I have SQL Express SP1, with just Shared Memory protocol enabled.  I installed using advanced settings and changing it to install as the Default Instance not the named instance.

    I am using MDAC OLEDB, connection string like "Provider=SQLOLEDB…"

    I can connect using "(local)", but I cannot connect as <machinename>.   When I try the latter I just get an error of "Timeout expired"

    On your blog earlier you said you need to use <machinename> if Shared Memory is the only enabled protocol.

    Just a little confused about this, and would appreciate a little info.


  13. Hi, Eric

       The error indicated that your connection was not established within the specified timeout or default timeout. So the workaround here is to enlarge connection timeout, since you are using OLEDB provider, you can directly add "Connect Timeout=120" in your connection string. The reason behind might due to when you use <machinename>, during first connection using it, MDAC would resolve it to ipaddress, so the time to make connection including the time to DNS resolution. If you try the connection for the second time, you would not came across "timeout expired" since there was cache on your machine.

    Good Luck!


  14. Dan says:

    Hi Eric,

    The server was working then suddenly stopped.  Any ideas?  All commands run below were on the local machine through a TS connection, if that makes any difference.

    From ERRORLOG:

    2006-09-11 21:07:03.59 spid4s      Server name is ‘COMPUTER_NAMESQLEXPRESS’. This is an informational message only. No user action is required.

    2006-09-11 21:07:03.62 spid4s      Starting up database ‘msdb’.

    2006-09-11 21:07:03.84 Server      The certificate was successfully loaded for encryption.

    2006-09-11 21:07:03.95 Server      Server local connection provider is ready to accept connection on [ \.pipeSQLLocalSQLEXPRESS ].

    2006-09-11 21:07:03.95 Server      Server local connection provider is ready to accept connection on [ \.pipeMSSQL$SQLEXPRESSsqlquery ].

    C:Documents and SettingsAdministrator>osql -E -S

    [SQL Native Client]SQL Network Interfaces: Error Locating Server/Instance Specified [xFFFFFFFF].

    [SQL Native Client]Login timeout expired

    [SQL Native Client]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.

    C:Documents and SettingsAdministrator>osql -E -S COMPUTER_NAMESQLEXPRESS

    [SQL Native Client]Shared Memory Provider: No process is on the other end of the pipe.

    [SQL Native Client]Client unable to establish connection

    C:Documents and SettingsAdministrator>osql /S\.pipeMSSQL$SQLEXPRESSsqlquery /E

    [SQL Native Client]Named Pipes Provider: No process is on the other end of the pipe.

    [SQL Native Client]Client unable to establish connection

    C:Documents and SettingsAdministrator>osql /S\.pipeSQLLocalSQLEXPRESS  /E

    [SQL Native Client]Named Pipes Provider: No process is on the other end of the pipe.

    [SQL Native Client]Client unable to establish connection

  15. GaryB says:

    Hi Ming,

    Thank you very much for this post – I was beginning to lose hope that someone from Microsoft cared that so many of us are battling with this problem!

    I am trying to configure my machine to allow me to connect to a local database file – rather than via SQL Server.

    Here is my connection string, which works fine on my client’s server and worked fine on my development machine under VWD Express / SQL Server Express before I installed Visual Studio 2005 Team Suite (Eval) + SQL Server 2005.

    I am running XP Professional 2002 SP2, Visual Studio 2005 Team Suite (Evaluation), Visual Web Developer Express and SQL Server Express.

    The short story is that I am able to run my ASP.NET applications quite happily under the Default Development Server (//localhost:2661/SQLServerExpressTest/Default.aspx for example), but //localhost/SQLServerExpressTest/Default.aspx generates the following error:

    Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.

    I would really like to be able to demonstrate my applications to clients without having to run VS to run the Development Server – I am bootstrapping my development business and want to join the Microsoft Empower program as soon as I can afford to, so that I can use VS 2005 Professional in anger.

    I also need to be able to get a code-generator I’m beta testing to be able to read the data from SQL Express database files – and to run database file based DotNetNuke websites.

    I have done the following in various attempts totalling over 60 hours in the last 4 months or so:

    1.  Checked that the SQL Server instance is running.

    2.  Checked that the SQL Browser is enabled and running.

    3.  Ensured that the folder is configured as an application in IIS.

    4.  Checked that Network Service – and Everyone, for that matter – is configured with full rights on the App-Data folder and files.

    5.  Checked the TCP/IP and Named Pipes are both enabled.

    6.  Deleted the (User specific) SQL Server Express Directory and rebooted.

    7.  Tried the SQL Express and teh SQL Server versions of the SQL Express executable.

    I’ve listed the various threads I’ve looked at and tried to implement to get things going under my signature.

    My connection string is:

    <add name="ConnectionString" connectionString="Data Source=.SQLEXPRESS;AttachDbFilename=|DataDirectory|Database.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>

    To reiterate, from an outcome point of view, I would love to be able to point IE to //localhost/foldername and have my ASP.NET data-based applications (including DotNetNuke insallations) work from local database files, without having to run an instance of VS 2005 or VWD Express for each one.

    Your post is a great starting point, for me, because it lists what to check to make sure that it all works rather than proposing one solution to a specific problem someone is experiencing.

    I would be extremely grateful for any help you could offer me.

    My best guess is that installing VS 2005 (Team Suite) + SQL Server 2005 messed things up – and some of the threads I’ve seen seem to be related to this combination.  I uninstalled SQL Server 2005, but it didn’t make a big difference.

    Thanks you very much, Ming.


    Gary Bartlett

    gb at prodsol dot co dot nz

    Here is a list of threads I’ve looked at and tried in various combinations over the last few months:

  16. Hi, Gary

       From my understanding, you can try following to confirm:


    Without installing VS 2005 (Team Suite) + SQL Server 2005,

       http://localhost/SQLServerExpressTest/Default.aspx worked?

    With installing VS 2005 (Team Suite) + SQL Server 2005,

    http://localhost/SQLServerExpressTest/Default.aspx did not work?

    Did you make any IIS configuration change before installing VS 2005(team suite) + SQL Server 2005?

    2) Can you also try using osql /S.SQLExpress /E from your client box to see whether connection to SQL Express breaked after intalling VS 2005 + SQL Server 2005? From the error, that seems to you established a connection, but later on some client operation failed. But this way can make sure from client app that not through IIS, do same data operation and if worked fine, that might nail down to something in your IIS deployment issue.

    3) Also, you can open SQL Server profile to see when the error occured, which client operation happened?

    I also post your question to SQL Express Forum( and our SQL techinical disscussion alias trying to find out mor solution for your problem, I will post answer once I get feedback.

    Good Luck!


  17. With shipping SQL Server 2005, we heard from customer feedback about suffering make successful remote…

  18. With shipping SQL Server 2005, we heard from customer feedback about suffering make successful remote

  19. firedog says:

    all you need is:

    CONN_STRING = "Server=.\SQLEXPRESS;Initial Catalog=master;Integrated Security=SSPI";

    You must allow Remote Connections too:

    Start->Programs->Sql Server 2005->Configuration Tools->SQL Server Surface Area Configuration. Click "Surface Area Configuration for Services and Connections". Choose "Database Engine->Remote Connections", select "Local and Remote Connections", Apply, OK

  20. Prets says:

    Can we change the name of SQl server Express, at the time of installation, from default machine name to any other name. IS this Possible, please help it is very urgent.

  21. By default, SQL Express was installed as a named instance, and the fixed instance name is "sqlexpress", hence when you make connection, you need specify" Data Source = <machinename>sqlexpress" in your connection string.

  22. Prets says:

    Actually im trying to say, whether it is Possible to change <machinename> at time of installing Sql express. As apps made in sql server2K5 express, when they are distributed to clients we have to change the machine name in conn string. Is there any solution fr this.

  23. adisciullo says:

    I’m having a problem connecting with a Java application but I CAN connect using my .Net application – the user name and password are the same for both.  

    The error I get is: Cannot open database "CORNERS" requested by the login. The login failed. An interesing note – I get the same message if the database is not running.

    SQL Server Express 2005 is installed in mixed mode.  

    Here is my connection string in the .Net appplication: <add key="connectString" value="Server=(local);UID=sa;PWD=myPasswd;Database=CORNERS" />.  

    These are my values in my Java app web.xml –

















    And yes, the port is 1055 – I checked to find it.

    I am using Microsoft SQL Server 2005 JDBC Driver 1.0 (sqljdbc_1.0.809.102).

    Does anyone have any idea what is wrong so that the login fails in the Java application but works in the .Net application?

  24. Il-Sung Lee says:

    Hi adisciullo ,

    I’m afraid that our team is not very familiar with the JDBC driver.  I suggest that you post your question on the SQL Server Data Access forum as members of our JDBC team normally monitor it for JDBC-related questions.


  25. Mugunthan says:

    Can you get a trace? Also, can you try our 1.1 driver? 1.1 driver has better tracing.

  26. Low says:

    Hi, I am having connection problem with SQL Server Express 2005. The problem occurs everyday after 6pm (after working hour). The error messenge is:

    Microsoft SQL Server Login


    Connection failed

    SQLState 01000

    SQL Server Error: 10060

    [microsoft][ODBC SQL Server Driver]{TCP/IP Sockets]Connection Open (connect)

    Connection failed

    SQL State: 08001

    SQL Server Error: 17

    [microsoft][ODBC SQL Server Driver]{TCP/IP Sockets]SQL Server does not exist or access denied.

    All computers which connect to the server will get this error messenge. I have been working on this for few days but without any luck. I would be grateful if someone could help. Thank you.

    Note: The computers are working fine before 6pm.

  27. Matt Neerincx says:

    The error message indicates the client cannot open a socket to the sql server due to timeout.  10060 is socket error code for timeout.  To verify this you could use telnet and attempt to open a connection to port 1433 from some client machine ->

    telnet 1433

    where is IP of SQL Server.

    I would check all network hardware between clients and server, it would be a firewall or router or application level firewall blocking traffic most likely.

  28. Junifer says:

    Hello there,

    I have a connection problem with sql server express but i believe you can help me with this.

    First, I tried your Remote connection string above:

    "Provider=SQLNCLI;Server=<MachineName>SQLEXPRESS;Initial Catalog=master;Integrated Security=SSPI ";

    and it works but somehow when i use my own database since your using the master, it ask for Login. Heres the error:

    Microsoft SQL Native Client error ‘80004005’

    Cannot open database <mydatabase> requested by the login. The login failed.

  29. Hi, Junifer

       You need to grant dbaccess to your database for your login credential.

       1) Assume you were using NT login, windows authentication, you can use ManagementStudio, connect to sqlexpress, go to security, add login, choose the account, and choose default database = mydatabase.

       2) If you were using SQL login, you can go to security, found the account, click properties of it, then make sure it has access to your own database.

    good luck!


  30. Junifer says:

    Hey Ming,

    Thank you for the reply, but before i receive your reply, i have it working already simply by openning the Management Studio Express, right click on mydatabase then properties. I click on Permission and under users or roles i added two objects guest and public then grant them few permission under Explicit Permission.

    But i’m just wondering about security. Is my method safe/advisable?

    I will also try your suggestion and i know it will work.

  31. Tom Dorgan says:

    Hi, good thread. I’ve got SQLExpress running on a n XP server and a client. I can connect to my DB instance no problem from the server by name(not localhost)using SQL Server Authentication. I get an error 10060 on the client using the same strings in Studio Express under Connect To Server on the client. I’ve tried a multitude of recommendations. If I try to telnet to the port that the ERRLOG says the service is running on from the server, it connects. If I try it from the client, it says ‘Could not open connection to the host’. I’m not sure what to tweak to get this to go. Thanks.

  32. Tom Dorgan says:

    ahh….found it. check out the help screen under the TCP/IP properties screen under Protocols for SQLEXPRESS. short end is that if you are using a firewall you must use a static port. 1433 is recommended. This and all the rest of the above stuff. You also have to open the port in the windows firewall on both machines.

  33. amit says:

    On vista when i start application as an administrator it create/delete data but when i run app in standard user mode it does not perform any operation with sql express…

  34. Joel says:

    I’ve got a Windows 2003 Server, where we just installed SQL Server Express 2005 and IIS on the same machine.

    Our application (classic ASP) errors with "Provider cannot be found. It may not be properly installed. " when trying to connect to the database with an anonymous connection (IUSR account).

    Oddly, it connects successfully if we turn off anonymous users.

    Any ideas?

  35. Hi, Joel

       What if you turn on "anonymous" in IIS again, and try to use osql.exe to connec to your express, see whether the same error displayed. What if you turn off anoymous connection, use osql.exe, what happens? What is your connection string?

       The error you saw should not be related to anoymous users configuration but might there is exception.



  36. Joel says:

    Hi Ming,

    Here’s the connection string that I was trying to use:

    var connectionString = "Provider=SQLNCLI;Server=WEB01\SQLEXPRESS;Database=<databasename>;UID=<username>;PWD=<pwd>;";

    This one was failing for IUSR connections, though it seems to work okay on our other development machines.

    This connection string seems to work okay:

    var connectionString = "DRIVER={SQL Native Client};Server=WEB01\SQLEXPRESS;Database=<databasename>;UID=<username>;PWD=<pwd>;";

    What’s technically the difference between these connection strings?  Any idea of why one would work for IUSR and the other would not?

  37. Hi, JOel

       The first one is using OLEDB, the latter is using ODBC driver. So, from the error message, it was probably caused by your OLEDB provider was not correctly installed or you specify the wrong one.

    1) Which client provider were you using, namely, when you create your client application, did you configure any provider? what it is?

    2) what if you modify the first one by replacing "Provider =SQLOLEDB" whether it works?

    LMK if you have further question.



  38. RJ says:

    How can I access SQL Server from the internet ?

    I have a router with a public IP

    I have SQL Server 2005 Express installed on a LAN connected machine (

    I want to access this database from the internet. How can I do ?

    Firewall is already opened for the 1433 TCP Port


  39. Hi, RJ

       You can use ASP or write ASP.NET application. Following info and example are good start:

    Good Luck!


  40. Adrian says:

    Hi Ming,

    I also wish to connect to the SQLExpress through the Internet connection. However, not using ASP.Net but an .Net Windows Application.

    I have a Static IP on the server and I supposed I can write connection string as normal remote connection over the LAN?

    I attempted but failed to connect. My Server not running IIS, does it matter?

    (We disregard firewall issue)



  41. John says:

    hi there, im using vb 2005 and im tring to acess a data base on a server via pocket pc application.

    i got an error on the connection string !

    Failure to open SQL Server with given connect string. [ connect string = Provider=SQLOLEDB.1;Server=duros-mobile,1433SQLEXPRESS;Initial Catalog=praia;Integrated Security=SSPI; ]

    can  you help me?


  42. Sampath says:

    I am trying to connect to a SQL Server DB from a pocket PC. I use the following connection string on the Pocket PC.

    "Server=,1433;Initial Catalog=exilog;User ID=nybc;Password=nybc"

    I can connect to the server using the IP, port and credentials from SQL Server Management Studio Express. But when I run the application in the emulator, I get a "SQL Server does not exist or Access is Denied" SQL Exception.

    This has been killing me for the past 5 days. Can someone please help me?



  43. Hi, John

       1433 is the reserved port for sql default instance, your express was installed as a named instance, and by default it is using dynamic tcp port unless you specified.

       The solution could be

    [ connect string = Provider=SQLOLEDB.1;Server=duros-mobileSQLEXPRESS;Initial Catalog=praia;Integrated Security=SSPI; ]

    and make sure sqlbrowser service is started.

    Good Luck!


  44. Hi, Sampath

       The error looks like you were using MDAC, and the message is too general to identify your particular problem. Hence, I suggest, you modified your connection string to [Driver={SQL Native Client};Server=;Initial Catalog=exilog;User ID=nybc;Password=nybc"

    I assume you were connecting to sql express instance which is a named instance, and by default it is not using port 1433 which reserved by default instance, but a dynamic port. Or you can take a look at server errorlog to make sure your sql express was listening on tcp and find the port number, then replace 1433 in your connection string w/ the true number. Also, "Driver={SQL Native Client}" requires you must install SQL 2005 Native Client which is part of the 2K5 installation, this provider will populate more detail error info to help you figure out the root cause of connection failure.

    Good Luck!


  45. This error was most frequently hitted by our customers, and in this post, give a brief summary of troubleshooting

  46. badger says:

    I am confused. I have 2 windows 2000 sp4 machines that I want to connect to a SQL Express database. Initially I had problems with both machines then I updated MDAC on them and now one of them connects and the other gets the following error:

    Connection Failed:

    SQLState: ‘01000’

    SQL Server Error: 10061

    [Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]ConnectionOpen (Connect()).

    Connection failed:

    SQLState: ‘08001’

    SQL Server Error: 17

    [Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]SQL Server does not exist or access denied.

    I know that everything is configured ok on the SQL Express machine as one of the win2000 machines can connect.

    The only difference I can spot between the 2 machines is the version of the SQL ODBC driver. The one that works is 2000.85.1022.00 and the one that does not work is 2000.85.1064.00. I have no idea why they would have different drivers as the same version on MDAC was installed on both machines.

    Any help is much appreciated.

  47. Matt Neerincx (MSFT) says:

    ConnectionOpen (Connect()) means you cannot open a socket to the remote SQL Server.  I don’t think this is due to the MDAC driver version.  Most likely the tcp-ip port is blocked by Windows firewall and the "good" machine is actually connecting over named pipes and not sockets.  So if you go through the steps of adding the SQL Express instance to firewall exclusion list everything should work.  See this article for details ->

  48. badger says:

    both machines are using TCP/IP

  49. Matt Neerincx (MSFT) says:

    Then they should both work the same in theory.  Could be issues such as IPsec blocking sockets.  IPSec typically blocks machines that are outside of a domain from connecting to machines that are inside a domain.

    Simple way to verify is go to the SQL Express machine and find the ERRORLOG file for the SQL Express instance.  You can locate the ERRORLOG file by connecting to the SQL Express instance and running the following SQL statement:

    select serverproperty(‘ERRORLOGFILENAME’)

    This will tell you the location of the error log file for the SQL Express instance.  Open this file in notepad and search for the following line:

    2007-04-02 15:50:30.71 Server      Server is listening on [ ‘any’ <ipv4> 5555].

    Once you know the port, then go to each client and try the following from a command prompt:

      telnet myServer 5555

    If you see this go to a blank screen, then the port is open.  Press Ctrl + ] to break out of telnet.

  50. vatsy says:

    i hava .net application with database in Access

    but when i run it it asks for sql server connection why

  51. Adrian says:

    Dear Ming,

    Thanks for all the helpful comments – nevertheless I run into the following strange situation: I am writing a C# application in VS2005 which connects to a SQLEXPRESS database on a different server. I am using the following connection string: "Data Source=myServerSQLEXPRESS;Initial Catalog=myDB;Integrated Security=True". When running it from the IDE (either Debug or Release mode), the connection works perfectly – however, when starting the application directly (double-clicking myApp.exe), the connection fails with "error: 26 – Error Locating Server/Instance Specified".

    Do you have any idea?

    Best regards, Adrian

  52. 毁于随 says:


  53. Carl says:

    Hi Ming,

    I have a problem with a connection to database engine.  Evert time when I connect it, it always gives me this 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: SQL Network Interfaces, error: 26 – Error Locating Server/Instance Specified) (.Net SqlClient Data Provider)

    For the server name, I put in <my servername><my instance>. I checked sqlbrowser and it’s running. I changed the remote connection in database engine to local and remote conncection, but it still doesn’t work.  

    Please help me out.  Give me a solution to this problem. Thanks so much for your help.

  54. MING LU says:

    Hi, Carl

      1) What is the error message in server ERRORLOG? You can also see it from system application event log. If there is problem that indicate sql server terminate client connection, that means your client request has problem, and it is out of connectivity scope, you need to check your client application.

      2) Are you connecting Express? If so, please doublec check the instance name is "sqlexpress" in your connection string.If not, make sure you specifiy the correct instance name.

      3) Open SQL Server Configuration Manager, click client protocols, check whether TCP/NP protocols are allowed for remote connection?

      4) Look at your server ERRORLOG, see whether your sql instance is listening on the NP and TCP port.

      5) On your client machine,do "new view \<remoteserver>" and "telnet <remoteserver> <tcpportthatserver listing on>" See whether that works?

    Good Luck!


  55. Leslie says:

    I am a fresher of SQLServer and just started with the Personal Web Site Starter Kit. The following error was showed in the explore:


    Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.


    And here is the log of SSEUtil.exe


    C:>SSEUtil.exe -l

    Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.


    I have confirmed both of the SQL Server(SQLEXPRESS) and the SQL Server Browser running well. Also, I can even creat a new project (whether a web site or a windows app) and connect to my testDB with the SQLDataSource component by "./sqlexpress" connection string.

    What’s the different of these two type of DB?

    How can I get through the MS’s example?

  56. Neha says:

    I have visual basic .net express and sql express.  I have created my db’s so I know that I can use this instance.

    I have enabled named pipes, remote connections, tcp/ip for both client protocols & protocols for sqlserverexpress.

    I have done everything that is listed on this forum to try and resolve my connectivity issues.

    I cannot connect from my webapp locally to my instance.  I get the generic 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) "

    I see no errors in the error log.  I have made sure my connection string says computernamesqlexpress.

    i can put anything in it and I still get the same error.

    I am going out of my mind.  Please help.

  57. Meenal says:

    Hi all

    I am having two applications which are using same database.I have upgraded databse from sql server 2000 to 2005 on application is in vb6.0 which is connecting with the database but the application in asp is giving error as

    "Microsoft SQL Native Client (0x80004005)

    Cannot open database "HVSP" requested by the login. The login failed.

    /NewVspSql/logon.asp, line 41"

    My connection string for vb6.0 application is as follows

    "Provider=SQLNCLI.1;Integrated Security=SSPI;Persist Security Info=False;User ID=HVSP;Password=;Initial Catalog=HVSP;Data Source=INFO15SQLEXPRESS"

  58. Meenal

        Please refer the following blog to check out what is potential cause of the ‘Login Failed’.

    Good Luck!


  59. Meenal

        Please refer the following blog to check out what is potential cause of the ‘Login Failed’.

    Good Luck!


  60. Meenal

        Please refer the following blog to check out what is potential cause of the ‘Login Failed’.

    Good Luck!


  61. Myles says:


    I have a Vista customer with an odd problem. If his router is on he does not get a connection to the SQL database or gets one so slow that it is unusable. If he turns off the router it works right. If he turns on the router after making a sucessful connection it works right. I am presuming that this a connection timeout problem and we will try a longer setting there. My question to you is what SQL 2005 is doing that conflicts with the router? He is running the application and the SQL Express database on a single machine and it is the only machine connected to the router. In trying to fix this we have added sqlservr, sqlbrowser and port 1433 to the firewall exceptions and set scope to his subnet only. The router manufacturer say the router should not be doing anything to calls limited to the subnet. TIA for any ideas you have on this problem.

  62. Joe says:


    I have this issue with the connectivity (timeout expired) in my .asp code.

    Microsoft OLE DB Provider for SQL Server error ‘80004005’ Timeout expired

    /SQLDB/resultpage.asp, line 49

    The connection string is:

    set conn = Server.CreateObject("ADODB.Connection") "Provider=SQLOLEDB;Data Source=ServerName;Initial Catalog=DBName;UID=sa;PWD=password"


    1. MS Windows Server 2003, running SQL Server 2005 SP1, DHCP

    2. MS Windows 2000 Server SP4, hosting IIS, connection type = TCP-IP

    Tried few links, but it does not seem to work.

    Anyone can help?

  63. greg says:

    is it possible to interactively query SQLBROWSER (via command line interface) to retrieve the list of sql servers broadcasting their existence?  i am not a win32 programmer and do not have a win32 development environment.  my only programming experience is with platform neutral perl.  any help would be appreciated.  net start indicates that i have the sqlbrowser service running.  control panels – admin tools – services – also shows that it is running.  but i dont know if a command line interface is available…  or might someone have a small stand alone executable that i can use for this purpose?

  64. greg says:

    vista stand alone computer.  sqlexpress default installation (shared memory enabled).  having trouble connecting.  error is ‘[dbnetlib open] sql server does not exist or access denied’.

    this error seems to be a bit contradictory to me.  information ive read about sqlexpress states that ‘dbnetlib’ is only to be used for tcpip connectivity to sqlexpress server.  not for shared memory.

    if sqlexpress is installed locally, and client is also local, and sqlexpress is configured to use shared memory for connectivity – why would dbnetlib be utilized at all?  is my connect string not ideally configured to use shared memory?

    my connect string presently looks like;


    Integrated Security=SSPI;

    Initial Catalog=MYDB;

    Use Encryption for Data=False

    i dont know how to step by step troubleshoot a shared memory connection.

  65. BINGO-WINGS says:

    I had the following error when connecting ODBC to sqlserver on a different machine "does not exist or access is denied".

    After reading loads of posts and trying this, that and the other for weekades I came up with what worked for me (Phew!), it might work for you.

    In "Local Users and Groups" I added myself (power user) to the "SQLServer2005MSSQLServerADHelperUser$INSTANCE",

    "SQLServer2005MSSQLUser$SERVER$INSTANCE" and

    "SQLServer2005SQLBrowserUser$SERVER" groups.




    Obviously obvious from the error message isn’t it just…..


  66. Eusebiu says:

    I think I got a solution…

    the error is in the connection string and in the configuration… if you’ll use the IP instead of (loca), localhost, <machinename>SQLEXPRESS, it will work. So use… the server will love it… and one more thing… at Protocols (SQL Server Configuration) at TCP/IP, set at IPAll – TCP Dymanic ports 1433 and one more… of course… set trusted connection to true… (you should allow remote connections too)..

    So, the connection string is :


    Hope this helps someone..

    P.S. : from my point of view.. I think this solution is a stupid one as long as local = localhost =… I guess for the SQLExpress…. local = localhost !=

  67. Hax Or says:

    I do not get the error "cannot find odbc" when I run my ASP.NET website with debugging (using the service on a random port #).

    But when I try the site using http://localhost/websitename/index.aspx  it says it cannot find the ODBC connection.

    Must be something to do with my IIS config… can’t find anything that pertains to this however..

  68. svrk says:

    Hi I have problem in connecting sql express sp2 in vista.

    the error is 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 have done:enabling tcp/ip and named pipeline for sql server.

    please help me out.

  69. Sougandh says:

    Hi There,

    I have been going around in circles with this problem.  Can you please throw some light on why we keep getting this error.

    I am using the following connection string.




    And i keep getting this error almost all the time.


    Message: Cannot open user default database. Login failed.

    Login failed for user ‘PLAIN06adminuser’.


    One reason for this is that, we have two applications accessing the DB.  One is a [WEB] based application [Running on Cassini Web server].  The other one is a [WINDOWS] based application.

    I verified my code to check for any connections that might have been left open after a open connection call.  But all open connection call is properly followed by a close connection call.  I hope i am right in understand this that the connections are closed once opened using a close connection component method call.  Or does it take time for a closure of the same like in case of any connection pooling.

    Specific to my case, i have to run the [Windows] based application before running the [WEB] application.  The Windows application does a synchronization process first.

    Again for resynchronization i have to close the [WEB] application and also close the Cassini web server process physically to once again allow my [Windows] based application to connect to the db.

    I agree that considering the nature of SQL Server User Instance i will be able to have a single user connect to the database at any given point in time.  However having said this is there a way to verify if there is any open connection to this database from my .net code.

    If so please let me know of the same.

    Thanks & Regards

    Sougandh Pavithran

  70. klira says:

    <a href= >tallulah river campground</a>

  71. 99999 says:

    Stdimmen dadrin übersein, dasss untear Bersücksichtigung dser Art der SQaL Sserver-Instanaz i Usaer in daer Lasge, einsen einzigen Benutzer die Verbindsung zur Datsenbank zu einem beliebigen Punkt in der Zeit. Allerdings haben gesagt, diese gibt es auch einen Weg um zu prüfen, ob es eine offene Verbindung zu dieser Datenbank aus meiner. Net-Code

  72. 777554 says:

    Ddieses Versagefn verurssacht wersden köannen, durch die Tatsache, dass im Rahmen der Standard-SQL-Server-Einstellungen ist es nicht möglich, Remote-Verbindungen. (Provider: Named Pipes Provider, error: 40 – konnte nicht geöffnet werden eine Verbindung zu SQL-Server)

    Icah habde getdan: Sfo ködnnen dide TCdP / IdP und den Namend für sdie SQL Servers-Piapeline

  73. 666557 says:

    Sqdlexdpress lodkal instdalliert idst, undd der Kundde isdt audch vord Odrt, udnd sqlexpresss so konfidguriert ist, verwenden desn gemeinsamen Speicher für die Konnektivität – warum sollte dbnetlib auf allen genutzt werden? String ist meine Verbindung nicht optimal konfiguriert, um mit gemeinsam genutzten

  74. Rizwan says:

    Hi I have problem in connecting sql Server in vista.

    i was develop a desktop application on visual studio. Setup contains Sqlserver and dotnet framework . Its works fine when i was deploy on Xp. but it did not work on vista and throwing exception that is given below.

    the error is 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)

    please help me out.

  75. Uday says:


    my database name is gssportalsqlexpress

    but i’m unable to connect from my tomcat. It is giving Login failed for user .. Even i chaged my database to Mixed Mode(Windows as well as SQL Authentication)

    please help me.

  76. uday says:


    i configured my data base in tomcat in this way

    <ResourceParams name="MSSQL">































    I’m able to login from sql server management studio

    but when i try to connect form tomcat it is giving this error

    org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFact

    ory (Login failed for user ‘sa’.)

           at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou

           at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource


           at com.gssamerica.expensereporting.ui.common.SQLManager.getConnection(SQ






           at org.apache.catalina.core.StandardContext.listenerStart(StandardContex

           at org.apache.catalina.core.StandardContext.start(


           at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase


           at org.apache.catalina.core.ContainerBase.addChild(


           at org.apache.catalina.core.StandardHost.addChild(

           at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDe

           at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)

           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

           at java.lang.reflect.Method.invoke(

           at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.jav


           at org.apache.commons.digester.SetNextRule.end(

           at org.apache.commons.digester.Rule.end(

           at org.apache.commons.digester.Digester.endElement(

           at org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester


           at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source


           at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(

    Unknown Source)

           at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent

    Dispatcher.dispatch(Unknown Source)

           at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un

    known Source)

           at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

           at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

           at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

           at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

           at org.apache.commons.digester.Digester.parse(

           at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep

           at org.apache.catalina.core.StandardHost.install(

           at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j


           at org.apache.catalina.startup.HostConfig.deployApps(


           at org.apache.catalina.startup.HostConfig.checkContextLastModified(HostC

           at org.apache.catalina.startup.HostConfig.check(

           at org.apache.catalina.startup.HostConfig.lifecycleEvent(


           at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl

           at org.apache.catalina.core.StandardHost.backgroundProcess(StandardHost.


           at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.p


           at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.p


           at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.r



    Caused by: Login failed for use

    r ‘sa’.


    (Unknown Source)

           at Source)

           at Source)

           at So


           at Source


           at$000(Unknown S



    te(Unknown Source)

           at Source)


    wn Source)


    n Source)


    (Unknown Source)

           at Sour


           at Source)

           at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(Driv

           at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(Poolable

           at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(Bas

           at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou

           … 41 more

    Jun 20, 2008 12:43:10 PM org.hibernate.util.JDBCExceptionReporter logExceptions

    WARNING: SQL Error: 0, SQLState: null

    Jun 20, 2008 12:43:10 PM org.hibernate.util.JDBCExceptionReporter logExceptions

    SEVERE: Cannot create PoolableConnectionFactory (Login failed for user ‘sa’.)

    Jun 20, 2008 12:43:10 PM


    SEVERE: find by example failed

    org.hibernate.exception.GenericJDBCException: Cannot open connection

           at org.hibernate.exception.SQLStateConverter.handledNonSpecificException


           at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.j


           at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelp

           at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelp

           at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager


  77. binyam says:

    Installed SQL express 2005 [ SQLEXPR_ADV ].

    Operating system vista.

    I couldn’t create locally a connection under object explorer.

    The following error pops up :

    TITLE: Connect to Server


    Cannot connect to BINYAM-PCSQLEXPRESS.



    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) (Microsoft SQL Server, Error: -1)

    For help, click:





  78. binyam says:

    Installed SQL express 2005 [ SQLEXPR_ADV ].

    Operating system vista.

    I couldn’t create locally a connection under object explorer.

    The following error pops up :

    TITLE: Connect to Server


    Cannot connect to BINYAM-PCSQLEXPRESS.



    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) (Microsoft SQL Server, Error: -1)

    For help, click:





  79. Terry Friesen says:

    Help Help

    I have been successfully running a connnection to my sql server express 2005 from several computers on our local network. However I am having problems now with two pc’s after I changed the windows user account name and password. This is probably a simple fix, but where can I fix this. Do I need to accordingly setup/change a windows user account on the server? Any advice is much appreciated!

  80. Terry Friesen says:

    I should clarify that it is the username on the 2 client pc’s that have been changed, which seemed to cause a problem logging on to SQL on the server.

  81. matar_mr says:

    <a href= >movie ticket graphic</a> <a href= >girls caught on camera</a> <a href= >massey ferguson 8150</a> <a href= >french country bedroom picture design in massachusetts</a> <a href= >columbine- cassie</a>

  82. Pollus says:

    This is for your information. If you want to understand the dynamic allocated port on SQL Server. This KB article is pretty good. So when SQL Server allocate a port you can almost be sure it stay that port until you change it manually.

  83. Saurav says:


    gives Unrecognized Escape Sequence

  84. Matt Neerincx (MSFT) says:

    Perhaps you are using C# and not using @ string prefix, then try:


    Or you can use @ prefix on connection string, then you do not need to escape backslash:


  85. j2yemi says:

    I am almost getting frustrated please help me.

    I need to establish a connection to the sqlexpress on my system from my visual c#. I am programming a smart device using visual studio 2005.

    I did the following

    I enabled remote connections from the surface area config for tcp and named pipes

    I started the browser

    I could connect from MS visual studio

    The server is up and running

    but when i tried to connect from visual studio using the code

    using System;

    using System.Collections.Generic;

    using System.Text;

    using System.Data.SqlClient;

    using System.Windows.Forms;

    using System.IO;

    using System.Reflection;

    using System.Data;

    namespace mQAQI


       class sqlDatabaseUtil


           SqlConnection dataConnection = new SqlConnection();

           public void getConnection()




                   String connString = "Data Source=abudawe\sqlexpress;Initial Catalog=mQAQI;Integrated Security=True";

                   //String connString = "Data Source=xx.sdf";

                   dataConnection.ConnectionString = connString;


                   MessageBox.Show("Connected to database successfully.");


                catch (FileNotFoundException fe)


                    MessageBox.Show(fe.StackTrace + "Error Accessing the database.");



                catch (SqlException sqle)


                    MessageBox.Show(sqle.StackTrace + "Error Accessing the database.");



                catch (IOException io)


                    MessageBox.Show(io.StackTrace + "Error Accessing the database.");



              /* catch (Exception e)


                   MessageBox.Show(e.StackTrace + "Error Accessing the database.");










    I get the following message

    "specified server not found: abudawesqlexpress"

    Please what am i doing wrong. I have battled with this issue for the past 4 days


  86. the error is 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)

  87. Kelly says:

    I repeatedly get the message "Microsoft SQL Server 2005 was unable to install on your computer." I uninstall the and reinstall SQL and FFI software and same message.

    Error signature

    EventType: sql90setup P1: unknown P2: 0x643 P3: unknown P4: 0x643 P5: unknown P6: unknown P7: msxm16.msi@6.20.1099.0

    Error Report Contents

    c:Program FilesMicrosoft SQL Server90Setup

    What do I do?

  88. Hi says:

    I am using Sql server 2005 express with my app writen in vb6.

    I have a problem that after a day of work

    (when I come in the morning ) the app is working very slow.

    So when I am opening the sql managment tool or restarting the sql service

    everything is back to noraml.

    i was to trying to configure the database to auto close = false

    and also auto shrink is off.

    Please see i you can help…

    Thanks in advance


  89. John Terry says:

    I am having issues with the Windows XP firewall.  I have made the exceptions for sqlsrver.exe and sqlbrowser.exe as well as udp ports 1433 and 1434.  The connection works fine as long as the fire wall is turned off.

    Any ideas?

  90. Mithalesh says:


    I created a linked server on sql server 2005 express edition and tried to access linked server which is sql server 2000 enterprise in my case. But, Infortunately I am not able to connect..I am getting following error…

    Server: Msg 65535, Level 16, State 1, Line 0

    SQL Network Interfaces: Server doesn’t support requested protocol [xFFFFFFFF].

    OLE DB provider "SQLNCLI" for linked server "CentralDB" returned message "Login timeout expired".

    OLE DB provider "SQLNCLI" for linked server "CentralDB" returned 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.".

    I have checked…Browser is working…remote connection is enabled and their is not problem from firewall. Still I am getting this error. Though If I create a link server vice versa I am able to do so. I mean from sql server2000 to sql server 2005 express edition.

    Let me know if you need any additional information.

    Please help.

    Thank you,

    Mithalesh Gupta

  91. Mithalesh says:

    Hi to All,

    Its a very generous problem, which may have many solutions. But as we have witnessed so many user saying that they have tried everything.

    What solved my problem is..

    I upgraded sql server 2000 from sp2 to SP4 and if you already have sp4 on sql server 2000 then run Instcat.sql. As per my experience I can assure you this will work for sure, if you are exhausted with all the other workarounds.



  92. TheMan says:


    Our company just deployed Active Directory Services in an effort to improve security.  

    Before, I had no problems connecting to SQL Express.  Now, I’ve uninstalled SQL Express, reinstalled, etc.  Tried different things, but can’t seem to establish a connection.

    Thanks for any insight.

  93. Andre Gous says:

    Kudos on a great blog — most helpful.  

    One issue I ran into, that I’m mentioning in case it helps others, is that when you’re struggling with ODBC issues specific to MS SQL Server 2005, especially on MS Windows 2000 (yeah, it’s old, I know) then make sure you have the latest MDAC components installed.  That got me beyond a hurdle that (I believe) involved the dynamic vs. static TCP port.  

    I hope this helps.


    Andre Gous

  94. can not connect to sql2008 with odbc says:


    I am trying to make an odbc connection from a Windows XP pro Station to a Windows 2008 R2 Server with SQL 2008. When i do a command on the server "SQLCMD -L" i can see the server and the server instance of the SQL server so like:



    Within the Server i can also make perfectly all odbc connections i want.

    Coming to the client, when i do there a command "SQLCMD -L"i only get to see the servername


    But bot the instance. When i still try to make a connection to thsi server with an odbc connection i get a message like "Sql server does not exist or acces is denied" SQl server error 10060

    How can i make the instance available to the client?


    Hi, I'm not able to Insert,Select,Delete data on my sqlexpress using webservice (ASP.NET) which is hosted on IIS 6.0 windows 7 ultimate. Whenever i tried to connect it gives me error saying Login Failed: Database is read-only..

    Please help me with this…

    with regards,

    Padam Sonar

Skip to main content