Created
August 25, 2017 22:17
-
-
Save bertwagner/02219dc18cd58c0a68f72866c1b7f500 to your computer and use it in GitHub Desktop.
This file contains 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_GetFullNameSafe2 | |
@ParmUserName varchar(100) | |
AS | |
BEGIN | |
DECLARE @FullQuery nvarchar(1000) | |
SET @FullQuery = N'SELECT FullName FROM dbo.RegisteredUser WHERE UserName = @UserName' | |
DECLARE @ParmDefinition nvarchar(100) = N'@UserName varchar(100)'; | |
EXEC sp_executesql @FullQuery, @ParmDefinition, | |
@UserName = @ParmUserName; | |
END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment