Skip to content

Instantly share code, notes, and snippets.

@erjjones
Created August 29, 2012 04:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erjjones/3506707 to your computer and use it in GitHub Desktop.
Save erjjones/3506707 to your computer and use it in GitHub Desktop.
Sample Contacts Testing Script
DECLARE @Count int, @Sort NVARCHAR(45), @Direction BIT, @Page INT, @PageSize INT
/* ---------------------------------------
USE THE VARIABLES BELOW TO TEST
CHANGE THEM TO SEE HOW THE RESULT
SET CHANGES ...
--------------------------------------- */
SET @Sort = 'FirstName'
SET @Direction = 0 -- ASC = 1, DESC = 0 OR NULL
SET @Page = 1
SET @PageSize = 50
EXEC ContactsSelCollection @Page,@PageSize,@Sort,@Direction,@TotalCount = @Count OUTPUT
SELECT @Count
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment