please help me !!!

samaneh

New Member
Please Help me!!!!!!!!!!!!!!!!!!!!!!!
من با دستورات زیر می خواهم به یک دیتابیسSQl وصل شوم اما از username & password اشکال می گیرید در حالی که من در نصب SQl ،nt را انتخاب کردم و حتی در برنامه ام هم دستور integrated security=true را گذاشتم .لطفا من را راهنمائی کنید در ضمن من با C# هم نتوانستم وصل شوم ؟؟؟؟؟؟؟؟؟؟؟؟؟
Dim MyConnection As SQLConnection
Dim MyCommand As SQLCommand
Dim MySQL As String

MyConnection = New SQLConnection("server=sz;database=Northwind"&"integrated security=true;")
MySQL = "SELECT * FROM Customers "
MyCommand = New SQLCommand(MySQL, MyConnection)
myconnection.open()
پیغام خطا
Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.
 

amir_m

Member
با سلام.

کد:
ConnectionString = "Data Source=ServerName;Initial Catalog=DatabaseName;Persist Security Info=True;User ID=sa;password="

اگر User ديگری روی SQLتون داريد اونو با Password مربوطه در QueryString قرار بديد.
 

جدیدترین ارسال ها

بالا