Viewing 15 posts - 526 through 540 (of 1,156 total)
well is there any benefit in performance in doing that or it is not necessary?
also, i thought that when you rebuild an index in a table you are supposed...
February 27, 2008 at 12:38 pm
Okay lets get formal here
ALTER TABLE dbo.candreg
ADD CONSTRAINT DF_candreg_totalexp DEFAULT 0 FOR totalexp
February 27, 2008 at 12:02 pm
Forgot to put not null
alter table candreg
alter column totalexp int default 0 not null
February 27, 2008 at 11:14 am
alter table candreg
alter column totalexp int default 0
February 27, 2008 at 11:13 am
hi i have a question, i just got told by the senior DBA that to consider that query i have to put at least the page count > 50 is...
February 27, 2008 at 11:07 am
Try doing the concatenation before the execution.
DECLARE @vcText int,
@db varchar(50),
@FilePath VARCHAR(500)
SET @db='msdb'
SET @FilePath = '\\ctsqladp01\Backup$\InstA\'+@db+'.lsb'
EXEC @vcText = master..xp_restore_verifyonly @filename = @FilePath
February 27, 2008 at 10:39 am
It starts from 1900 and moves forward. The result from below is 0. Anything below '1900-01-1 00:00:00.000' returns a negative number.
declare @dt datetime
set @dt = '1900-01-1 00:00:00.000'
select ...
February 27, 2008 at 10:12 am
Maybe this example will help clarify. You will note the date portion is always to the left of the period. The hours/min/sec etc are on the right. ...
February 27, 2008 at 10:09 am
datetime fields are stored as float values. You can verify this by converting a datetime to a float, as shown below.
declare @dt datetime
set @dt = '2008-02-28 00:00:00.000'
select cast (@dt...
February 27, 2008 at 10:03 am
Nice. I like this one because you are not using while loops :D.
February 27, 2008 at 8:56 am
I agree with Matt. It sounds like you need to put the CTE (and any other peices of code you want to call) into stored procedures. You can...
February 27, 2008 at 8:44 am
You have to end the case statement.
(CASE WHEN @vcText = '0' THEN @vcText ELSE SUBSTRING(@vcText, 5, CHARINDEX(',', @vcText, 1) - 5) end)
February 27, 2008 at 8:36 am
Well you are always going to recieve the print and the error messages because you are running the entire process as one batch. Try putting a Go after your...
February 27, 2008 at 8:14 am
Adam Haines (2/26/2008)
--------------------------------------------------------------------------------
Thanks for pointing that out. It makes sense as the clustered index actually affects the sorting of the data.
In this case, the sorting of the data is...
February 27, 2008 at 8:01 am
Viewing 15 posts - 526 through 540 (of 1,156 total)