Scott, Thanks and that did the trick.
Nick At 11:31 AM 1/29/2005, you wrote: >You can still use keywords, you just need to put [ ] around them. > >The query would look like this: > >CREATE TABLE Scheduler ( > [ID] int NOT NULL default 0, > RPCall varchar(6) NULL, > TimeMark datetime NOT NULL default '1900-01-01 00:00:00.000', >) > >CREATE INDEX schedulerIDX > ON Scheduler ([ID]) > > > >On Sat, 29 Jan 2005 00:18:12 -0600, Nick Baker <[EMAIL PROTECTED]> wrote: > > Good explanation. You probably hit the nail on the head with "ID" being a > > keyword. I was migrating some code that worked in both MS Access and MySql. > > Never, thought about the keyword issue. > > > > > > At 10:43 PM 1/28/2005, you wrote: > > >Nick Baker wrote: > > > > Can someone tell me what is wrong with the following code? I am just > > > > starting to use SQL, > > > > > >plenty of things. by all means do as mike suggests and install a copy of > > >the BoL. its the best sql server resource there is. > > > > > >in any case, maybe something like this: > > > > > >CREATE TABLE Scheduler ( > > > schedID int NOT NULL default 0, > > > RPCall varchar(6) NULL, > > > TimeMark datetime NOT NULL default '1900-01-01 00:00:00.000', > > >) > > > > > >CREATE INDEX schedulerIDX > > > ON Scheduler (schedID) > > > > > > > > >i think "id" is a reserved word in sql server. default datetime "NULL" > > >is jan-1-1900 (your original value would probably get cast to this > > >anyway). sql server has several kinds of integer datatypes: > > > > > >tinyint 1 byte, 0-255 > > >smallint 2 bytes, -32,768 to 32,767 > > >int 4 bytes, -2,147,483,648 to 2,147,483,647 > > >bigint 8 bytes, -9223372036854775808 to 9223372036854775807 > > > > > >sql server naming syntax goes databasename.dataowner.tablename (or > > >object name). > > > > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:192216 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

