jayakrishnan Morayur

jayakrishnan Morayur

  • NA
  • 193
  • 258.2k

A network-related or instance-specific error

Mar 11 2011 12:35 AM

private void button1_Click(object sender, EventArgs e)

{

 Process p = new Process();

 p.StartInfo.FileName = @"C:\Program Files\Microsoft SQL Server\90\Tools\Publishing\sqlpubwiz";

 p.StartInfo.Arguments= @"script -d AdventureWorks "C:\AdventureWorks.sql";

 p.Start();


}



the following error occude in above command

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)

Answers (2)