I'd like to convert a datetime to nvarchar(64). The following code is a snippet used as part of a series of stored procedure parameters. I've included the area that has the error.
Incorrect syntax near KEYWORD 'CONVERT'
exec mysproc...@Password=N'',@IsAuthorized=1,
@UTCTIMESTAMP=CONVERT(NVARCHAR(64), GETUTCDATE(), 121),
@UserId=@SingleId output
Any ideas what is wrong with this syntax?