Created
December 10, 2016 18:28
-
-
Save tdittmar/45b02e5602ae07cb6785a1fceda791aa to your computer and use it in GitHub Desktop.
Parameterize the T-SQL TOP clause
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE PROCEDURE dbo.sp_TestGetAll | |
@LIMIT INT | |
AS | |
SELECT TOP (@LIMIT) id, col1, col2, col3 FROM TestTable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment