Creating and Configuring Universal Data Link (.udl) Files

  • Post author:
  • Post category:
  • Post comments:0 Comments
  • Post last modified:January 27, 2005

To create a Universal Data Link (.udl) file

  1. Open Windows Explorer.

  2. Select the folder in which you want to store the .udl file.

  3. If you are running Windows 2000 or later, select New on the File menu, and choose Text Document. A new file named New Text Document.txt appears in the directory. Rename this file, removing all spaces and changing its file extension to .udl.

    Note A warning that changing file extensions can cause files to become unusable might appear. Disregard it.

    If you are running Windows 98 and Windows NT systems with Microsoft Data Access Components (MDAC) installed, right-click the right pane, or results pane, select New, and choose Microsoft Data Link. A new file named New Microsoft Data Link.udl appears in the directory. You can rename this file.

  4. Double-click the universal data link (.udl) file.


To configure Data Control to use a .udl file to connect to a DataSource

In the following example, the ConnectionString property of a control named cnPubs is set to a universal data link file named Pubs.udl, whose absolute path is given:

cnPubs.ConnectionString = "File Name=C:\Path\To\Pubs.udl;" 

You also can give a relative path:

cnPubs.ConnectionString = "File Name=Data\Pubs.udl;" 

If you give a relative path, the specified universal data link file will be located beginning from the directory where the application is installed.

Author Details
Kubernetes, DevSecOps, AWS, 클라우드 보안, 클라우드 비용관리, SaaS 의 활용과 내재화 등 소프트웨어 개발 전반에 도움이 필요하다면 도움을 요청하세요. 지인이라면 가볍게 도와드리겠습니다. 전문적인 도움이 필요하다면 저의 현업에 방해가 되지 않는 선에서 협의가능합니다.
0 0 votes
Article Rating
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments