3月4
我相信有很多用过000webhost免费空间的,大部分朋友知道000空间会在你的网页中加一段代码。如下:

那段代码就000webhost的统计代码。相信大家更倾向于去掉它,而000webhost其实提供了这个功能。只是不容易找到。本人以前听人说可以去掉这段代码也曾尝试着在Capnel面板里找,但一直没有发现。后来还是在网上看到了关闭统计(即去掉统计代码)的链接。如下:
000webhost关闭统计网址:http://members.000webhost.com/analytics.php

那段代码就000webhost的统计代码。相信大家更倾向于去掉它,而000webhost其实提供了这个功能。只是不容易找到。本人以前听人说可以去掉这段代码也曾尝试着在Capnel面板里找,但一直没有发现。后来还是在网上看到了关闭统计(即去掉统计代码)的链接。如下:
000webhost关闭统计网址:http://members.000webhost.com/analytics.php
3月4
1、判断数据库是否存在
if exists (select * from sys.databases where name = '数据库名')
drop database [数据库名]
2、判断表是否存在
if exists (select * from sysobjects where id = object_id(N'[表名]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [表名]
3、判断存储过程是否存在
if exists (select * from sysobjects where id = object_id(N'[存储过程名]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [存储过程名]
4、判断临时表是否存在
if object_id('tempdb..#临时表名') is not null
drop table #临时表名
if exists (select * from sys.databases where name = '数据库名')
drop database [数据库名]
2、判断表是否存在
if exists (select * from sysobjects where id = object_id(N'[表名]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [表名]
3、判断存储过程是否存在
if exists (select * from sysobjects where id = object_id(N'[存储过程名]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [存储过程名]
4、判断临时表是否存在
if object_id('tempdb..#临时表名') is not null
drop table #临时表名





