473,386 Members | 1,773 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Create script in access?

RedSon
5,000 Expert 4TB
Is there a way to make Access show me the SQL statement necessary to create a table that I have already defined?
Jan 2 '08 #1
7 19150
NeoPa
32,556 Expert Mod 16PB
I don't believe Access has this feature whereby it will automatically create the SQL to reproduce an object. I know it's done in SQL Server but as far as I'm aware, it's not available in Access.
Jan 2 '08 #2
MMcCarthy
14,534 Expert Mod 8TB
Is there a way to make Access show me the SQL statement necessary to create a table that I have already defined?
You can't get the SQL from the table. However, you can use the documenter feature to analyse the table structure. You could also recreate the table using the make table query feature. However, the SQL will not be standard SQL.

One other option is to Upsize the table to MS SQL. This should reproduce most of the required SQL.
Jan 8 '08 #3
NeoPa
32,556 Expert Mod 16PB
...
One other option is to Upsize the table to MS SQL. This should reproduce most of the required SQL.
That's a neat idea Mary. I didn't think of that :)
Jan 8 '08 #4
RedSon
5,000 Expert 4TB
You can't get the SQL from the table. However, you can use the documenter feature to analyse the table structure. You could also recreate the table using the make table query feature. However, the SQL will not be standard SQL.

One other option is to Upsize the table to MS SQL. This should reproduce most of the required SQL.
Fortunately it seems the SQL Sever Mobile is based on the Access engine. The automated Access scripts work better then common SQL queries.
Jan 8 '08 #5
MMcCarthy
14,534 Expert Mod 8TB
Fortunately it seems the SQL Sever Mobile is based on the Access engine. The automated Access scripts work better then common SQL queries.
I think that's very funny :D

Might not be the same for the CREATE TABLE query though. As Access uses a completely different syntax.
Jan 8 '08 #6
RedSon
5,000 Expert 4TB
I think that's very funny :D

Might not be the same for the CREATE TABLE query though. As Access uses a completely different syntax.
Hmm, mabye its a mish-mosh of both. I know for sure that using valid SQL join syntax in SQL Server might not work in SQL Mobile. The SQL join scripts that Access produces works flawlessly every time.
Jan 8 '08 #7
jaxjagfan
254 Expert 100+
Access uses "Select Into" method for creating new tables. So as the others have stated no luck there.

You can use DTS to import from Access to SQL Server to create a table. DTS has some fairly decent GUI tools for this. There may be some posts within our SQL Server forum on the specifics.

Also try 3rd party tools like "TOAD".
Jan 8 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: desc | last post by:
I am trying to create an access db using ADOX in C# and I am finding difficulties to find documentation on this in msdn library. Does anyone have any documentation or samples of creating an access...
5
by: Andrew Poulos | last post by:
If I have an external stylesheet that is @imported into my page and it has an element that looks like this: * html td { font-style: italic; } how can I use javascript to change the font...
0
by: Ol!v!é | last post by:
Is it possible to create an Access frontend project(ADP) that is splitted up in several modules? So a user can choose the modules he needs at the installation?
3
by: The Genie | last post by:
Can anyone please tell me how I can create an Access Database in a specific directory (not memory), presumably by using oledb. Regards Ian
2
by: Wayne Wengert | last post by:
I am trying to create an Access 2000 database using VB.NET. I found the code below via a google search but when I run it I always get an error. I do have a reference to Microsoft ADO Ext. 2.7 for...
3
by: James Wong | last post by:
Dear all, I have an old VB6 application which can create and access Excel object. The basic definition statements are as follows: Dim appExcel As Object Dim wkb1 As Excel.Workbook Dim wks1...
0
by: ricoiii | last post by:
Hello, i have created a service in vb.net 2005 and want to create an access-database at runtime. The code is: Dim cat As ADOX.Catalog cat = CreateObject("ADOX.Catalog") If...
1
by: ATSPSoft | last post by:
Hi, I'm newest in c#.. i need to create an Access MDB file... Supose that my MDB file is "mymdb" and my table is "mytableA" with 2 fields like "field1" as integer and "field2" as string How...
0
by: veer | last post by:
Hi i create database of ms-access using vb.net code but it create the msaccess database of format 95 is there any way how to create ms-access database of format 2003 because my system has ms-office...
2
by: mateymoo | last post by:
I am trying to create an access database for employees. Each employee has a list of qualifications that I want to include but am not sure how to have multiple entries for each employee. The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.