Viewing 10 posts - 3,001 through 3,010 (of 3,010 total)
Write a SELECT statement that has a WHERE clause with selection criteria that gives you the row that is "last" by your definition.
There is no inherent last row in a...
February 1, 2007 at 7:40 am
This seems to work OK:
declare @t table ( MachineID INT NOT NULL, EventID INT NOT NULL, State varchar(3) NOT NULL, PRIMARY KEY CLUSTERED (MachineID ,EventID) )
-- Load on/off state transition events insert into @t select x.MachineID, x.EventID, State...
January 31, 2007 at 6:36 pm
Ryan, I modified your script to use INT temp tables, instead of BIGINT, and got almost an 18% reduction in runtime. The following is the result of finding all primes...
January 31, 2007 at 4:37 pm
Since he did not provide the actual code that he was having trouble with, or the error he was getting, it is a little hard to provide help.
"Damn it Jim,...
January 31, 2007 at 4:13 pm
You can start the job on the other server using the OSQL command within an Operating System command (CmdExec) job step or using XP_CMDSHELL.
January 31, 2007 at 12:44 pm
Well, somtimes you just need a cursor.
There are no dumb tools, just dumb workmen.
January 31, 2007 at 12:31 pm
January 30, 2007 at 11:16 pm
You can also backup to multiple files using the regular SQL Server backup command, but if you need to compress them, you will have to use a file compression utility...
January 30, 2007 at 11:10 pm
If you want a date table, you can use my own personal favorite.
Date Table Function F_TABLE_DATE:
January 30, 2007 at 10:45 pm
Good stuff Ryan!
Did you compare the runtime against any of the other code posted on this thread?
January 30, 2007 at 10:31 pm
Viewing 10 posts - 3,001 through 3,010 (of 3,010 total)