I am new learner of ASP.NET and SQL server.So there might be any mistake in writing code.
When I tried to run my project I got following error.I am uisng SQL 2005 server.
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)
connection string used is
<addname ="ConnectionString"connectionString="Data Source=BLUESTAR\\SQLEXPRESS;Initial Catalog=KnowledgeAssetManagement;Integrated Security=True"/>
I have also tried by setting local & remote connection options from the SQL server surface Area Configuration and connections option from server properties of sql server management studio.
Please help me ,my work get stucked due this problem.
Hi Bluestar123
In your connection string you do not need to have to forward slashes after bluestar see connection string below
<add name ="ConnectionString" connectionString="Data Source=BLUESTAR\SQLEXPRESS;Initial Catalog=KnowledgeAssetManagement;Integrated Security=True"/>
Hope this helps
Regards
ScottyB
|||Hi ScottyB,
Actually I have given only one slash after bluestar in connection string but it gives me error 'Unrecognized Escape Sequence' so after searching on google I have given that double slashes which removes that error.
Thanks for your reply ,
can you suggest any other solution?
No comments:
Post a Comment