Developer Blog

Returning a Dynamically Specified Number of Rows From a Stored Procedure

Monday, December 22nd, 2008 by Eric Foley
Eric Foley

Have you ever wanted to return the top X number of rows from a query?  Of course you have!  This can be accomplished easily in T-SQL using the TOP option of the SELECT statement.

SELECT TOP 10
EmployeeID,
FirstName,
[...]

Writing a SWF to a Web Page from SQL Server

Thursday, December 11th, 2008 by Doug DiFilippo
Doug DiFilippo

We recently had a requirement to store SWF files directly in our database as a file bytes field. Our client had a need to dynamically change multiple SWF files via an administrative site. Due to the clustered server environment, storing the files in a database and pulling them out on a new request was the [...]