Viewing 6 posts - 16 through 21 (of 21 total)
This worked out fine for me.
DECLARE @SQLTEXT Table(SQLText ntext)
INSERT INTO @SQLTEXT Values('usp_CheckWeeklyResponseTeam %BD%, %ED%, %S%, %F%,%D%, %V%')
Select SQLTEXT , REPLACE(CONVERT(varchar(max),SQLTEXT),'%F%,%D%','%F%, %D%')
From @SQLTEXT
September 8, 2009 at 2:38 pm
For that given string, this worked for me:
select rtrim(ltrim(replace(replace(@string,' ',''),' ','')))
September 4, 2009 at 9:02 am
Just to clarify;
you want to delete rows in the destination table before inserting new data.
True or false?
And based on what kind of conditions?
September 3, 2009 at 11:19 am
For instance, if the table is being created dynamically then the user is probably using a query within a variable.
If the user used the same variable in another...
September 2, 2009 at 10:31 am
If you are using an execute sql task to dynamically create the source table then you could use that same statement in an execute sql task to create a Excel...
September 2, 2009 at 10:04 am
Viewing 6 posts - 16 through 21 (of 21 total)