السلام عليكم
اولا يجب تغيير نص الاتصال الى التالي:
او
بدل remote machine اكتب اسم ال server أي اسم الحاسبة التي ستجعلها server وتحفظ فيها ملف قاعدة البيانات او الـIP للserver
ومن ثم قم بتنصيب البرنامج فقط بدون قاعدة البيانات في الاجهزة الباقية لكن يجب ان تفعل الTCP في الSQL في الServer
شوف هذا الرد:
اولا يجب تغيير نص الاتصال الى التالي:
PHP كود :
connectionString="Data Source=remote_machine;UID=your_username;PWD=your_password;Initial Catalog=your_database"
او
PHP كود :
ConnectionString = "Data Source=ComputerName\\SQLEXPRESS ;Initial Catalog=yourDatabaseName;Persist Security Info=True;User ID=yourID;Password=yourPassword;TrustServerCertificate=False;User Instance=False";
بدل remote machine اكتب اسم ال server أي اسم الحاسبة التي ستجعلها server وتحفظ فيها ملف قاعدة البيانات او الـIP للserver
ومن ثم قم بتنصيب البرنامج فقط بدون قاعدة البيانات في الاجهزة الباقية لكن يجب ان تفعل الTCP في الSQL في الServer
شوف هذا الرد:
إقتباس :First try a connection like this;
ConnectionString = "Data Source=ComputerName\\SQLEXPRESS ;Initial Catalog=yourDatabaseName;Persist Security Info=True;User ID=yourID;Password=yourPassword;TrustServerCertificate=False;User Instance=False";
-Second make sure that the server's FireWall is closed or allows sql connections.
-Third make sure that SQLEXPRESS and SQL SERVER BROWSER is in running state.
-Fourth make sure that TCP/IP option in sql sever configuraton part is ENABLED. and also
right click on this part and you will see the ip addresses part and just enable the IP1
- Lastly change the registry "HKLM\\SOFTWARE\\MICROSOFT\\Microsoft SQL Express\\
MSSQL.1\\MSSQLSEVER\\LoginMode=2" because login Mode 1 is windows authentication.
