insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14080 ,11 ,0 ,'The remote server does not exist or has not been designated as a valid Publisher.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14085 ,16 ,0 ,'The Subscriber information could not be obtained from the Distributor.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14088 ,16 ,0 ,'The table ''%s'' must have a primary key to be published using the transaction-based method.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    (14089,16,0,'The clustered index on materialized view ''%s'' may not contain nullable columns if it is to be published using the transaction-based method.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    (14090,16,0,'Error evaluating article synchronization object after column drop. The filter clause for article ''%s'' must not reference the dropped column.',1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14091 ,16 ,0 ,'The @type parameter passed to sp_helpreplicationdb must be either ''pub'' or ''sub''.' ,1033)

Go

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14092 ,16 ,0 ,'Could not change article because there is an existing subscription to the article.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14093 ,16 ,0 ,'Cannot grant or revoke access directly on publication ''%s'' because it uses the default publication access list. ' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
		(14094,16 ,0 ,'Could not subscribe to article ''%s'' because heterogeneous Subscriber ''%s'' does not support the @pre_creation_cmd parameter value ''truncate''.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
		(14095,16 ,0 ,'Could not subscribe to publication ''%s'' because heterogeneous Subscriber ''%s'' only supports the @sync_method parameter value ''bcp character'' .' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14096 ,16 ,0 ,'The path and name of the table creation script must be specified if the @pre_creation_cmd parameter value is ''drop''.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14097,16,0,'The ''status'' value must be ''no column names'', ''include column names'', ''string literals'', ''parameters'', ''DTS horizontal partitions'' or ''no DTS horizontal partitions''.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(14098,16,0 ,'Cannot drop Distribution Publisher ''%s''. The remote Publisher is using ''%s'' as Distributor.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14099 ,16 ,0 ,'The server ''%s'' is already defined as a Distributor.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    (14100,16,0,'Specify all articles when subscribing to a publication using concurrent snapshot processing.',1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14101 ,16 ,0 ,'The publication ''%s'' already has a Snapshot Agent defined.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    (14102,16,0,'Specify all articles when unsubscribing from a publication using concurrent snapshot processing.',1033)
	
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14105 ,10 ,0 ,'You have updated the distribution database property ''%s'' successfully.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14106 ,10 ,0 ,'Distribution retention periods must be greater than 0.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14107 ,10 ,0 ,'The @max_distretention value must be larger than the @min_distretention value.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14108 ,10 ,0 ,'Removed %ld history records from %s.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14109 ,10 ,0 ,'The @security_mode parameter value must be 0 (SQL Server Authentication) or 1 (Windows Authentication).' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
     values
     (14110 ,16 ,0 ,'For stored procedure articles, the @property parameter value must be ''description'', ''dest_table'', ''dest_object'', ''creation_script'', ''pre_creation_cmd'', ''schema_option'', or ''destination_owner''.',1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
        values
        (14111 ,16 ,0 ,'The @pre_creation_cmd parameter value must be ''none'' or ''drop''.',1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
        values
        (14112 ,16 ,0 ,'This procedure can be executed only against table-based articles.',1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14113,16,0,'Could not execute ''%s''. Check ''%s'' in the install directory.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
        values
        (14114,16,0,'''%s'' is not configured as a Distributor.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14115 ,16 ,0 ,'The property parameter value must be %s.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14117 ,16 ,0 ,'''%s'' is not configured as a distribution database.',1033)


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values	(14118 ,16 ,0 ,'A stored procedure can be published only as a ''serializable proc exec'' article, a ''proc exec'' article, or a ''proc schema only'' article.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14119 ,16 ,0 ,'Could not add the distribution database ''%s''. This distribution database already exists.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14120 ,16 ,0 ,'Could not drop the distribution database ''%s''. This distributor database is associated with a Publisher.' ,1033)


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14121 ,16 ,0 ,'Could not drop the Distributor ''%s''. This Distributor has associated distribution databases.' ,1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(14122,16,0,'The @article parameter value must be ''all'' for immediate_sync publications.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(14123,16,0,'The subscription @sync_type parameter value ''manual'' is no longer supported.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(14124,16,0,'A publication must have at least one article before a subscription to it can be created.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(14126,16,0,'You do not have the required permissions to complete the operation.' ,1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(14128,16,0,'Invalid @subscription_type parameter value. Valid options are ''push'' or ''pull''.',1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(14129,16,0,'The @status parameter value must be NULL for ''automatic'' sync_type when you add subscriptions to an immediate_sync publication.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(14135,16,0,'There is no subscription on Publisher ''%s'', publisher database ''%s'', publication ''%s''.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(14136,16,0,'The keyword ''all'' is reserved by replication stored procedures.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(14137,16,0,'The @value parameter value must be either ''true'' or ''false''.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(14138,16,0,'Invalid option name ''%s''.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(14139,16,0,'The replication system table ''%s'' already exists.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(14143,16,0,'Cannot drop Distributor Publisher ''%s''. There are Subscribers associated with it in the distribution database ''%s''.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(14144,16,0,'Cannot drop Subscriber ''%s''. There are subscriptions from it in the publication database ''%s''.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(14146,16,0,'The article parameter ''@schema_option'' cannot be NULL.',1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(14147,16,0,'Restricted publications are no longer supported.',1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(14148,16,0,'Invalid ''%s'' value. Valid values are ''true'' or ''false''.',1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14149 ,10 ,0 ,'Removed %ld replication history records in %s seconds (%ld row/secs).' ,1033)

GO

raiserror(' ',0,1)
raiserror('Adding messages for SQLServerAgent Replication subsystems / Jobs.',0,1) with nowait
go

---- Adding messages for SQLServerAgent Replication subsystems / Jobs.

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14150 ,10 ,0 ,'Replication-%s: agent %s succeeded. %s' ,1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(14151, 18, 0 ,'Replication-%s: agent %s failed. %s' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14152 ,10 ,0 ,'Replication-%s: agent %s scheduled for retry. %s' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14153 ,10 ,0 ,'Replication-%s: agent %s warning. %s' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14154 ,16 ,0 ,'The Distributor parameter must be ''@heartbeat_interval''.',1033)		 
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(14155,16,0,'Invalid article ID specified for procedure script generation.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(14156,16,0,'The custom stored procedure was not specified in the article definition.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(14157,10,0,'The subscription created by Subscriber ''%s'' to publication ''%s'' has expired and has been dropped.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(14158,10,0, 'Replication-%s: agent %s: %s.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(14159,16,0, 'Could not change property ''%s'' for article ''%s'' because there is an existing subscription to the article.', 1033)

-- Adding messages for maintaining maintenance plan SPs
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(14199,10,0, 'The specified job "%s" is not created for maintenance plans.', 1033)
GO
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14200 ,16 ,0 ,'The specified ''%s'' is invalid.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14201 ,10 ,0 ,'0 (all steps) .. ' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14202 ,10 ,0 ,'before or after @active_start_time' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14203 ,10 ,0 ,'sp_helplogins [excluding Windows NT groups]' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14204 ,10 ,0 ,'0 (non-idle), 1 (executing), 2 (waiting for thread), 3 (between retries), 4 (idle),  5 (suspended), 7 (performing completion actions)' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14205 ,10 ,0 ,'(unknown)' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14206 ,10 ,0 ,'0..n seconds' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14207 ,10 ,0 ,'-1 [no maximum], 0..n' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14208 ,10 ,0 ,'1..7 [1 = E-mail, 2 = Pager, 4 = NetSend]' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14209 ,10 ,0 ,'0..127 [1 = Sunday .. 64 = Saturday]' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14210 ,10 ,0 ,'notification' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14211 ,10 ,0 ,'server' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14212 ,10 ,0 ,'(all jobs)' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14213 ,16 ,0 ,'Core Job Details:' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14214 ,16 ,0 ,'Job Steps:' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14215 ,16 ,0 ,'Job Schedules:' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14216 ,16 ,0 ,'Job Target Servers:' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14217 ,16 ,0 ,'SQL Server Warning: ''%s'' has performed a forced defection of TSX server ''%s''. Run sp_delete_targetserver at the MSX in order to complete the defection.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14218 ,10 ,0 ,'hour' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14219 ,10 ,0 ,'minute' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14220 ,10 ,0 ,'second' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14221 ,16 ,0 ,'This job has one or more notifications to operators other than ''%s''. The job cannot be targeted at remote servers as currently defined.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14222 ,16 ,0 ,'Cannot rename the ''%s'' operator.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14223 ,16 ,0 ,'Cannot modify or delete operator ''%s'' while this server is a %s.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14224, 0, 0, 'Warning: The server name given is not the current MSX server (''%s'').' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14225 ,16 ,0 ,'Warning: Could not determine local machine name. This prevents MSX operations from being posted.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14226, 0, 0, '%ld history entries purged.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14227, 0, 0, 'Server defected from MSX ''%s''. %ld job(s) deleted.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14228, 0, 0, 'Server MSX enlistment changed from ''%s'' to ''%s''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14229, 0, 0, 'Server enlisted into MSX ''%s''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14230, 0, 0, 'SP_POST_MSX_OPERATION: %ld %s download instruction(s) posted.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14231, 0, 0, 'SP_POST_MSX_OPERATION Warning: The specified %s (''%s'') is not involved in a multiserver job.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14232 ,16 ,0 ,'Specify either a job_name, job_id, or an originating_server.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14233 ,16 ,0 ,'Specify a valid job_id (or 0x00 for all jobs).' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14234 ,16 ,0 ,'The specified ''%s'' is invalid (valid values are returned by %s).' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14235 ,16 ,0 ,'The specified ''%s'' is invalid (valid values are greater than 0 but excluding %ld).' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14236, 0, 0, 'Warning: Non-existent step referenced by %s.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14237 ,16 ,0 ,'When an action of ''REASSIGN'' is specified, the New Login parameter must also be supplied.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14238, 0, 0, '%ld jobs deleted.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14239, 0, 0, '%ld jobs reassigned to %s.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14240, 0, 0, 'Job applied to %ld new servers.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14241, 0, 0, 'Job removed from %ld servers.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14242 ,16 ,0 ,'Only a system administrator can reassign ownership of a job.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14243, 0, 0, 'Job ''%s'' started successfully.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14244 ,16 ,0 ,'Only a system administrator can reassign tasks.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14245 ,16 ,0 ,'Specify either the @name, @id, or @loginname of the task(s) to be deleted.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14246 ,16 ,0 ,'Specify either the @currentname or @id of the task to be updated.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14247 ,16 ,0 ,'Only a system administrator can view tasks owned by others.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14248 ,16 ,0 ,'This login is the owner of %ld job(s). You must delete or reassign these jobs before the login can be dropped.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14249 ,16 ,0 ,'Specify either @taskname or @oldloginname when reassigning a task.' ,1033)
go

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14250 ,16 ,0 ,'The specified %s is too long. It must contain no more than %ld characters.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14251 ,16 ,0 ,'Cannot specify ''%s'' as the operator to be notified.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14252 ,16 ,0 ,'Cannot perform this action on a job you do not own.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14253, 0, 0, '%ld (of %ld) job(s) stopped successfully.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14254, 0, 0, 'Job ''%s'' stopped successfully.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14255 ,16 ,0 ,'The owner (''%s'') of this job is either an invalid login, or is not a valid user of database ''%s''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14256 ,16 ,0 ,'Cannot start job ''%s'' (ID %s) because it does not have any job server(s) defined.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14257 ,16 ,0 ,'Cannot stop job ''%s'' (ID %s) because it does not have any job server(s) defined.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14258 ,16 ,0 ,'Cannot perform this operation while SQLServerAgent is starting. Try again later.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14259 ,16 ,0 ,'A schedule (ID %ld, ''%s'') for this job with this definition already exists.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14260 ,16 ,0 ,'You do not have sufficient permission to run this command.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14261 ,16 ,0 ,'The specified %s (''%s'') already exists.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14262 ,16 ,0 ,'The specified %s (''%s'') does not exist.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14263 ,16 ,0 ,'Target server ''%s'' is already a member of group ''%s''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14264 ,16 ,0 ,'Target server ''%s'' is not a member of group ''%s''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14265 ,25 ,0 ,'The MSSQLServer service terminated unexpectedly.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14266 ,16 ,0 ,'The specified ''%s'' is invalid (valid values are: %s).' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14267 ,16 ,0 ,'Cannot add a job to the ''%s'' job category.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14268 ,16 ,0 ,'There are no jobs at this server that originated from server ''%s''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14269 ,16 ,0 ,'Job ''%s'' is already targeted at server ''%s''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14270 ,16 ,0 ,'Job ''%s'' is not currently targeted at server ''%s''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14271 ,16 ,0 ,'A target server cannot be named ''%s''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14272 ,16 ,0 ,'Object-type and object-name must be supplied as a pair.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14273 ,16 ,0 ,'You must provide either @job_id or @job_name (and, optionally, @schedule_name), or @schedule_id.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14274 ,16 ,0 ,'Cannot add, update, or delete a job (or its steps or schedules) that originated from an MSX server.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14275 ,16 ,0 ,'The originating server must be either ''(local)'' or ''%s''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14276 ,16 ,0 ,'''%s'' is a permanent %s category and cannot be deleted.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14277 ,16 ,0 ,'The command script does not destroy all the objects that it creates. Revise the command script.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14278 ,16 ,0 ,'The schedule for this job is invalid (reason: %s).' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14279 ,16 ,0 ,'Supply either @job_name or @originating_server.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14280 ,16 ,0 ,'Supply either a job name (and job aspect), or one or more job filter parameters.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14281, 0, 0, 'Warning: The @new_owner_login_name parameter is not necessary when specifying a ''DELETE'' action.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14282 ,16 ,0 ,'Supply either a date (created or last modified) and a data comparator, or no date parameters at all.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14283 ,16 ,0 ,'Supply @target_server_groups or @target_servers, or both.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14284 ,16 ,0 ,'Cannot specify a job ID for a new job. An ID will be assigned by the procedure.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14285 ,16 ,0 ,'Cannot add a local job to a multiserver job category.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14286 ,16 ,0 ,'Cannot add a multiserver job to a local job category.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14287 ,16 ,0 ,'The ''%s'' supplied has an invalid %s.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14288 ,16 ,0 ,'%s cannot be before %s.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14289 ,16 ,0 ,'%s cannot contain ''%s'' characters.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14290 ,16 ,0 ,'This job is currently targeted at the local server so cannot also be targeted at a remote server.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14291 ,16 ,0 ,'This job is currently targeted at a remote server so cannot also be targeted at the local server.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14292 ,16 ,0 ,'There are two or more tasks named ''%s''. Specify %s instead of %s to uniquely identify the task.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14293 ,16 ,0 ,'There are two or more jobs named ''%s''. Specify %s instead of %s to uniquely identify the job.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14294 ,16 ,0 ,'Supply either %s or %s to identify the job.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14295 ,16 ,0 ,'Frequency Type 0x2 (OnDemand) is no longer supported.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14296 ,16 ,0 ,'This server is already enlisted into MSX ''%s''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14297 ,16 ,0 ,'Cannot enlist into the local machine.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14298 ,16 ,0 ,'This server is not currently enlisted into an MSX.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14299 ,16 ,0 ,'Server ''%s'' is an MSX. Cannot enlist one MSX into another MSX.' ,1033)
GO

---- Error messages for tasks.
---- Removing errors 142xx per Richard Hughes

GO

raiserror(' ',0,1)
raiserror('Adding messages for SQLOLE.',0,1) with nowait
go

---- Error messages for SQLOLE


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14300 ,16 ,0 ,'Circular dependencies exist. Dependency evaluation cannot continue.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14301 ,16 ,0 ,'Logins other than the current user can only be seen by members of the sysadmin role.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14302 ,16 ,0 ,'You must upgrade your client to version 6.5 of SQL-DMO and SQL Server Enterprise Manager to connect to this server. The upgraded versions will administer both SQL Server version 6.5 and 6.0 (if sqlole65.sql is run).' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (14303 ,16 ,0 ,'Stored procedure ''%s'' failed to access registry key.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (14304 ,16 ,0 ,'Stored procedure ''%s'' can run only on Windows 2000 servers.' ,1033)
go


---- Error messages for xpadsi throught sp_ActiveDirectory_SCP and sp_ActiveDirectory_Obj
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14350 ,16 ,0 ,'Cannot initialize COM library because CoInitialize failed.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14351 ,16 ,0 ,'Cannot complete this operation because an unexpected error occurred.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14352 ,16 ,0 ,'Cannot find Active Directory information in the registry for this SQL Server instance. Run sp_ActiveDirectory_SCP again.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (14353 ,16 ,0 ,'Cannot determine the service account for this SQL Server instance.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (14354 ,16 ,0 ,'Cannot start the MSSQLServerADHelper service. Verify that the service account for this SQL Server instance has the necessary permissions to start the MSSQLServerADHelper service.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (14355 ,16 ,0 ,'The MSSQLServerADHelper service is busy. Retry this operation later.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (14356 ,16 ,0 ,'The Windows Active Directory client is not installed properly on the computer where this SQL Server instance is running. LoadLibrary failed to load ACTIVEDS.DLL.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (14357 ,16 ,0 ,'Cannot list ''%s'' in Active Directory because the name is too long. Active Directory common names cannot exceed 64 characters.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (14358 ,16 ,0 ,'Cannot determine the SQL Server Agent proxy account for this SQL Server instance or the account is not a domain user account. Use xp_sqlagent_proxy_account to configure SQL Server Agent to use a domain user account as the proxy account.' ,1033)

go



insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values (14410, 16, 0, 'You must supply either a plan_name or a plan_id.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values (14411, 16, 0, 'Cannot delete this plan. The plan contains enlisted databases.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values (14412, 16, 0, 'The destination database is already part of a log shipping plan.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values (14413, 16, 0, 'This database is already log shipping.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values (14414, 16, 0, 'A log shipping monitor is already defined.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values (14415, 16, 0, 'The user name cannot be null when using SQL Server authentication.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values (14416, 16, 0, 'This stored procedure must be run in msdb.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values (14417, 16, 0, 'Cannot delete the monitor server while databases are participating in log shipping.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values (14418, 16, 0, 'The specified @backup_file_name was not created from database ''%s''.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values (14419, 16, 0, 'The specified @backup_file_name is not a database backup.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values (14420, 16, 128, 'The log shipping source %s.%s has not backed up for %s minutes.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values (14421, 16, 128, 'The log shipping destination %s.%s is out of sync by %s minutes.', 1033)

go

--inserted 14422-14451 

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
  (14422, 16, 0, 'Supply either @plan_id or @plan_name.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
  (14423, 16, 0,'Other databases are enlisted on this plan and must be removed before the plan can be deleted.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
  (14424, 16, 0,'The database ''%s'' is already involved in log shipping.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
  (14425, 16, 0,'The database ''%s'' does not seem to be involved in log shipping.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
  (14426, 16, 0,'A log shipping monitor is already defined. Call sp_define_log_shipping_monitor with @delete_existing = 1.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
  (14427, 16, 0,'A user name is necessary for SQL Server security.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
  (14428, 16, 0,'Could not remove the monitor as there are still databases involved in log shipping.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
  (14429, 16, 0,'There are still secondary servers attached to this primary.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14430, 16, 0, 'Invalid destination path %s.', 1033 )
go

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
  (14440, 16, 0,'Could not set single user mode.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
  (14441, 16, 0,'Role change succeeded.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
  (14442, 16, 0,'Role change failed.' , 1033)


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
  (14450, 16, 0,'The specified @backup_file_name was not taken from database ''%s''.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
  (14451, 16, 0,'The specified @backup_file_name is not a database backup.', 1033)

GO
backup Transaction master with no_log
GO

raiserror(' ',0,1)
raiserror('Adding messages for Alerts, Operators and Jobs.',0,1) with nowait
go

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14500 ,16 ,0 ,'Supply either a non-zero message ID, non-zero severity, or non-null performance condition.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14501 ,16 ,0 ,'An alert (''%s'') has already been defined on this condition.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14502 ,16 ,0 ,'The @target_name parameter must be supplied when specifying an @enum_type of ''TARGET''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14503 ,16 ,0 ,'The @target_name parameter should not be supplied when specifying an @enum_type of ''ALL'' or ''ACTUAL''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14504 ,16 ,0 ,'''%s'' is the fail-safe operator. You must make another operator the fail-safe operator before ''%s'' can be dropped.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14505 ,16 ,0 ,'Specify a null %s when supplying a performance condition.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14506 ,16 ,0 ,'Cannot set alerts on message ID %ld.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14507 ,16 ,0 ,'A performance condition must be formatted as: ''object_name|counter_name|instance_name|comparator(> or < or =)|numeric value''.' ,1033)
go
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14539 ,16 ,0 , 'Only a Standard or Enterprise edition of SQL Server can be enlisted into an MSX.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14540 ,16 ,0 , 'Only a SQL Server running on Microsoft Windows NT can be enlisted into an MSX.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14541 ,16 ,0 , 'The version of the MSX (%s) is not recent enough to support this TSX.  Version %s or later is required at the MSX.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14542 ,16 ,0 , 'It is invalid for any TSQL step of a multiserver job to have a non-null %s value.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14543 ,16 ,0 ,'Login ''%s'' owns one or more multiserver jobs. Ownership of these jobs can only be assigned to members of the %s role.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14544 ,16 ,0 ,'This job is owned by ''%s''. Only a job owned by a member of the %s role can be a multiserver job.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14545 ,16 ,0 ,'The %s parameter is not valid for a job step of type ''%s''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14546 ,16 ,0 ,'The %s parameter is not supported on Windows 95/98 platforms.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14547 ,10 ,0 ,'Warning: This change will not be downloaded by the target server(s) until an %s for the job is posted using %s.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14548 ,10 ,0 ,'Target server ''%s'' does not have any jobs assigned to it.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14549 ,10 ,0 ,'(Description not requested.)' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14550 ,10 ,0 ,'Command-Line Subsystem' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14551 ,10 ,0 ,'Replication Snapshot Subsystem' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14552 ,10 ,0 ,'Replication Transaction-Log Reader Subsystem' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14553 ,10 ,0 ,'Replication Distribution Subsystem' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14554 ,10 ,0 ,'Replication Merge Subsystem' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14555 ,10 ,0 ,'Active Scripting Subsystem' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14556 ,10 ,0 ,'Transact-SQL Subsystem' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14557 ,10 ,0 ,'[Internal]' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14558 ,10 ,0 ,'(encrypted command)' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14559 ,10 ,0 ,'(append output file)' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14560 ,10 ,0 ,'(include results in history)' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14561 ,10 ,0 ,'(normal)' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14562 ,10 ,0 ,'(quit with success)' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14563 ,10 ,0 ,'(quit with failure)' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14564 ,10 ,0 ,'(goto next step)' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14565 ,10 ,0 ,'(goto step)' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14566 ,10 ,0 ,'(idle)' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14567 ,10 ,0 ,'(below normal)' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14568 ,10 ,0 ,'(above normal)' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14569 ,10 ,0 ,'(time critical)' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14570 ,10 ,0 ,'(Job outcome)' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14571 ,10 ,0 ,'No description available.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14572 ,10 ,0 ,'@freq_interval must be at least 1 for a daily job.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14573 ,10 ,0 ,'@freq_interval must be a valid day of the week bitmask [Sunday = 1 .. Saturday = 64] for a weekly job.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14574 ,10 ,0 ,'@freq_interval must be between 1 and 31 for a monthly job.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14575 ,10 ,0 ,'@freq_relative_interval must be one of 1st (0x1), 2nd (0x2), 3rd [0x4], 4th (0x8) or Last (0x10).' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14576 ,10 ,0 ,'@freq_interval must be between 1 and 10 (1 = Sunday .. 7 = Saturday, 8 = Day, 9 = Weekday, 10 = Weekend-day) for a monthly-relative job.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14577 ,10 ,0 ,'@freq_recurrence_factor must be at least 1.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14578 ,10 ,0 ,'Starts whenever the CPU usage has remained below %ld percent for %ld seconds.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14579 ,10 ,0 ,'Automatically starts when SQLServerAgent starts.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14580 ,10 ,0 ,'job' ,1033)
go
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14581 ,10 ,0 ,'Replication Transaction Queue Reader Subsystem' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14585 ,16 ,0 ,'Only the owner of DTS Package ''%s'' or a member of the sysadmin role may reassign its ownership.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14586 ,16 ,0 ,'Only the owner of DTS Package ''%s'' or a member of the sysadmin role may create new versions of it.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14587 ,16 ,0 ,'Only the owner of DTS Package ''%s'' or a member of the sysadmin role may drop it or any of its versions.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14588 ,10 ,0 ,'ID.VersionID = ' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14589 ,10 ,0 ,'[not specified]' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14590 ,16 ,0 ,'DTS Package ''%s'' already exists with a different ID in this category.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14591 ,16 ,0 ,'DTS Category ''%s'' already exists in the specified parent category.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14592 ,16 ,0 ,'DTS Category ''%s'' was found in multiple parent categories. You must uniquely specify the category to be dropped.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14593 ,16 ,0 ,'DTS Category ''%s'' contains packages and/or other categories. You must drop these first, or specify a recursive drop.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14594 ,10 ,0 ,'DTS Package' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14595 ,16 ,0 ,'DTS Package ''%s'' exists in different categories. You must uniquely specify the package.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14596 ,16 ,0 ,'DTS Package ''%s'' exists in another category.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14597 ,16 ,0 ,'DTS Package ID ''%s'' already exists with a different name.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14598 ,16 ,0 ,'Cannot drop the Local, Repository, or LocalDefault DTS categories.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(14599 ,10 ,0 ,'Name' ,1033)
GO

raiserror(' ',0,1)
raiserror('Adding generic error messages for system stored procedures.',0,1)

raiserror('sysmessages.error>=15000 ....',0,1) with nowait
GO

---- Reserved 15000-15999 for system sprocs.


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15001 ,16 ,0 ,'Object ''%ls'' does not exist or is not a valid object for this operation.', 1033)
go

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15002 ,16 ,0 ,'The procedure ''%s'' cannot be executed within a transaction.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
-- DEVNOTE: Server devs should not use 15003, use 15247 instead. This msg although obsolete
-- is still left in because other groups such as *fighter & repl are using it.
	(15003 ,16 ,0 ,'Only members of the %s role can execute this stored procedure.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15004 ,16 ,0 ,'Name cannot be NULL.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15005,0 ,0 ,'Statistics for all tables have been updated.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15006 ,16 ,0 ,'''%s'' is not a valid name because it contains invalid characters.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15007 ,16 ,0 ,'The login ''%s'' does not exist.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15008 ,16 ,0 ,'User ''%s'' does not exist in the current database.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15009 ,16 ,0 ,'The object ''%s'' does not exist in database ''%s''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15010 ,16 ,0 ,'The database ''%s'' does not exist. Use sp_helpdb to show available databases.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15011 ,16 ,0 ,'Database option ''%s'' does not exist.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15012 ,16 ,0 ,'The device ''%s'' does not exist. Use sp_helpdevice to show available devices.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15013,0 ,0 ,'Table ''%s'': No columns without statistics found.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15014 ,16 ,0 ,'The role ''%s'' does not exist in the current database.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15015 ,16 ,0 ,'The server ''%s'' does not exist. Use sp_helpserver to show available servers.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15016 ,16 ,0 ,'The default ''%s'' does not exist.' ,1033)

Go

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15017 ,16 ,0 ,'The rule ''%s'' does not exist.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15018,0 ,0 ,'Table ''%s'': Creating statistics for the following columns:' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15019 ,16 ,0 ,'The extended stored procedure ''%s'' does not exist.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15020,0 ,0 ,'Statistics have been created for the %d listed columns of the above tables.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15021 ,16 ,0 ,'There are no remote users mapped to any local user from remote server ''%s''.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15022 ,16 ,0 ,'The specified user name is already aliased.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15023 ,16 ,0 ,'User or role ''%s'' already exists in the current database.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15024 ,16 ,0 ,'The group ''%s'' already exists in the current database.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15025 ,16 ,0 ,'The login ''%s'' already exists.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15026 ,16 ,0 ,'Logical device ''%s'' already exists.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15027 ,16 ,0 ,'There are no remote users mapped to local user ''%s'' from remote server ''%s''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15028 ,16 ,0 ,'The server ''%s'' already exists.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15029 ,16 ,0 ,'The data type ''%s'' already exists in the current database.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15030 ,16 ,0 ,'The read-only bit cannot be turned off because the database is in standby mode.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15031 ,0 ,0 ,'''Virtual_device'' device added.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15032 ,16 ,0 ,'The database ''%s'' already exists.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15033 ,16 ,0 ,'''%s'' is not a valid official language name.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15034 ,16 ,0 ,'The application role password must not be NULL.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15035 ,16 ,0 ,'''%s'' is not a database device.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15036 ,16 ,0 ,'The data type ''%s'' does not exist.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15037 ,16 ,0 ,'The physical data type ''%s'' does not allow nulls.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15038 ,16 ,0 ,'User-defined data types based on timestamp are not allowed.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15039 ,16 ,0 ,'The language %s already exists in syslanguages.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15040 ,16 ,0 ,'User-defined error messages must have an ID greater than 50000.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15041 ,16 ,0 ,'User-defined error messages must have a severity level between 1 and 25.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15043 ,16 ,0 ,'You must specify ''REPLACE'' to overwrite an existing message.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15044 ,16 ,0 ,'''%s'' is an unknown device type. Use ''disk'', ''tape'', or ''pipe''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15045 ,16 ,0 ,'The logical name cannot be NULL.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15046 ,16 ,0 ,'The physical name cannot be NULL.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15047 ,16 ,0 ,'The only permitted options for a tape device are ''skip'' and ''noskip''.' ,1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(15048, 0, 0, 'Valid values of database compatibility level are %d, %d, %d, or %d.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15049 ,11 ,0 ,'Cannot unbind from ''%s''. Use ALTER TABLE DROP CONSTRAINT.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15050 ,11 ,0 ,'Cannot bind default ''%s''. The default must be created using the CREATE DEFAULT statement.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (15051 ,11 ,0 ,'Cannot rename the table because it is published for replication.' ,1033)
GO
insert into master..sysmessages(error ,severity ,dlevel ,description ,msglangid)
	values
	(15052 ,0 ,0 ,'Prior to updating sysdatabases entry for database ''%s'', mode = %d and status = %d (status suspect_bit = %d).' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15053 ,16 ,0 ,'Objects exist which are not owned by the database owner.' ,1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(15054, 0, 0, 'The current compatibility level is %d.', 1033)
insert into master..sysmessages(error ,severity ,dlevel ,description ,msglangid)
	values
	(15055 ,11, 0, 'Error. Updating sysdatabases returned @@error <> 0.' ,1033)
insert into master..sysmessages(error ,severity ,dlevel ,description ,msglangid)
	values
	(15056 ,0 ,0 ,'No row in sysdatabases was updated because mode and status are already correctly reset. No error and no changes made.'  ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15057 ,16 ,0 ,'List of %s name contains spaces, which are not allowed.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15058 ,16 ,0 ,'List of %s has too few names.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15059 ,16 ,0 ,'List of %s has too many names.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15060 ,16 ,0 ,'List of %s names contains name(s) which have ''%s'' non-alphabetic characters.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15061 ,16 ,0 ,'Add device request denied. A physical device named ''%s'' already exists.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15062 ,16 ,0 ,'The guest user cannot be mapped to a login name.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15063 ,16 ,0 ,'The login already has an account under a different user name.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15064 ,11 ,0 ,'PRIMARY KEY and UNIQUE KEY constraints do not have space allocated.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15065 ,16 ,0 ,'All user IDs have been assigned.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15066 ,16 ,0 ,'A default-name mapping of a remote login from remote server ''%s'' already exists.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15067 ,16 ,0 ,'''%s'' is not a local user. Remote login denied.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15068 ,16 ,0 ,'A remote user ''%s'' already exists for remote server ''%s''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15069 ,16 ,0 ,'One or more users are using the database. The requested operation cannot be completed.' ,1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(15070, 0, 0, 'Object ''%s'' was successfully marked for recompilation.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15071 ,16 ,0 ,'Usage: sp_addmessage <msgnum>,<severity>,<msgtext> [,<language> [,FALSE | TRUE [,REPLACE]]]' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15072 ,16 ,0 ,'Usage: sp_addremotelogin remoteserver [, loginame [,remotename]]' ,1033)
insert into master..sysmessages(error ,severity ,dlevel ,description ,msglangid)
	values
	(15073 ,0 ,0 ,'For row in sysdatabases for database ''%s'', the status bit %d was forced off and mode was forced to 0.' ,1033)
insert into master..sysmessages(error ,severity ,dlevel ,description ,msglangid)
	values
	(15074 ,0 ,0 ,'Warning: You must recover this database prior to access.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15075 ,16 ,0 ,'The data type ''%s'' is reserved for future use.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15076 ,16 ,0 ,'Default, table, and user data types must be in the current database.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15077 ,16 ,0 ,'Rule, table, and user data type must be in the current database.' ,1033)

Go

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15078 ,16 ,0 ,'The table or view must be in the current database.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15079 ,10 ,0 ,'Queries processed: %d.' ,1033)

insert into master..sysmessages(error, severity, dlevel, description, msglangid)
	values
	(15081, 16, 0,'Membership of the public role cannot be changed.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15082 ,11 ,0 ,'NULL is not an acceptable parameter value for this procedure. Use a percent sign instead.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15083 ,16 ,0 ,'Physical data type ''%s'' does not accept a collation' ,1033)


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15084 ,16 ,0 ,'The column or user data type must be in the current database.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15085 ,16 ,0 ,'Usage: sp_addtype name, ''data type'' [,''NULL'' | ''NOT NULL'']' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15086 ,16 ,0 ,'Invalid precision specified. Precision must be between 1 and 38.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15087 ,16 ,0 ,'Invalid scale specified. Scale must be less than precision and positive.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15088 ,16 ,0 ,'The physical data type is fixed length. You cannot specify the length.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15089 ,11 ,0 ,'Cannot change the ''%s'' option of a database while another user is in the database.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15090 ,16 ,0 ,'There is already a local server.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15091 ,16 ,0 ,'You must specify a length with this physical data type.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15092 ,16 ,0 ,'Invalid length specified. Length must be between 1 and 8000 bytes.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15093 ,16 ,0 ,'''%s'' is not a valid date order.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15094 ,16 ,0 ,'''%s'' is not a valid first day.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15095 ,16 ,0 ,'Insert into syslanguages failed. Language not added.' ,1033)

insert into master..sysmessages(error, severity, dlevel, description, msglangid)
	values
	(15097, 16, 0,'The size associated with an extended property cannot be more than 7,500 bytes.', 1033)
go

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15100 ,16 ,0 ,'Usage: sp_bindefault defaultname, objectname [, ''futureonly'']' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15101 ,16 ,0 ,'Cannot bind a default to a column of data type timestamp.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15102 ,16 ,0 ,'Cannot bind a default to an identity column.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15103 ,16 ,0 ,'Cannot bind a default to a column created with or altered to have a default value.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15104 ,16 ,0 ,'You do not own a table named ''%s'' that has a column named ''%s''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15105 ,16 ,0 ,'You do not own a data type with that name.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15106 ,16 ,0 ,'Usage: sp_bindrule rulename, objectname [, ''futureonly'']' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15107 ,16 ,0 ,'Cannot bind a rule to a column of data type text, ntext, image, or timestamp.' ,1033)
Go

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15109 ,16 ,0 ,'Cannot change the owner of the master database.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15110 ,16 ,0 ,'The proposed new database owner is already a user in the database.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15111 ,16 ,0 ,'The proposed new database owner is already aliased in the database.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15112 ,11 ,0 ,'The third parameter for table option ''text in row'' is invalid. It should be ''on'', ''off'', ''0'', or a number from 24 through 7000.',1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15123 ,16 ,0 ,'The configuration option ''%s'' does not exist, or it may be an advanced option.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15124 ,16 ,0 ,'The configuration option ''%s'' is not unique.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15125 ,16 ,0 ,'Trigger ''%s'' is not a trigger for ''%s''.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15126 ,16 ,0 ,'Trigger ''%s'' was not found.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15127 ,16 ,0 ,'Cannot set the default language to a language ID not defined in syslanguages.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15129 ,16 ,0 ,'''%d'' is not a valid value for configuration option ''%s''.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15130 ,16 ,0 ,'Table ''%s'' already has a ''%s'' trigger for ''%s''.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15131 ,16 ,0 ,'Usage: sp_dbremove <dbname> [,dropdev]' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15132 ,16 ,0 ,'Cannot change default database belonging to someone else.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15133 ,16 ,0 ,'INSTEAD OF trigger ''%s'' cannot be associated with an order.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15134 ,16 ,0 ,'No alias exists for the specified user.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15135, 16,0,'Object is invalid. Extended properties are not permitted on ''%s'', or the object does not exist.', 1033)

Go

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15139 ,16 ,0 ,'The device is a RAM disk and cannot be used as a default device.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15140 ,16 ,0 ,'Usage: sp_diskdefault logicalname {defaulton | defaultoff}' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15142 ,16 ,0 ,'Cannot drop the role ''%s''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15143 ,16 ,0 ,'''%s'' is not a valid option for the @updateusage parameter. Enter either ''true'' or ''false''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15144 ,16 ,0 ,'The role has members. It must be empty before it can be dropped.' ,1033)

Go

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15174 ,16 ,0 ,'Login ''%s'' owns one or more database(s). Change the owner of the following database(s) before dropping login:' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15175 ,16 ,0 ,'Login ''%s'' is aliased or mapped to a user in one or more database(s). Drop the user or alias before dropping the login.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15176 ,16 ,0 ,'The only valid @parameter value is ''WITH_LOG''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15177 ,16 ,0 ,'Usage: sp_dropmessage <msg number> [,<language> | ''ALL'']' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15178 ,16 ,0 ,'Cannot drop a message with an ID less than 50000.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15179 ,16 ,0 ,'Message number %u does not exist.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15180 ,16 ,0 ,'Cannot drop. The data type is being used.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15181 ,16 ,0 ,'Cannot drop the database owner.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15182 ,16 ,0 ,'Cannot drop the guest user from master or tempdb.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15183 ,16 ,0 ,'The user owns objects in the database and cannot be dropped.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15184 ,16 ,0 ,'The user owns data types in the database and cannot be dropped.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15185 ,16 ,0 ,'There is no remote user ''%s'' mapped to local user ''%s'' from the remote server ''%s''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15190 ,16 ,0 ,'There are still remote logins for the server ''%s''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15191 ,16 ,0 ,'Usage: sp_dropserver server [, droplogins]' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15193 ,16 ,0 ,'This procedure can only be used on system tables.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15194 ,16 ,0 ,'Cannot re-create index on this table.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15197 ,16 ,0 ,'There is no text for object ''%s''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15198 ,16 ,0 ,'The name supplied (%s) is not a user, role, or aliased login.' ,1033)

Go

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15200 ,16 ,0 ,'There are no remote servers defined.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15201 ,16 ,0 ,'There are no remote logins for the remote server ''%s''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15202 ,16 ,0 ,'There are no remote logins defined.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15203 ,16 ,0 ,'There are no remote logins for ''%s''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15204 ,16 ,0 ,'There are no remote logins for ''%s'' on remote server ''%s''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15205 ,16 ,0 ,'There are no servers defined.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15206 ,16 ,0 ,'Invalid Remote Server Option: ''%s''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15210 ,16 ,0 ,'Only members of the sysadmin role can use the loginame option. The password was not changed.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15211 ,16 ,0 ,'Old (current) password incorrect for user. The password was not changed.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15216 ,16 ,0 ,'''%s'' is not a valid option for the @delfile parameter.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15217, 16, 0, 'Property cannot be updated or deleted. Property ''%s'' does not exist for ''%s''.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15218 ,16 ,0 ,'Object ''%s'' is not a table.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15220 ,16 ,0 ,'Usage: sp_remoteoption [remoteserver, loginame, remotename, optname, {true | false}]' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15221 ,16 ,0 ,'Remote login option does not exist or cannot be set by user. Run sp_remoteoption with no parameters to see options.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15222 ,16 ,0 ,'Remote login option ''%s'' is not unique.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15223 ,11 ,0 ,'Error: The input parameter ''%s'' is not allowed to be null.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15224 ,11 ,0 ,'Error: The value for the @newname parameter contains invalid characters or violates a basic restriction (%s).' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15225 ,11 ,0 ,'No item by the name of ''%s'' could be found in the current database ''%s'', given that @itemtype was input as ''%s''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15227 ,16 ,0 ,'The database ''%s'' cannot be renamed.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15228 ,16 ,0 ,'A member of the sysadmin role must set database ''%s'' to single user mode with sp_dboption before it can be renamed.' ,1033)


-- 15229-15232 Available
Go

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15233, 16,0,'Property cannot be added. Property ''%s'' already exists for ''%s''.', 1033)


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15234 ,16 ,0 ,'Object is stored in sysprocedures and has no space allocated directly.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15235 ,16 ,0 ,'Views do not have space allocated.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15236 ,16 ,0 ,'Column ''%s'' has no default.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15237 ,16 ,0 ,'User data type ''%s'' has no default.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15238 ,16 ,0 ,'Column ''%s'' has no rule.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15239 ,16 ,0 ,'User data type ''%s'' has no rule.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15241 ,16 ,0 ,'Usage: sp_dboption [dbname [,optname [,''true'' | ''false'']]]' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15242 ,16 ,0 ,'Database option ''%s'' is not unique.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15243 ,16 ,0 ,'The option ''%s'' cannot be changed for the master database.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15244 ,16 ,0 ,'Only members of the sysadmin role or the database owner may set database options.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15245 ,16 ,0 ,'DBCC DBCONTROL error. Database was not placed offline.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15247, 16,0,'User does not have permission to perform this action.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15248 ,11 ,0 ,'Error: The parameter @oldname is either ambiguous or the claimed @itemtype (%s) was wrong.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15249 ,11 ,0 ,'Error: Explicit @itemtype ''%s'' is unrecognized (%d).' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15250 ,16 ,0 ,'The database name component of the object qualifier must be the name of the current database.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15251 ,16 ,0 ,'Invalid ''%s'' specified. It must be %s.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15252 ,16 ,0 ,'The primary or foreign key table name must be given.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) values
	(15253,11,0,'Syntax error parsing SQL identifier ''%s''.',1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15254 ,16 ,0 ,'Users other than the database owner or guest exist in the database. Drop them before removing the database.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15255 ,11 ,0 ,'''%s'' is not a valid value for @autofix. The only valid value is ''auto''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15256 ,16 ,0 ,'Usage: sp_certify_removable <dbname> [,''auto'']' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15257 ,16 ,0 ,'The database that you are attempting to certify cannot be in use at the same time.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15258 ,16 ,0 ,'The database must be owned by a member of the sysadmin role before it can be removed.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15261 ,16 ,0 ,'Usage: sp_create_removable <dbname>,<syslogical>,<sysphysical>,<syssize>,<loglogical>,<logphysical>,<logsize>,<datalogical1>,<dataphysical1>,<datasize1> [,<datalogical2>,<dataphysical2>,<datasize2>...<datalogical16>,<dataphysical16>,<datasize16>]' ,1033)

Go

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15262 ,0 ,0 ,'Invalid file size entered. All files must be at least 1 MB.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15264 ,16 ,0 ,'Could not create the ''%s'' portion of the database.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15266 ,16 ,0 ,'Cannot make ''%s'' database removable.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15269 ,16 ,0 ,'Logical data device ''%s'' not created.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15270 ,16 ,0 ,'You cannot specify a length for user data types based on sysname.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15271 ,16 ,0 ,'Invalid @with_log parameter value. Valid values are ''true'' or ''false''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15275 ,16 ,0 ,'FOREIGN KEY constraints do not have space allocated.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15277 ,16 ,0 ,'The only valid @parameter_value values are ''true'' or ''false''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15278 ,16 ,0 ,'Login ''%s'' is already mapped to user ''%s'' in database ''%s''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15279 ,16 ,0 ,'You must add the us_english version of this message before you can add the ''%s'' version.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15280 ,16 ,0 ,'All localized versions of this message must be dropped before the us_english version can be dropped.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15283 ,16 ,0 ,'The name ''%s'' contains too many characters.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15284 ,16 ,0 ,'The user has granted or revoked privileges to the following in the database and cannot be dropped.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15285 ,16 ,0 ,'The special word ''%s'' cannot be used for a logical device name.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15286 ,16 ,0 ,'Terminating this procedure. The @action ''%s'' is unrecognized. Try ''REPORT'', ''UPDATE_ONE'', or ''AUTO_FIX''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15287 ,16 ,0 ,'Terminating this procedure. ''%s'' is a forbidden value for the login name parameter in this procedure.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15289 ,16 ,0 ,'Terminating this procedure. Cannot have an open transaction when this is run.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15290 ,16 ,0 ,'Terminating this procedure. The Action ''%s'' is incompatible with the other parameter values (''%s'', ''%s'').' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15291 ,16 ,0 ,'Terminating this procedure. The %s name ''%s'' is absent or invalid.' ,1033)

Go

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15292 ,0 ,0 ,'The row for user ''%s'' will be fixed by updating its login link to a login already in existence.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15293 ,0 ,0 ,'Barring a conflict, the row for user ''%s'' will be fixed by updating its link to a new login. Consider changing the new password from null.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15294 ,0 ,0 ,'The number of orphaned users fixed by adding new logins and then updating users was %d.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15295 ,0 ,0 ,'The number of orphaned users fixed by updating users was %d.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15298 ,0 ,0 ,'New login created.' ,1033)

GO
backup Transaction master with no_log
GO
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15300 ,11 ,0 ,'No recognized letter is contained in the parameter value for General Permission Type (%s). Valid letters are in this set: %s .' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15301, 16, 0, 'Collation ''%s'' is supported for Unicode data types only and cannot be set at either the database or server level.', 1033)
go

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15302 ,11 ,0 ,'Database_Name should not be used to qualify owner.object for the parameter into this procedure.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15303 ,11 ,0 ,'The "user options" config value (%d) was rejected because it would set incompatible options.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15304 ,16 ,0 ,'The severity level of the ''%s'' version of this message must be the same as the severity level (%ld) of the us_english version.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15305 ,16 ,0 ,'The @TriggerType parameter value must be ''insert'', ''update'', or ''delete''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15306 ,16 ,0 ,'Cannot change the compatibility level of replicated or distributed databases.',1033)
insert into master..sysmessages(error,severity,dlevel,description,msglangid)
	values
	( 15307 ,16 ,0 , 'Could not change the merge publish option because the server is not set up for replication.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15308 ,16 ,0 ,'You must set database ''%s'' to single user mode with sp_dboption before fixing indexes on system tables.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15311 ,16 ,0 ,'The file named ''%s'' does not exist.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15312 ,16 ,0 ,'The file named ''%s'' is a primary file and cannot be removed.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15318 ,0 ,0 ,'All fragments for database ''%s'' on device ''%s'' are now dedicated for log usage only.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15319 ,17 ,0 ,'Error: DBCC DBREPAIR REMAP failed for database ''%s'' (device ''%s'').' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15321 ,16 ,0 ,'There was some problem removing ''%s'' from sysaltfiles.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15322 ,0 ,0 ,'File ''%s'' was removed from tempdb, and will take effect upon server restart.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15323 ,16 ,0 ,'The selected index does not exist on table ''%s''.',1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15324 ,16 ,0 ,'The option %s cannot be changed for the ''%s'' database.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15325 ,16 ,0 ,'The current database does not contain a %s named ''%ls''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15326 ,0 ,0 ,'No extended stored procedures exist.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15327 ,0 ,0 ,'The database is now offline.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15328,0 ,0 ,'The database is offline already.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15330 ,11 ,0 ,'There are no matching rows on which to report.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15331 ,11 ,0 ,'The user ''%s'' cannot take the action auto_fix due to duplicate SID.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15333 ,11 ,0 ,'Error: The qualified @oldname references a database (%s) other than the current database.' ,1033)

Go

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15335 ,11 ,0 ,'Error: The @newname value ''%s'' is already in use as a %s name and would cause a duplicate that is not permitted.' ,1033)


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15336 ,16 ,0 ,'Object ''%s'' cannot be renamed because the object participates in enforced dependencies.' ,1033)
go

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15337 ,0 ,0 ,'Caution: sysdepends shows that other objects (views, procedures and so on) are referencing this object by its old name. These objects will become invalid, and should be dropped and re-created promptly.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15338 ,0 ,0 ,'The %s was renamed to ''%s''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15339 ,0 ,0 ,'Creating ''%s''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15340 ,0 ,0 ,'Alias user added.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15341 ,0 ,0 ,'Granted database access to ''%s''.' ,1033)


---- For sp_fallback_ (approx 15344-15385)  1996/02/28 13:31


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15354 ,0 ,0 ,'Usage: sp_detach_db <dbname>, [TRUE|FALSE]' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15358 ,0 ,0 ,'User-defined filegroups should be made read-only.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15363 ,16 ,0 ,'The role ''%s'' already exists in the current database.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15379 ,11 ,0 ,'The server option value ''%s'' supplied is unrecognized.' ,1033)


---- For sp_tableoption approx 15386-15392

insert into master..sysmessages(error, severity, dlevel, description, msglangid)
	values
   (15394, 16, 0,  'Collation ''%s'' is not supported by the operating system', 1033)
go

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15387 ,11 ,0 ,'If the qualified object name specifies a database, that database must be the current database.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15388 ,11 ,0 ,'There is no user table matching the input name ''%s'' in the current database.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) 	-- for sp_autostats
	values
	(15390, 11 ,0 ,'Input name ''%s'' does not have a matching user table or indexed view in the current database.' ,1033)
go

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15395 ,11 ,0 ,'The qualified old name could not be found for item type ''%s''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15398 ,11 ,0 ,'Only objects in the master database owned by dbo can have the startup setting changed.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15399 ,11 ,0 ,'Could not change startup option because this option is restricted to objects that have no parameters.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15401 ,11 ,0 ,'Windows NT user or group ''%s'' not found. Check the name again.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15402 ,11 ,0 ,'''%s'' is not a fixed server role.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15405 ,11 ,0 ,'Cannot use the reserved user or role name ''%s''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15407 ,11 ,0 ,'''%s'' is not a valid Windows NT name. Give the complete name: <domain\username>.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15409 ,11 ,0 ,'''%s'' is not a role.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15410 ,11 ,0 ,'User or role ''%s'' does not exist in this database.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15412 ,11 ,0 ,'''%s'' is not a known fixed role.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15413 ,11 ,0 ,'Cannot make a role a member of itself.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15414, 16 ,0 ,'Cannot set compatibility level because database has a view or computed column that is indexed. These indexes require a SQL Server compatible database.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15415 ,11 ,0 ,'User is a member of more than one group. sp_changegroup is set up for backward compatibility and expects membership in one group at most.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15416 ,16 ,0 ,'Usage: sp_dbcmptlevel [dbname [, compatibilitylevel]]', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15417 ,16 ,0 ,'Cannot change the compatibility level of the ''%s'' database.' ,1033)	
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15418 ,16 ,0 ,'Only members of the sysadmin role or the database owner may set the database compatibility level.' ,1033)	
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15419 ,16 ,0 ,'Supplied parameter @sid should be binary(16).',1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15420 ,16 ,0 ,'The group ''%s'' does not exist in this database.' ,1033)	
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15421 ,16 ,0 ,'The user owns role(s) in the database and cannot be dropped.' ,1033)	
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15422 ,16 ,0 ,'Application roles can only be activated at the ad hoc level.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15423 ,0 ,0 ,'The password for application role ''%s'' has been changed.' ,1033)	
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15424 ,0 ,0 ,'New role added.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15425 ,0 ,0 ,'New application role added.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) values
	(15426,16,0,'You must specify a provider name with this set of properties.',1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) values
	(15427,16,0,'You must specify a provider name for unknown product ''%ls''.',1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) values
	(15428,16,0,'You cannot specify a provider or any properties for product ''%ls''.',1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) values
	(15429,16,0,'''%ls'' is an invalid product name.',1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) values
	(15430,19,0,'Limit exceeded for number of servers.',1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15431 ,16 ,0 ,'You must specify the @rolename parameter.' ,1033)	
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15432 ,16 ,0 ,'Stored procedure ''%s'' can only be executed at the ad hoc level.' ,1033)	
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15433 ,16 ,0 ,'Supplied parameter @sid is in use.',1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15434 ,16 ,0 ,'Could not drop login ''%s'' as the user is currently logged in.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15435,0 ,0 ,'Database successfully published.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15436,0 ,0 ,'Database successfully enabled for subscriptions.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15437,0 ,0 ,'Database successfully published using merge replication.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15438,0 ,0 ,'Database is already online.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15439,0 ,0 ,'Database is now online.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15440,0 ,0 ,'Database is no longer published.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15441,0 ,0 ,'Database is no longer enabled for subscriptions.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15442,0 ,0 ,'Database is no longer enabled for merge publications.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15443,0 ,0 ,'Checkpointing database that was changed.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15444,0 ,0 ,'''Disk'' device added.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15445,0 ,0 ,'''Diskette'' device added.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15446,0 ,0 ,'''Tape'' device added.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15447,0 ,0 ,'''Pipe'' device added.' ,1033)
-- 15448 available
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15449,0 ,0 ,'Type added.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15450 ,0 ,0 ,'New language inserted.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15452,0 ,0 ,'No alternate languages are available.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15453,0 ,0 ,'us_english is always available, even though it is not in syslanguages.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15454,0 ,0 ,'Language deleted.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15456,0 ,0 ,'Valid configuration options are:' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15457,0 ,0 ,'Configuration option ''%ls'' changed from %ld to %ld. Run the RECONFIGURE statement to install.' ,1033)

go



-- 15506-15510 available
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15511,0 ,0 ,'Default bound to column.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15512,0 ,0 ,'Default bound to data type.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15513,0 ,0 ,'The new default has been bound to columns(s) of the specified user data type.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15514,0 ,0 ,'Rule bound to table column.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15515,0 ,0 ,'Rule bound to data type.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15516,0 ,0 ,'The new rule has been bound to column(s) of the specified user data type.' ,1033)
-- 15517,15518 available
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15519,0 ,0 ,'Default unbound from table column.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15520,0 ,0 ,'Default unbound from data type.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15521,0 ,0 ,'Columns of the specified user data type had their defaults unbound.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15522,0 ,0 ,'Rule unbound from table column.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15523,0 ,0 ,'Rule unbound from data type.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15524,0 ,0 ,'Columns of the specified user data type had their rules unbound.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15525,0 ,0 ,'sp_checknames is used to search for non 7-bit ASCII characters.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15526,0 ,0 ,'in several important columns of system tables. The following' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15527,0 ,0 ,'columns are searched:' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15528,0 ,0 ,'    In master:' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15536,0 ,0 ,'    In all databases:' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15543,0 ,0 ,'Looking for non 7-bit ASCII characters in the system tables of database ''%s''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15544,0 ,0 ,'Table.column ''%s''' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15545,0 ,0 ,'The following database names contain non 7-bit ASCII characters.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15546,0 ,0 ,'If you wish to change these names, use ''%s''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15547,0 ,0 ,'The following logins have default database names that contain' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15548,0 ,0 ,'non 7-bit ASCII characters. If you wish to change these names use' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15549,0 ,0 ,'sp_defaultdb.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15550,0 ,0 ,'The following servers have ''initialization file'' names that contain' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15551,0 ,0 ,'non 7-bit ASCII characters. If you wish to change these names,' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15552,0 ,0 ,'use UPDATE.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15553,0 ,0 ,'Database ''%s'' has no object, user, and so on' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15554,0 ,0 ,'names that contain non 7-bit ASCII characters.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15555,0 ,0 ,'The database name provided ''%s'' must be the current database when executing this stored procedure.' ,1033)
GO
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15564,0 ,0 ,'The following device names contain non 7-bit ASCII characters.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15565,0 ,0 ,'The following login names contain non 7-bit ASCII characters.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15566,0 ,0 ,'The following remote login names contain non 7-bit ASCII characters.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15567,0 ,0 ,'The following server names contain non 7-bit ASCII characters.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15568,0 ,0 ,'The following column and parameter names contain non 7-bit ASCII characters.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15569,0 ,0 ,'The following index names contain non 7-bit ASCII characters.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15570,0 ,0 ,'The following object names contain non 7-bit ASCII characters.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15571,0 ,0 ,'The following segment names contain non 7-bit ASCII characters.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15572,0 ,0 ,'The following data type names contain non 7-bit ASCII characters.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 15573,0 ,0 ,'The following user or role names contain non 7-bit ASCII characters.' ,1033)

insert into master..sysmessages(error, severity, dlevel, description, msglangid)
	values
	(15574, 10, 0,'This object does not have any statistics.', 1033)
go

insert into master..sysmessages(error, severity, dlevel, description, msglangid)
	values
	(15575, 10, 0,'This object does not have any statistics or indexes.', 1033)
go


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) values
	(15576,16,0,'You cannot set network name on server ''%ls'' because it is not a linked SQL Server.',1033)
	go

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) values
	(15577,10,0,'Warning: A linked server that refers to the originating server is not a supported scenario.  If you wish to use a four-part name to reference a local table, please use the actual server name rather than an alias.',1033)
	go

GO
--- RESERVE 15600-15699 for sp_fulltext_*
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) values
	(15600, 15, 0, 'An invalid parameter or option was specified for procedure ''%s''.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) values
	(15601, 16, 0,'Full-Text Search is not enabled for the current database. Use sp_fulltext_database to enable Full-Text Search.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) values
	(15604, 16, 0, 'Cannot drop full-text catalog ''%ls'' because it contains a full-text index.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) values
	(15605, 16, 0, 'A full-text index for table ''%ls'' has already been created.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) values
	(15606, 16, 0, 'You must first create a full-text index on table ''%ls''.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) values
	(15607, 16, 0, '''%ls'' is not a valid index to enforce a full-text search key. You must specify a unique, non-nullable, single-column index.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) values
	(15608, 16, 0, 'Full-text search has already been activated for table ''%ls''.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) values
	(15609, 16, 0, 'Cannot activate full-text search for table ''%ls'' because no columns have been enabled for full-text search.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) values
	(15610, 16, 0, 'You must deactivate full-text search on table ''%ls'' before adding columns to or removing columns from the full-text index.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) values
	(15611, 16, 0, 'Column ''%ls'' of table ''%ls'' cannot be used for full-text search because it is not a character-based column.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(15612 ,16 ,0 ,'DBCC DBCONTROL error. Database was not made read-only.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15613 ,0 ,0 ,'The database is now read-only.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15614 ,0 ,0 ,'The database already is read-only.' ,1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(15615 ,16 ,0 ,'DBCC DBCONTROL error. Database was not made single user.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15616 ,0 ,0 ,'The database is now single user.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15617 ,0 ,0 ,'The database already is single user.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15618 ,0 ,0 ,'The database is now read/write.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15619 ,0 ,0 ,'The database already is read/write.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15620 ,0 ,0 ,'The database is now multiuser.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15621 ,0 ,0 ,'The database already is multiuser.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15622 ,10 ,0 ,'No permission to access database ''%s''.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (15623 ,10 ,0 ,'Enabling %ls option for database ''%ls''.' ,1033)


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (15624 ,10 ,0 ,'Disabling %ls option for database ''%ls''.' ,1033)


go

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (15625 ,10 ,0 ,'Option ''%ls'' not recognized for ''%ls'' parameter.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (15626 ,10 ,0 ,'You attempted to acquire a transactional application lock without an active transaction.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
    (15627 ,10 ,0 ,'sp_dboption command failed.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(15630, 16, 0, 'Full-text search must be activated on table ''%ls'' before this operation can be performed.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(15631, 16, 0, 'Full-text change tracking is currently enabled for table ''%ls''.', 1033)
go

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(15632, 16, 0, 'Full-text change tracking must be started on table ''%ls'' before full-text auto propagation can begin.', 1033)
go
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(15633, 16, 0, 'Full-text auto propagation is currently enabled for table ''%ls''.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(15634, 16, 0, 'Full-text change tracking must be started on table ''%ls'' before the changes can be flushed.', 1033)
go

insert into master..sysmessages(error, severity, dlevel, description, msglangid)
	values
	(15635, 16, 0,'Cannot execute ''%ls'' because the database is in read-only access mode.' ,1033)

insert into master..sysmessages(error, severity, dlevel, description, msglangid)
	values
	(15636, 16, 0,'Full-text catalog ''%ls'' cannot be populated because the database is in single-user access mode.' ,1033)

insert into master..sysmessages(error, severity, dlevel, description, msglangid)
	values
	(15637, 16, 0,'Full-text index for table ''%ls'' cannot be populated because the database is in single-user access mode.' ,1033)


insert into master..sysmessages(error, severity, dlevel, description, msglangid)
	values
	(15638, 10, 0,'Warning: Full-text index for table ''%ls'' cannot be populated because the database is in single-user access mode. Change tracking is stopped for this table. Use sp_fulltext_table to start change tracking.' ,1033)

insert into master..sysmessages(error, severity, dlevel, description, msglangid)
	values
	(15639, 10, 0,'Warning: Table ''%s'' does not have the option ''text in row'' enabled and has full-text indexed columns that are of type image, text, or ntext. Full-text change tracking cannot track WRITETEXT or UPDATETEXT operations performed on these columns.' ,1033)

go



insert into master..sysmessages(error, severity, dlevel, description, msglangid)
	values
	(15640, 16, 0,'sp_fulltext_table ''start_full'' must be executed on table ''%ls''. Columns affecting the index have been added or dropped since the last index full population.', 1033)


insert into master..sysmessages(error, severity, dlevel, description, msglangid)
	values
	(15642, 16, 0,'The ongoing population is necessary to ensure an up-to-date index. If needed, stop change tracking, and then deactivate the full-text index population.', 1033)
go

insert into master..sysmessages(error, severity, dlevel, description, msglangid)
	values
	(15643, 10, 0,'Warning: This operation did not succeed on one or more tables. A table may be inactive, or a full-text index population may already be active.', 1033)
go

insert into master..sysmessages(error, severity, dlevel, description, msglangid)
	values
	(15644, 16, 0,'Full-text index population failed to start on this table. Execute sp_fulltext_table ''%ls'', ''%ls'' to update the index.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15645 ,16 ,0 ,'Column ''%ls'' does not exist.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(15646 ,16 ,0 ,'Column ''%ls'' is not a computed column.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
    (15647 ,10 ,0 ,'No views with schema binding reference this table.' ,1033)

GO
backup Transaction master with no_log
GO

raiserror(' ',0,1)
raiserror('Adding Web Server messages.',0,1)

raiserror('sysmessages.error>=16000 ....',0,1) with nowait

GO

---- The message range 16800 to 16899 is reserved for Web Server messages

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16801 ,11 ,0 ,'sp_dropwebtask requires at least one defined parameter @outputfile or @procname.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16802 ,11 ,0 ,'sp_dropwebtask cannot find the specified task.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16803 ,11 ,0 ,'sp_runwebtask requires at least one defined parameter @outputfile or @procname.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16804 ,11 ,0 ,'SQL Web Assistant: Could not establish a local connection to SQL Server.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16805 ,11 ,0 ,'SQL Web Assistant: Could not execute the SQL statement.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16806 ,11 ,0 ,'SQL Web Assistant: Could not bind the parameter to the SQL statement.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16807 ,11 ,0 ,'SQL Web Assistant: Could not obtain a bind token.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16808 ,11 ,0 ,'SQL Web Assistant: Could not find the existing trigger. This could be due to encryption.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16809 ,11 ,0 ,'SQL Web Assistant failed on the call to SQLGetData.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16810 ,11 ,0 ,'SQL Web Assistant failed on the call to SQLFetch.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16811 ,11 ,0 ,'SQL Web Assistant failed to bind a results column.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16812 ,11 ,0 ,'SQL Web Assistant: The @query parameter must be specified.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16813 ,11 ,0 ,'SQL Web Assistant: Parameters can be passed either by name or position.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16814 ,11 ,0 ,'SQL Web Assistant: Invalid parameter.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16815 ,11 ,0 ,'SQL Web Assistant: @procname is not valid.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16816 ,11 ,0 ,'SQL Web Assistant: @outputfile is not valid.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16817 ,11 ,0 ,'SQL Web Assistant: Could not read the given file.' ,1033)


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16820 ,11 ,0 ,'SQL Web Assistant failed because the state of the Web task in msdb..MSwebtasks is invalid.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16821 ,11 ,0 ,'SQL Web Assistant: Could not open the output file.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16822 ,11 ,0 ,'SQL Web Assistant: Could not open the template file.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16823 ,11 ,0 ,'SQL Web Assistant: Could not allocate enough memory to satisfy this request.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16824 ,11 ,0 ,'SQL Web Assistant: The template file specified in the Web task has a bad size.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16825 ,11 ,0 ,'SQL Web Assistant: Could not read the template file.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16826 ,11 ,0 ,'SQL Web Assistant: Could not find the specified marker for data insertion in the template file.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16827 ,11 ,0 ,'SQL Web Assistant: Could not write to the output file.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16828 ,11 ,0 ,'SQL Web Assistant: @tabborder must be tinyint.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16829 ,11 ,0 ,'SQL Web Assistant: @singlerow must be 0 or 1. Cannot specify this parameter with @nrowsperpage.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16830 ,11 ,0 ,'SQL Web Assistant: The @blobfmt parameter specification is invalid.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16831 ,11 ,0 ,'SQL Web Assistant: The output file name is mandatory for every column specified in the @blobfmt parameter.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16832 ,11 ,0 ,'SQL Web Assistant: Procedure called with too many parameters.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16833 ,11 ,0 ,'SQL Web Assistant: @nrowsperpage must be a positive number and it cannot be used with @singlerow.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16834 ,11 ,0 ,'SQL Web Assistant: Read/write operation on text, ntext, or image column failed.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16838 ,11 ,0 ,'SQL Web Assistant: Could not find the table in the HTML file.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16839 ,11 ,0 ,'SQL Web Assistant: Could not find the matching end table tag in the HTML file.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16841 ,11 ,0 ,'SQL Web Assistant: The @datachg parameter cannot be specified with the given @whentype value.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16842 ,11 ,0 ,'SQL Web Assistant: Could not find and drop the necessary trigger for updating the Web page.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16843 ,11 ,0 ,'SQL Web Assistant: Could not add the necessary trigger for the @datachg parameter. There could be an existing trigger on the table with missing or encrypted text.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16844 ,11 ,0 ,'SQL Web Assistant: Incorrect syntax for the @datachg parameter.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16845 ,11 ,0 ,'SQL Web Assistant: @datachg must be specified for the given @whentype option.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16846 ,11 ,0 ,'SQL Web Assistant: @unittype and/or @numunits must be specified for the given @whentype option.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16847 ,11 ,0 ,'SQL Web Assistant: @fixedfont must be 0 or 1.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16848 ,11 ,0 ,'SQL Web Assistant: @bold must be 0 or 1.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16849 ,11 ,0 ,'SQL Web Assistant: @italic must be 0 or 1.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16850 ,11 ,0 ,'SQL Web Assistant: @colheaders must be 0 or 1.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16851 ,11 ,0 ,'SQL Web Assistant: @lastupdated must be 0 or 1.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16852 ,11 ,0 ,'SQL Web Assistant: @HTMLheader must be in the range 1 to 6.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16853 ,11 ,0 ,'SQL Web Assistant: @username is not valid.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16854 ,11 ,0 ,'SQL Web Assistant: @dbname is not valid.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16855 ,11 ,0 ,'SQL Web Assistant: @whentype must be in the range 1 to 9.' ,1033)
GO

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16856 ,11 ,0 ,'SQL Web Assistant: @unittype must be in the range 1 to 4.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16857 ,11 ,0 ,'SQL Web Assistant: @targetdate is invalid. It must be a valid date after 1900-01-01.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16858 ,11 ,0 ,'SQL Web Assistant: The @targettime parameter must be between 0 and 240000.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16859 ,11 ,0 ,'SQL Web Assistant: @dayflags must be 1, 2, 4, 8, 16, 32, or 64.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16860 ,11 ,0 ,'SQL Web Assistant: @numunits must be greater than 0.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16861 ,11 ,0 ,'SQL Web Assistant: @targetdate must be specified for the given @whentype option.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16862 ,11 ,0 ,'SQL Web Assistant: @dayflags must be specified for the given @whentype option.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16863 ,11 ,0 ,'SQL Web Assistant: URL specification is invalid.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16864 ,11 ,0 ,'SQL Web Assistant: @blobfmt is invalid. The file must include the full path to the output_file location.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16865 ,11 ,0 ,'SQL Web Assistant: URL hyperlink text column must not be of the image data type.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16866 ,11 ,0 ,'SQL Web Assistant: Could not obtain the number of columns in @query.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16867 ,11 ,0 ,'SQL Web Assistant: URL hyperlink text column is missing in @query.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16868 ,11 ,0 ,'SQL Web Assistant failed on the call to SQLColAttribute.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16869 ,11 ,0 ,'SQL Web Assistant: Columns of data type image cannot have a template.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16870 ,11 ,0 ,'SQL Web Assistant: Internal error. Could not read @ parameters.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16871 ,11 ,0 ,'SQL Web Assistant: Invalid @charset. Execute sp_enumcodepages for a list of character sets.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16873 ,11 ,0 ,'SQL Web Assistant: Invalid @codepage. Execute sp_enumcodepages for a list of code pages.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16874 ,11 ,0 ,'SQL Web Assistant: Internal error. Cannot translate to the specified code page.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16875 ,11 ,0 ,'SQL Web Assistant: Translation to the desired code page is unavailable on this system.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16876 ,11 ,0 ,'SQL Web Assistant: Internal error. Could not obtain COM interface ID.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16877 ,11 ,0 ,'SQL Web Assistant: Internal error. Could not obtain COM language ID.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16878 ,11 ,0 ,'SQL Web Assistant: Internal error. Could not initialize COM library.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16879 ,11 ,0 ,'SQL Web Assistant: Internal error. Could not translate from Unicode to the specified code page.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16880 ,11 ,0 ,'SQL Web Assistant: Internal error. Could not create translation object. Make sure that the file MLang.dll is in your system directory.' ,1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(16881 ,16 ,0 ,'SQL Web Assistant: This version is not supported on Win32s of Windows 3.1.' ,1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(16882, 16, 0, 'SQL Web Assistant: Web task not found. Verify the name of the task for possible errors.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (16883, 16, 0, 'SQL Web Assistant: Could not list Web task parameters. xp_readwebtask requires @procname.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (16884, 16, 0, 'SQL Web Assistant: Procedure name is required to convert Web tasks.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (16885, 16, 0, 'SQL Web Assistant: Could not upgrade the Web task to 7.0. The Web task will remain in 6.5 format and will need to be re-created.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (16886, 16, 0, 'SQL Web Assistant: Could not update Web tasks system table. The Web task remains in 6.5 format.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (16887, 16, 0, 'SQL Web Assistant: @procname parameter is missing. The parameter is required to upgrade a Web task to 7.0.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (16888, 16, 0, 'SQL Web Assistant: Source code page is not supported on the system.  Ensure @charset and @codepage language files are installed on your system.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (16889, 16, 0, 'SQL Web Assistant: Could not send Web task row to the client.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (16890, 16, 0, 'SQL Web Assistant: ODS error occurred. Could not send Web task parameters.', 1033)

GO

raiserror(' ',0,1)
raiserror('Adding cursor messages.',0,1) with nowait

GO

---- The message range 16900 to 16999 is reserved for cursor related messages


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16901 ,16 ,1 ,'%hs: This feature has not been implemented yet.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16902 ,16 ,1 ,'%hs: The value of parameter %hs is invalid.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16903 ,16 ,1 ,'%hs procedure called with incorrect number of parameters.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16904 ,16 ,1 ,'sp_cursor: optype: You can only specify ABSOLUTE in conjunction with DELETE or UPDATE.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16905 ,16 ,1 ,'The cursor is already open.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16907 ,16 ,1 ,'%hs is not allowed in cursor statements.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16909 ,16 ,1 ,'%hs: The cursor identifier value provided (%x) is not valid.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16911 ,16 ,1 ,'%hs: The fetch type %hs cannot be used with forward only cursors.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16914 ,16 ,1 ,'%hs procedure called with too many parameters.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16915 ,16 ,1 ,'A cursor with the name ''%.*ls'' already exists.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16916 ,16 ,1 ,'A cursor with the name ''%.*ls'' does not exist.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16917 ,16 ,1 ,'Cursor is not open.' ,1033)
GO
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16922 ,16 ,0 ,'Cursor Fetch: Implicit conversion from data type %s to %s is not allowed.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16924 ,16 ,1 ,'Cursorfetch: The number of variables declared in the INTO list must match that of selected columns.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16925 ,16 ,1 ,'The fetch type %hs cannot be used with dynamic cursors.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16926 ,16 ,1 ,'sp_cursoroption: The column ID (%d) does not correspond to a text, ntext, or image column.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16927, 16, 0,'Cannot fetch into text, ntext, and image variables.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16929 ,16 ,1 ,'The cursor is READ ONLY.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16930 ,16 ,1 ,'The requested row is not in the fetch buffer.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16931 ,16 ,1 ,'There are no rows in the current fetch buffer.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16932 ,16 ,1 ,'The cursor has a FOR UPDATE list and the requested column to be updated is not in this list.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16933 ,16 ,1 ,'The cursor does not include the table being modified or the table is not updatable through the cursor.' ,1033)



insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16934 ,16 ,1 ,'Optimistic concurrency check failed. The row was modified outside of this cursor.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16935 ,16 ,1 ,'No parameter values were specified for the sp_cursor-%hs statement.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16936 ,16 ,1 ,'sp_cursor: One or more values parameters were invalid.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16937 ,16 ,1 ,'A server cursor is not allowed on a remote stored procedure or stored procedure with more than one SELECT statement. Use a default result set or client cursor.' ,1033)


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 16938 ,16 ,0 ,'sp_cursoropen/sp_cursorprepare: The statement parameter can only be a single select or a single stored procedure.' ,1033)
GO
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16940 ,16 ,1 ,'Cannot specify UPDLOCK or TABLOCKX with READ ONLY or INSENSITIVE cursors.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16941 ,16 ,1 ,'Cursor updates are not allowed on tables opened with the NOLOCK option.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16942 ,16 ,1 ,'Could not generate asynchronous keyset. The cursor has been deallocated.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16943 ,16 ,1 ,'Could not complete cursor operation because the table schema changed after the cursor was declared.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16944 ,16 ,1 ,'Cannot specify UPDLOCK or TABLOCKX on a read-only table in a cursor.' ,1033)
insert into master..sysmessages(error,severity,dlevel,description,msglangid)
	values
	(16945,16,1,'The cursor was not declared.', 1033)
insert into master..sysmessages(error,severity,dlevel,description,msglangid)
	values
	(16946,16,1,'Could not open the cursor because one or more of its tables have gone out of scope.',
	1033)
insert into master..sysmessages(error,severity,dlevel,description,msglangid)
	values(16947, 10, 1,'No rows were updated or deleted.',
	1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16948 ,16 ,0 ,'The variable ''%.*ls'' is not a cursor variable, but it is used in a place where a cursor variable is expected.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16949 ,16 ,0 ,'The variable ''%.*ls'' is a cursor variable, but it is used in a place where a cursor variable is not valid.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16950 ,10 ,0 ,'The variable ''%.*ls'' does not currently have a cursor allocated to it.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16951 ,16 ,0 ,'The variable ''%.*ls'' cannot be used as a parameter because a CURSOR OUTPUT parameter must not have a cursor allocated to it before execution of the procedure.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16952 ,16 ,0 ,'A cursor variable cannot be used as a parameter to a remote procedure call.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16953 ,10 ,0 ,'Remote tables are not updatable. Updatable keyset-driven cursors on remote tables require a transaction with the REPEATABLE_READ or SERIALIZABLE isolation level spanning the cursor.' ,1033)
go

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	( 16954 ,16 ,0 ,'Executing SQL directly; no cursor.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(16955, 16, 0, 'Could not create an acceptable cursor.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(16956, 10, 0, 'Cursor created was not of the requested type.', 1033)


	insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16957, 16, 0,'FOR UPDATE cannot be specified on a READ ONLY cursor.', 1033) 


	insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16958, 16, 0,'Could not complete cursor operation because the set options have changed since the cursor was declared.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16959, 16, 0,'Unique table computation failed.', 1033)

insert into master..sysmessages(error, severity, dlevel, description, msglangid)
	values
	(16960, 16, 0,'You have reached the maximum number of cursors allowed.', 1033)

insert into master..sysmessages(error, severity, dlevel, description, msglangid)
	values
	(16961, 10, 0,'One or more FOR UPDATE columns have been adjusted to the first instance of their table in the query.', 1033)
go
	insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16962, 16, 0,'The target object type is not updatable through a cursor.', 1033)
	insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16963, 16, 0,'You cannot specify scroll locking on a cursor that contains a remote table.', 1033)
go

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(16996, 16, 0, '%hs cannot take output parameters.', 1033)
go



insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16998 ,20 ,1 ,'Internal Cursor Error: A cursor work table operation failed.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(16999 ,20 ,1 ,'Internal Cursor Error: The cursor is in an invalid state.' ,1033)
GO
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
        values
        (17000 ,10 ,0 ,'Usage: sp_autostats <table_name> [, {ON|OFF} [, <index_name>] ]' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(17050, 10, 0, 'The ''%ls'' option is ignored in this edition of SQL Server.',1033)


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (17550 ,10 ,0 ,'DBCC TRACEON %d, server process ID (SPID) %d.',1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (17551 ,10 ,0 ,'DBCC TRACEOFF %d, server process ID (SPID) %d.',1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) 
	values
	(17557, 16, 128, 'DBCC DBRECOVER failed for database ID %d.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(17558, 10, 128, '*** Bypassing recovery for database ID %d.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) 
	values
	(17560, 10, 128, 'DBCC DBREPAIR: ''%ls'' index restored for ''%ls.%ls''.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) 
	values
	(17561, 10, 128, '%ls index restored for %ls.%ls.', 1033)


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) 
	values
	(17569, 16, 128, 'DBCC cannot find the library initialization function %ls.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) 
	values
	(17570, 16, 128, 'DBCC cannot find the function %ls in the library %ls.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) 
	values
	(17571, 20, 128, 'DBCC function %ls in the library %ls generated an access violation. SQL Server is terminating process %d.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) 
	values
	(17572, 16, 128, 'DBCC cannot free DLL %ls. SQL Server depends on this DLL to function properly.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) 
	values
	(17750, 16, 128, 'Cannot load the DLL %ls, or one of the DLLs it references. Reason: %ls.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) 
	values
	(17751, 16, 128, 'Cannot find the function %ls in the library %ls. Reason: %ls.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) 
	values
	(17752, 16, 128, 'Extended procedure memory allocation failed for ''%ls''.', 1033) 
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) 
	values
	(17753, 16, 128, '%.*ls can only be executed in the master database.', 1033)
GO
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) values
	(18002, 20, 0, 'Stored function ''%.*ls'' in the library ''%.*ls'' generated an access violation. SQL Server is terminating process %d.',1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) 
	values
	(18100, 10, 0, 'Process ID %d killed by hostname %.*ls, host process ID %d.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) 
	values
	(18450, 14, 128, 'Login failed for user ''%ls''. Reason: Not defined as a valid user of a trusted SQL Server connection.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(18451, 14, 128, 'Login failed for user ''%ls''. Only administrators may connect at this time.', 1033)

GO

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) 
	values
	(18452, 14, 128, 'Login failed for user ''%ls''. Reason: Not associated with a trusted SQL Server connection.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) 
	values
	(18453, 14, 128, 'Login succeeded for user ''%ls''. Connection: Trusted.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) 
	values
	(18454, 14, 128, 'Login succeeded for user ''%ls''. Connection: Non-Trusted.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) 
	values
	(18455, 14, 128, 'Login succeeded for user ''%ls''.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) 
	values
	(18456, 14, 128, 'Login failed for user ''%ls''.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) 
	values
	(18457, 14, 128, 'Login failed for user ''%ls''. Reason: User name contains a mapping character or is longer than 30 characters.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) 
	values
	(18458, 14, 128, 'Login failed. The maximum simultaneous user count of %d licenses for this server has been exceeded. Additional licenses should be obtained and registered through the Licensing application in the Windows NT Control Panel.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) 
	values
	(18459, 14, 128, 'Login failed. The maximum workstation licensing limit for SQL Server access has been exceeded.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) 
	values
	(18460, 14, 128, 'Login failed. The maximum simultaneous user count of %d licenses for this ''%ls'' server has been exceeded. Additional licenses should be obtained and installed or you should upgrade to a full version.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) 
	values
	(18461, 14, 128, 'Login failed for user ''%ls''. Reason: Server is in single user mode. Only one administrator can connect at this time.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) 
	values
	(18482, 16, 128, 'Could not connect to server ''%ls'' because ''%ls'' is not defined as a remote server.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) 
	values
	(18483, 16, 128, 'Could not connect to server ''%ls'' because ''%ls'' is not defined as a remote login at the server.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) 
	values
	(18485, 16, 128, 'Could not connect to server ''%ls'' because it is not configured for remote access.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) 
	values
	(18666, 17, 128, 'Could not free up descriptor in rel_desclosed() system function.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) 
	values
	(18750, 16, 128, '%ls: The parameter ''%ls'' is invalid.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) 
	values
	(18751, 16, 128, '%ls procedure called with incorrect number of parameters.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) 
	values
	(18752, 16, 128, 'Another log reader is replicating the database.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) 
	values
	(18754, 16, 128, 'Could not open table %d.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) 
	values
	(18755, 16, 128, 'Could not allocate memory for replication.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) 
	values
	(18756, 16, 128, 'Could not get replication information for table %d.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) 
	values
	(18757, 16, 128, 'The database is not published.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) 
	values
	(18759, 16, 128, 'Replication failure. File ''%ls'', line %d.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid) 
	values
	(18760, 16, 128, 'Invalid %ls statement for article %d.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(18761, 16, 128, 'Commit record at (%ls) has already been distributed. Check DBTABLE.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(18762, 16, 128, 'Invalid begin LSN (%ls) for commit record (%ls). Check DBTABLE.',1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(18763, 16, 128, 'Commit record (%ls) reports oldest active LSN as (0:0:0).',1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(18764, 16, 0, 'Execution of filter stored procedure %d failed. See the SQL Server errorlog for more information.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(18765 ,16 ,0 ,'Begin LSN specified for replication log scan is invalid.',1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(18766 ,16 ,0 ,'The replbeginlsn field in the DBTABLE is invalid.' ,1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(18767 ,16 ,0 ,'The specified begin LSN (%ls) for replication log scan occurs before replbeginlsn (%ls).' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (18768,16,0,'The specified LSN (%ls) for repldone log scan occurs before the current start of replication in the log (%ls).', 1033)
go

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (18769,16,0,'The specified LSN (%ls) for repldone log scan is not a replicated commit record.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (18770,16,0,'The specified LSN (%ls) for repldone log scan is not present in the transaction log.', 1033)

--del 18771 & 18772?
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(18771,16,0,'Invalid storage type %d specified writing variant of type %d.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(18772,16,0,'Invalid server data type (%d) specified in repl type lookup.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    (18773,16,0,'Could not locate text information records for column %d during command construction.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    (18774,16,0,'The stored procedure sp_replsetoriginator must be executed within a transaction.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    (18775,16,0,'The Log Reader Agent encountered an unexpected log record of type %u encountered while processing DML operation.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    (18776,16,0,'An error occurred while waiting on the article cache access event.',1033)

--kaushikc
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (18777 ,16 ,0 ,'%s: Error initializing MSMQ components' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    	values
	(18778 ,16 ,0 ,'%s: Error opening Microsoft Message Queue %s' ,1033)

GO
raiserror(' ',0,1)
raiserror('Adding messages for row level replication stored procedures.',0,1)

raiserror('sysmessages.error>=20000 ....',0,1) with nowait
GO

---- Error messages for replication stored procedures.
---- The message range 20001 to 20999 is reserved for row level replication related messages

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(20001 ,0 ,0 ,'There is no nickname for article ''%s'' in publication ''%s''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(20002 ,0 ,0 ,'The filter ''%s'' already exists for article ''%s'' in publication ''%s''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(20003 ,0 ,0 ,'Could not generate nickname for ''%s''.' ,1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20007,16,0,'The system tables for merge replication could not be dropped successfully.',1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20008,16,0,'The system tables for merge replication could not be created successfully.',1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20009 ,16 ,0 ,'The article ''%s'' could not be added to the publication ''%s''.' ,1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20010 ,16 ,0 ,'The Snapshot Agent corresponding to the publication ''%s'' could not be dropped.' ,1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20011 ,16 ,0 ,'Cannot set incompatible publication properties. The ''allow_anonymous'' property of a publication depends on the ''immediate_sync'' property.' ,1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20012 ,16 ,0 ,'The subscription type ''%s'' is not allowed on publication ''%s''.' ,1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20013 ,16 ,0 ,'The publication property ''%s'' cannot be changed when there are subscriptions on it.' ,1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20014 ,16 ,0 ,'Invalid @schema_option value.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (20015 ,16 ,0 ,'Could not remove directory ''%ls''. Check the security context of xp_cmdshell and close other processes that may be accessing the directory.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20016,16,0,'Invalid @subscription_type value. Valid values are ''pull'' or ''anonymous''.',1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20017,16,0,'The subscription on the Subscriber does not exist.',1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20018,16,0,'The @optional_command_line is too long. Use an agent definition file. ',1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(20019, 16, 0, 'Replication database option ''%s'' cannot be set unless the database is a publishing database or a distribution database.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20020 ,16 ,0 ,'The article resolver supplied is either invalid or nonexistent.' ,1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20021 ,16 ,0 ,'The subscription could not be found.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(20023, 16 ,0 ,'Invalid @subscriber_type value. Valid options are ''local'', ''global'', ''anonymous'', or ''repub''.',1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(20025 ,16 ,0 ,'The publication name must be unique. The specified publication name ''%s'' has already been used.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(20026 ,16 ,0 ,'The publication ''%s'' does not exist.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(20027 ,16 ,0 ,'The article ''%s'' does not exist.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(20028 ,16 ,0 ,'The Distributor has not been installed correctly. Could not enable database for publishing.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(20029 ,16 ,0 ,'The Distributor has not been installed correctly. Could not disable database for publishing.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(20030 ,16 ,0 ,'The article ''%s'' already exists on another publication with a different column tracking option.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(20031 ,16 ,0 ,'Could not delete the row because it does not exist.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(20032,16 ,0 ,'''%s'' is not defined as a Subscriber for ''%s''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(20033,16 ,0 ,'Invalid publication type.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(20034,16 ,0 ,'Publication ''%s'' does not support ''%s'' subscriptions.' ,1033)

GO
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(20036 ,16 ,0 ,'The Distributor has not been installed correctly. ' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(20037 ,16 ,0 ,'The article ''%s'' already exists in another publication with a different article resolver.' ,1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20038, 16 ,0 ,'The article filter could not be added to the article ''%s'' in the publication ''%s''.' ,1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20039, 16 ,0 ,'The article filter could not be dropped from the article ''%s'' in the publication ''%s''.' ,1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20040 ,16 ,0 ,'Could not drop the article(s) from the publication ''%s''.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20041 ,16 ,0 ,'Transaction rolled back. Could not execute trigger. Retry your transaction.' ,1033)



insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values (20043 ,16 ,0 ,'Could not change the article ''%s'' because the publication has already been activated.' ,1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20044 ,16 ,0 ,'The priority property is invalid for local subscribers.' ,1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20045 ,16 ,0 ,'You must supply an article name.' ,1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20046 ,16 ,0 ,'The article does not exist.' ,1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20047 ,16 ,0 ,'You are not authorized to perform this operation.' ,1033)	
GO

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20049 , 16 ,0 ,'The priority value should not be larger than 100.0.' ,1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    (20050, 16 ,0 ,'The retention period must be greater than or equal to %d.' ,1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    (20051, 16 ,0 ,'The Subscriber is not registered.' ,1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    (20054, 16 ,0 ,'Current database is not enabled for publishing.' ,1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    (20055, 16 ,0 ,' Table ''%s'' cannot be published for merge replication because it has a timestamp column.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    (20056, 16 ,0 ,'Table ''%s'' cannot be republished.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(20057,16 ,0 ,'The profile name ''%s'' already exists for the specified agent type.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(20058,16 ,0 ,'The @agent_type must be 1 (Snapshot), 2 (Logreader), 3 (Distribution), or 4 (Merge)' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(20059,16 ,0 ,'The @profile_type must be 0 (System) or 1 (Custom)' ,1033)


insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    (20060, 16 ,0 ,'Compatibility level cannot be smaller than 60.' ,1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    (20061, 16 ,0 ,'The compatibility level of this database must be set to 70 or higher to be enabled for merge publishing.' ,1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    (20062, 16 ,0 ,'Updating columns with the rowguidcol property is not allowed.' ,1033)


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(20064,16 ,0 ,'Cannot drop profile. Either it is not defined or it is defined as the default profile.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(20065,16 ,0 ,'Cannot drop profile because it is in use.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(20066,16 ,0 ,'Profile not defined.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(20067,16 ,0 ,'The parameter name ''%s'' already exists for the specified profile.' ,1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    (20068, 16 ,0 ,'The article cannot be created on table ''%s'' because it has more than %d columns.' ,1033) 

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(20069, 16, 0, 'Cannot validate a merge article that uses looping join filters. ', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(20070, 16, 0, 'Cannot update subscription row. ', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(20072, 16, 0, 'Cannot update Subscriber information row. ', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(20073, 16, 0, 'Articles can be added or changed only at the Publisher. ', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(20074 ,16 ,0 ,'Only a table object can be published as a "table" article for merge replication.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(20075 ,16 ,0 ,'The ''status'' parameter value must be either ''active'' or ''unsynced''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(20076 ,16 ,0 ,'The @sync_mode parameter value must be ''native'' or ''character''.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(20077 ,16 ,0 ,'Problem encountered generating replica nickname.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(20078 ,16 ,0 ,'The @property parameter value must be ''sync_type'', ''priority'', or ''description''.' ,1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20079,16,0,'Invalid @subscription_type parameter value. Valid options are ''push'', ''pull'', or ''both''. ',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20081,16,0,'Publication property ''%s'' cannot be NULL.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20084,16,0, 'Publication ''%s'' cannot be subscribed to by Subscriber database ''%s''.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (20086, 16, 0, 'Publication ''%s'' does not support the nosync type because it contains a table that does not have a rowguidcol column.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (20087, 16, 0, 'You cannot push an anonymous subscription.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (20088, 16, 0, 'Only assign priorities that are greater than or equal to 0 and less than 100.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (20089, 16, 0, 'Could not get license information correctly.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (20090, 16, 0, 'Could not get version information correctly.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (20091, 16, 0, 'sp_mergesubscription_cleanup is used to clean up push subscriptions. Use sp_dropmergepullsubscription to clean up pull or anonymous subscriptions.', 1033)



insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20100, 16, 0, 'Cannot drop Subscriber ''%s''. There are existing subscriptions.',1033)
GO
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20500,16,0,'The updatable Subscriber stored procedure ''%s'' does not exist in sysobjects.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20501,16,0,'Could not insert into sysarticleupdates using sp_articlecolumn.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20502,16,0,'Invalid ''%s'' value. Valid values are ''read only'', ''sync tran'', ''queued tran'', or ''failover''.',1033) 

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(20503,16,0,'Invalid ''%s'' value in ''%s''. The publication is not enabled for ''%s'' updatable subscriptions.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20505,16,0,'Could not drop synchronous update stored procedure ''%s'' in ''%s''.',1033) 

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20506,16,0,'Source table ''%s'' not found in ''%s''.',1033) 
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20507,16,0,'Table ''%s'' not found in ''%s''.',1033) 
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20508,16,0,'Updatable Subscriptions: The text/ntext/image values inserted at Subscriber will be NULL.',1033) 
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20509,16,0,'Updatable Subscriptions: The text/ntext/image values cannot be updated at Subscriber.',1033) 
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20510,16,0,'Updatable Subscriptions: Cannot update identity columns.',1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20511,16,0,'Updatable Subscriptions: Cannot update timestamp columns.',1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20512,16,0,'Updatable Subscriptions: Rolling back transaction.',1033)
go

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20515,16,0,'Updatable Subscriptions: Rows do not match between Publisher and Subscriber. Run the Distribution Agent to refresh rows at the Subscriber.', 1033)


insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20516,16,0,'Updatable Subscriptions: Replicated data is not updatable.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20517,16,0,'Updatable Subscriptions: Update of replica''s primary key is not allowed unless published table has a timestamp column.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20518,16,0,'Updatable Subscriptions: INSERT and DELETE operations are not supported unless published table has a timestamp column.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20519,16,0,'Updatable Subscriptions: INSERT operations on tables with identity or timestamp columns are not allowed unless a primary key is defined at the Subscriber.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20520,16,0,'Updatable Subscriptions: UPDATE operations on tables with identity or timestamp columns are not allowed unless a primary key is defined at the Subscriber.', 1033)


insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20521,16,0,'sp_MSmark_proc_norepl: must be a member of the db_owner or sysadmin roles.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20522,16,0,'sp_MSmark_proc_norepl: invalid object name ''%s''.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20523,16,0,'Could not validate the article ''%s''. It is not activated. ', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20524,10,0,'Table ''%s'' may be out of synchronization. Rowcounts (actual: %s, expected: %s). Rowcount method %d used (0 = Full, 1 = Fast).', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20525,10,0,'Table ''%s'' might be out of synchronization. Rowcounts (actual: %s, expected %s). Checksum values (actual: %s, expected: %s).', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20526,10,0,'Table ''%s'' passed rowcount (%s) validation. Rowcount method %d used (0 = Full, 1 = Fast).', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20527,10,0,'Table ''%s'' passed rowcount (%s) and checksum validation. Checksum is not compared for any text or image columns.', 1033)
	

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20528,10,0,'Log Reader Agent startup message.', 1033)	

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20529,10,0,'Starting agent.', 1033)


insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20530,10,0,'Run agent.', 1033)		-- description of job step
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20531,10,0,'Detect nonlogged agent shutdown.', 1033)	-- description of job step
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20532,10,0,'Replication agent schedule.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20533,10,0,'Replication agents checkup', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20534,10,0,'Detects replication agents that are not logging history actively.', 1033) -- description
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20535,10,0,'Removes replication agent history from the distribution database.', 1033) -- description
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20536,10,0,'Replication: agent failure', 1033)	-- Alert name
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20537,10,0,'Replication: agent retry', 1033) -- Alert name
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20538,10,0,'Replication: expired subscription dropped', 1033)	-- Alert name
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20540,10,0,'Replication: agent success', 1033)  -- Alert name
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20541,10,0,'Removes replicated transactions from the distribution database.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20542,10,0,'Detects and removes expired subscriptions from published databases.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20543,10,0,'@rowcount_only parameter must be the value 0,1, or 2. 0=7.0 compatible checksum. 1=only check rowcounts. 2=new checksum functionality introduced in version 8.0.', 1033)
GO

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20545,10,0,'Default agent profile', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20546,10,0,'Verbose history agent profile.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20547,10,0,'Agent profile for detailed history logging.',1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20548,10,0,'Slow link agent profile.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20549,10,0,'Agent profile for low bandwidth connections.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20550,10,0,'Windows Synchronization Manager profile', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20551,10,0,'Profile used by the Windows Synchronization Manager.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20552,10,0,'Could not clean up the distribution transaction tables.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20553,10,0,'Could not clean up the distribution history tables.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20554,10,0,'The agent is suspect. No response within last %ld minutes.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20555,10,0,'6.x publication.', 1033)


insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20556,10,0,'Heartbeats detected for all running replication agents.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20557,10,0,'Agent shutdown. For more information, see the SQL Server Agent job history for job ''%s''.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20558,10,0,'Table ''%s'' passed full rowcount validation after failing the fast check. DBCC UPDATEUSAGE will be initiated automatically.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20559,10,0,'Conditional Fast Rowcount method requested without specifying an expected count. Fast method will be used.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20560,10,0,'An expected checksum value was passed, but checksums will not be compared because rowcount-only checking was requested.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20561,10,0,'Generated expected rowcount value of %s for %s.', 1033)

GO
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20562,10,0,'User delete.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20563,10,0,'No longer belongs in this partial.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20564,10,0,'System delete.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20565,10,0,'Replication: Subscriber has failed data validation', 1033)	-- Alert name
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20566,10,0,'Replication: Subscriber has passed data validation', 1033)	-- Alert name

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20567,10,0,'Agent history clean up: %s', 1033)	-- Job name
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20568,10,0,'Distribution clean up: %s', 1033)



insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20569,10,0,'Expired subscription clean up', 1033)	-- Job name
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20570,10,0,'Reinitialize subscriptions having data validation failures', 1033)	-- Title of a alert response job
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20571,10,0,'Reinitializes all subscriptions that have data validation failures.', 1033)	-- Description of a alert response job
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20572,10,0, 'Subscriber ''%s'' subscription to article ''%s'' in publication ''%s'' has been reinitialized after a validation failure.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20573,10,0, 'Replication: Subscription reinitialized after validation failure', 1033)	-- Alert name
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20574,10,0, 'Subscriber ''%s'' subscription to article ''%s'' in publication ''%s'' failed data validation.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20575,10,0, 'Subscriber ''%s'' subscription to article ''%s'' in publication ''%s'' passed data validation.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20576,10,0, 'Subscriber ''%s'' subscription to article ''%s'' in publication ''%s'' has been reinitialized after a synchronization failure.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20577,10,0, 'No entries were found in msdb..sysreplicationalerts.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20578,10,0, 'Replication: agent custom shutdown', 1033) -- Alert name
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20579,10,0,'Generated expected rowcount value of %s and expected checksum value of %s for %s.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20580,10,0,'Heartbeats not detected for some replication agents. The status of these agents have been changed to ''Failed''.', 1033)  -- 'Failed' is a replication runstatus value in monitoring UI

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20581,10,0,'Cannot drop server ''%s'' because it is used as a Distributor in replication.', 1033)  
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20582,10,0,'Cannot drop server ''%s'' because it is used as a Publisher in replication.', 1033) 
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20583,10,0,'Cannot drop server ''%s'' because it is used as a Subscriber in replication.', 1033)  
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20584,10,0,'Cannot drop server ''%s'' because it is used as a Subscriber to remote Publisher ''%s'' in replication.', 1033)  

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20585,16,0,'Validation Failure. Object ''%s'' does not exist.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(20586,16,0,'(default destination)', 1033)


insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
		(20587,16,0,'Invalid ''%s'' value for stored procedure ''%s''.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
		(20588,16,0,'The subscription is not initialized. Run the Distribution Agent first.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (20589 ,10 ,0 ,'Agent profile for replicated queued transaction reader.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
		(20590,16,0,'The article property ''status'' cannot include bit 64, ''DTS horizontal partitions'' because the publication does not allow data transformations.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
		(20591,16,0,'Only ''DTS horizontal partitions'' and ''no DTS horizontal partitions'' are valid ''status'' values because the publication allows data transformations.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20592,16,0,'''dts horizontal partitions'' and ''no dts horizontal partitions'' are not valid ''status'' values because the publication does not allow data transformations.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(20593,16,0,'Cannot modify publication ''%s''.  The sync_method cannot be changed to ''native'', ''concurrent'' or ''concurrent_c'' because the publication has subscriptions from ODBC or OLE DB Subscribers.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(20594,16,0,'A push subscription to the publication exists. Use sp_subscription_cleanup to drop defunct push subscriptions.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(20595,16,0,'Skipping error signaled.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(20596,16,0,'Only ''%s'' or members of db_owner can drop the anonymous agent.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(20597,10,0,'Dropped %d anonymous subscription(s).', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
		(20598,16,0,'The row was not found at the Subscriber when applying the replicated command.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
		(20599,16,0,'Continue on data consistency errors.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
		(20600,10,0,'Agent profile for skipping data consistency errors. It can be used only by SQL Server Subscribers.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
		(20601,10,0,'Invalid value specified for agent parameter ''SkipErrors''.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
		(20602,10,0,'The value specified for agent parameter ''SkipErrors'' is too long.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
		(20603,10,0,'The agent profile cannot be used by heterogeneous Subscribers.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
		(20604,10,0,'You do not have permissions to run agents for push subscriptions. Make sure that you specify the agent parameter ''SubscriptionType''.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
		(20605,10,0,'Invalidated the existing snapshot of the publication. Run the Snapshot Agent again to generate a new snapshot.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
		(20606,10,0,'Reinitialized subscription(s).',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
		(20607,10,0,'Cannot make the change because a snapshot is already generated. Set @force_invalidate_snapshot to 1 to force the change and invalidate the existing snapshot.',1033)


insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(20608,10,0,'Cannot make the change because there are active subscriptions. Set @force_reinit_subscription to 1 to force the change and reinitialize the active subscriptions.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(20609,16,0,'Cannot attach subscription file ''%s''. Make sure that it is a valid subscription copy file.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
		(20610,16,0,'Cannot run ''%s'' when the Log Reader Agent is replicating the database.', 1033)


insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(20611,16,0,'Only table or indexed view to table articles are allowed in publications that allow DTS.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(20612,16,0,'Checksum validation is not supported because the publication allows DTS. Use row count only validation.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(20613,16,0,'Validation is not supported for articles that are set up for DTS horizontal partitions.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(20614,16,0,'Validation is not supported for heterogeneous Subscribers.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
		(20616,10,0,'High Volume Server-to-Server Profile', 1033)
go

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
		(20617,10,0,'Merge agent profile optimized for the high volume server-to-server synchronization scenario.', 1033)
go

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
		(20618,16 ,0 ,'You must have CREATE DATABASE permission to attach a subscription database.' ,1033)
go

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
		(20619,16 ,0 ,'Server user ''%s'' is not a valid user in database ''%s''. Add the user account or ''guest'' user account into the database first.' ,1033)

insert into master..sysmessages(error,severity,dlevel,description,msglangid)
	values
		(20620,11,2,'The security mode specified requires the server ''%s'' in sysservers. Use sp_addlinkedserver to add the server.',1033)

insert into master..sysmessages(error,severity,dlevel,description,msglangid)
	values
		(20621,11,2,'Cannot copy a subscription database to an existing database.',1033)

insert into master..sysmessages(error,severity,dlevel,description,msglangid)
	values
		(20622,11,2,'Replication database option ''sync with backup'' cannot be set on the publishing database because the database is in Simple Recovery mode.',1033)

insert into master..sysmessages(error,severity,dlevel,description,msglangid)
	values
		(20623,11,2,'You cannot validate article ''%s'' unless you have ''SELECT ALL'' permission on table ''%s''.',1033)

go
--- Start 21000 set of messages

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21000 ,16 ,0 ,'Cannot subscribe to an inactive publication.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21001 ,16 ,0 ,'Cannot add a Distribution Agent at the Subscriber for a push subscription.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21002 ,16 ,0 ,'The Distribution Agent for this subscription already exists (%s).', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21003 ,16 ,0 ,'Changing publication names is no longer supported.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (21004 ,16 ,0 ,'Cannot publish the database object ''%s'' because it is encrypted.' ,1033)
go

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21005,10,0 ,'For backward compatibility, sp_addpublisher can be used to add a Publisher for this Distributor. However, sp_adddistpublisher is more flexible.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21006,16,0 ,'Cannot use sp_addpublisher to add a Publisher. Use sp_adddistpublisher.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21007,16,0 ,'Cannot add the remote Distributor. Make sure that the local server is configured as a Publisher at the Distributor.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21008,16,0,'Cannot uninstall the Distributor because there are Subscribers defined.', 1033)
insert into master..sysmessages(error,severity,dlevel,description,msglangid)
	values
	(21009,16,0,'The specified filter procedure is already associated with a table.',1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21010,16,0,'Removed %ld replicated transactions consisting of %ld statements in %ld seconds (%ld rows/sec).', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21011,16,0,'Deactivated subscriptions.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21012,16,0,'Cannot change the ''allow_push'' property of the publication to "false". There are push subscriptions on the publication.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21013,16,0,'Cannot change the ''allow_pull'' property of the publication to "false". There are pull subscriptions on the publication.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21014,16,0,'The @optname parameter value must be ''transactional'' or ''merge''.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21015,16,0,'The replication option ''%s'' has been set to TRUE already.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21016,16,0,'The replication option ''%s'' has been set to FALSE already.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21017, 16, 0, 'Cannot perform SQL Server 7.0 compatible checksum operation on a merge article that has a vertical or horizontal partition. Rowcount validation and SQL Server 2000 compatible binary checksum operation can be performed on this article.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21018,16,0,'There are too many consecutive snapshot transactions in the distribution database.  Run the Log Reader Agent again or clean up the distribution database.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21021,16,0,'Drop the Distributor before you uninstall replication. ', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21022,16,0,'Cannot set incompatible publication properties. The ''immediate_sync'' property of a publication is dependent on the ''independent agent'' property of a publication.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21023,16,0,'''%s'' is no longer supported. ', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21024,16,0,'The stored procedure ''%s'' is already published as an incompatible type.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21025,16,0,'The string being encrypted cannot have null characters.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21026,16,0,'Cannot have an anonymous subscription on a publication that does not have an independent agent.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21027,16,0,'''%s'' replication stored procedures are not installed. Use sp_replicationoption to install them.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21028,16,0, 'Replication components are not installed on this server. Run SQL Server Setup again and select the option to install replication.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21029,16,0,'Cannot drop a push subscription entry at the Subscriber unless @drop_push is ''true''.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21030,16,0,'Names of SQL Server replication agents cannot be changed.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21031,16,0,'''post_script'' is not supported for stored procedure articles.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21032,16,0, 'Could not subscribe because non-SQL Server Subscriber ''%s'' does not support ''sync tran'' update mode.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21033,16,0, 'Cannot drop server ''%s'' as Distribution Publisher because there are databases enabled for replication on that server.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21034,16,0, 'Rows inserted or updated at the Subscriber cannot be outside the article partition.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21035,16,0, 'You have updated the Publisher property ''%s'' successfully.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21036,16,0, 'Another %s agent for the subscription(s) is running.', 1033)



insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21037,16,0, 'Invalid working directory ''%s''.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21038,16,0, 'Windows Authentication is not supported by the server.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21039,16,0, 'The destination owner name is not supported for publications that can have heterogeneous Subscribers. Use native mode bcp for this functionality.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21040,16,0,'Publication ''%s'' does not exist.', 1033) 
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (21041, 16, 0, 'A remote distribution Publisher is not allowed on this server version.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21042,16,0, 'The distribution Publisher property, ''distributor_password'', has no usage and is not supported for a Distributor running on Windows NT 4.0.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21043,16,0, 'The Distributor is not installed.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21044,16,0, 'Cannot ignore the remote Distributor (@ignore_remote_distributor cannot be 1) when enabling the database for publishing or merge publishing.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21045,16,0, 'Cannot uninstall the Distributor because there are databases enabled for publishing or merge publishing.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21046,16,0 ,'Cannot change distribution Publisher property ''distribution_db'' because the remote Publisher is using the current distribution database.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21047,16,0,'Cannot drop the local distribution Publisher because there are Subscribers defined.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21048,16,0,'Cannot add login ''%s'' to the publication access list because it does not have access to the distribution server ''%s''.' ,1033)


insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21049,16,0, 'The login ''%s'' does not have access permission on publication ''%s'' because it is not in the publication access list.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21050,16,0,'Only members of the sysadmin or db_owner roles can perform this operation.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21051, 16, 0, 'Could not subscribe because non-SQL Server Subscriber ''%s'' does not support custom stored procedures.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21052, 16, 0,'Queued Updating Subscriptions: write to message queue failed.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21053 ,16 ,0 , 'The parameter must be one of the following: ''description'', ''status'', ''retention'', ''sync_mode'', ''allow_push'', ''allow_pull'', ''allow_anonymous'', ''enabled_for_internet'', ''centralized_conflicts'', ''conflict_retention'', or ''snapshot_ready''.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21054,16,0,'Updatable Subscribers: RPC to Publisher failed.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21055 ,15 ,0 ,'Invalid parameter %s specified for %s.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
		(21056,16,0, 'The subscription to publication ''%s'' has expired and does not exist.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21057,16,0,'Anonymous Subscribers cannot have updatable subscriptions.' ,1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21058,16,0,'An updatable subscription to publication ''%s'' on Subscriber ''%s'' already exists.' ,1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21059,16,0,'Cannot reinitialize subscriptions of non-immediate_sync publications.',1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21060 ,16 ,1 ,'Could not subscribe because non-SQL Server Subscriber ''%s'' does not support parameterized statements.' ,1033)



insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21061 ,16 ,1 ,'Invalid article status %d specified when adding article ''%s''.' ,1033)


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21062 ,16 ,1, 'The row size of table ''%s'' exceeds the replication limit of 6,000 bytes.' ,1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21063,16,0,'Table ''%s'' cannot participate in updatable subscriptions because it is published for merge replication.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (21064 ,16 ,0 ,'The subscription is uninitialized or unavailable for immediate updating as it is marked for reinitialization. If using queued failover option, run Queue Reader Agent for subscription initialization. Try again after the (re)initialization completes.' ,1033)


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21070, 16, 0, 'This subscription does not support automatic reinitialization (subscribed with the ''no sync'' option). To reinitialize this subscription, you must drop and re-create the subscription.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21071, 10, 0, 'Cannot reinitialize article ''%s'' in subscription ''%s:%s'' to publication ''%s'' (subscribed with the ''no sync'' option).' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21072, 16, 0, 'The subscription has not been synchronized within the maximum retention period or it has been dropped at the Publisher. You must reinitialize the subscription to receive data.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21073, 16, 0, 'The publication specified does not exist.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
		(21074,16,0, 'The subscription has been marked inactive and must be reinitialized at the Publisher. Contact the database administrator.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21075, 10, 0, 'The initial snapshot for publication ''%s'' is not yet available.' ,1033) -- Used for formatmessage

--ywu 

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21076, 10, 0, 'The initial snapshot for article ''%s'' is not yet available.' ,1033) -- Used for formatmessage

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21077, 10, 0, 'Deactivated initial snapshot for anonymous publication(s). New subscriptions must wait for the next scheduled snapshot.' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21078, 16, 0, 'Table ''%s'' does not exist in the Subscriber database.' ,1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (21079,16,0, 'The RPC security information for the Publisher is missing or invalid. Use sp_link_publication to specify it.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
		(21080,16,0, 'The ''msrepl_tran_version'' column must be in the vertical partition of the article that is enabled for updatable subscriptions; it cannot be dropped.' ,1033)



insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (21081,16,0,'Server setting ''Allow triggers to be fired which fire other triggers (nested triggers)'' must exist on updatable Subscribers.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
	(21082,16,0,'Database property ''IsRecursiveTriggersEnabled'' has to be false for subscription databases at Subscribers that allow updatable subscriptions.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (21083,16,0,'Database compatibility level at immediate updating Subscribers cannot be less than 70.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (21084,16,0,'Publication ''%s'' does not allow anonymous subscriptions.', 1033)    

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (21085,16,0, 'The retention period must be less than the retention period for the distribution database.', 1033)    

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (21086,16,0, 'The retention period for the distribution database must be greater than the retention period of any existing non-merge publications. ', 1033)    

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (21087,16,0,'Anonymous Subscribers or Subscribers at this server are not allowed to create merge publications. ', 1033)    

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21088, 10, 0, 'The initial snapshot for the publication is not yet available.' ,1033) -- Used for formatmessage



insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21107, 16, 0, '''%ls'' is not a table or view.' ,1033)


insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (21108, 16, 0, 'This edition of SQL Server does not support transactional publications. ', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (21109,16,0,'The parameters @xact_seqno_start and @xact_seqno_end must be identical if @command_id is specified.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21110,16,0,'@xact_seqno_start and @publisher_database_id must be specified if @command_id is specified.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (21111,16,0,'''%s'' is not a valid parameter for the Snapshot Agent.', 1033)  

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (21112,16,0,'''%s'' is not a valid parameter for the Log Reader Agent.', 1033)  

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (21113,16,0,'''%s'' is not a valid parameter for the Distribution Agent.', 1033)  

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (21114,16,0,'''%s'' is not a valid parameter for the Merge Agent.', 1033)  

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (21115,16,0,'''%s'' is not a valid value for the ''%s'' parameter. The value must be a positive integer.', 1033)  

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (21116,16,0,'''%s'' is not a valid value for the ''%s'' parameter. The value must be 1, 2, or 3.', 1033)  

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (21117,16,0,'''%s'' is not a valid value for the ''%s'' parameter. The value must be 0, 1, or 2.', 1033)  

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (21118,16,0,'''%s'' is not a valid value for the ''%s'' parameter. The value must be greater than or equal to 0 and less than or equal to 10,000.', 1033)  

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (21119,16,0,'''%s'' is not a valid value for the ''%s'' parameter. The value must be a non-negative integer.', 1033)  

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (21120,16,0,'Only members of the sysadmin fixed server role and db_owner fixed database role can drop subscription ''%s'' to publication ''%s''.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (21121,16,0,'Only members of the sysadmin fixed server role and ''%s'' can drop the pull subscription to the publication ''%s''.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (21122,16,0,'Cannot drop the distribution database ''%s'' because it is currently in use.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (21123,16,0,'The agent profile ''%s'' could not be found at the Distributor.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (21124,16,0,'Cannot find the table name or the table owner corresponding to the alternative table ID(nickname) ''%d'' in sysmergearticles.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (21125,16,0,'A table used in merge replication must have at least one non-computed column.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (21126,16,0,'Pull subscriptions cannot be created in the same database as the publication.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (21127,16,0,'Only global merge subscriptions can be added to database ''%s''.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (21128,16,0,'Terminating immediate updating or queued updating INSERT trigger because it is not the first trigger to fire. Use sp_settriggerorder procedure to set the firing order for trigger ''%s'' to first.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
   (21129,16,0,'Terminating  immediate updating or queued updating UPDATE trigger because it is not the first trigger to fire.  Use sp_settriggerorder procedure to set the  firing order for trigger ''%s'' to first.',  1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (21130,16,0,'Terminating immediate updating or queued updating DELETE trigger  because it is not the first trigger to fire. Use sp_settriggerorder procedure to set the  firing order for trigger ''%s'' to first.',  1033)

GO

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (21131,16,0,'There are existing subscriptions to heterogeneous publication ''%s''. To add new articles, first drop the existing subscriptions to the publication.', 1033)
GO

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (21132,16,0,'Cannot create transactional subscription to merge publication ''%s''. The publication type should be either transactional(0) or snapshot(1) for this operation.', 1033)
GO


insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (21133,16,0,'Publication ''%s'' is not enabled to use an independent agent.', 1033)
GO

GO

raiserror(' ',0,1)
raiserror('Adding Replication messages.',0,1) with nowait
raiserror(' ',0,1)


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21134,16,0, 'The specified job ID must identify a Distribution Agent or a Merge Agent job.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21135,16,0,'Detected inconsistencies in the replication agent table. The specified job ID does not correspond to an entry in ''%ls''.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21136,16,0,'Detected inconsistencies in the replication agent table. The specified job ID corresponds to multiple entries in ''%ls''.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21137,16,0,'This procedure supports only remote execution of push subscription agents.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21138,16,0,'The ''offload_server'' property cannot be the same as the Distributor name.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21139,16,0,'Could not determine the Subscriber name for distributed agent execution.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21140,16,0,'Agent execution cannot be distributed to a Subscriber that resides on the same server as the Distributor.' ,1033)

--remove 21141 from here?
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21141,16,0,'The @change_active flag may not be specified for articles with manual filters or views.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21143,16,0,'The custom stored procedure schema option is invalid for a snapshot publication article.' ,1033)


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21142,16,0,'The SQL Server ''%s'' could not obtain Windows group membership information for login ''%s''. Verify that the Windows account has access to the domain of the login.' ,1033)

--del 21144 & 21145?
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21144,16,0,'Cannot subscribe to publication of sync_type ''dump database'' because the Subscriber has subscriptions to other publications.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21145,16,0,'Cannot subscribe to publication %s because the Subscriber has a subscription to a publication of sync_type ''dump database''.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21146,16,0,'@use_ftp cannot be ''true'' while @alt_snapshot_folder is neither NULL nor empty.' ,1033)


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21147,16,0, 'The ''%s'' database is not published for merge replication.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21148,16,0,'Both @subscriber and @subscriberdb must be specified with non-null values simultaneously, or both must be left unspecified.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21149,16,0, 'The ''%s'' database is not published for transactional or snapshot replication.' ,1033)


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21150,16,0,'Unable to determine the snapshot folder for the specified subscription because the specified Subscriber is not known to the Distributor.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21151,16,0,'Pre- and post-snapshot commands are not supported for a publication that may support non-SQL Server Subscribers by using the character-mode bcp as the synchronization method.' ,1033)

--del 21152, 53, & 54?
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21152,16,0,'Cannot create a subscription of sync_type ''none'' to a publication using the ''concurrent'' or ''concurrent_c'' synchronization method.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21153,16,0,'Cannot create article ''%s''. All articles that are part of a concurrent synchronization publication must use stored procedures to apply changes to the Subscriber.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21154,16,0,'Cannot change article ''%s''.  All articles that are part of a concurrent synchronization publication must use stored procedures to apply changes to the Subscriber.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    (21156,16,0,'The @status  parameter value must be ''initiated'' or ''active''.',1033)


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21157,16,0, 'The snapshot compression option can be enabled only for a publication having an alternate snapshot generation folder defined.' ,1033)


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21158,16,0,'For a publication to be enabled for the Internet, the ''ftp_address'' property must not be null.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21159,16,0,'If a publication is enabled for the Internet, the ''alt_snapshot_folder'' property must be non-empty.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21160,16,0, 'The @ftp_port parameter cannot be NULL.' ,1033)


insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21161,16,0,'Could not change the Publisher because the subscription has been dropped. Use sp_subscription_cleanup to clean up the triggers.',1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21162,16,0,'It is invalid to exclude the rowguid column for the table from the partition.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21163,16,0,'It is not possible to add column ''%s'' to article ''%s'' because the snapshot for publication ''%s'' has been run.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21164,16,0,'Column ''%s'' cannot be included in a vertical partition because it is neither nullable nor defined with a default value.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21165,16,0,'Column ''%s'' cannot be excluded from a vertical partition because it is neither nullable nor defined with a default value.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21166,16,0,'Column ''%s'' does not exist.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21167,16,0, 'The specified job ID does not represent a %s agent job for any push subscription in this database.' ,1033)


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21168,16,0,'Only members of the sysadmin fixed server role, members of the db_owner fixed database role, and owners of subscriptions served by the specified replication agent job can modify the agent offload settings.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21169,16,0,'Could not identify the Publisher ''%s'' at the Distributor ''%s''. Make sure that ''%s'' is registered in the sysservers table at the Distributor.' ,1033)


insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21170,16,0,'Only a SQL Server 2000 or OLE DB Subscriber can use DTS.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21171,16,0,'Could not find package ''%s'' in msdb at server ''%s''.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21172,16,0,'The publication has to be in ''character'' or ''concurrent_c'' bcp mode to allow DTS.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21173,16,0,'The publication has to be ''independent_agent type'' to allow DTS.',1033)


insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21174,16,0,'You must use default values for @ins_cmd,  @upd_cmd,  and @del_cmd, and @status can be only 16 or 80 because the publication allows DTS.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21175,16,0,'You cannot change ''ins_cmd'',''upd_cmd'', or ''del_cmd'' article properties because the publication allows DTS or queued updating option.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21176,16,0,'Only members of the sysadmin fixed server role, db_owner fixed database role, or the creator of the subscription can change the subscription properties.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21177,16,0,'Could not create column list because it is too long. Create the list manually.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21178,16,0,'DTS properties cannot be set because the publication does not allow for data transformation.',1033)


insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21179,16,0,'Invalid @dts_package_location parameter value. Valid options are ''Distributor'' or ''Subscriber''.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21180,16 ,0 ,'A publication that allows DTS cannot be enabled for updatable subscriptions.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (21184 ,16 ,0 ,'%s parameter is incorrect: it should be ''%s'', ''%s'' or ''%s''.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
(21181,16,0,'@dts_package_name can be set for push subscriptions only.',1033)
    	

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21182,16,0,'The @agent_type parameter must be one of ''distribution'', ''merge'', or NULL.' ,1033)


insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21183,16,0,'Invalid property name ''%s''.',1033)

go

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21185 ,16 ,0 ,'The subscription is not initialized or not created for failover mode operations.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (21186 ,16 ,0 ,'Subscription for Publisher ''%s'' does not have a valid queue_id.' ,1033)
 
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (21187 ,16 ,0 ,'The current mode is the same as the requested mode.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (21188 ,10 ,0 ,'Changed update mode from [%s] to [%s].' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (21189 ,16 ,0 ,'The queue for this subscription with queue_id = ''%s'' is not empty. Run the Queue Reader Agent to make sure the queue is empty before setting mode from [queued] to [immediate].' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (21190 ,10 ,0 ,'Overriding queue check for setting mode from [%s] to [%s].' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (21191 ,16 ,0 ,'Values for @ins_cmd, @upd_cmd, and @del_cmd can be only [%s], [%s] and [%s] respectively because the publication allows queued transactions.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (21192 ,16 ,0 ,'MSrepl_tran_version column is a predefined column used for replication and can be only of data type uniqueidentifier' ,1033)

go


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21193,16,0,'@identity_range, @pub_identity_range, or @threshold cannot be NULL when @auto_identity_support is set to TRUE.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21194,16,0,'Cannot support identity_range_control because this table does not have an identity column.' ,1033)


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21195,16,0,'A valid identity range is not available. Check the data type of the identity column.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21196,16,0,'Identity automation failed.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21197,16,0,'Failed to allocate new identity range.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (21198,16,0,'Schema replication failed.', 1033)


insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (21199,16,0,'This change cannot take effect until you run the snapshot again.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (21200,16,0,'Publication ''%s'' does not exist.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (21201,16,0,'Dropping a column that is being used by a merge filter clause is not allowed.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21202,16,0,'It is not possible to drop column ''%s'' to article ''%s'' because the snapshot for publication ''%s'' has already been run.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21203,10,0,'Duplicate rows found in %s. Unique index not created.' ,1033)
GO


insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21204,16 ,0 ,'The publication ''%s'' does not allow subscription copy or its subscription has not been synchronized.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
		(21205 ,16 ,0 ,'The subscription cannot be attached because the publication does not allow subscription copies to synchronize changes.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    (21206,16,0,'Cannot resolve load hint for object %d because the object is not a user table.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    (21207,16,0,'Cannot find source object ID information for article %d.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
		(21208 ,16 ,0 ,'This step failed because column ''%s'' exists in the vertical partition.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
		(21209 ,16 ,0 ,'This step failed because column ''%s'' does not exist in the vertical partition.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21210,16,0,'The publication must be immediate_sync type to allow subscription copy.',1033)


insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21211,16,0,'The database is attached from a subscription copy file without using sp_attach_subscription. Drop the database and reattach it using sp_attach_subscription.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21212,16,0,'Cannot copy subscription. Only single file subscription databases are supported for this operation.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21213,16,0,'Non-SQL Server Subscribers cannot subscribe to publications that allow DTS without using a DTS package.',1033)


insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21214,16,0,'Cannot create file ''%s'' because it already exists.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
		(21215, 16, 0, 'An alternate synchronization partner can be configured only at the Publisher. ', 1033)
go

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21216, 16, 0,'Publisher ''%s'', publisher database ''%s'', and publication ''%s'' are not valid synchronization partners.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21217, 10, 0,'Publication of ''%s'' data from Publisher ''%s''.', 1033)
go

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21218,16,0,'The creation_script property cannot be NULL if a schema option of 0x0000000000000000 is specified for the article.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21219,16,0,'The specified source object must be a stored procedure object if it is published as a ''proc schema only'' type article.' ,1033)


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21220,16,0, 'Unable to add the article ''%s'' because a snapshot has been generated for the publication ''%s''.' ,1033)



insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21221,16,0,'The specified source object must be a view object if it is going to be as a ''view schema only'' type article.' ,1033)



insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21222,16,0,'The @schema_option parameter for a procedure or function schema article can include only the options 0x0000000000000001 or 0x0000000000002000.' ,1033)


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21223,16,0,'The @pre_creation_command parameter for a schema only article must be either ''none'' or ''drop''.' ,1033)


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21224,16,0,'''%s'' is not a valid property for a schema only article.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21225,16,0,'The ''offload_server'' property cannot be NULL or empty if the pull subscription agent is to be enabled for remote activation.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21226,16,0,'The database ''%s'' does not have a pull subscription to the specified publication.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
        (21227,16,0,'The ''offload_server'' property cannot be the same as the Subscriber server name.' ,1033)



insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21228,16,0,'The specified source object must be a user-defined function object if it is going to be published as a ''func schema only'' type article.' ,1033)


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21229,16,0,'The only schema options available for a view schema article are: 0x0000000000000001, 0x0000000000000010, 0x0000000000000040, 0x0000000000000100, and 0x0000000000002000.' ,1033)

go

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
		(21230, 16, 0, 'Do not call this stored procedure for schema change because the current database is not enabled for replication.', 1033)

go



insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21231,16,0,'Automatic identity range support is useful only for publications that allow queued updating.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21232,16,0,'Identity range values must be positive numbers that are greater than 1.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21233,16,0,'Threshold value must be from 1 through 100.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21234,16,0,'Cannot use the INSERT command because the table has an identity column. The insert custom stored procedure must be used to set ''identity_insert'' settings at the Subscriber.',1033)


insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21235,16,0,'Article property ''%s'' can be set only when the article uses automatic identity range management.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21236,16,0,'The subscription(s) to Publisher ''%s'' does not allow subscription copy or it has not been synchronized.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21237,16,0,'There is a push subscription to Publisher ''%s''. Only pull and anonymous subscriptions can be copied.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21238,16,0,'There is a push subscription to publication ''%s''. Only pull and anonymous subscriptions can be copied.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21239,16,0, 'Cannot copy subscriptions because there is no synchronized subscription found in the database.', 1033)


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21240,16,0,'The table ''%s'' is already published as another article with a different automatic identity support option.' ,1033)



insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21241,16,0,'The threshold value should be from 0 through 99.' ,1033)


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21242,16,0,'Conflict table for article ''%s'' could not be created successfully.' ,1033)

-- charun 21243
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
		(21243, 16, 0,'Publisher ''%s'', publication database ''%s'', and publication ''%s'' could not be added to the list of synchronization partners.', 1033)
go


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21244, 16, 0,'Character mode publication does not support vertical filtering when the base table does not support column-level tracking.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21245, 16, 0,'Table ''%s'' is not part of publication ''%s''.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21246, 16, 0,'This step failed because table ''%s'' is not part of any publication.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21247,16,0,'Cannot create file at ''%s''. Ensure the file path is valid.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21248,16,0,'Cannot attach subscription file ''%s''. Ensure the file path is valid and the file is updatable.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21249,16,0,'OLE DB or ODBC Subscribers cannot subscribe to article ''%s'' in publication ''%s'' because the article has a timestamp column and the publication is ''allow_queued_tran'' (allows queued updating subscriptions).', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21250,16,0,'Primary key column ''%s'' cannot be excluded from a vertical partition.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
		(21251, 16, 0,'Publisher ''%s'', publisher database ''%s'', publication ''%s'' could not be removed from the list of synchronization partners.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
		(21252, 16, 0,'It is invalid to remove the default Publisher ''%s'', publication database ''%s'', and publication ''%s'' from the list of synchronization partners', 1033)

go

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
		(21253, 16, 0,'Parameter ''@add_to_active_directory'' cannot be set to TRUE because Active Directory client package is not installed properly on the machine where SQL Server is running.', 1033)


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
		(21254, 16, 0,'The Active Directory operation on publication ''%s'' could not be completed bacause Active Directory client package is not installed properly on the machine where SQL Server is running.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
		(21255, 16, 0,'Column ''%s'' already exists in table ''%s''.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
		(21256, 16, 0,'A column used in filter clause ''%s'' either does not exist in the table ''%s'' or cannot be excluded from the current partition. ', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
		(21257, 16, 0,'Invalid property ''%s'' for article ''%s''.', 1033)


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
		(21258, 16, 0,'You must first drop all existing merge publications to add an anonymous or local subscription to database ''%s''.', 1033)


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
		(21259, 16, 0,'Invalid property value ''%s''.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21260, 16, 0,'Schema replication failed because database ''%s'' on server ''%s'' is not the original Publisher of table ''%s''.', 1033)


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21261,16,0,'The offload server must be specified if the agent for this subscription is to be offloaded for remote execution.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21262,16,0,'Failed to drop column ''%s'' from the partition because a computed column is accessing it.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21263,16,0,'Parameter ''%s'' cannot be NULL or an empty string.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21264,16,0,'Column ''%s'' cannot be dropped from table ''%s'' because it is a primary key column.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
        (21265,16,0,'Column ''%s'' cannot be dropped from table ''%s'' because there is a unique index accessing this column.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21266,16,0,'Cannot publish table ''%s'' for both a merge publication and a publication with the queued updating option .', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (21267 ,10 ,0 ,'Invalid value for queue type was specified. Valid values = (%s).' ,1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (21268 ,10 ,0 ,'Cannot change queue type while there are subscriptions to the publication.' ,1033)


insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21269,16,0,'Cannot add a computed column or a timestamp column to a vertical partition for a character mode publication.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (21270 ,10 ,0 ,'Queued snapshot publication property ''%s'' cannot have the value ''%s''.' ,1033)


insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21272,16,0,'Cannot clean up the meta data for publication ''%s'' because other publications are using one or more articles in this publication.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21273,16,0,'You must upgrade the Subscriber to SQL Server 2000 to create updatable subscriptions to SQL Server 2000 Publishers.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21274,16,0,'Invalid publication name ''%s''.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21275,16,0,'The schema-bound view ''%ls''  can be published only as ''indexed view schema only''  or a log-based indexed view (transactional only) article. ' ,1033)


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21276 ,16 ,0 ,'The type must be ''table'' or ''( view | indexed view | proc | func ) schema only''.' ,1033)


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21277,16,0,'The source object ''%ls'' must be a schema-bound view to be published as ''indexed view schema only'' or a log-based indexed view article.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21278,16,0,'The source object ''%ls'' must be a schema-bound view with at least a clustered index to be published as a log-based indexed view article.' ,1033)



insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21279,16,0,'The ''schema_option'' property for a merge article cannot be changed after a snapshot is generated for the publication. To change the ''schema_option'' property of this article the corresponding merge publication must be dropped and re-created.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21280,16,0,'Publication ''%s'' cannot be subscribed to by Subscriber database ''%s'' because it contains one or more articles that have been subscribed to by the same Subscriber database at transaction level.', 1033) 

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21281,16,0,'Publication ''%s'' cannot be subscribed to by Subscriber database ''%s'' because it contains one or more articles that have been subscribed to by the same Subscriber database at merge level.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21282,16,0,'@identity_range, @pub_identity_range, and @threshold must be NULL when @auto_identity_support is set to FALSE.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21283,16,0,'Column ''%s'' of table ''%s'' cannot be excluded from a vertical partition because there is a computed column that depends on it.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21284,16,0,'Failed to drop column ''%s'' from table ''%s''.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21285,16,0,'Failed to add column ''%s'' to table ''%s''.', 1033)


insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21286,16,0,'Conflict table ''%s'' does not exist.', 1033)

--del 21287?  
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (21287 ,16 ,0 ,'The specified @destination_folder is not a valid path of an existing folder.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (21288 ,16 ,0 ,'Could not create the snapshot directory structure in the specified @destination_folder.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (21289 ,16 ,0 ,'Either the snapshot files have not been generated or they have been cleaned up.' ,1033)


insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21290,16,0,'Identity range value is too large for the data type of the identity column.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21291,16,0,'The specified automatic identity support parameters conflict with the settings in another article.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21292,16,0,'Object ''%s'' cannot be published twice in the same publication.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21293 ,10 ,0 ,'Warning: adding updatable subscription for article ''%s'' may cause data inconsistency as the source table is already subscribed to ''%s''' ,1033)


insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21294,16,0,'Either @publisher (and @publisher_db) or @subscriber (and @subscriber_db) must be specified, but both cannot be specified.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21295,16,0,'Publication ''%s'' does not contain any article that uses automatic identity range management.', 1033)


insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21296,16,0,'Parameter @resync_type must be either 0, 1, 2.', 1033)


insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21297,16,0,'Invalid resync type. No validation has been performed for this subscription.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21298,16,0,'Failed to resynchronize this subscription.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21299,16,0,'Invalid Subscriber partition validation expression ''%s''.', 1033)

 go

-- charun
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
		(21300, 10, 0,'The resolver information was specified without specifying the resolver to be used for article ''%s''. The default resolver will be used.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
		(21301, 16, 0,'The resolver information should be specified while using the ''%s'' resolver.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
		(21302, 16, 0,'The resolver information should specify a column with data type, datetime, or smalldatetime while using the ''%s'' resolver.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
		(21303, 16, 0,'The article ''%s'' should enable column tracking to use the ''%s'' resolver. The default resolver will be used to resolve conflicts on this article.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
		(21304, 16, 0,'The merge triggers could not be created on the table ''%s''.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
		(21305, 16, 0,'The schema change information could not be updated at the subscription database.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
		(21306, 16, 0,'The copy of the subscription could not be made because the subscription to publication ''%s'' has expired.', 1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
		(21307, 16, 0,'The subscription could not be attached because the subscription to publication ''%s'' has expired.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
		(21308,10,0,'Rowcount validation profile.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
		(21309,10,0,'Profile used by the Merge Agent to perform rowcount validation.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
		(21310,10,0,'Rowcount and checksum validation profile.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
		(21311,10,0,'Profile used by the Merge Agent to perform rowcount and checksum validation.', 1033)

go

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
		(21312,10,0,'Cannot change this publication property because there are active subscriptions to this publication.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
		(21313,10,0,'Subscriber partition validation expression must be NULL for static publications.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
		(21314,10,0,'There must be one and only one of ''%s'' and ''%s'' that is not NULL.', 1033)
go

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
		(21315,10,0,'Failed to adjust Publisher identity range for table ''%s''.', 1033)
go

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
		(21316,10,0,'Failed to adjust Publisher identity range for publication ''%s''.', 1033)
go

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
		(21317,10,0,'A push subscription to the publication ''%s'' already exists. Use sp_mergesubscription_cleanup to drop defunct push subscriptions.', 1033)
go

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
		(21318,10,0,'Table ''%s'' must have at least one column that is included in the vertical partition.', 1033)
go

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21319 ,16 ,0 ,'Could not find the Snapshot Agent command line for the specified publication.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21320,16,0,'This version of the Publisher cannot use a SQL Server 7.0 Distributor.', 1033)
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21321 ,16 ,0 ,'The parameter @dynamic_snapshot_location cannot be an empty string.' ,1033)


insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21323 ,16 ,0 ,'A dynamic snapshot job can be scheduled only for a publication with dynamic filtering enabled.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21324 ,16 ,0 ,'A Snapshot Agent must be added for the specified publication before a dynamic snapshot job can be scheduled.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21325 ,16 ,0 ,'Could not find the Snapshot Agent ID for the specified publication.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21326 ,16 ,0 ,'Could not find the dynamic snapshot job with a ''%ls'' of ''%ls'' for the specified publication.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21327 ,16 ,0 ,'''%ls'' is not a valid dynamic snapshot job name.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21328 ,16 ,0 ,'The specified dynamic snapshot job name ''%ls'' is already in use. Try the operation again with a different job name.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21329 ,16 ,0 ,'Only one of the parameters, @dynamic_snapshot_jobid or @dynamic_snapshot_jobname, can be specified with a nondefault value.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21330 ,16 ,0 ,'Failed to create a sub-directory under the replication working directory.(%ls)' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21331 ,16 ,0 ,'Failed to copy user script file to the Distributor.(%ls)' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21332 ,16 ,0 ,'Failed to retrieve information about the publication : %ls. Check the name again.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21333,16,0,'Protocol error. Message indicates a generation has disappeared.', 1033)
insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (21334 ,16 ,0 ,'Cannot initialize Message Queuing-based subscription because the platform is not Message Queuing %s compliant' ,1033)
go

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21335,16,0,'Warning: column ''%s'' already exists in the vertical partition already.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21336,16,0,'Warning: column ''%s'' does not exist in the vertical partition.', 1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21337, 16 ,0 ,'Invalid @subscriber_type value. Valid options are ''local'' and ''global''.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21338, 16 ,0 ,'Cannot drop article ''%s'' from publication ''%s'' because its snapshot has been run and this publication could have active subscriptions.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21339, 10 ,0 ,'Warning: the publication uses a feature that is only supported only by Ssubscribers running ''%s'' or higher.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21340 ,16 ,0 ,'On Demand user script cannot be applied to the snapshot publication.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21341 ,16 ,0 ,'@dynamic_snapshot_location cannot be a non-empty string while @alt_snapshot_folder is neither empty nor null.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21342 ,16 ,0 ,'@dynamic_snapshot_location cannot be a non-empty string while @use_ftp is ''true''.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21343, 16 ,0 ,'Could not find stored procedure ''%s''.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21344, 16 ,0 ,'Invalid value specified for %ls parameter.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21345, 16 ,0 ,'Excluding the last column in the partition is not allowed.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21346, 16 ,0 ,'Failed to change the owner of ''%s'' to ''%s''.',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21347, 16 ,0 ,'Column ''%s'' cannot be excluded from the vertical partitioning because there is a unique index accessing this column.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21348, 16 ,0 ,'Invalid property name ''%s''.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21349, 10 ,0 ,'Warning: only Subscribers running SQL Server 7.0 Service Pack 2 or later can synchronize with publication ''%s'' because decentralized conflict logging is designated.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21350, 10 ,0 ,'Warning: only Subscribers running SQL Server 2000 can synchronize with publication ''%s'' because a compressed snapshot is used.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21351, 10 ,0 ,'Warning: only Subscribers running SQL Server 2000 can synchronize with publication ''%s'' because vertical filters are being used.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21352, 10 ,0 ,'Warning: only Subscribers running SQL Server 2000 can synchronize with publication ''%s'' because schema replication is performed.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21353, 10 ,0 ,'Warning: only Subscribers running SQL Server 7.0 Service Pack 2 or later can synchronize with publication ''%s'' because publication wide reinitialization is performed.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21354, 10 ,0 ,'Warning: only Subscribers running SQL Server 2000 can synchronize with publication ''%s'' because publication wide reinitialization is performed.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21355, 10 ,0 ,'Warning: only Subscribers running SQL Server 7.0 Service Pack 2 or later can synchronize with publication ''%s'' because merge metadata cleanup task is performed.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21356, 10 ,0 ,'Warning: only Subscribers running SQL Server 7.0 Service Pack 2 or later can synchronize with publication ''%s'' because publication wide validation task is performed.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21357, 10 ,0 ,'Warning: only Subscribers running SQL Server 2000 can synchronize with publication ''%s'' because data types new in SQL Server 2000 exist in one of its articles.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21358, 10 ,0 ,'Warning: only Subscribers running SQL Server 2000 can synchronize with publication ''%s'' because at least one timestamp column exists in one of its articles..' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21359, 10 ,0 ,'Warning: only Subscribers running SQL Server 2000 can synchronize with publication ''%s'' because automatic identity ranges are being used.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21360, 10 ,0 ,'Warning: only Subscribers running SQL Server 2000 can synchronize with publication ''%s'' because a new article has been added to the publication after its snapshot has been generated.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (21361 ,16 ,0 ,'The specified @agent_jobid is not a valid job id for a ''%s'' agent job.' ,1033)
go

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (21362 ,16 ,0 ,'Merge filter ''%s'' does not exist.' ,1033)
go
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21363 ,16 ,0 ,'Failed to add publication ''%s'' to Active Directory. %s',1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21364 ,16 ,0 ,'Could not add article ''%s'' because a snapshot is already generated. Set @force_invalidate_snapshot to 1 to force this and invalidate the existing snapshot.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21365 ,16 ,0 ,'Could not add article ''%s'' because there are active subscriptions. Set @force_reinit_subscription to 1 to force this and reintialize the active subscriptions.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21366 ,16 ,0 ,'Could not add filter ''%s'' because a snapshot is already generated. Set @force_invalidate_snapshot to 1 to force this and invalidate the existing snapshot.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21367 ,16 ,0 ,'Could not add filter ''%s'' because there are active subscriptions. Set @force_reinit_subscription to 1 to force this and reintialize the active subscriptions.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21368, 16 ,0 ,'The specified offload server name contains the invalid character ''%s''.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21369 ,16 ,0 ,'Could not remove publication ''%s'' from Active Directory.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21370 ,16 ,0 ,'The resync date specified ''%s'' is not a valid date.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21371 ,10 ,0 ,'Could not propagate the change on publication ''%s'' to Active Directory.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21372 ,16 ,0 ,'Cannot drop filter ''%s'' from publication ''%s'' because its snapshot has been run and this publication could have active subscriptions.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21373, 11, 0, 'Could not open database %s. Replication settings and system objects could not be upgraded. If the database is used for replication, run sp_vupgrade_replication in the [master] database when the database is available.', 1033 )

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21374, 10, 0, 'Upgrading distribution settings and system objects in database %s.', 1033 )

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21375, 10, 0, 'Upgrading publication settings and system objects in database %s.', 1033 )

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21376, 11, 0, 'Could not open database %s. Replication settings and system objects could not be upgraded. If the database is used for replication, run sp_vupgrade_replication in the [master] database when the database is available.', 1033 )

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21377, 10, 0, 'Upgrading subscription settings and system objects in database %s.', 1033 )

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
	values
	(21378, 16, 0, 'Could not open distribution database %s because it is offline or being recovered. Replication settings and system objects could not be upgraded. Be sure this database is available and run sp_vupgrade_replication again.', 1033 )

go


insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21379 ,16 ,0 ,'Cannot drop article ''%s'' from publication ''%s'' because a snapshot is already generated. Set @force_invalidate_snapshot to 1 to force this and invalidate the existing snapshot.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21380 ,16 ,0 ,'Cannot add identity column without forcing reinitialization. Set @force_reinit_subscription to 1 to force reinitialization.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21381 ,16 ,0 ,'Cannot add (drop) column to table ''%s'' because the table belongs to publication(s) with an active updatable subscription. Set @force_reinit_subscription to 1 to force reinitialization.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21382 ,16 ,0 ,'Cannot drop filter ''%s'' because a snapshot is already generated. Set @force_invalidate_snapshot to 1 to force this and invalidate the existing snapshot.' ,1033)


insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21383 ,16 ,0 ,'Cannot enable a merge publication on this server because the working directory of its Distributors is not using a UNC path.' ,1033)


insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21384, 16 ,0 ,'The specified subscription does not exist or has not been synchronized yet.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21385, 16 ,0 ,'Snapshot failed to process publication ''%s''. Possibly due to active schema change activity.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21386, 16 ,0 ,'Schema change failed on publication ''%s''. Possibly due to active snapshot or other schema change activity.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21387, 16 ,0 ,'The expanded dynamic snapshot view definition of one of the articles exceeds the system limit of 3499 characters. Consider using the default mechanism instead of the dynamic snapshot for initializing the specified subscription.' ,1033)

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
    	(21388, 10, 0, 'The concurrent snapshot for publication ''%s'' has not been activated by the Log Reader Agent.' ,1033) -- Used for formatmessage

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (21389, 10, 0,'Warning: only Subscribers running SQL Server 2000 can synchronize with publication ''%s'' because column-level collation is scripted out with the article schema creation script.' ,1033)
go


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (21390, 10, 0,'Warning: only Subscribers running SQL Server 2000 can synchronize with publication ''%s'' because extended properties are scripted out with the article schema creation script.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (21391, 10, 0,'Warning: only Subscribers running SQL Server 2000 can synchronize with publication ''%s'' because it contains schema-only articles.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (21392 ,16 ,0 ,'Row filter(%s) is invalid for column partition(%s) for article ''%s'' in publication ''%s''.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    	values
    	(21393 ,16 ,0 ,'Dropping row filter(%s) for article ''%s'' in ''%s''. Reissue sp_articlefilter and sp_articleview to create a row filter.' ,1033)


insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (21394 ,16 ,0 ,'Invalid schema option specified for Queued updating publication. Need to set the schema option to include DRI constraints.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (21395, 10, 0, 'This column cannot be included in a transactional publication because the column ID is greater than 255.' ,1033) 

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
    values
    (21396, 16, 0, 'The subscription is marked inactive and must be dropped and re-created.', 1033)
go

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (21400 ,16 ,0 ,'Article property must be changed at the original Publisher of article ''%s''.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (21401 ,16 ,0 ,'Article name cannot be ''all''.' ,1033)

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (21402 ,16 ,0 ,'Incorrect value for parameter ''%s''.' ,1033)
go

insert into master..sysmessages (error, severity ,dlevel ,description ,msglangid)
    values
    (21403, 10, 0,'The ''max_concurrent_dynamic_snapshots'' publication property must be greater than or equal to zero.' ,1033)
go
insert into master..sysmessages (error, severity ,dlevel ,description ,msglangid)
    values
    (21404, 10, 0,'''%s'' is not a valid value for the ''%s'' parameter. The value must be a positive integer greater than 300 or 0.' ,1033)
go

insert into master..sysmessages (error, severity ,dlevel ,description ,msglangid)
    values
    (21405, 10, 0,'''%s'' is not a valid value for the ''%s'' parameter. The value must be an integer greater than or equal to %d.' ,1033)
go

insert into master..sysmessages (error, severity ,dlevel ,description ,msglangid)
    values
    (21406, 10, 0,'''%s'' is not a valid value for the ''%s'' parameter. The value must be 0 or 1.' ,1033)
go

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (21413 ,16 ,0 ,'Failed to acquire the application lock indicating the front of the queue.' ,1033)
go

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (21414 ,10 ,0 ,'Unexpected failure acquiring application lock.' ,1033)
go

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (21415 ,10 ,0 ,'Unexpected failure releasing application lock.' ,1033)
go

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (21416 ,10 ,0 ,'Property ''%s'' of article ''%s'' cannot be changed.' ,1033)
go

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (21417 ,10 ,0 ,'Having a queue timeout value of over 12 hours is not allowed.' ,1033)
go

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (21418 ,10 ,0 ,'Failed to add column ''%s'' to table ''%s'' because of metadata overflow.' ,1033)
go

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (21419 ,10 ,0 ,'Filter ''%s'' of article ''%s'' cannot be changed.' ,1033)
go

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (21420 ,10 ,0 ,'Subscription property ''%s'' cannot be changed.' ,1033)
go

insert into master..sysmessages (error ,severity ,dlevel ,description ,msglangid)
    values
    (21421 ,10 ,0 ,'Article ''%s'' cannot be dropped because there are other articles using it as a join article.' ,1033)
go

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
		(21500,10,0,'Invalid subscription type is specified. A subscription to publication ''%s'' already exists in the database with a different subscription type.', 1033)
go

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
		(21501,10,0,'The supplied resolver information does not specify a valid column name to be used for conflict resolution by ''%s''.', 1033)
go
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
		(21502,10,0,'The publication ''%s'' does not allow the subscription to synchronize to an alternate synchronization partner.', 1033)

GO

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21503,10,0,'Cleanup of merge meta data cannot be performed while merge processes are running. Retry this operation after the merge processes have completed.', 1033)

GO

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21504,10,0,'Cleanup of merge meta data at republisher ''%s''.''%s'' could not be performed because merge processes are propagating changes to the republisher. All subscriptions to this republisher must be reinitialized.', 1033)
GO

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21505,10,0,'Changes to publication ''%s'' cannot be merged because it has been marked inactive.', 1033)
GO

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21506,10,0,'sp_mergecompletecleanup cannot be executed before sp_mergepreparecleanup is executed. Use sp_mergepreparecleanup to initiate the first phase of merge meta data cleanup.', 1033)
GO

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21507,10,0,'All prerequisites for cleaning up merge meta data have been completed. Execute sp_mergecompletecleanup to initiate the final phase of merge meta data cleanup.', 1033)
GO

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21508,10,0,'Cleanup of merge meta data cannot be performed while merge processes are running. Cleanup will proceed after the merge processes have completed.', 1033)

GO

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21509,10,0,'Cleanup of merge meta data cannot be performed because some republishers have not quiesced their changes. Cleanup will proceed after all republishers have quiesced their changes.', 1033)

GO

insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21510,10,0,'Data changes are not allowed while cleanup of merge meta data is in progress.', 1033)

GO

-- wdreyer
insert into master..sysmessages (error, severity, dlevel, description, msglangid)
	values
	(21511,10,0,'Neither MSmerge_contents nor MSmerge_tombstone contain meta data for this row.', 1033)

GO


BACKUP TRANSACTION master WITH TRUNCATE_ONLY
go

if object_id('sp_configure','P') IS NOT NULL
	begin
		exec sp_configure 'allow updates',0
		reconfigure with override
	end
go

declare @vdt varchar(99)
select  @vdt = convert(varchar,getdate(),113)
raiserror('
Finishing Install\Messages.SQL at  %s',0,1,@vdt)
go
Checkpoint
go
-- -


