Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2012 Forums
 SSIS and Import/Export (2012)
 script task to find diff text

Author  Topic 

shanmugaraj
Posting Yak Master

219 Posts

Posted - 2013-04-16 : 09:55:13
I have 2 parameters with different text and i want to get the different text



str_variable_1 = "Name,Gender,Age"

str_variable_2 = "Name,Gender,Age,Dept_Id,Desig_Id"

I need to return = str_Query

Alter table Employee Add Column Dept_Id int NOT NULL, Desig_Id int NOT NULL


THANKS
SHANMUGARAJ
nshanmugaraj@gmail.com

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-04-16 : 11:00:45
try using REPLACE

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
   

- Advertisement -