Results 1 to 4 of 4

Thread: Access question

  1. #1
    Join Date
    May 2002
    Posts
    47

    Unanswered: Access question

    Sorry for posting an ACCESS question but....

    Does anyone know how to generate a CREATE Table statement from the object like you do in SQL Server.

    Right click object> Generate SQL ????

  2. #2
    Join Date
    Jun 2003
    Location
    Ohio
    Posts
    12,592
    Provided Answers: 1
    Access doesn't support a DDL. You need to issue Access Basic commands in a module to create database objects.

    Post your question on the Access forum.
    If it's not practically useful, then it's practically useless.

    blindman
    www.chess.com: "sqlblindman"
    www.LobsterShot.blogspot.com

  3. #3
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    yes, access supports DDL

    HOWTO: Common DDL SQL for the Microsoft Access Database Engine

    i will often take a CREATE TABLE statement that i have developed for sql server or mysql or whatever, and do some text editing on it to change the datatypes, etc., and then just run it in a new query in SQL View, rather than using the New Table Design View wizard

    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

  4. #4
    Join Date
    Jun 2003
    Location
    Ohio
    Posts
    12,592
    Provided Answers: 1
    I did not know that!
    If it's not practically useful, then it's practically useless.

    blindman
    www.chess.com: "sqlblindman"
    www.LobsterShot.blogspot.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •