Viewing 15 posts - 1,381 through 1,395 (of 5,103 total)
change the database cursor to:
DECLARE DBName_Cursor CURSOR FOR
select name
from master.dbo.sysdatabases
where name not in ('mssecurity','tempdb') and databasepropertyex(name,'Status') = 'ONLINE'
Order by name
November 26, 2007 at 2:36 pm
Not sure but maybe this is what you want ?
use ;
go
declare @vMin int, @vMax int, @vTotal int;
set @vTotal = 142607203;
set @vMin = 1;
set @vMax = 5000;
while @vmax <= @vTotal
begin
BEGIN TRANSACTION
insert...
November 26, 2007 at 2:32 pm
Arthur.Lorenzini (11/26/2007)
DECLARE @ConsultantIDASnVarChar(50)
,@StartDtASDateTime
,@EndDtASDateTime
SET @ConsultantID = '0000112'
SET @StartDt = '2007-05-01'
SET @Enddt = '2007-05-31'
DECLARE @QuarterASDateTime
Declare @YearASDateTime
SET@StartDt = Convert(DateTime,Convert(nVarChar(50),@StartDt,101) + ' 00:00:00.000')
SET@EndDt = Convert(DateTime,Convert(nVarChar(50),@EndDt,101) + ' 23:59:59.997')
SET @Quarter =...
November 26, 2007 at 2:18 pm
Copying *large* files (like backup files 😉 ) across the network causes such problems. I have struggled with M$ support to no avail. My solution was to upgrade to Enterprise...
November 26, 2007 at 2:12 pm
Songezo Rexe (11/26/2007)
wait_duration_ms wait_type
-------------------- ------------------------------------------------------------
2688 ...
November 26, 2007 at 1:46 pm
Warning! you shoul make sure that :
change distribution profile to 'Continue on data consistency errors'
is what you really want ...
November 20, 2007 at 3:14 pm
to be safe run ipconfig/flushdns
To prevent any cached entries from touching the wrong server.
November 20, 2007 at 1:54 pm
loach (11/20/2007)
November 20, 2007 at 1:37 pm
I would do the SET option at CONNECTION level 🙂
November 20, 2007 at 1:34 pm
Definitely was not expecting this much feed back. Apparenly Steve has a nack for "debates".
Good one Steve!
November 20, 2007 at 12:56 pm
Both have a primary key on PtId (varchar(32)) populated w/ newid().
Bad choice for an index seek 🙁
You should try the NEWSEQUENTIALID instead or another form of ID that is serchable...
November 14, 2007 at 2:33 pm
I have seen cases in which critical performance is required and Foreign keys are in the way. But those were extreme cases.
Cheers,
November 14, 2007 at 2:05 pm
Viewing 15 posts - 1,381 through 1,395 (of 5,103 total)