Viewing 15 posts - 136 through 150 (of 921 total)
Use an output parameter rather than a result set.
February 10, 2004 at 8:54 am
> Do you have a source for this information or a helpful source on this type of information.
Books OnLine.
February 10, 2004 at 8:22 am
No, that is processes, not user connections. Try this:
SELECT cntr_value 'User Connections'
FROM master.dbo.sysperfinfo
WHERE counter_name = 'User Connections'
February 10, 2004 at 8:21 am
February 3, 2004 at 3:24 pm
You can delete from a view by using an INSTEAD OF trigger on the view. Using Ray's example:
CREATE TRIGGER d_myView ON myView
INSTEAD OF DELETE AS
DELETE One
FROM One JOIN deleted ON Nbr = Nbr1
DELETE Two
FROM Two JPIN deleted ON...
February 3, 2004 at 11:58 am
Run sp_helpdb and check the Compatibility_Level values.
February 3, 2004 at 11:31 am
They're in msdb as that's where the jobs are, not master.
February 3, 2004 at 9:46 am
I would put the UnitIDs in question into a temporary table rather than a concatenated string. No need for a cursor, loop, or dynamic SQL. Using PKId as the primary key...
February 3, 2004 at 8:04 am
First of all, binary(16) is 16 bytes, not bits. Another thing is that the minimum number of bytes to store 16 bytes is 16...
February 3, 2004 at 6:32 am
Frank's friend Erland has written a fine essay on this problem:
February 3, 2004 at 5:37 am
I'd use binary(16). That would be compact yet eminently readable. Do the display formatting at the client.
February 3, 2004 at 5:33 am
Do not just shut down Windows to "reboot." That is forcing a SHUTDOWN WITH NOWAIT after a short time (20 seconds?), which means there will be no recent checkpoint.
Instead use...
February 2, 2004 at 3:30 pm
A .CKP file is created when a backup or restore fails in such a way that the WITH RESTART option can be used. You can delete the file now...
February 2, 2004 at 2:40 pm
Is the delay upon stopping or starting the SQL Server service? What is the recovery interval option set to on this server?
February 2, 2004 at 1:00 pm
CREATE PROC dbo.InMonth @Date datetime AS
SET NOCOUNT ON
SELECT Member_ID, Effective_Dt, Termination_Dt
FROM Members
WHERE Effective_Dt >= DATEADD(d,1-DAY(@Date),CONVERT(char(8),@Date,112))
AND Termination_Dt < DATEADD(m,1,DATEADD(d,1-DAY(@Date),CONVERT(char(8),@Date,112)))
February 2, 2004 at 10:39 am
Viewing 15 posts - 136 through 150 (of 921 total)