VB.net Get Tables from a Select Statement or DataTable

Hi

I have an app where I need to get the SQL Table names from any SQL Select statement or Datatable. I have the connection string for the database. Is this possible?
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Éric MoreauConnect With a Mentor Senior .Net ConsultantCommented:
You mean that once you are connected to a server, you want to retrieve the name of available tables? Try

SELECT * FROM sys.tables
0
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Thanks very much
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.