IF EXISTS (SELECT name FROM master.dbo.sysdatabases WHERE name = N'UFDATA_999_2009')
DROP DATABASE [UFDATA_999_2009]
DELETE FROM [UFSystem]..[UA_Account_sub] Where cAcc_Id='999'
DELETE FROM [UFSystem]..[UA_Period] Where cAcc_Id='999'
DELETE FROM [UFSystem]..[UA_Log] Where cAcc_Id='999'
DELETE FROM [UFSystem]..[UA_Account] Where cAcc_Id='999'
DELETE FROM [UFSystem]..[UA_Identity] Where cAcc_Id='999'
DELETE FROM [UFSystem]..[UA_Identity] Where cAcc_Id='999'