How can I make connection for SQL data base with using udl file in c# project? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How can I make connection for SQL data base with using udl file in c# project?

for connect application with Data Base in C# coding

22nd Feb 2018, 9:11 PM
Ali Karimi Kooshki
1 Answer
+ 2
use a oledbconnection object from the system.data.oledb library OleDbConnection myConnection = new OleDbConnection("File Name = d:\\test.udl"); https://support.microsoft.com/en-us/help/308426/how-to-use-data-link-files-with-the-oledbconnection-object-in-visual-c
22nd Feb 2018, 9:21 PM
sneeze
sneeze - avatar