Hi,
I'm writing c# app and I want to add a new login and user to a SS 2005 DB using Stored Procedure.
I've come with the folowing code:
DECLARE @fullName nvarchar(50)
SET @fullName = @lastName+' '+@firstName
SET @cmd = 'CREATE USER '+ @fullName +' FOR LOGIN ' + @shortName;
EXEC sp_executesql @cmd
can someone tell me how can I create a new user with a space between first and a last name ?