Viewing 15 posts - 12,331 through 12,345 (of 15,381 total)
If learning CLR is the objective, take a look at this article. http://www.sqlservercentral.com/articles/SQL+Server+2008/87743/%5B/url%5D
Make sure you read the discussion too. The article is a good example of how to use CLR...
April 19, 2012 at 10:36 am
I would certainly never suggest that somebody use a loop or a cursor in the context of what you explained. However I would ask why do you need CLR for...
April 19, 2012 at 10:21 am
Yes explaining it make me shudder. It sounds like there is a table for each row in some other table? Sounds pretty scary.
Drop table is "minimally logged". That means it...
April 19, 2012 at 9:49 am
The trigger is a delete trigger? And it deletes the table? Not really understanding what you are trying to do here.
If you want to drop 55,000 tables, and some of...
April 19, 2012 at 9:01 am
2000+ points and you still post questions that vague? Give us something to work with here. Of course you can save the stuff from excel. The question is what are...
April 19, 2012 at 8:55 am
So you want to insert all values between first_in and last_in? You absolutely do not need a loop for this. You need what is called a numbers, or tally, table....
April 19, 2012 at 7:47 am
Basic cursor structure.
fetch_next
while fetch_status
begin
--do some stuff here
fetch_next
end
April 18, 2012 at 2:49 pm
sabercats (4/18/2012)
Location Starttime ...
April 18, 2012 at 2:44 pm
Look closely at where you put your fetch next. It is inside an else block.
April 18, 2012 at 2:40 pm
Or are you saying you want to get two rows when there are different starttimes??
select Location, Starttime, MAX(Endtime)
from #Testing
group by Location, starttime
April 18, 2012 at 2:31 pm
Well which San Jose row would you want in that case?
April 18, 2012 at 2:30 pm
You are going to have to do a better job explaining what you want here.
What are the numbers in the first row??
We are not familiar with your business or your...
April 18, 2012 at 2:28 pm
Why not just set it up as a sql job and schedule it?
April 18, 2012 at 2:12 pm
polkadot (4/18/2012)
April 18, 2012 at 1:59 pm
Viewing 15 posts - 12,331 through 12,345 (of 15,381 total)