删除库
USE master
GOIF EXISTS ( SELECT * FROM SYSDATABASES WHERE NAME='iBridge' )
DROP DATABASE iBridge
GO
CREATE DATABASE iBridge
GO
USE [iBridge]
GO
删除表
use [iBridge] go if exists(select 1 from sysobjects where name = 't_Alarm') drop table [t_Alarm] go if exists(select 1 from sysobjects where name = 't_Circuit_TacticLog') drop table t_Circuit_TacticLog go