Issue related to server connection

  • Hello Mates

    I am newbie to .Net.I have a query please provide me your tips.

    My requirement was to retrieve the records from the database and display on a .Net window form, but when i debug the code it throws the below error.

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

    But am able to connect to the sql server with the same server name.

    Pls provide your comments.Thanks in advance

    Regards

    Nikki

  • What connection string are you using?

  • I have used Windows authentication but it is asking username for that..but in windows authentication we need not to use any username and password...n it showing error like login id is failed

  • Hm, what edition of SQL are you trying to connect to? Is it on a seperate box? Also, why are you using named pipes? TCP/IP is much more typical these days.

    CEWII

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply