Click here to Skip to main content
15,894,017 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi there shifu and pros,

i'm new to sql server, hope you guys can help me! my problem at below:

Problem: i'm having an error call sql server untrusted user connection.

ConnectionString:
VB
Dim connection As New SqlConnection("Data Source=192.168.1.24,1433;Network Library=DBMSSOCN;Initial Catalog=TOTO2.MDF;User ID=MSC-03-PC\MSC-03;Password=")


*i'm using window authentication user to log in so don't have password inside my declaration of connectionstring.

ServerName: MSC-03-PC\SQLEXPRESS

tested solution but still won't work:
i try to follow the instruction from here http://support.microsoft.com/kb/555332[^], but still remain the same error(untrusted user connection).
Posted

You are giving " as password to the server.
Try
http://www.connectionstrings.com/sql-server-2008[^]
to determine what the connectionString is you need to use.
 
Share this answer
 
Comments
donaldliaw87 23-Sep-13 1:18am    
sorry maybe i did not ask my question clear! as i stated i'm new to sql and i'm very sure i must use TCP method to connect to my hosted database in another computer, i'm just lack of experience on such errors so need guides from you all thx for the help 1st
Add Integrated Security=SSPI instead of the username and password.
 
Share this answer
 
Comments
donaldliaw87 23-Sep-13 1:19am    
i try your advice but still the errors come out~!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900