Viewing 15 posts - 46 through 60 (of 74 total)
Perhaps people are missing the point about the While loop for populating a set of numbers vs. the cross join. First, let's all agree that this would normally be a...
April 15, 2009 at 9:56 pm
RBarryYoung (4/15/2009)
Bruce W Cassidy (4/14/2009)
Thomas (4/14/2009)
April 15, 2009 at 9:23 pm
RBarryYoung (4/15/2009)
April 15, 2009 at 9:22 pm
I have to disagree.
Apparently our feelings of disagreement are mutual. Is it not the case that in 4GL languages you tell the system what you want not how you want...
April 15, 2009 at 2:07 pm
but that seems to be the problem with the use of cursors throughout a database solution. Many developers do not know these "ingeneous" ways of solving a problem. I...
April 15, 2009 at 8:34 am
I stand corrected. Cross joining on syscolumns does appear to be a bit faster. Perhaps this is one loop based solution that now has a reasonable set-based solution.
April 15, 2009 at 8:06 am
Couple of very simple solutions.
First one is SQL 2005/2008 only, won't work in 2000:
create table dbo.Numbers (Number int primary key);
go
insert into dbo.Numbers (Number)
select top 10000 row_number() over (order by t1.object_id)
from...
April 15, 2009 at 7:56 am
Girish Bhat (4/15/2009)
Thomas (4/14/2009)
A simple example of where set based operations break down...
April 15, 2009 at 7:42 am
Girish Bhat (4/15/2009)
Your point is well taken. For the specific example you have mentioned, you could use:
sp_MSforeachtable
@command1 = "Alter Table ? Alter Column...
April 15, 2009 at 7:41 am
[font="Verdana"]Agreed (both on SSIS and on the necessity for "chunking", although I call this batching (same concept). I wouldn't use a cursor for that though -- I would...
April 14, 2009 at 10:43 pm
This type of discussion reminds me of heated arguments I have had with Mr Celko about SQL standards. Yes, we should strive to use set based SQL syntax (and SQL...
April 14, 2009 at 9:53 pm
IMO, the best way to think about this is using the Fiefdom analogy. Think of a fiefdom as a self-contained system. Messages/data can be sent...
August 25, 2006 at 4:20 pm
First, some comments on items in the article or posts...
> I will acknowledge how tempting...
August 25, 2006 at 4:17 pm
The heat dissapation of the bulbs might throw off Amit's or my solution:
A variant on Amit's answer:
Turn on switch one and wait a minute then turn it off.
Turn on switch...
May 14, 2006 at 11:02 am
The simple answer to your question Calvin is that tables are far less amenible to change than data. In most cases, that lack of flexibility works in your favor but...
April 20, 2006 at 1:59 pm
Viewing 15 posts - 46 through 60 (of 74 total)