|
-
Aug 5th, 2004, 10:43 AM
#1
Thread Starter
PowerPoster
What's the fastest way to
dump the entire contents of a SQL server DB into a .mdb?
-
Aug 5th, 2004, 10:46 AM
#2
In majority cases this won't be possible due to MS Access limitations: max size, types conversion, stored procs, etc, etc, etc ...
-
Aug 5th, 2004, 11:50 AM
#3
It seems to me that the fastest way would be to open the db in Access, and save as an .mdb. I'm not sure that there is a significant problem with this. You can certainly open SQL Server DBs in Access, assuming you have proper permission. There may be some goofy conversion of data, but that's life.
-
Aug 5th, 2004, 12:02 PM
#4
Originally posted by Shaggy Hiker
It seems to me that the fastest way would be to open the db in Access, and save as an .mdb...
Just out of curiousity: how would you do that?
How can you import all stored procs, triggers, sequences, etc in Access? In other words how can you import objects that have no identical (or similar) representation in Access environment?
-
Aug 5th, 2004, 12:09 PM
#5
Originally posted by RhinoBull
How can you import all stored procs, triggers, sequences, etc in Access? In other words how can you import objects that have no identical (or similar) representation in Access environment?
That depends on how they will be used again in the future. Are you looking to backup a SQL db to an Access db to convert back to a SQL db later? Or are you looking for Access equivalents to the SQL objects that have no native representatino in Access?
-
Aug 5th, 2004, 12:20 PM
#6
I wasn't really asking those questions - I personally know the answers. I was hopping that Hiker would somehow explain what he had in mind ...
-
Aug 5th, 2004, 12:26 PM
#7
Perhaps he was just thinking of importing tables into Access and
then saving the Access db?
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 
-
Aug 5th, 2004, 02:36 PM
#8
Thread Starter
PowerPoster
Well I know there are some datatypes access has the SQL doesn't and vice versa, but I think most of what we need are chars, or nChars as they're called.
-
Aug 5th, 2004, 03:32 PM
#9
I was just thinking of moving tables and some relationships. Basically, you are going from a large set to a small set. If you can't accept the loss of many features, you are bound for disappointment.
Since he was going from larger to smaller, I assumed that the loss of those things that wouldn't migrate was already acceptable to him.
-
Aug 5th, 2004, 03:47 PM
#10
Originally posted by Shaggy Hiker
I was just thinking of moving tables and some relationships. Basically, you are going from a large set to a small set. If you can't accept the loss of many features, you are bound for disappointment.
Since he was going from larger to smaller, I assumed that the loss of those things that wouldn't migrate was already acceptable to him.
... HOPEFULLY ...
-
Aug 6th, 2004, 08:04 AM
#11
Thread Starter
PowerPoster
Thanks all. The contents of the SQL db were migrated from access, so the size shouldn't be a problem YET. The differing data types could be, but as I said I think most are nChars. I was thinking of a quick VB app that would run in windows scheduler and dump the entire SQL db into the mdb weekly. We already have backup, but this would allow the site to be back online in about 10 minutes.
-
Aug 6th, 2004, 12:06 PM
#12
I'd just go with ADO, and not worry quite as much about speed. Were I to be writing that, my biggest worry would be data compatibility. The advantage of using a program to handle this is that you could do some conversion as an intermediate step for those fields where that would be important.
Simple in code, may not be either particularly fast, or particularly robust.
-
Aug 6th, 2004, 01:23 PM
#13
Thread Starter
PowerPoster
Well I know basically how to write the function, just wondered if there was a batch command that I didn't know about, and one that would overwrite existing records in the mdb. I really didn't relish writing a few conditions and update or insert statements depending on the condition. I just wanted one condition that overwrites the entire table of the mdb. In other words, I'm being lazy.
-
Aug 9th, 2004, 08:27 AM
#14
Thread Starter
PowerPoster
So are there any special commands for this in VB that I dunno about or do I just iterate through the records the old fashioned way and use insert/update statements?
-
Aug 10th, 2004, 08:36 AM
#15
Thread Starter
PowerPoster
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
|