Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 15th, 2004, 09:17 AM
Registered User
 
Join Date: Mar 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Create table with date format not working.

Hi, I am trying to create a new transcript table. I want two of the fields to be date formats. When I try this code:

Code:
DIM strSQL
    strSQL = "CREATE TABLE transcript(" &_
             "id integer Primary Key, " &_
             "course varchar(50) NOT NULL," &_
             "crs_date date NOT NULL," &_
             "reg_date date NOT NULL," &_
             ");"
I get this error:

Column_or_parameter_#3:_Cannot_find_data_type_date

Can anyone help? The DB is SQL Server 2000

Thanks in Advance!
Krs

 
Old March 15th, 2004, 10:39 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

For SQL 200 its "datetime" not "date".
 
Old March 15th, 2004, 10:45 AM
Registered User
 
Join Date: Mar 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by pgtips
 For SQL 200 its "datetime" not "date".
Awesome!!

I have been looking for the answer to this for over a week.

Much Thanks!!

Krs






Similar Threads
Thread Thread Starter Forum Replies Last Post
date format differs, need to force format somehow patricolsson ASP.NET 2.0 Basics 1 December 3rd, 2009 12:53 AM
Create generic XSL Template to create table Venkatachalapathy XSLT 5 March 11th, 2008 07:49 AM
Convert British format date to American format? fyr PHP How-To 0 December 19th, 2007 03:17 PM
How to give Date format while entering date Subuana Beginning VB 6 4 March 17th, 2006 07:25 AM
date format differs, need to force format somehow patricolsson HTML Code Clinic 2 January 12th, 2006 05:55 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.