نقاط البيع لا تعمل ورسالة فشل الاتصال بقاعدة البيانات (TCP/IP على SQL Server)؟

Viewed 0

عند محاولة تشغيل نقاط البيع لأول مرة على جهاز جديد لا تعمل، ووجدت الرسالة التالية في ملف other.log:

com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host localhost, port 1433 has failed. Error: "Connection refused: connect. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall."

ما سبب المشكلة وكيف يمكن حلها؟


Originally posted at https://answers.namasoft.com/question/115/ on 2018-06-30.

1 Answers

سبب المشكلة هو أنه لم يتم تفعيل بروتوكول TCP/IP الخاص بـ SQL Server.

لتفعيله:

  1. شغّل برنامج SQL Server Configuration Manager.
  2. من القائمة الجانبية اختر SQL Server Network ConfigurationProtocols for MSSQLSERVER (أو اسم الـ Instance لديك).
  3. اضغط بزر الفأرة الأيمن على TCP/IP واختر Enable.
  4. أعد تشغيل خدمة SQL Server حتى يسري التغيير.

ملحوظة: إذا لم يظهر برنامج SQL Server Configuration Manager في البحث، اذهب إلى المجلد C:\Windows\SysWOW64 وابحث عن ملف باسم SQLServerManager*.msc وشغّله مباشرة.


Originally posted at https://answers.namasoft.com/question/115/ on 2018-06-30.