From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Exception occured in Microsoft SQL Server Native Client 10.0: Login failed. The login is from an untrusted domain and cannot be used with Windows authentication.

I am using UDL file to connect to SQL server. Using UDL file I am able to connect to database but when I am using same file in labview to connect, I am getting above message.

Attached UDL file for better understanding

 

Suggest how to make it work.

 

 

 

(WIN-7, SQL-2008,LV-2011)

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 1 of 3
(3,376 Views)

Your connection string is telling SQL Server Native Client to use NTLM/integrated security. You need to use SQL Server authentication (i.e. username/password.) See http://www.connectionstrings.com/sql-server/ for examples.

0 Kudos
Message 2 of 3
(3,359 Views)

I am using ID password to connect.I am not sure why it was not there in UDL.

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 3 of 3
(3,352 Views)