المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : error 26: SQL server locating error



C# Programming
10-28-2009, 10:52 AM
Hi,

In the runtime, when I need to make an SQL connection to my local DB, it gives an error like below:

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 connection. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)


It is weird because I'm not using a remote database. My DB file is under the root directory of the program.

Can anybody help?

note: I'm pretty sure that my connection string is correct