I tried to wrote a simple jsl script to pull data from a SQL database with a functionality to select pulling data from a set time frame. However, after checking from couple times I still cannot find out the mistake. The script debugger saying -[Microsoft][ODBC SQL Server Driver][SQL Server]Unclosed quotation mark after the character string ''.
Could any one help me to check out where is wrong in my script?
//This script is wrote to pull data within a certain time frame
start_time_="02/23/2015 12:00:00 AM";
end_time_="02/24/2015 12:00:00 PM";
Open Database( "DSN=;Description=;UID=;PWD=;APP=JMP;WSID=;DATABASE=",
"SELECT * FROM dbo.WORKWEEK
WHERE ((dCreated >= '",start_time,"')
AND (dCreated <='",end_time,"'))
ORDER BY dCreated",
"Updated Table"
)
dCreated is the column from the database that used to provide time information. It is a numeric data type, continuous modeling type and the format is already set to m/d/y/ h:m:s
Many Thanks,