User Profile

Collapse

Profile Sidebar

Collapse
nicolasclaudia
nicolasclaudia
Last Activity: Jan 24 '13, 04:49 PM
Joined: Jan 23 '13
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Hello Rabbit, thanks for your input :) I need to change it so as to avoid SQL injection like you correctly mentioned, can you please tell me how to escape my inputs to avoid it? Or do you have a solution to avoid the risk in the first place?

    By the way my inputs are actually results from a "SELECT" in my stored procedure from another table which is static. So can you make sure the data there are escaped in T-SQL?
    ...
    See more | Go to post

    Leave a comment:


  • Formatting NVARCHAR with xp_sprintf and dynamic list of parameters

    Hi all I need your help, how can you format a string with placeholders with the number of placeholders not known in advance (dynamic number of placeholders) ?

    I need to do that in T-SQL

    "xxxxx {0} yyyy {1} zzzz {2} "

    with {} replaced by parameters.

    I did the code:

    Code:
    DECLARE @PARAMETERS nvarchar(500)
    
    DECLARE @TEST nvarchar(500)
    
    DECLARE
    ...
    See more | Go to post
    Last edited by Rabbit; Jan 23 '13, 04:55 PM. Reason: Please use code tags when posting code.
No activity results to display
Show More
Working...