Viewing 14 posts - 1 through 14 (of 14 total)
As requirement owner says there is no much flexibility in SSIS as in T-Sql query, so decided not to use SSIS, as I know BCP and others are used mostly...
March 12, 2012 at 7:11 am
This is a requirement. I have to do with out using SSIS, 🙂
March 12, 2012 at 7:01 am
The solution u gave will work fine, but how to know the current date format in sql, so that i can give that dateformat as
SET DATEFORMAT Current Date Format...
December 29, 2011 at 12:59 am
;WITH cte as
(
SELECT id,name,
,
,topid FROM tree WHERE topid = 0
UNION all
SELECT t1.id, t1.name,t1.[Left],t1.
,t1.TopId
FROM tree t1
JOIN cte c ON c.id = t1.topid AND c.
= t1.Id
)
SELECT * FROM...
December 11, 2009 at 10:20 pm
Hi,
I tried with recursive cte and self join. But not getting required output:-)
December 11, 2009 at 9:04 pm
Thanks Florian Reischl
ur query wil perform better than mine
June 9, 2009 at 6:48 am
Thanks Christopher Stobbs
Ur Query is performing btter than mine:-)
June 9, 2009 at 6:47 am
Hi
Gianluca Sartori
declare @tbl table(id int)
insert @tbl select 12
insert @tbl select 13
insert @tbl select 16
insert @tbl select 17
insert @tbl select 18
insert @tbl select 15
insert @tbl...
June 9, 2009 at 5:43 am
Hi,
I saw in Profiler,ur query wil perform poorly than my query.Urs wil take
twice as much as reads and cpu and duration of my...
May 26, 2009 at 10:53 pm
execute sp_helptext 'ProcedureName' to get the script for Procedure
May 26, 2009 at 7:18 am
hi, U sent
with cte as (select *,Row_number() over(order by id) as rownumber,
count(*) over() as total from TableName)
select * from cte where rownumber between some integers
ok its...
May 26, 2009 at 7:13 am
the precedence of OR & AND & NOT goes with brackets i think.
select * from temp where (loginname='Raj' AND password='abcd')
OR FirstName='Raju'
here both (loginname and password) acts s one...
May 13, 2009 at 7:30 am
Viewing 14 posts - 1 through 14 (of 14 total)