I tried setting the value type as DATE but it's not being recognize.. I'm using SQL Server 2005.. I though date is a value type but it's not working..
AngelicOne 4 Posting Whiz
Recommended Answers
Jump to PostAre you running the query in SQL Server 2005 or somewhere in your C# code?
I ran your code in a query on sql server 2008 and it created the table fine. Your syntax isnt at fault; does the table already exist? are you correctly connected to the sql server …
Jump to PostI just tried to run the command in MS SQL Server Management Studio Express (2005).
create table tbl (orderdate date)
It does not execute giving the Error:
Msg 2715, Level 16, State 7, Line 1
Column, parameter, or variable #1: Cannot find data type date.Also, when I use the …
Jump to PostIt's a 2005 v. 2008 issue.
Jump to PostAah, i was not aware of that :p the msdn page should really make a note of the sql server versions that support the datatypes on the page i linked that lists them :/
All 13 Replies
Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster
AngelicOne 4 Posting Whiz
Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster
AngelicOne 4 Posting Whiz
Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster
Geekitygeek 480 Nearly a Posting Virtuoso
AngelicOne 4 Posting Whiz
nick.crane 342 Veteran Poster
nick.crane 342 Veteran Poster
Geekitygeek 480 Nearly a Posting Virtuoso
Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster
AngelicOne 4 Posting Whiz
nick.crane 342 Veteran Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.