Jeff's SQL Server Blog

Random Thoughts & Cartesian Products with Microsoft SQL Server
posts - 155, comments - 2679, trackbacks - 64

My Links



Welcome to my weblog. My name is Jeff Smith, I am software developer in Boston, MA and I was recently named a 2009 SQL Server MVP. Check in frequently for tips, tricks, commentary and ideas on SQL Server and .NET programming.



Post Categories





Old-School ASP. Don't expect to see much new stuff here, but if you are still using ASP there's a handy "ReportClass" that you may find useful.
ASP and ADO Pivots -- Old School CrossTabs

Jumping back a bit, I thought I'd also post a bit of code for those still using good old ASP and/or ADO. This is a function writen in VBScript that works much in the same way as the GetRows() method of an ADO recordset -- it returns the entire contents of the recordset in a 2-dimensional array. The difference with this one, of course, is that it will also do a pivot for you.

posted @ Sunday, May 15, 2005 9:26 PM | Feedback (4) | Filed Under [ CrossTabs / Pivoting Data ASP ]

ASP Report Class Northwind Sample

As promised, here's a sample ASP report from Northwind using my ASP Report Class (  Hopefully, everyone will agree that the script is very easy to write and read and much shorter.   All grouping (for both headers and footers), subtotals and running totals are completely taken care of by using the class, and it is giving you recordset functionality (movenext and EOF and column reference by name) using the speedy GetRows() method under the hood. For this to work, you must have the class saved as “ReportClass.asp“ in the same folder as this script (notice the include). <%@ Language=VBScript %> <%Option Explicit%> <%@ Language=VBScript %>

posted @ Thursday, November 20, 2003 5:22 PM | Feedback (4) | Filed Under [ ASP ]

ASP - Report Class with Grouping, Headers, Footers and more

If you use ASP, ADO and SQL Server, check out my new article. It includes code for a VBScript class which makes writing HTML reports based on an ADO recordset with group headers, footers, and subtotals extremely easy.


posted @ Monday, November 17, 2003 1:36 PM | Feedback (1) | Filed Under [ ASP ]

Powered by:
Powered By Subtext Powered By ASP.NET