|Do you know where your variables are?|
Perl DBI MS SQL Questionby peppiv (Curate)
|on Jul 12, 2002 at 15:20 UTC||Need Help??|
peppiv has asked for the
wisdom of the Perl Monks concerning the following question:
Let me tell ya, TGIF!!! I'm burnt!!!
Here's my problem.
I'm running Perl 5.6 on a Linux/Apache Box talkin' to a W2K Box and SQL Server. I'm using FreeTDS as the go between and all things work well. That is until I realize I don't know MS SQL Server commands.
I have a program that connects to a MySQL DB and I use the LIMIT command that allows me to call the rows I want returned. You know, LIMIT 0,10 -- returns rows 1-10. I don't know how to do this in MS SQL. I know how to use SELECT TOP 10, but I want to return results in groups of ten. With LIMIT I can return 1-10, then 10-20 and so forth. Kinda speeds up the screen write in case someone chooses a search criteria that returns mega results. Does anyone know a Perl workaround?
Also, more of a DBI question - in MySQL I can Perl with
And this lets me know if I've returned two rows or not. In the MS SQL it only tell me that if I have a return it equals -1. Does anyone know how to see how many rows return true?