mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
12 lines
309 B
Transact-SQL
12 lines
309 B
Transact-SQL
-- =============================================
|
|
-- Drop Aggregate Template
|
|
-- =============================================
|
|
IF EXISTS(
|
|
SELECT *
|
|
FROM sys.objects
|
|
WHERE name = N'<aggregate_name, sysname, test_agg>'
|
|
AND (type = 'AF')
|
|
)
|
|
DROP AGGREGATE <aggregate_name, sysname, test_agg>
|
|
GO
|