Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default copy table

    hi , i am using sql create table xxx like aaa including indentity

    to copy a table , but if table aaa has primary keys specified and xxx
    has the same column to specify primary key, how to copy this attribut
    together to table xxx? (right now it is not) thanks
    xixi Guest

  2. Similar Questions and Discussions

    1. Copy row from table to table
      What is the easiest way to copy a particular row from one table to another (assuming all the columns are exactly the same). I want to maintain a...
    2. How to get Table Parameters to copy table
      Hey all, I'm trying to do the following in ASP : - Determine the parameters(field names and data types) of a table . - Create a new table...
    3. Copy a record to another table?
      Hello friends!! I have two forms each with its own subform. The first form consist of a main form with a subform for PARTS COSTS,(a...
    4. Copy data into same table
      I have table Properties. I want to select data for one item and to add that data in same table but for other item (all values would be the...
    5. Copy data from one table to another
      Simon this is very nearly the exact same question you asked in "DTS task" Please do not post the same Q under different headings See my reply...
  3. #2

    Default copy table

    i need to copy a default table (surv) as a new table with a variable name...
    all works ok but primary key is not carried over as a primary key. note that
    default table (surv) has no data, just fields. <cfquery name='crtcusttbl'
    datasource='survey_table'> SELECT * INTO #tblnm# FROM surv </cfquery>
    because primary key 'tblID' was not made into a primary key, i took the field
    off of the default table and added it as below... <cfquery name='crtcusttbla'
    datasource='survey_table'> ALTER TABLE #tblnm# ADD tblID INTEGER NOT NULL
    PRIMARY KEY ; </cfquery> how come i had to do this... is there any way to make
    primary key an autonumber too? this is msAccess for now.

    ranger 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