تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
ممكن طريقة ربط قاعدة بيانات sql لتعمل على اكثر من جهاز ؟
#9
السلام عليكم

اليوم الحمد لله جربت ان اعمل شبكة داخلية والحمد لله نجحت لكن واجهت مشكلة وحليت المشكلة بهذه الطريقة:

اولا اتبع هذه الخطوات للسماح بالPort الخاص للSQL من خلال الFire Wall
هذا من microsoft

PHP كود :
To create a firewall rule

    On the computer on which SQL Server is installed
log on as an administrator..

    
Click Startclick Runtype wf.msc, and click OK.

    
In the User Account Control dialog boxclick Continue to use the Administrator credentials to open the Windows Firewall with Advanced Security snap-in.

    
On the Overview pageconfirm that the Windows Firewall is enabled.

    
In the left paneclick Inbound Rules.

    
Right-click Inbound Rules, and then click New Rule to open the New Inbound Rule Wizard.

    
You could create a rule for the SQL Server programHoweverbecause this example uses a fixed portselect Port, and then click Next.

    
On the Protocols and Ports pageselect TCP.

    
Select Specified local portsType the port numbers separated by commas, and then click NextIn this exampleyou will configure the default portthereforeenter 1433.

    On the Action page
review the optionsIn this exampleyou are not using the firewall to force secure connectionsThereforeclick Allow the connection, and then click Next

طبعا الDynamic port احيانا تكون 49422 وتستطيع تغيير الـPort

الخطوة الثانية ادخل على الsql managment كلك ايمن على الserver اختر الproperties ثم اختر security حول من windows authentication mode الى sql server and and windows authenticaition mode

ومن ثم من خيار Connections تأكد من أن خيار allow remote connectios to this server مفعلة

واجعل نص الاتصال هكذا:

PHP كود :
private string conStr = @"server=yourIP,49422;Network Library=DBMSSOCN;Initial Catalog=std; UID=yourid;PWD=yourpass;"

ومن ثم فعل الTCP/IP

موفق ان شاءالله
الرد }}}
تم الشكر بواسطة:


الردود في هذا الموضوع
ممكن طريقة ربط قاعدة بيانات sql لتعمل على اكثر من جهاز ؟ - بواسطة Sajad - 05-06-13, 08:03 PM

المواضيع المحتمل أن تكون متشابهة .
الموضوع : الكاتب الردود : المشاهدات : آخر رد
  [SQL] ممكن سيكوال سيرفر 2017 ISO smasemo_omar 0 230 21-12-24, 05:48 PM
آخر رد: smasemo_omar
  [SQL] خطاء اثناء انشاء قاعدة بيانات جديده محمد العامر 2 342 12-10-24, 06:18 PM
آخر رد: محمد العامر
  [سؤال] تغيير موقع قاعدة بيانات kamel1978 0 255 06-10-24, 11:06 AM
آخر رد: kamel1978
  محتاج طريقة او نسخة سيكوال اكسبريس 2008 تنصيب صامت new_programer 1 1,728 20-04-24, 11:09 PM
آخر رد: salam82
  إغلاق قاعدة البيانات قبل نسخها أبو خالد الشكري 21 5,358 30-01-23, 06:18 PM
آخر رد: Lesteraction
  [سؤال] كيف اقوم بتطبيع قاعدة البيانات علـّى ورق لبيانات الطالب لمنظومة الارشفة الالكترونية lole 0 1,086 08-11-22, 01:57 PM
آخر رد: lole
  [SQL] مساعد فى تحويل بعض معادلات الاكسل الى Sql وخصوصا قاعدة If moooss 0 978 23-10-22, 07:12 PM
آخر رد: moooss
Question [سؤال] كيف يمكن عمل أتاتش لقاعدة بيانات ليست على الـ C dr.programming 0 898 19-10-22, 06:35 AM
آخر رد: dr.programming
  [SQL] استعلام متعدد مع جمع اكثر من عامود aljzazy 4 3,115 30-03-22, 12:50 PM
آخر رد: رضوان الجماعي
  [SQL] تعديل صلاحيات يوزر فى قاعدة بيانات محمد موافى 0 1,175 18-01-22, 03:19 PM
آخر رد: محمد موافى

التنقل السريع :


يقوم بقرائة الموضوع: