tayhk Posted November 18, 2002 Posted November 18, 2002 (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 November 19, 2002 by tayhk Quote
tayhk Posted November 20, 2002 Author Posted November 20, 2002 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. Quote
*Gurus* divil Posted November 20, 2002 *Gurus* Posted November 20, 2002 Try select * from sysobjects where xtype = 'U' Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Administrators PlausiblyDamp Posted November 20, 2002 Administrators Posted November 20, 2002 or better still if using SQL 7 or SQL 2000 the following should work select * from information_schema.Tables where table_type = 'BASE TABLE' Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
*Gurus* Derek Stone Posted November 20, 2002 *Gurus* Posted November 20, 2002 I believe you can also use the ALL keyword if you're looking to select data from every table. Of course this doesn't return table names, and may not be what you're looking for. Quote Posting Guidelines
tayhk Posted November 21, 2002 Author Posted November 21, 2002 Thank you very much to you all ! I will try first. : ) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.