PC Review


Reply
Thread Tools Rate Thread

Conversion from Jet to SQL

 
 
Bunky
Guest
Posts: n/a
 
      8th Jan 2008
I have a question on the conversion from the normal Jet engine Access to SQL.
Our DBA is defining all of our current production tables to SQL and all of
the table names are beginning with 'dbo_'. I was wondering if we can assign
an alias to the table so we do not have to change all the queries to the new
table name. Or if there is a better/different way to accomplish the
conversion, I would love to hear that as well.

Thanks for all your assistance.
 
Reply With Quote
 
 
 
 
Baz
Guest
Posts: n/a
 
      8th Jan 2008
Just rename the tables in the Access front-end. The links will still work.

"Bunky" <(E-Mail Removed)> wrote in message
news:58D80FCC-0587-41E1-AFA7-(E-Mail Removed)...
>I have a question on the conversion from the normal Jet engine Access to
>SQL.
> Our DBA is defining all of our current production tables to SQL and all of
> the table names are beginning with 'dbo_'. I was wondering if we can
> assign
> an alias to the table so we do not have to change all the queries to the
> new
> table name. Or if there is a better/different way to accomplish the
> conversion, I would love to hear that as well.
>
> Thanks for all your assistance.



 
Reply With Quote
 
Scott McDaniel
Guest
Posts: n/a
 
      8th Jan 2008
On Tue, 8 Jan 2008 08:05:01 -0800, Bunky <(E-Mail Removed)> wrote:

>I have a question on the conversion from the normal Jet engine Access to SQL.
> Our DBA is defining all of our current production tables to SQL and all of
>the table names are beginning with 'dbo_'. I was wondering if we can assign
>an alias to the table so we do not have to change all the queries to the new
>table name. Or if there is a better/different way to accomplish the
>conversion, I would love to hear that as well.


You can just rename the tables after they're linked ... just delete the "dbo_" part ...


>
>Thanks for all your assistance.


Scott McDaniel
scott@takemeout_infotrakker.com
www.infotrakker.com
 
Reply With Quote
 
John W. Vinson
Guest
Posts: n/a
 
      8th Jan 2008
On Tue, 8 Jan 2008 08:05:01 -0800, Bunky <(E-Mail Removed)>
wrote:

>I have a question on the conversion from the normal Jet engine Access to SQL.
> Our DBA is defining all of our current production tables to SQL and all of
>the table names are beginning with 'dbo_'. I was wondering if we can assign
>an alias to the table so we do not have to change all the queries to the new
>table name. Or if there is a better/different way to accomplish the
>conversion, I would love to hear that as well.
>
>Thanks for all your assistance.


I've had to do this often enough that I threw together a very simple limited
sub to do it:

Public Sub renamedbo()
Dim db As DAO.Database
Dim tdf As DAO.TableDef
Set db = CurrentDb
For Each tdf In db.TableDefs
If Left(tdf.Name, 4) = "dbo_" Then
tdf.Name = Mid(tdf.Name, 5)
End If
Next tdf
End Sub


John W. Vinson [MVP]
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conversion from Access 97 to 2003 & get a "Conversion Errors" tabl eidinger2000 Microsoft Access 0 4th Feb 2010 04:19 PM
Conversion errors where no conversion needed jbeckh2@gmail.com Microsoft Dot NET Framework 0 12th Jan 2007 07:24 PM
VB Conversion Keywords And .NET Conversion Routines rawCoder Microsoft VB .NET 43 2nd Mar 2005 02:56 PM
VB Conversion Keywords And .NET Conversion Routines rawCoder Microsoft VB .NET 2 28th Feb 2005 06:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:12 AM.