Get Database Type

S

shapper

Hello,

I have a connection string in my Web.config file:
connectionString = "Provider = Microsoft.Jet.OLEDB.4.0; Data Source =
C:\MyDatabase.mdb; User Id=; Password=;"

Is it possible in my VB.Net / C# code to get the the database type
which is defined in my connectionString? I want to determine if it is
an SQL / Access database or even a XML file.

Thanks,
Miguel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,782
Latest member
ThomasGex

Latest Threads

Top