iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Database Discussion Forum This is the place to find help resolving those nagging questions you have about implementing and using all kinds of databases. Need help writing a query? Need an opinion on Oracle? Post here!

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-03-2009, 01:25 PM
WebProWorld Pro
 
Join Date: Sep 2006
Location: Hawai'i
Posts: 274
Dinghus RepRank 2
Red face Access to MSSQL 2005?

Okay, I have a customer who sends over Access db. I upload it to his site and then run ColdFusion script to extract data from it and update a MSSQL 2005 db.

What I am wondering is -- is it possible to write t-sql to connect to the mdb and pull the data? I've never tried odbc with t-sql. Is it possible?
Reply With Quote
  #2 (permalink)  
Old 11-03-2009, 07:13 PM
Terry Van Horne's Avatar
WebProWorld Veteran
 
Join Date: Apr 2008
Location: Toronto On., Ca.
Posts: 471
Terry Van Horne RepRank 4Terry Van Horne RepRank 4Terry Van Horne RepRank 4Terry Van Horne RepRank 4
Default Re: Access to MSSQL 2005?

You can setup the Replication service to do that. I have done it in the past to take data off a proprietary system and update MSSQL 2005. Could even schedule it!
__________________
Follow me on Twitter! On the Trail with SOSG How I became a Social Media Convert and Twitter and Agents of Influence and now regular poster at Cloudmixer where We're Mixing New Media Ideas.
Reply With Quote
  #3 (permalink)  
Old 11-14-2009, 02:01 PM
WebProWorld New Member
 
Join Date: Sep 2009
Posts: 13
freezea RepRank 0
Default Re: Access to MSSQL 2005?

There are two ways of tackling the upgrade. In Access using the Upsizing wizard should be the you first port of call.
Tools > Database Utilities > Upsizing wizard
Follow the prompts and all should be bright and breazy. Well maybe not quite. After the upsize has happened, Access creates a nifty report that tells you what was converted and if there were any errors. For those tables that Access couldn’t upsize, you can try re-upsizing until you are blue in the face, but it just won’t happen. For those “problem” tables you are going to have to take alternate action. Excel to the rescue!
In Access, right click on a “problem” table, and click Export…
Save the table as a Microsoft Excel file. Rinse and repeat for every “problem” table. (For those of you that might think that you will have millions of tables that might not upsize, out of our +-1000 Access tables we had less than 10 “problem” tables.)
Now that you have all the “problem” tables as Excel files, we are going to import them into [tag]MSSQL 2005[/tag] using Data Transformation Services. Right click on the Database in the object explorer of MSSQL 2005 that you are going to import the “problem” tables into and click Tasks > Import Data… and follow the prompts. That should solve any problems Access was having upsizing and exporting the different datatypes. Seems Access has problems with importing datetime fields, but going through Excel, everything seems to work just fine.
As a tip, you might want to drop the “problem” tables in MSSQL 2005 that Access created before importing from Excel as those tables would be dataless.
So there you have it. My first tutorial outside of the web. Want to check out my web tutorials? The Internet Series part1 and part2 are still there…
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Database Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual Studio .Net 2005 Launch is November 10th 2005 !! collusion IT Discussion Forum 0 10-30-2005 12:55 AM
Daily SearchCast, Sept. 20, 2005: Google's Internet Access WPW_Feedbot Search Engine Optimization Forum 0 09-20-2005 04:00 PM
help with a MSSQL correlated subquery for update query..? :/ JayDrake Database Discussion Forum 0 04-10-2005 02:07 AM
Microsoft Delays Visual Studio 2005, SQL Server 2005 Yet Ag WPW_Feedbot IT Discussion Forum 0 03-22-2005 03:30 PM
Copy MSSQL DB Between 2 servers M0rtym0use Database Discussion Forum 4 06-25-2004 06:58 PM


All times are GMT -4. The time now is 09:09 PM.



Search Engine Optimization by vBSEO 3.3.0