PC Review


Reply
Thread Tools Rate Thread

DDL Query execution

 
 
Ale
Guest
Posts: n/a
 
      9th Nov 2007
Hi all,
how can I execute a large amount of DDL Queries on Access 2000?

I've a DDl/SQL Script file which defines a data structure with CREATE
TABLE, ALTER TABLE UPDATE TABLE, etc. etc.
I know how to execute this script on MySQL, MS Sql Server, but don't
know how execute it on access 2000

Thank you all.
Bye

Ale

 
Reply With Quote
 
 
 
 
MAC
Guest
Posts: n/a
 
      9th Nov 2007
On Nov 9, 7:12 am, Ale <alkon...@freemail.it> wrote:
> Hi all,
> how can I execute a large amount of DDL Queries on Access 2000?
>
> I've a DDl/SQL Script file which defines a data structure with CREATE
> TABLE, ALTER TABLE UPDATE TABLE, etc. etc.
> I know how to execute this script on MySQL, MS Sql Server, but don't
> know how execute it on access 2000
>
> Thank you all.
> Bye
>
> Ale


I am not sure, but the querys in Access allow you to change the view
of the query to straight SQL.
I know that you can open a new query (Queries|New) and off the menu
bar View|SQL view.
This would allow you to enter in your SQL. I don't know if you would
be allowed to enter a series of
SQL Statements.

Hope this helps

MAC

 
Reply With Quote
 
Michael Gramelspacher
Guest
Posts: n/a
 
      9th Nov 2007
I will venture to say that it is not hardly practical. Each statement has to
be enclosed in double quotes and executed separately. There are also differences
in functions and delimiters. Just an example:

Sub CreateProductPricesTable()
With CurrentProject.Connection

..Execute _
"CREATE TABLE ProductPrices" & _
"(sku INTEGER NOT NULL" & _
", price_date CHAR(8) NOT NULL" & _
", price DECIMAL (12,2) NOT NULL" & _
", PRIMARY KEY (sku,price_date,price));"

End With
End Sub


On Fri, 09 Nov 2007 05:12:09 -0800, Ale <(E-Mail Removed)> wrote:

>Hi all,
>how can I execute a large amount of DDL Queries on Access 2000?
>
>I've a DDl/SQL Script file which defines a data structure with CREATE
>TABLE, ALTER TABLE UPDATE TABLE, etc. etc.
>I know how to execute this script on MySQL, MS Sql Server, but don't
>know how execute it on access 2000
>
>Thank you all.
>Bye
>
>Ale

 
Reply With Quote
 
Ale
Guest
Posts: n/a
 
      10th Nov 2007
Thanks to all.
I think i'll modify my sql script file using my text editor macros
adding

..Execute _ "

and

"

before and after each statement, and so i'll copy all statements in a
Access module. It should work, right?
Good bye.

Ale

 
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
Jet query execution Jim Bunton Microsoft Access 4 17th Mar 2008 02:43 PM
Execution process of Web Query Chris Strug Microsoft Excel Programming 0 1st Jun 2005 09:52 AM
query execution =?Utf-8?B?bGVuZGFwaWxvdA==?= Microsoft Access Queries 2 15th Apr 2005 03:14 PM
ADO.NET Query Execution time is 10 times slower than via Query Analyzer Oleg Microsoft ADO .NET 11 11th Feb 2005 08:37 PM
query execution =?Utf-8?B?cm9jY28=?= Microsoft Access Queries 4 14th Nov 2003 12:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:19 AM.