in reply to Limitations of DBI (or) DBD::ODBC ?
In the example above I have assumed that you want to interpolate $dbname and $user.my $script = <<EOF; declare \@intpos int declare \@intuser int declare \@dtlastpost varchar(30) set \@intuser = (select userid from $dbname.dbo.users where name = '$u +ser') set \@intpos = (select top 1 permissionid from $dbname.dbo.security wh +ere userid = \@intuser order by permissionid desc) set \@dtlastpost = (SELECT top 1 PostDate FROM $dbname.dbo.Messages wh +ere userid = @intuser order by postdate desc ) EOF
|
|---|