|
-
May 12th, 2006, 09:40 AM
#1
Thread Starter
Frenzied Member
Stupid Access
Running Access 2K3 and moving a database to MSDE. All I need to do is get the CREATE TABLE statement out of Access for a table. I don't want to transfer the data, just the structure.
Can someone help a gimp out?
-
May 12th, 2006, 10:03 AM
#2
Re: Stupid Access
Have you tried using the Upsizing Wizard?
Tools-->>Database Utilities-->>Upsizing Wizard
It will generate the new DB for you.
Declan
Don't forget to mark your Thread as resolved.
Take a moment to rate posts that you think are helpful 
-
May 12th, 2006, 10:26 AM
#3
Thread Starter
Frenzied Member
Re: Stupid Access
I already have the database created. But there was a table that I missed when I ran the DTS. I just want the CREATE TABLE SQL from Access for that table. And if nothing else, just for my own knowledge in the future.
I just didn't think it was going to be this hard.
-
May 12th, 2006, 10:29 AM
#4
Re: Stupid Access
As far as I'm aware ther eis no other way to generate a CREATE TABLE statement from Access, sorry. It really is a crap DB.
Declan
Don't forget to mark your Thread as resolved.
Take a moment to rate posts that you think are helpful 
-
May 12th, 2006, 10:30 AM
#5
Thread Starter
Frenzied Member
Re: Stupid Access
Speakin to the choir, friend, speakin to the choir
-
May 12th, 2006, 10:33 PM
#6
Re: Stupid Access
There is, but in VB6 (or some other language). It may be translatable to Access vba. It probably wouldn't work in vba, but that's not needed here.
Traverse the table (using ADOX or, possibly, the schema), looking for the elements, and generate the appropriate SQL statement to create each one. There's a program on PSC that reads an Access MDB and creates VB6 code, so you can ship your program without having to ship a blank .mdb file with it. (Since I'm 400 miles from home, and on my wife's laptop, I have no reference to it.)
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
-
May 13th, 2006, 08:06 AM
#7
Re: Stupid Access
Perhaps this is what Al42 is talking about?
-
May 14th, 2006, 11:35 PM
#8
Re: Stupid Access
Actually it was this one. (Since I had to look at PSCode to see if you got the one I was thinking of, I did a quick search.)
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
-
May 15th, 2006, 12:10 AM
#9
Re: Stupid Access
You can just generate a report on the schema from within Access.
Tools > Analyze > Documentor. Then you can select whatever db object(s) you want a schema report on and then output that report to Excel or Word.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|