Viewing 15 posts - 271 through 285 (of 1,315 total)
Getting one set of results does involve repeating some field values, but the overhead of this is almost always going to be much less than the overhead of multiple roundtrips...
December 1, 2009 at 6:29 pm
The fact that no one has shown you a non-cursor way to generate the views in your app is not proof that cursors are necessary.
If you changed the form of...
December 1, 2009 at 6:10 pm
there is never a need to hunt for tapes since any decent tape library can store months of tapes
So you're saying you never remove tapes for off-site storage?
I've seen many...
December 1, 2009 at 4:06 pm
If I am the DBA responsible for the data, and someone else is a network admin responsible for running the tape backup jobs, I am very uncomfortable with any tool...
December 1, 2009 at 1:35 pm
An easy way to view the definition of views, procs, etc. is "EXEC sp_helptext 'schema.object' ". I tested it on an INFORMATION_SCHEMA view from a user database, just to...
December 1, 2009 at 12:31 pm
chitranjan.ranga (11/22/2009)
do i have to create as many number of Source - destination pairs in my data flow or there is some other way round to attach multiple destination task...
December 1, 2009 at 12:21 pm
You could quibble that the complete rule is not stored in sysobjects, since the rule definition is in syscomments. But sysobjects is the best answer of the choices given.
November 20, 2009 at 7:46 am
Sorry, "SET CONTEXT_INFO {binary value}" works in SQL 2000 but the CONTEXT_INFO() function does not exist. You have to use
SELECT context_info
FROM master.dbo.sysprocesses
WHERE spid = @@SPID
Since it still requires a...
November 12, 2009 at 7:53 am
Sounds like a job for CONTEXT_INFO.
If you put "SET CONTEXT_INFO 0x0" before every BEGIN TRAN (and possibly after every COMMIT/ROLLBACK), put "IF CONTEXT_INFO() = 0x0" before every "EXEC ContextCheck", and...
November 12, 2009 at 7:37 am
I just did a server migration last weekend and faced the same issues. Some of the agent jobs are disabled because they are only run manually on demand. ...
November 12, 2009 at 6:18 am
jdurandt (7/28/2009)
November 11, 2009 at 1:22 pm
This script looks for indexes whose leading columns exactly match each foreign key, and generates CREATE commands where they are missing. It ignores INCLUDEd index columns.
/*Foreign Key Indexes
This query...
November 11, 2009 at 7:30 am
The reason a direct update of the Enabled field doesn't work is that SQL Agent has cached this information and won't see the change until it is restarted. The...
November 11, 2009 at 7:19 am
You can write a script that generates the commands for every agent job.
DECLARE @cmds TABLE (
idINT IDENTITY NOT NULL PRIMARY KEY CLUSTERED,
cmdVARCHAR(MAX))
DECLARE @i INT, @cmd VARCHAR(MAX)
INSERT INTO @cmds (cmd)
SELECT'USE msdb;...
November 11, 2009 at 7:05 am
Triggers react to DML and DDL events. If some code is suceptible to SQL injection attacks, you would have to predict the form of every possible attact to write...
November 6, 2009 at 10:43 am
Viewing 15 posts - 271 through 285 (of 1,315 total)