in reply to Re: Error passing string date from Perl to MSSQL
in thread Error passing string date from Perl to MSSQL
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Error passing string date from Perl to MSSQL
by Corion (Patriarch) on Apr 20, 2017 at 09:05 UTC | |
|
Re^3: Error passing string date from Perl to MSSQL
by MidLifeXis (Monsignor) on Apr 20, 2017 at 17:28 UTC | |
|
Re^3: Error passing string date from Perl to MSSQL
by chacham (Prior) on Apr 20, 2017 at 18:34 UTC | |
|
Re^3: Error passing string date from Perl to MSSQL
by cormanaz (Deacon) on Apr 20, 2017 at 18:01 UTC |