07-02-2007, 05:55 PM
Finally got the server-side database up, running, and able to import sql formatted text docs manually. Now I need to figure out how to perform a standard "Insert Into" from info generated by QM to a remote sql server.
Assuming I can get the QM macro I've been working on to produce the static field list and a single record worth of field data (variable-driven) per macro run (essentially a web-accessible, query-able detailed log). Can this then be shot up to the db directly from QM, or do I need to call something like sql server express to do this? I saw the note on the newer database class, but couldn't find much info on it (at least not enought to get me over the novice hump on this one...)
Here's an example of a record that will generated by the macro. Works fine in manual import to the table, just don't know syntax/format to get QM to do it:
Any advice is greatly appreciated!
Steve
Assuming I can get the QM macro I've been working on to produce the static field list and a single record worth of field data (variable-driven) per macro run (essentially a web-accessible, query-able detailed log). Can this then be shot up to the db directly from QM, or do I need to call something like sql server express to do this? I saw the note on the newer database class, but couldn't find much info on it (at least not enought to get me over the novice hump on this one...)
Here's an example of a record that will generated by the macro. Works fine in manual import to the table, just don't know syntax/format to get QM to do it:
<?
// connect to mysql and select database
$db = mysql_pconnect("sqlserver.host.com","username","password");
mysql_select_db("database_name",$db);
INSERT INTO murFTP_log (ref_no, upload_stamp, event_date,
event_name, event_type, upload_dir, media_file, html_file, av_tech,
proc_by) VALUES('','', '20070702', 'My Vent', 'Public', 'Righto',
'myvent.mp3', 'myvent.html', 'stevish', 'ne pas de steve');
?>
Any advice is greatly appreciated!
Steve