Quantcast
Channel: how can i transform these command at dynamic command?
Browsing all 8 articles
Browse latest View live

how can i transform these command at dynamic command?

Hilary, the difference at a first and last query is +CHAR(39)Thanks. Your help was essential to be able to complete  a development.

View Article



how can i transform these command at dynamic command?

I have to make a lot of guesses as to your content, but this might work.declare @sql varchar(max) declare @dirori varchar(max)='test' declare @dirdes varchar(max)='test' create table #temp(FIL...

View Article

how can i transform these command at dynamic command?

Ok. I am trying to find other solution maybe using powershellIf you have any suggestions..

View Article

how can i transform these command at dynamic command?

Hillary, thanks for answer.The first part is ok but select@sql= replace(replace('exec ''xp_cmdshell ''move @dirori'+FIl+' @dirdes','@dirori',@dirori),'@dirdes',@dirdes) FROM #TEMPexec(@sql)is not OK ....

View Article

how can i transform these command at dynamic command?

Hi haichu1,Additionally, GO (Transact-SQL) signals the end of a batch of Transact-SQL statements to the SQL Server utilities. It is not a Transact-SQL statement and can not be used in an EXECUTE...

View Article


how can i transform these command at dynamic command?

I don't know understand what FIL is, but I would try something like this:declare @rowcount int declare @counter int=1 Declare @sql Varchar(5000) Declare @PI1 Varchar(50) Declare @PO1 Varchar(50)...

View Article

how can i transform these command at dynamic command?

While I'm no expert on this kind of workings, I think it's because when you use EXEC you're effectively running in a new session and in that session, you don't have your table variable. You could...

View Article

how can i transform these command at dynamic command?

​Declare @TEMP Table  (FIL VARCHAR(200))  Declare @sqlVarchar(5000) Declare @PI1Varchar(50) Declare @PO1Varchar(50) Declare @PP1Varchar(50) Declare @idVarchar(14) DECLARE @dbVarchar(255) DECLARE...

View Article

Browsing all 8 articles
Browse latest View live




Latest Images