منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب
[سؤال] the connectionstring has not been intitialized - نسخة قابلة للطباعة

+- منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب (http://vb4arb.com/vb)
+-- قسم : قسم قواعد البيانات (http://vb4arb.com/vb/forumdisplay.php?fid=40)
+--- قسم : قسم أسئلة قواعد البيانات تحت بيئة الـ.NET (http://vb4arb.com/vb/forumdisplay.php?fid=41)
+--- الموضوع : [سؤال] the connectionstring has not been intitialized (/showthread.php?tid=580)



the connectionstring has not been intitialized - ahmed mohamed soliman - 18-10-13

خواني الاعزاء
اقوم حاليا بتصميم نظام لشئون العاملين
باستخدام vb.net 2010 مع sql server
وعند فتح النموذج الخاص بالجنسيات تظهر رسالة الخطا
صورة 1
the connictionstring has not been intitialized
واذا ضغط ok
يظهر الخطا كما بالصورة 2
مرفق لحضراتكم ملف بة صور الاكواد داخل ال vb.net

جزاكم الله خيرا


RE: the connectionstring has not been intitialized - سعود - 18-10-13

إقتباس :the connictionstring has not been intitialized
هذه الرسالة تعني انك لم تعين جملة الاتصال للقاعدة.


RE: the connectionstring has not been intitialized - ahmed mohamed soliman - 18-10-13

شكرا اخي الكريم على مرورك
ارجوا توضيح اكثر

هذا كود الاتصال بقاعدة البيانات ارجوا توضيح الخطا
[code]Imports System.Data.SqlClient
Public Class FrmLogIn

Private Sub FrmLogIn_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Try
Import.sqlcon.ConnectionString = "Data Source =AHMED;Initial Catalog=Test;Integrated Security=true"
'MsgBox("تم الاتصال بنجاح", MsgBoxStyle.Exclamation)

Catch ex As Exception
MsgBox(ex.Message)

End Try
End Sub


RE: the connectionstring has not been intitialized - Sajad - 18-10-13

اخي العزيز

الاخ سعود يقصد انك تنفذ أمر بدون ان تفتح الاتصال مع قاعدة البيانات

لذا يجب فتح الاتصال قبل تنفيذ عملية معينة متعلة بقاعدة البيانات

تحياتي