views:

39

answers:

1

How to prefix 'N' for the parameters in a store procedure for a unicode strings in c#, alternatively i am using the same procedure for the non unicode also. i need to append it only for the unicode ones kindly help.

+2  A: 

You don't need to prefix N for parameters. This is only required for literals. Just make sure your stored procedure and ADO.NET parameters are of Unicode type (nvarchar or whatever).

Martin Smith
thank you it worked i converted my parameters as nvarchars
skamale