Viewing 15 posts - 8,086 through 8,100 (of 9,643 total)
As Steve said and I said in my earlier post, if you give us the problem we may be able to solve it using a set-based solution that will be...
August 6, 2008 at 12:58 pm
Here are a couple of comments. Instead of:
DECLARE @sql nvarchar(max),
@SFound int
SET @SFound = (SELECT COUNT(*) FROM...
August 6, 2008 at 12:20 pm
There really isn't much of a difference. A cursor basically builds a temp table to loop through and you would need to do the same with a while loop....
August 6, 2008 at 12:07 pm
I don't know about flushing dns, but you should never need to flush the procedure cache on a SQL SERver. If you do that every query will need to...
August 6, 2008 at 11:54 am
todd_dawson (8/6/2008)
August 6, 2008 at 11:39 am
TheSQLGuru (8/6/2008)
Jeff Moden (8/6/2008)
No problem... PK can be nonclustered.
Yep. And then we have this situation:
Clustered index: order_id (assume int - 4 bytes), order_date (assume datetime - 8 bytes),...
August 6, 2008 at 9:07 am
Todd,
Here are some screen shots of the Report Server Configuration manager on my PC where RS is running fine. Is this what you are seeing in your setup:
August 6, 2008 at 9:03 am
That was just an idea I threw out there without having the opportunity to test it. Are you putting the select directly in a job step?
If so you CAN...
August 6, 2008 at 8:47 am
Unless you are managing an extremely busy system and are noticing a negative impact I recommend using autoupdate statistics. SQL Server will update the stats when a certain percentage of...
August 6, 2008 at 6:27 am
Jeff Moden (8/5/2008)
Jack Corbett (8/5/2008)
Also mine does take advantage of a undocumented (by MS) procedure that could change or disappear so using sys.databases and the dynamic SQL is probably better.
Heck......
August 5, 2008 at 9:27 pm
You could do an @@ROWCOUNT at the end of the first step.
If @@ROWCOUNT = 0
BEGIN
Return...
August 5, 2008 at 9:24 pm
I didn't know that the column was ntext. You could convert that to nvarchar(4000) (sql 2000) or nvarchar(max) (Sql 2005) and the the trim functions will work.
August 5, 2008 at 1:40 pm
You have to go out and get xp_smtp_sendmail and install it on the sql server, it is not part of sql server. The link I provided earlier includes the...
August 5, 2008 at 1:06 pm
In 2005 you would not have to put a DML trigger on sysobjects just a DDL trigger in master.
C2 auditing is basically a server-side trace that starts when SQL Server...
August 5, 2008 at 12:56 pm
I suppose you could save that little $ if needed. I just would install XP_SMTP_SENDMAIL and use it for new email needs.
August 5, 2008 at 12:46 pm
Viewing 15 posts - 8,086 through 8,100 (of 9,643 total)