www.webdeveloper.com
Results 1 to 2 of 2

Thread: vbscript & sql

  1. #1
    Join Date
    Sep 2004
    Posts
    1

    vbscript & sql

    hi. i'm creating an asp page using vbscript. i create and execute a string as an SQL statement.

    problem:

    strSQL = ..... " ' " & Date() & " ' " .......... <-- this works
    strSQL = ..... " ' " & Time() & " ' " .......... <-- this does not

    i get a string conversion error. i'm storing the time as the data type TIME in my SQL table.

  2. #2
    Join Date
    Sep 2004
    Posts
    43
    Try it like this:

    Code:
    strSQL = ..... " & Time() & "..........
    And let me know what happens.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles