pedramch
جمعه 19 دی 1393, 17:03 عصر
سلام دوستان
من هی پروژه توی سی شارپ ایجاد کردم و پایگاه داده رو هم توی خود ویژوال ساختم
موقع رسیدن به خط con.open() به این مشکل برمیخورم :
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)
چیکار باید کرد؟
فردا تحویل پروژست یکم عجله دارم
مرسی
SqlConnection con = new SqlConnection(@"Data Source=C:\Users\Pedi\documents\visual studio 2010\Projects\ghaffari\ghaffari\Database1.sdf");
من هی پروژه توی سی شارپ ایجاد کردم و پایگاه داده رو هم توی خود ویژوال ساختم
موقع رسیدن به خط con.open() به این مشکل برمیخورم :
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)
چیکار باید کرد؟
فردا تحویل پروژست یکم عجله دارم
مرسی
SqlConnection con = new SqlConnection(@"Data Source=C:\Users\Pedi\documents\visual studio 2010\Projects\ghaffari\ghaffari\Database1.sdf");