<blatant_plug> You could use my (free) Data Manager component.
http://steve.coldfusionjournal.com/easier_inserts.htm Example: database: MS SQL table: "MyTable" with fields "Field1" and "Field2" <cfscript> DataMgr = CreateObject("component","com.sebtools.DataMgr_MSSQL").init("mydsn"); DataMgr.load("myTable"); MyData = StructNew(); MyData.Field1 = "value1"; MyData.Fields = 3; InsertedID = DataMgr.insertRecord("myTable",MyData); </cfscript> </blatant_plug> Hope that helps! Steve Bryant. Bryant Web Consulting LLC http://www.BryantWebConsulting.com/ http://steve.coldfusionjournal.com/ >Does anyone have examples of how to insert data into a database using >cfscript. My other option is to try to and create a batch file and >execute it with cfexecute. > >- -- >Graham Pearson, System Administrator / Application Developer >Northern Indiana Educational Services Center >Mishawaka, IN 46544 >Voice (866) 254-5322 or (574) 254-5210 / Fax (574) 254-0148 >VOIP Telephone Number: (574) 217-0146 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:219363 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=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54