Viewing 15 posts - 18,301 through 18,315 (of 18,923 total)
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
Sure would be nice... but it doesn't take lon to build the query to fetch the info yourself.
March 24, 2005 at 2:14 pm
I don't know about Yukon but :
exec sp_helpIndex 'Table_ViewName'
can get you started.
March 24, 2005 at 1:24 pm
You pretty much said it yourself. The user needs to have direct access to the table if you make the select in dynamic sql. Try this to solve...
March 24, 2005 at 1:18 pm
Viewing 15 posts - 18,301 through 18,315 (of 18,923 total)