I need to know what are the valid characters to use in a SQL parameter name.
Given something simple like SELECT * FROM tblTest WHERE testid = @[X], if X contains a hyphen, for instance, the statement will fail. What are the valid characters for parameter names?
Search for ‘Identifiers’ in your SQL Books online, and you should find:
Rules for Regular Identifiers
Search for ‘delimited identifiers’ in your SQL Books online, and you should find:
Marc