22-08-15, 01:16 PM
السلام عليكم
اخواني استخدم الكود التالي للاتصال بقاعدة بيانات sql على استضافة على الانترنت مع مراعاة تغير اسم القاعدة واليوزر والباسورد والخ...
كود :
Dim oSQLConn As SqlConnection = New SqlConnection()
oSQLConn.ConnectionString = "Network Library=DBMSSOCN;" & "Data Source=sql208.eb2a.com,1433;" & "Initial Catalog=eb2a_15160925_****;" & "User ID=*********;" & "Password=********"
oSQLConn.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: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)
مع العلم ان قاعدة البيانات و اليوزر والباسورد و host صحيحة 100%
ما الحل ؟؟