1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
use $(database)
exec [$(bingo)]._DropAllIndices
go
:r bingo_drop_methods.sql
drop procedure [$(bingo)].log_events
go
drop event notification $(bingo)_$(database)_logout_notify on server;
go
drop route $(bingo)_notify_route;
go
drop service $(bingo)_notify_service;
go
drop queue [$(bingo)].notify_queue;
go
drop table [$(bingo)].CONFIG
go
drop table [$(bingo)].CONFIG_BIN
go
drop table [$(bingo)].CONTEXT;
go
drop table [$(bingo)].TAUTOMER_RULES
go
DROP ROLE $(bingo)_operator;
GO
DROP ROLE $(bingo)_reader;
GO
DROP SCHEMA $(bingo);
GO
DROP USER $(bingo);
GO
DROP CERTIFICATE $(bingo)_certificate;
GO
DROP ASSEMBLY $(bingo)_assembly;
GO
use master;
IF ($(fulldelete) = 1)
BEGIN
DROP LOGIN $(bingo)_assembly_login;
DROP ASYMMETRIC KEY bingo_assembly_key;
END
GO
|