Viewing 15 posts - 241 through 255 (of 1,048 total)
WElcome to the SSC 🙂
can you please provide some information about your requirement? Its not clear to us..
Please follow the link in my signature about how to post a question,...
August 21, 2013 at 10:28 pm
Adding some more points to the problem:
inspite of defining columns as SPARSE it is still taking space in database as I read on some blog that if we specify column...
August 21, 2013 at 7:13 am
Instead of delete if you fire TRUNCATE statement it will show data size is 0
August 21, 2013 at 7:08 am
Cadavre (8/21/2013)
kapil_kk (8/21/2013)
USING (SELECT a,b,c
FROM @tblTempTable) [Source](a,b,[bit]) ON [Target].AccountOfficeId =...
August 21, 2013 at 4:54 am
Koen Verbeeck (8/21/2013)
kapil_kk (8/21/2013)
Can anyone tell me from where I can learn about this SET Based approaches?
Try reading articles by Jeff Moden.
The key here is to avoid cursors and WHILE...
August 21, 2013 at 4:45 am
Cadavre (8/21/2013)
kapil_kk (8/21/2013)
Cadavre (8/21/2013)
kapil_kk (8/21/2013)
Koen Verbeeck (8/21/2013)
You can replace the logic beneath @bit = 1 with one...
August 21, 2013 at 4:42 am
Can anyone tell me from where I can learn about this SET Based approaches?
August 21, 2013 at 4:31 am
Cadavre (8/21/2013)
kapil_kk (8/21/2013)
Koen Verbeeck (8/21/2013)
You can replace the logic beneath @bit = 1 with one MERGE statement.
The...
August 21, 2013 at 4:29 am
Koen Verbeeck (8/21/2013)
You can replace the logic beneath @bit = 1 with one MERGE statement.
The logic beneath...
August 21, 2013 at 4:17 am
Hi Koen,
here is one sample of cursor that is used in one of the object:
DECLARE curApplication CURSOR FAST_FORWARD LOCAL FOR
SELECT a,b,c FROM @tblTempTable
OPEN curApplication
FETCH NEXT FROM curApplication
INTO @a,@b,@bit
WHILE @@FETCH_STATUS=0
...
August 21, 2013 at 2:10 am
npranj (8/20/2013)
Got the query. IT was simple. -
select PDD.*
...
August 21, 2013 at 12:00 am
have you checked the execution plan?
August 20, 2013 at 11:50 pm
try this_
select t1.PersonID, t1.LeaveTimeId
FROM tbl_PersonDetails t1
JOIN tbl_PersonLeaveDetails t2 ON t1.PersonID = t2.PersonId
WHERE t1.LeaveTimeId NOT IN (select t1.LeaveTimeId FROM tbl_PersonLeaveDetails t2 WHERE t1.LeaveTimeId BETWEEN t2.LeaveFromTimeID AND t2.LeaveToTimeID)
August 20, 2013 at 11:48 pm
you question is not clear to us...
untill you dont provide some more details what you required we cant able to help you
August 20, 2013 at 10:56 pm
Viewing 15 posts - 241 through 255 (of 1,048 total)