07-31-2014 12:44 AM - edited 07-31-2014 01:04 AM
I am using SQL server(x86), XP SP3, LV2011 and its 32bit also using UDL file to connect to database.
when manually configuring the UDL file then I am able to access database also test connection succedded. When I use the UDL file in my application to connect to database then it generates the error
any suggestion?
Solved! Go to Solution.
07-31-2014 01:29 AM
07-31-2014 01:38 AM - edited 07-31-2014 01:40 AM
Yes I tried googling it. Its says it might possible because of architecture issue(64 or 32 bit). But my PC and all application is of 32 bit.
I have seen this error first time in which I am able to confirugre te UDL file and not able to access my database.
In same PC I am able to access database using UDL but not from my application. Method of calling is correctt
I am attaching my UDL as well as my error code
07-31-2014 02:27 AM
There are a number of errors that return that error code. The text is more revealing. Are you trying to use Windows integrated security (SSPI) in the UDL?
07-31-2014 02:38 AM
No I am using SQL mode
07-31-2014 02:39 AM - edited 07-31-2014 02:39 AM
This problem is solved.
Creating UDL file again in same PC in which application is running, solved the problem.
07-31-2014 05:59 AM
07-31-2014 06:06 AM
I'd wager it was either a hardcoded user/pass or poorly implemented SSPI, judging from the error message.
07-31-2014 08:07 AM
The thing people don't appreciate is that a UDL is just a text file and so can't get "corrupted" like a binary file can.
Because it's a text file uou can open a UDL with Notepad and see the connnection string that is was defined. This could be a case of something not being setup right in the file, or perhaps permissions on the file itself were configured incorrectly.
Mike..