** Drop procedures that will be created by this script
*/
if exists ( select * from sysobjects
where sysstat & 7 = 4
and name = "MS_sqlctrs_users" )
drop proc MS_sqlctrs_users
go
if exists ( select * from sysobjects
where sysstat & 7 = 4
and name = "MS_sqlctrs_locks" )
drop proc MS_sqlctrs_locks
go
dump tran master with truncate_only
go
if exists (select * from sysobjects
where sysstat & 7 = 4
and name = 'sp_addextendedproc')
drop procedure sp_addextendedproc
go
if exists (select * from sysobjects
where sysstat & 7 = 4
and name = 'sp_dropextendedproc')
drop procedure sp_dropextendedproc
go
if exists (select * from sysobjects
where sysstat & 7 = 4
and name = 'sp_helpextendedproc')
drop procedure sp_helpextendedproc
go
dump tran master with truncate_only
go
/*
** Delete messages that will be added by this script
*/
delete from sysmessages
where error in (114,227,423,1708,3609,5016,5017,7964,7965,7966,8113)
go
delete from sysmessages where error between 4027 and 4034
go
/*
** Add NT specific error messages.
*/
insert into sysmessages
values (114, 15, 2, "Browse mode is invalid for a statement that assigns values to a variable", NULL)
go
insert into sysmessages
values (227, 16, 2, "Maximum number of vector aggregates exceeded (%d max, %d found).", NULL)
go
insert into sysmessages
values (423, 16, 2, "Too many substitution nodes in worktable. (MAX: %d, ACTUAL: %d). Try splitting query or limiting SELECT list.", NULL)
go
insert into sysmessages
values (1708, 15, 2, "The total row size, %d, for table '%.*s' exceeds the maximum number of bytes per row, %d.", NULL)
go
insert into sysmessages
values (3609, 10, 2, "Attempt to update a column in the fabricated row of an inner table in an outer join.", NULL)
go
insert into sysmessages
values (5016, 16, 2, "Database TEMPDB cannot be altered when in RAM. Remove from RAM with 'sp_configure', stop\restart SQL Server, perform 'ALTER DATABASE', place in RAM with 'sp_configure', stop\restart SQL Server.", NULL)
go
insert into sysmessages
values (5017, 16, 2, "ALTER DATABASE failed. Database %.*s not created with 'for load' option.", NULL)
go
insert into sysmessages
values (7964, 16, 2, "Allocation page SDES not open.", NULL)
go
insert into sysmessages
values (7965, 16, 2, "Page is not an allocation page.", NULL)
go
insert into sysmessages
values (7966, 10, 2, "WARNING: NO_INDEX option of '%.*s' being used, checks on non-system indexes will be skipped", NULL)
go
insert into sysmessages
values (8113,16,1,"Unable to recompile '%.*s', '%s %.*s' is illegal in an open transaction.", NULL)
go
/*
** These are new messages for tape devices
** Messages 4027 - 4034
*/
insert into sysmessages
values (4027, 16, 2, "Mount first tape for %s of database '%s'.", NULL)
insert into sysmessages
values (4028, 10, 2, "End of tape has been reached, remove tape '%s' and mount next tape for %s of database '%s'.", NULL)
insert into sysmessages
values (4029, 10, 2, "Database '%s'%s(%d pages) dumped to file <%d> on tape '%s'.", NULL)
insert into sysmessages
values (4030, 16, 2, "Tape '%s' expires on day '%s' year '%s' and cannot be overwritten.", NULL)
insert into sysmessages
values (4031, 16, 2, "Creation date on tape '%s'(%s) does not match that of first volume(%s).", NULL)