Viewing 15 posts - 50,656 through 50,670 (of 59,091 total)
Michael,
You have a line of code that looks like the following...
else if @s2>=@s1 and @s2 @f1
What is the missing operator after AND @s2?
--Jeff Moden
Change is inevitable... Change for the better is not.
May 9, 2008 at 6:41 pm
RyanRandall (5/9/2008)
Looks like another use for the 'tally' table...
Spot on... 😛
--Jeff Moden
Change is inevitable... Change for the better is not.
May 9, 2008 at 6:19 pm
jprakasam (5/9/2008)
Himy location table has N number of records.
Do you mean N number of Locations?
--Jeff Moden
Change is inevitable... Change for the better is not.
May 9, 2008 at 6:06 pm
I agree with Sergiy... however, sometimes you gotta do what ya gotta do.
Post your code so we can try things out...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 9, 2008 at 5:48 pm
Would "context switching" work for you? Here's the example from Books Online...
-- Switch execution context to the dan1 user account.
EXECUTE AS USER = 'dan1';
-- Execute the DBCC statement.
DBCC CHECKDB...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 9, 2008 at 5:46 pm
HENRY DAVIS (5/9/2008)
select * from SYSOBJECTS where name = 'table_name'
--(1 row(s) affected)
select * from dbo.table_name
--Server:...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 9, 2008 at 5:19 pm
Just a recommendation... Like you said, use ISNULL... don't mess with the default server settings on this...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 9, 2008 at 5:02 pm
There's a couple of chances this might work... "Slim and None"... and Slim just left 😛
--Jeff Moden
Change is inevitable... Change for the better is not.
May 9, 2008 at 4:58 pm
Things like that can be real tough to determine... thanks for the feedback! I'll have to remember that.
--Jeff Moden
Change is inevitable... Change for the better is not.
May 9, 2008 at 4:47 pm
Jon Russell (5/9/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
May 9, 2008 at 4:44 pm
ALZDBA (5/9/2008)
Jeff Moden (5/8/2008)
Hey! What kind of bike is in your avatar?
It's a 1995 Honda NTV650. (The little brother of the Pan European)
It's current evolution is known as "Deauville".
Quit...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 9, 2008 at 4:33 pm
srienstr (5/9/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
May 9, 2008 at 9:50 am
dfalso (5/9/2008)
I was also attempting to argue that there are other considerations to keep in mind than just performance when coding.
I agree... just not if the solution requires a cursor...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 9, 2008 at 9:27 am
srienstr (5/9/2008)
exec dbo.sp_msforeachtable 'delete test.dbo.[?]'
There's generally no need to do a delete without criteria, as truncate will perform better with less logging:
exec dbo.sp_msforeachtable 'truncate table test.dbo.[?]'
That said, I'm sure...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 9, 2008 at 9:16 am
Steve Eckhart (5/9/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
May 9, 2008 at 8:44 am
Viewing 15 posts - 50,656 through 50,670 (of 59,091 total)