escaping - SQL Server, Advanced Scaping quotes -
I am trying to create a problem which uses dynamic queries and parameters. I do clear for, it is my example: Does anyone Also help me? Thanks a lot! Make sure that using statements you want to do, but a few quotes sp_msforeachdb of'm using and it receives as a string parameter, this string is dynamic and content some other strings ...
SET @vTableName = '## temp_table_' + convert (Anviaraaraar (8), Dotdet (), 112) SET @vQuery = 'sp_msforeachdb' ' Use the? If you like Dibi_nam () ( ''% _BASE '') INSERT into '' + VTableName + '' SELECT * elements WHERE identifier = 'P' '' ''
announcement @ vTableName varchar (2000) dECLARE @vQuery varchar (2000) SET @vTableName = '## temp_table_' + convert (Anviacaaraar (8), Milnat (), 112) SET @vQuery = 'Sp_msforeachdb Use '' If you like Dibi_nam () ( ''% _BASE '') INSERT I + 'vTableName +' SELECT * from elements WHERE identifier = 'P' ''
Comments
Post a Comment