Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 21st, 2005, 07:04 AM
Authorized User
 
Join Date: Jan 2005
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default OLE DB Driver

I am converting backend to sql server. I am using Access 2002 how to connect access and SQL Server with ODBC or with OLE DB and how?
can someone help me

 
Old April 21st, 2005, 11:33 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

If you are moving your tables to SQL, then you can use the upsizing wizard.

OR

If you want to do this manually, use the DTS in SQL to grab the tables from your Access back end. The DTS will rename them something like "dbo_tblYourOldTableName" where it had been "tblYourOldTableName". You can rename them in SQL, or rename them in Access later, back to your old table names.

Then, create an ODBC to the new SQL back end.

Then go to your existing Access front end, delete the tables that were pointing to Access tables, and go to Insert>Tables>Link Tables>ODBC Data Source to link the front end to the SQL dbms.

After you have linked the SQL tables, rename them to the old table names you were using with Access if you didn't do this in SQL. This should work.

A problem may arise in some forms where you can't update the tables properly, so you may have to re-create them.

Anyway, this is a kludge in case you can't get the wizard to work. I am sure some of the other posters can give you more elegant solutions.


mmcdonal
 
Old April 21st, 2005, 11:34 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

I forgot to mention, but just assumed, that you will back up all your Access databases and data before you start this process.

mmcdonal





Similar Threads
Thread Thread Starter Forum Replies Last Post
DTS OLE DB error frank.svs SQL Server DTS 0 July 18th, 2007 03:41 AM
OLE-DB grstad Classic ASP Basics 7 January 28th, 2007 09:25 AM
If any one knows How to develop ole db anjicafe Visual C++ 0 June 15th, 2005 09:01 PM
Err with OLE Db Connection DARSIN General .NET 2 June 9th, 2005 11:21 PM
Connecting to Access via OLE-DB mairejo Access 3 October 26th, 2004 02:28 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.