السلام عليكم :
أرجو منكم ان تساعدوني في حل مشكلة الاتصال مع قاعدة معطيات اسمها(database) قمت بتصميمها عن طريق sqlexpress
الخطأ لا أدري أين و لكن هذا هو الاكسبشن الذي يظهر عند myconnection.open()
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)
هذا هو كود الاتصال:
SqlConnection myConnection = new SqlConnection();
myConnection.ConnectionString = "Persist Security
Info=False;Integrated
Security=SSPI;database=database;server=localhost;Connect Timeout=30";
myConnection.Open();
هل يوجد خطأ في connection string??
أرجوكم ساعدوني في الحل و لكم كل الشكر وجزاكم الله خيرا
