Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

I am using VB.NET now, and facing some problems on coding, please help, thanks a lot !

 

1. How to fetch ALL the tables name in a database.

(Not specify the tables name by SQL command.)

 

2. In ADO.NET, how to make the Oledb connection string get the info from UDL (Micosoft Data Link) file ?

What I am doing is like this:

  Dim oledbconn as oledbconnection
  oledbconn.connectionstring = "File Name=c:\xxx\db.udl" 

(But the syntax is wrong. How should I code ?)

 

3. How to use DLL files ? I want to use oledb32.dll to execute UDL files in my program.

What I am doing is like this :

   Call shell("rundll32.exe oledb32.dll c:\xxx\db.udl")

(Can I make it other way ?)

 

Any help with these questions is greatly appreciated.

Edited by tayhk
Posted

I have solved 2 and 3 :

 

But this is still troubling me :

1. How to fetch ALL the tables name in a database.

(Not specify the tables name by SQL command.)

 

Any help with these questions is greatly appreciated.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...