sp_drop_agent_profile (Transact-SQL)

Drops a profile from the MSagent_profiles table. This stored procedure is executed at the Distributor on any database.

Topic link iconTransact-SQL Syntax Conventions

Syntax

sp_drop_agent_profile [ @profile_id = ] profile_id

Arguments

  • [ **@profile\_id=**\] profile_id
    Is the ID of the profile to be dropped. profile_id is int, with no default.

Return Code Values

0 (success) or 1 (failure)

Remarks

sp_drop_agent_profile is used in all types of replication.

The parameters of the given profile are also dropped from the MSagent_parameters table.

Permissions

Only members of the sysadmin fixed server role can execute sp_drop_agent_profile.

See Also

Reference

sp_add_agent_profile (Transact-SQL)
sp_change_agent_profile (Transact-SQL)
sp_help_agent_profile (Transact-SQL)
System Stored Procedures (Transact-SQL)

Help and Information

Getting SQL Server 2005 Assistance