There are a number of components to this application...I am adding them one at a a time to this thread and explaining each in turn....
Purpose:
The database build wizard allows you to extract objects from a database (tbales, users, views, groups etc.) and save them as seperate script files or as a .Net resources file which can be run into a traget database using an installer.
The wizard is designed to be extensible so that it can work with any database platform (once you write a data schema component for that database). I have written data schema providors for SybaseXI and SQL Server (also works with MSDE).
Part 1 : The data schema base
This describes the functionality that is required by the data schema providors. This is done as a set of MustInherit classes....
Part 2: The Sybase data schema providor
This implements the data schema base for a Sybase XI database.
Part 3: The SQL serverdata schema providor
This implements the data schema base for a SQL Server database.
These are the meat of the application, containing logic to extract the SQL for creating objects (tables, users, views, user groups etc.) for the two database platforms.
Part 4 : The database build wizard
This is the main application.
It consists of a single form using the excellent "wizard" control from www.divil.co.uk
Using this you select a data schema providor (from the drop down list) and fill in the ODBC connection string.
In step 2 you select the objects (users, tables, views etc...) that you want to extract from the checked list
In step 3 you specify the output location and whether you want the output to be scripts or a resource file.
Ok, got it to compile. It's now telling me that my ODBC connection string isn't valid. I've back track it to this point in the SQLServerDatasource.vb project:
VB Code:
Public Overrides WriteOnly Property ConnectionString() As String
Set(ByVal Value As String)
If SQLServerDatasource.TraceSettings.TraceInfo Then
Value is set correctly, but _dbconn is still nothing. Even "e" is nothing which would indicate that all was OK. Something else that stands out is that try...catch..end try isn't capitalizing nore does intellisense work any where in the vb file. I could really use this on a project that I'm working on, and would like to get it going. Uh... using SQL Server 2000 (local), Win XP, SQL Server auth. Any clues?