PDA

View Full Version : سوال: ارور در اتصال به سرور - خطای A network-related or instance-specific error occurred



ho2o2oo
پنج شنبه 16 شهریور 1391, 19:54 عصر
سلام به تمامی اساتید و دوستان من یه برنامه نوشتم که تو فولدرش دیتا بیس رو گذاشتم . و از کانکشن استرینگ زیر استفاده کردم .

public static System.Data.SqlClient.SqlConnection cnn = new System.Data.SqlClient.SqlConnection(@"Server=(local)\SqlExpress;Database=PhoneBDb;Integr ated Security=True;");

و ارور زیر برای من میاد . و تو فولدر نصب دیتابیس هستش .

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

مشکل از کجاست ممنون می شم کمکم کنید . مرسی

NasrEsk
پنج شنبه 16 شهریور 1391, 20:49 عصر
SqlExpress رو حذف کن