Two timestamp datatypes in single table of SQL server2005

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mndprasad
    New Member
    • Jan 2008
    • 20

    Two timestamp datatypes in single table of SQL server2005

    Hi

    i need to give two timestamp datatype in a single table of sql server 2005 DB..but it is showing error that it is not possible..pls anyone help me...

    my table::

    create table
    {
    intime timestamp null,
    outtime timestamp null
    }
  • deepuv04
    Recognized Expert New Member
    • Nov 2007
    • 227

    #2
    Originally posted by mndprasad
    Hi

    i need to give two timestamp datatype in a single table of sql server 2005 DB..but it is showing error that it is not possible..pls anyone help me...

    my table::

    create table
    {
    intime timestamp null,
    outtime timestamp null
    }
    [code =text]
    I think you are missing the table name ,
    use ( instead of { and
    you can use datetime datatype instead of timestamp



    [/code]

    Comment

    • ck9663
      Recognized Expert Specialist
      • Jun 2007
      • 2878

      #3
      Here's the complete CREATE TABLE syntax.

      -- CK

      Comment

      Working...