Awesome the my $sql = "INSERT INTO TableName(Date,FileName) VALUES('$Date',$file)"; , solved the issue.
Also can you let me know how the convert the date into the format 2017-01-21 00:00:00.000 before passing it to SQL.
In reply to Re^2: Error passing string date from Perl to MSSQL
by JobyJ
in thread Error passing string date from Perl to MSSQL
by JobyJ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |