Set a datetime field to Null

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Set a datetime field to Null

    Hi

    I created a record set at client side and added a coulmn as date time

    DBRS = CreateObject("ADODB.RecordSet")
    DBRS.Fields.Append "Updation_Date",adDateTime

    How can I set a this field as nullable ?


    Thanks
    Baiju


    Baiju K U Guest

  2. Similar Questions and Discussions

    1. NULL To DateTime field through sp
      How can I insert null value into a datetime field through stored procedure? i use cybase,cf 4
    2. Separated date and time or one datetime field
      Hi all, I am learning php+mysql and am trying to set up a log database. I wonder if it is better to have 2 different columns for date and time...
    3. update row with null numeric or datetime dataset cell values in a datagrid
      I keep getting the, now, dreaded "System.FormatException: String was not recognized as a valid DateTime" error when updating a datagrid row that has...
    4. get week from date/datetime field
      Hi, I have a very basic quesetion but I can't find any answer by myself. Is it possible to extract number of week from date/datetime column?...
    5. dateTime = Null problem
      Hi All, I have an object that ahs a property of time dateTime, this property is set to the contents of a DateTime field in the database(SQL...
  3. #2

    Default Set a datetime field to Null

    Hi

    I created a record set at client side and added a coulmn as date time

    DBRS = CreateObject("ADODB.RecordSet")
    DBRS.Fields.Append "Updation_Date",adDateTime

    How can I set a this field as nullable ?


    Thanks
    Baiju


    Baiju K U Guest

  4. #3

    Default Re: Set a datetime field to Null

    [url]www.aspfaq.com/5003[/url]

    Ray at home

    "Baiju K U" <baiju@indus-systems.com> wrote in message
    news:u9Az%23cukDHA.3732@tk2msftngp13.phx.gbl...
    > Hi
    >
    > I created a record set at client side and added a coulmn as date time
    >
    > DBRS = CreateObject("ADODB.RecordSet")
    > DBRS.Fields.Append "Updation_Date",adDateTime
    >
    > How can I set a this field as nullable ?
    >
    >
    > Thanks
    > Baiju
    >
    >

    Ray at Guest

  5. #4

    Default Re: Set a datetime field to Null

    Baiju K U wrote:
    > Hi
    >
    > I created a record set at client side and added a coulmn as date time
    >
    > DBRS = CreateObject("ADODB.RecordSet")
    > DBRS.Fields.Append "Updation_Date",adDateTime
    >
    > How can I set a this field as nullable ?
    >
    Use the attrib argument of the Append method:
    [url]http://msdn.microsoft.com/library/en-us/ado270/htm/mdamth01_2.asp[/url]

    --
    HTH,
    Bob Barrows - ASP MVP
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.


    Bob Barrows 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