Using QUOTENAME()

  • Comments posted to this topic are about the item Using QUOTENAME()

  • Nice question to start the week on, thanks Steve

    ____________________________________________
    Space, the final frontier? not any more...
    All limits henceforth are self-imposed.
    โ€œlibera tute vulgaris exโ€

  • Two points on the quotename function, the second parameter is the optional quote character and the function implicitly converts any input into nvarchar(258), except the XML data type.
    ๐Ÿ˜Ž

  • nice question steve
    ta

    ---------------------------------------------------------------------------------------
    The more you know, the more you know that you dont know

  • I only got this because Ken Fisher talked about at the North Texas SQL User group last Thursday ๐Ÿ™‚

    ------------------------------------------------------------------------------------------------Standing in the gap between Consultant and ContractorKevin3NFDallasDBAs.com/BlogWhy is my SQL Log File HUGE?!?![/url]The future of the DBA role...[/url]SQL Security Model in Plain English[/url]

  • One other important point (and, to me, the best reason to use QUOTENAME), is the built-in escaping of certain characters, which helps to prevent SQL Injection attacks in certain scenarios.

    SELECT QUOTENAME('[]"''');

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply