#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2012
    Posts
    1
    Rep Power
    0

    database connectivity problem.


    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

    i am trying to connect to the sql server 2005 using odbc driver.... i ve given the data source , user id , pwd. and i am getting this error at con.open() line.....i ve been trying all these using visual studio 2008 .

    and there is nothing wrong with my code cos i tried the same code in my friends computer and got the connectivty.... but not in mine ... help me out to recover from this error..... i need some suggestion on the mssql database side ,
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Location
    Central New Jersey
    Posts
    207
    Rep Power
    22
    Try connecting through Sql Server Management Studio?

IMN logo majestic logo threadwatch logo seochat tools logo