Viewing 5 posts - 1 through 5 (of 5 total)
Select distinct * into #Temp_table from Original_table
Truncate table Original_table
insert into Original_table
select * from #Temp_table
November 4, 2013 at 4:12 am
declare @BDate datetime = '01 jan 1990'
select DATEDIFF(yy,@BDate, getdate()) as AgeInYears, DATEDIFF(mm,@BDate, getdate()) as AgeInMonths, DATEDIFF(WW,@BDate, getdate()) as AgeInWeeks
October 25, 2013 at 3:51 am
If you have a relation/common columns in a different tables, you can use joins in your query to get the result.
October 25, 2013 at 3:26 am
You cannot capture more than 1 result set into different tables tables.
October 25, 2013 at 12:45 am
Without change the SP, you cannot port those tables into different tables. Or ge the readonly crediential for that DB and get the table details.
October 25, 2013 at 12:18 am
Viewing 5 posts - 1 through 5 (of 5 total)