Viewing 15 posts - 18,301 through 18,315 (of 18,926 total)
The default is only used when you don't specify a value.
March 30, 2005 at 11:51 am
Delete is a logged operation. Which means it can be pretty easily rolledback if it's an error. A truncate is not logged, therefore faster but cannot be easily...
March 30, 2005 at 9:29 am
That's exactly why an experienced dba is invaluable... it's just one of the 100+? gotchas that you'll find in sql server. You just got to learn them and try to...
March 29, 2005 at 9:48 pm
The real problems comes from this.
Create view vwa
as
Select top 100 percent * from dbo.BigFatTable Order by Col1, Col2
Create Sp b
AS
Select *, (Select SomCol from dbo.vwa A where B.id = A.id)...
March 29, 2005 at 2:48 pm
You need to add Select top 100 percent ...
in 2000, maybe that's the workaround you need in this case ron k
March 29, 2005 at 2:30 pm
Finally someone else pointed out the obvious .
March 29, 2005 at 2:05 pm
Can't answer your question as I avoid cursor like the pest. Good luck... btw I also avoid order by in views. Nice to see best practices pay off...
March 29, 2005 at 1:34 pm
You still didn't answer the real question. Why the )(&?(*& r u fetching 26k rows in a cursor in a sp. I can't imagine that there's no way...
March 29, 2005 at 1:15 pm
Why r u using a cursor to select 26k rows in a SP?
March 29, 2005 at 12:34 pm
About the size... that would be a reason against a bad choice of Clustered index... not for a reason not to use it.
March 29, 2005 at 10:12 am
Just thaught of another reason... I have a dts package that pumps the data from an error log every 2 minutes. The data is then spread across 4...
March 29, 2005 at 9:44 am
The only valid reason I can think of is that the clustered index would need to be updated 10 000s times per minute (let's read extremely often here) and that...
March 29, 2005 at 9:41 am
I don't see why they wouldn't,
but I'd go with this :
ALTER TABLE tblAccount ADD
[MailServer] varchar(50) null -- just to make it obvious that the column will accept nulls.
BTW MailServer...
March 24, 2005 at 9:43 pm
ALTER TABLE TableName ADD
NewColName /*datatype*/int /*null or not null, null is the default*/not null /*only if you need a default value*/ default(0)
GO
March 24, 2005 at 2:57 pm
Viewing 15 posts - 18,301 through 18,315 (of 18,926 total)