Wrox Programmer Forums
|
BOOK: Beginning VB.NET Databases
This is the forum to discuss the Wrox book Beginning VB.NET Databases by Thearon Willis; ISBN: 9780764568008
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning VB.NET Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 12th, 2005, 10:02 AM
Registered User
 
Join Date: Dec 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Auto generate?

I am working on a project that I first must check what provider and auto generate a connection string for that provider and then get the tables in the database, mutch like Server explorer do. I have search internet, bought this book but i haven't found any solution yet.

*By using MSDASC.DataLinks I can get the connection string but can not see Database name or if it's ODBC, Oledb, sql.... I have tried to use the connection string i get this way but it have never worked.
* Most of the time it will use DSN to connect but not always.
* I have to se what type of server it is (ACUODBC,Microcraft Data,MSSql,...)
* I can get the tables in a database if it is oledb by using schema Guide, but this do not work with Odbc(not for me anyway).

I need someone to point me in the right direction, witch book to buy, site to visit or show me some god examples.

If server explorer can do it why can't I

Niklas

 
Old December 13th, 2005, 08:04 AM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

Niklas,

OleDb should be the provider that you use if you are not sure what type of database that you will be connecting to. What you want to do is not for the novice programmer and requires an understanding of how the different databases work as well as network programming.

VB 2005 has some excellent examples on automatically discovering what type of database the user is trying to connect to and will allow you to choose and use the appropriate drivers.

Go to http://msdn.microsoft.com/vstudio/ and read some of the articles there. There's also a menu option for sample code that might provide the information that you are looking for.

Thearon
 
Old December 19th, 2005, 12:43 PM
Registered User
 
Join Date: Dec 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Thearon!

The link helped me!







Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto generate get and set methods jdang67 .NET Framework 2.0 10 January 16th, 2008 08:20 AM
C# Auto Generate Codes lasith C# 0 February 23rd, 2007 02:25 AM
how to auto generate date? okboy SQL Server 2000 3 December 12th, 2006 08:17 PM
Auto generate no mateenmohd Classic ASP Basics 3 June 11th, 2006 07:06 AM
auto generate an number utarian Access 2 March 28th, 2005 02:24 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.