Click here to Skip to main content
15,907,233 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created One Windows application it is running on the created system by giving the IP configuration to the Connection string.

Where the Connection String is

"Data Source=192.000.00.0;Database=Employee;User Id=six;Password=654321;Integrated Security=True"

It is not running on the another system the error i get is

login failed the login is from an untrusted domain and cannot be used with windows authentication

Why I am getting this error, where i want change in SQL SERVER Please give some Solution
Posted

1 solution

Remove the "Integrated Security=True" part from your connection string, or set it to "false" - true means that you should log in using Windows credentials, not via the username and password.

Try setting up a connection in VS with the Server Explorer pane:
1) Open Server Explorer.
2) Right click "Data connections" and select "Add connection"
3) In the dialog that follows, select your DataSource, and database, specify the security info, and press the "Test connection" button.
4) When the connection works, press "OK"
5) Highlight your database in the Server Explorer pane, and look at the Properties pane. A working example of the connection string will be shown, which you can copy and paste into your app or config file.
 
Share this answer
 
Comments
Gokul Athithan 20-Sep-13 7:54am    
How i can access through from other system by giving the IP
[no name] 20-Sep-13 7:57am    
give the public ip address

username
and
password

then it will connect

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