borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Open password proteced MS Access databse)Next Topic (import in VB some forms from Access) New Topic New Poll Post Reply
AndreaVB Forum : Database : Extract SQL for a table definition
Poster Message
Andgramar
Level: Big Cheese

Registered: 04-03-2004
Posts: 20

icon Extract SQL for a table definition

Greetings

Does anyone know if its possible to extract SQL code for table creation from a Access table or view a table definition in SQL within Access.
I want to move the Access database into Oracle.

Thanks

Andrew

19-11-2004 at 11:37 AM
View Profile Send Email to User Show All Posts | Quote Reply
steve_w
Level: Moderator


Registered: 18-04-2003
Posts: 1156
icon Re: Extract SQL for a table definition

Don't know if it will work , but  have you tried using the upsizing wizard. I know its supposed to be for converting it to an sql server db. I get so far with it on mine and it asks for a dsn maybe if you were to supply an oracle dsn instead it might work. I tried using a sql server dsn on mine but it crashes out with an overflow.

Steve

23-11-2004 at 01:20 PM
View Profile Send Email to User Show All Posts | Quote Reply
macrowriter
Level: Big Cheese

Registered: 27-10-2004
Posts: 19
icon Re: Extract SQL for a table definition

Just highlight the table and do file-saveas and pick ODBC database as type, and the DNS you have set for your oracle.

If in work enviornment, do it on a test instance, log into Toad, review your primary Keys and indexes - then describe will give your the SQL you can give to the DBA.

Easy peesy just like creating a spreadsheet from access table - Everone say "I like Microsoft"  then spend years clearing up aftwards.

24-11-2004 at 06:24 PM
View Profile Send Email to User Show All Posts | Quote Reply
macrowriter
Level: Big Cheese

Registered: 27-10-2004
Posts: 19
icon Re: Extract SQL for a table definition

Steve,

With SQL Server, you pull in a database - ie from the SQL manager do an improt from a MS database - comes over sweet as a nut....   Boolean and Memo field types need review hoever.

24-11-2004 at 06:26 PM
View Profile Send Email to User Show All Posts | Quote Reply
Andgramar
Level: Big Cheese

Registered: 04-03-2004
Posts: 20
icon Re: Extract SQL for a table definition

Thanks for that
It did the job nicely although had a slight problem with booleans so had to change them to numbers.

Thanks again

Andy

25-11-2004 at 08:50 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Database : Extract SQL for a table definition
Previous Topic (Open password proteced MS Access databse)Next Topic (import in VB some forms from Access) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder