Hello everybody!
Can anyone please help me with the connection to an SQL Server? I use the
following code:
.. and i get a "Login failed for user ''. The user is not associated with a trusted SQL Server connection.".
Is there a major mistake in the code , or i have to configure again the SQL Server?
Thank you in advance!
Elias
Can anyone please help me with the connection to an SQL Server? I use the
following code:
Code:
Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim LibraryDB As New SqlClient.SqlConnection( _ "Data Source=ELIAS-NEWPC\SQLEXPRESS;" & _ "Initial Catalog=Library;User ID='Elias-NewPc\Elias';Integrated Security=true") LibraryDB.Open() MessageBox.Show("Connection Established!") End Sub End Class
Is there a major mistake in the code , or i have to configure again the SQL Server?
Thank you in advance!
Elias
Comment