SQL Server does not allow remote connections

Last post 07-17-2008 5:22 PM by intechspecial. 5 replies.

Sort Posts:

  • SQL Server does not allow remote connections

    10-17-2007, 7:47 AM
    • Loading...
    • Renato Dias
    • Joined on 10-03-2007, 7:18 PM
    • Posts 7

    Hi!!

    When I publish my site by FTP, it shows this error.

    In localhost, it's ok, what could be???

    Obs: I created the Database using Visual Studio 2005 (folder /app_data) and publish all with FTP, I didn't use DTS to export the datas, because i´ve seen it´s not necessary, the Visual Studio knows that database is there (I created all the connections using Typed Dataset)

    Regards!

  • Re: SQL Server does not allow remote connections

    10-17-2007, 8:09 AM
    • Loading...
    • Curt_C
    • Joined on 07-23-2003, 8:27 PM
    • Stevens Point, WI - USA
    • Posts 4,285
    • Moderator

    does your server have SQLExpress installed? (I'm assuming you are using SQLExpress from your post)

    Curt Christianson
  • Re: SQL Server does not allow remote connections

    10-17-2007, 1:01 PM
    • Loading...
    • Renato Dias
    • Joined on 10-03-2007, 7:18 PM
    • Posts 7

    Yes I'm using Sql Express 2005, but the server doesn´t use...

    How I change the connection?

    <add name="LocalSqlServer" connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|aspnetdb.mdf"/>

  • Re: SQL Server does not allow remote connections

    10-17-2007, 1:51 PM
    Answer
    • Loading...
    • Curt_C
    • Joined on 07-23-2003, 8:27 PM
    • Stevens Point, WI - USA
    • Posts 4,285
    • Moderator

    you don't....

    If you want your site on the server, and the site uses SQLExpress, you need SQLExpress installed on the server....Otherwise, where were you planning on getting your Data from?

    Curt Christianson
  • Re: SQL Server does not allow remote connections

    10-18-2007, 1:40 PM
    • Loading...
    • KBTibbs
    • Joined on 05-16-2007, 8:22 PM
    • Boise, ID
    • Posts 118

    If you want to use a remote connection to the database, this might be helpful.

  • Re: SQL Server does not allow remote connections

    07-17-2008, 5:22 PM
    • Loading...
    • intechspecial
    • Joined on 06-24-2008, 1:45 AM
    • Cleveland, Ohio
    • Posts 14

    Here is the full error I received:

    Here is the 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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified).

     

    If this was your exact error while debugging application there is a resolution!



     After days and days, hours and hours I have this problem resolved.

     

    I contacted someone with a little more resources(Microsoft Directly) then myself, and here is what they found:

     

    This error is caused by a bug when you uninstall and reinstall SQL server. To fix this error is relatively simple:

     

    Locate the following folder(This is the location in vista):

    C:\Users\*YourUserName\AppData\Local\Microsoft\Microsoft SQL Server Data\SQLEXPRESS

     

    Delete the SQLEXPRESS Folder.

     

    Start the SQL Server Configuration Manager

     

    SQL Server will repopulate that folder.

      

     

     

    http://www.freeits.net
Page 1 of 1 (6 items)
Microsoft Communities
Page view counter