I found it easier to use MS SQL's generated GUID using the following:
use DBI; use DBD::ODBC; my $dsn = "driver={SQL Server};Server=$dbserver;database=$database;uid +=$username;pwd=$password;"; my $cnn = DBConnect($dsn); my $SQL = "SELECT NEWID()"; my $rs_guid = $cnn->prepare("$SQL"); $rs_guid->execute;
Get the actual GUID from the obtained $rs_guid and the guid will be inserted back to SQL without any problem
Regards,
Nathan
In reply to Re: Safe for SQL
by Anonymous Monk
in thread Safe for SQL
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |