O'Reilly logo

Active Server Pages 3.0 from Scratch by Nicholas Chase

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Displaying a Table

On my projects, it's an extremely rare occasion when I can work on the machine where the project is actually being built. After all, this is the Internet; I don't even have to be in the same country! One problem that I am constantly faced with is a security setup that blocks access directly to the database. This is, of course, how it should be, but it's awfully inconvenient when I'm trying to see what's in my tables.

So what I've done is build a generic page that will read and display the contents of any table that I specify. That way, when I need to know what's in a table, I just call up the proper URL, which includes the table name.

To do this, we're going to take advantage of the structure of a RecordSet. Copy admintemplate.asp ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required