الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

مشكلة في الربط مع قاعدة بيانات Sql Server على السيرفر

بدأه بهاء صلاح الدين في 23 سبتمبر 2009 · 1 رد · 714 مشاهدة · في ADO.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكــم ورحمـة الله وبركاتــه ،،

قمت بعمل برنامج بالسي شارب و ربطت البرنامج مع قاعدة sql server مرفوعة على سيرفر شركة qsh.......

و قام موقع الشركة بإنشاء connection string و ونسخت الconnection string من الموقع و وضعته في ملف app.config

و رغم ذلك فعند تجربة اليرنامج تظهر رسالة الخطأ التالية:

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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

فما السبب؟؟؟؟؟؟

#2

u can check the port that your instance is listening on by either looking at the ERRORLOG (Program files\Microsoft sql server\INSTANCEID\MSSQL\Log\ERRORLOG), or by opening the Sql Server Configuration Manager. Let us know if you have problems finding this out. Once you find it out, try specifying it in your connection string.

Check if SQL Browser is on. Open services.msc and find the SQL Server Browser service. It must be automatic and running.

روح على هاد الباث

programfiles\Microsoft sql server\INSTANCEID\MSSQL\Log\ERRORLOG)

وشوف الerror اللي فيه ، اذا كان الerror من الconnection string

Then try to connect by wizzerd

واذا الاتصال نجح عن طريق الwizzerd انسخ الconnection string وحطه محل الconnection string الاول .

بس اذا طلعلك نفس المشكلة بيكون اما في انزال الsql او في اعداداته

او الاحتمال الاكبر والاكيد بالنسبة الي انه بكون sql server مطفي او بيكون الخدمة موقفة .

والله اعلم

FineDesign For Graphic and WebDesign

ForEach(Minute in MyLife)

MyExperience ++;

مواضيع مشابهة