SQLserv. I want to INSERT time, without date HELP

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

  1. #1

    Default SQLserv. I want to INSERT time, without date HELP

    I'm trying to INSERT just the time with a SQL statement. When I do the
    insert, I get 1/1/1900 plus the time I specified. I want to exclude the
    date portion all together.

    The field type is datetime.

    How to I accomplish this???

    --
    Joe Resudek
    Frontier New Media
    225 Crummer Lane
    Reno, NV 89509
    (775) 824-4040
    (775) 824-4044 fax
    [url]http://www.thefrontiergroup.com[/url]


    Joe Resudek Guest

  2. Similar Questions and Discussions

    1. Insert ODBC Date time values
      Hope that someone can help with my question. I need to insert ODBC dates and times into an MS Access databse, i cannot get it to work for toffee,...
    2. CFMX7.0.1 Administrator date time issue showing 13hrsbehind server time
      I am running a W2k SP4 box that has been upgraded from CFMX6 to CFMX7.0.1. The CFMX7.0.1 server is showing the date on the Server Settings >...
    3. Time/Date format and changing time to GMT
      Hi All, Sorry if this is the wrong newsgroup to post into, on this topic, if so, please point me in the right direction..... Currently working...
    4. ASP Insert Date & Time Problem
      Hi All, I live in Australia and I have Access installed on my computer. Regional settings are set to Australian Standards (dd/MM/yyyy) I try to...
  3. #2

    Default Re: SQLserv. I want to INSERT time, without date HELP

    "Joe Resudek" <joe@thefrontiergroup.com> wrote in message
    news:#s8vjoPXDHA.1900@TK2MSFTNGP10.phx.gbl...
    > I'm trying to INSERT just the time with a SQL statement. When I do the
    > insert, I get 1/1/1900 plus the time I specified. I want to exclude the
    > date portion all together.
    >
    > The field type is datetime.
    >
    > How to I accomplish this???
    Not with a DATETIME column. You either ignore the DATE portion (since it
    will be the same for all values anyway), or use a different datatype.

    See [url]http://www.aspfaq.com/2206[/url] for some potential workarounds.


    Aaron Bertrand - MVP Guest

  4. #3

    Default Re: SQLserv. I want to INSERT time, without date HELP

    Aaron,

    Is [url]www.aspfaq.com[/url] your website? I notice you refer to it a
    lot.

    Just wanted to say I think you (whoever) have done a great
    job with this site. It's easy to use and easy to read. The
    examples are clear and the layout is simple yet nice
    looking.

    Thanks for all your hard work,
    John

    John Beschler Guest

  5. #4

    Default Re: SQLserv. I want to INSERT time, without date HELP

    Yes, thanks for the comments...

    A



    "John Beschler" <giles@geewhiz.com> wrote in message
    news:009e01c35d05$571e9eb0$a401280a@phx.gbl...
    > Aaron,
    >
    > Is [url]www.aspfaq.com[/url] your website? I notice you refer to it a
    > lot.
    >
    > Just wanted to say I think you (whoever) have done a great
    > job with this site. It's easy to use and easy to read. The
    > examples are clear and the layout is simple yet nice
    > looking.
    >
    > Thanks for all your hard work,
    > John
    >

    Aaron Bertrand - MVP 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