3.1.14:
Smsd installed from: sources / package repository / from elsewhere...
Huwei:
USB: serial / USB / some adapter...
Hi Keke,
I'm trying to use the SQLCMD Utility to add and read records from an MS SQL Lite database. I can get it to work from the Cygwin command line but cannot get it to run from an SMSD script.
If I Use this format directly in Cygwin it works no problem;
sqlcmd -S .\\SQLEXPRESS -d SMS -Q "insert into parts (Part_No, Part_Description, Q_Description) VALUES ('4827771902','DVR','DVR')"
Using the following in a script;
sqlcmd -S .\\SQLEXPRESS -d SMS -Q "insert into parts (Part_No, Part_Description, Q_Description) VALUES ("'4827771988'","'DVRS'","'DVRS'")"
Or this;
sqlcmd -S .\\SQLEXPRESS -d SMS -Q "insert into parts (Part_No, Part_Description, Q_Description) VALUES (/"4827771988/",/"DVRS/",/"DVRS/")"
Doesn't add any records.
I am testing at the moment so the above is the only line in the script, which is called Test and I am running it directly from the cygwin command line.
I'm sure there is a simple solution but cannot get there. Any ideas to help?
Regards