> Can someone tell me what is wrong with the following code? I 
> am just starting to use SQL, but was sure this was the code I 
> previously used to create a table in MySQL, and understood 
> the coding was compatible.
> 
> <cfset CTDataSourceName = "lgtestDSN">
> 
> <CFQUERY NAME="CreateTable" DATASOURCE="#CTDataSourceName#">
>               CREATE TABLE `lgtestDSN`.`Scheduler` (
>               `ID` int( 6 ) NOT NULL default '0',
>               `RPCall` varchar( 6 ) default NULL ,
>               `TimeMark` datetime NOT NULL default 
> '0000-00-00 00:00:00',
>               KEY `INDEX` ( `ID` )
>               ) TYPE = MYISAM ;
> </CFQUERY>

MS SQL Server doesn't have different table types, for one thing. Also,
identifiers and numeric literals don't use single quotes, I think.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized 
instruction at our training centers in Washington DC, Atlanta, 
Chicago, Baltimore, Northern Virginia, or on-site at your location. 
Visit http://training.figleaf.com/ for more information!


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:192168
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

Reply via email to