‏إظهار الرسائل ذات التسميات mss2014. إظهار كافة الرسائل
‏إظهار الرسائل ذات التسميات mss2014. إظهار كافة الرسائل

الأحد، 4 أكتوبر 2015

حل مشاكل الاتصال بقواعد البيانات فى ال asp.net بعد تغير الويندوز

قواعد البيانات:اضافة قاعدة البيانات الى السيكوال وتصحيح نص الاتصال

عندما تقوم بانشاء موقع باستخدام asp.net  ففى الفيجوال ستوديو 2013 وبها قاعدة بيانات ولكن بعد تغير الويندوز وعندما تقوم بفتح الموقع تجد ان الموقع لايعمل على الرغم من وجود قاعدة البيانات فى ملفات المشروع . 

يظهر لك عدة رسائل مثل الاتى :
عند فتح قاعدة البيانات لمشاهدة الجداول

Server Explorer is unable to perform this operation. See below for details: The Data Source value in the connection sting specifies an instance of SQL Server that is not installed. To resolve this issue, you can either choose to install the matching instance of SQL Server or modify the Data Source value in the connection string.


The attempt to attach to the database failed with the following information: 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: SQL Network Interfaces, error: 50 - Local Database Runtime error occurred.  Cannot create an automatic instance. See the Windows Application event log for error details. )

Server Explorer is unable to perform this operation. See below for details: The Data Source value in the connection sting specifies an instance of SQL Server that is not installed. To resolve this issue, you can either choose to install the matching instance of SQL Server or modify the Data Source value in the connection string.


الحل:

- اضافة قاعدة البيانات  على السيرفر "لابد من تشغيل السيكوال كمسؤل " .





- حذف ملف ال log  من قاعدة البيانات الموجود فى  ملفات الموقع .

- اضافة نص اتصال جديد  باستخددام الاداة SqlDataSource واختيار مصدر قاعدة البيانات من الاتصال بالسيرفرعن طريق ال dot .

-حذف نص الاتصال القديم .


الشرح فى الفديو :

حل مشكلة الاتصال بقاعدة البيانات فى ال asp.net .




فى حالة ظهور عدم توافق الاصدار الموجود مع  الاصدار الذى تم انشاء قاعدة البيانات عليه . 


عليك تنزيل

SQL Server Data Tools

من هذا الرابط  ssdt
an incompatible sql server version was detected





وبذلك تم حل مشكلة  اضافة قاعدة البيانات الى السيرفر والاتصال بها .

اذا ظلت مشكله الاتصال بقاعده البيانات موجوده
لك هذا الفديو .