Database Tables Creation

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Database Tables Creation

    With Coldfusion 7.0 can you create a new table within a MS-SQL database, and if so where can I find some documentation on that process?
    webhead_1 Guest

  2. Similar Questions and Discussions

    1. Help with temp database creation
      Hi, I'm building an ecommerce website. When a user logs into my site, I want to create a temporary table (say called 'ShoppingCart') in my...
    2. Informix database creation
      Hi all, I'm new to Informix db (as you can probably deduct from my post). I'm trying to add multiple dbspaces on one raw partition on Solaris 8...
    3. Photo database creation Simlified????
      On Fri, 01 Aug 2003 20:28:36 GMT, "W" <w@shaw.ca> expostulated via the miricale of wet string: Are you wanting to create multipule databases or...
    4. How can I query for any of the 5 max value (specified during database creation)?
      Hi, I'm wondering if there is a way for me to query for the maxlogfiles, maxlogmembers, maxdatafiles, maxinstances & maxloghistory value? At the...
    5. Database creation fails
      Hello All, I am a newbie to the database administartion. we are using oracle 9.0.1 on solaris 2.8. I am trying to create a database and ended...
  3. #2

    Default Re: Database Tables Creation

    Books On Line. Look it up on msdn.microsoft.com. Also search these forums for the statement "CREATE TABLE".
    philh Guest

  4. #3

    Default Re: Database Tables Creation

    This creates the table:

    <cfquery datasource="foo">
    CREATE TABLE myfoo(
    foo1 (12),
    foo2 bit DEFAULT 0,
    foo3 nvarchar (500)
    )
    </cfquery>

    This will check for its existence:

    <cfquery datasource="foo" name="qchkfoo">
    SELECT *
    FROM INFORMATION_SCHEMA.COLUMNS
    WHERE TABLE_NAME = 'myfoo'
    </cfquery>

    and drop it:

    <cfif qchkfoo.recordcount GT 0>
    <cfquery datasource="foo">
    DROP TABLE myfoo
    </cfquery>
    </cfif>

    Code_Guy Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139