Viewing 15 posts - 376 through 390 (of 458 total)
Okay, I think I get where you're going... A few more questions:
The data from sp_blocky, is it a string, tabular data, or what?
If it returns tabular data what you...
August 1, 2006 at 11:19 am
You're declaring a variable but the question is are you assigning the return value of sp_blocky to it, are you assigning the variable the string value 'sp_blocky'? How are...
August 1, 2006 at 11:01 am
July 21, 2006 at 2:18 pm
People can and do write whole books about performance tuning in SQL Server (I know, I've bought a few). I think it's unrealistic to assume that a single article...
July 20, 2006 at 10:09 am
I assume you're using SQL 2005 because you said you want to disable the trigger. I'd just query the system tables... here's the first part (you can probably figure...
July 18, 2006 at 4:44 pm
I tried this roughly 2-3 weeks ago and found a lot of the same issues. Using it was extremely slow and it consumed a great deal of system resources....
July 18, 2006 at 10:18 am
Ack... I'm off today. After each of those ELSE statements there needs to be an END.
July 10, 2006 at 2:05 pm
You could also do something like this, however I don't know if I'd call that more "elegant":
UPDATEa
SETa.name =
CASE WHEN b.columnname = 'name' THEN b.value
ELSE a.name
,a.email =
CASE WHEN b.columnname...
July 10, 2006 at 2:04 pm
Ack... change one of those lines:
WHERE TABLE_SCHEMA = 'tblA'
should read:
WHERE TABLE_NAME = 'tblA'
July 10, 2006 at 1:46 pm
I'm having a little trouble understanding your question... While I rarely advocate using cursors, this seems like the ideal time to make use of one.
DECLARE @sql NVARCHAR ( 4000...
July 10, 2006 at 1:40 pm
You may want to reinstall your client tools on the server. The DTS designer client may have become corrupted.
July 6, 2006 at 4:06 pm
Nope, it's the dynamic SQL. When you use dynamic SQL you have to turn all single-quotes within the string that you want evaluated into double-single-quotes (not double quotes). ...
June 28, 2006 at 11:38 pm
Assuming your dependencies are in order you can query sysobjects and sysdepends... something like this should work:
SELECTso2.name
FROMsysobjects so
JOINsysdepends sd
ONso.id = sd.depid
JOINsysobjects so2
ONsd.id = so2.id
WHEREso.name = 'table_or_view_name'
ANDso2.xtype = 'P'
June 28, 2006 at 1:48 pm
I wouldn't perform the same maintenance on system databases (master, model, msdb, tempdb) as you would on user databases.
1. I wouldn't concern yourself with too many optimizations on master /...
June 26, 2006 at 9:45 pm
Viewing 15 posts - 376 through 390 (of 458 total)