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
Supa Thanx
peppiv
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?if ($sth->rows == 2)
Supa Thanx
peppiv
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Perl DBI MS SQL Question
by mpeppler (Vicar) on Jul 12, 2002 at 16:28 UTC | |
by Abigail-II (Bishop) on Jul 12, 2002 at 16:33 UTC | |
Re: Perl DBI MS SQL Question
by cfreak (Chaplain) on Jul 12, 2002 at 16:20 UTC | |
by peppiv (Curate) on Jul 12, 2002 at 17:03 UTC | |
Re: Perl DBI MS SQL Question
by perrin (Chancellor) on Jul 12, 2002 at 17:32 UTC | |
Re: Perl DBI MS SQL Question
by sedhed (Scribe) on Jul 12, 2002 at 22:33 UTC |
Back to
Seekers of Perl Wisdom