if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[IsSpeciality]') and xtype in (N'FN', N'IF', N'TF'))
drop function [dbo].[IsSpeciality]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[EA_List]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[EA_List]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[GetCountAddMyFriend]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[GetCountAddMyFriend]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[GetFriendInfobuy]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[GetFriendInfobuy]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[GetFriendInfosale]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[GetFriendInfosale]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[SelectMyFriend]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[SelectMyFriend]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[p_splitpage]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[p_splitpage]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[upGettemplet]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[upGettemplet]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[SQL_CoNews]') and OBJECTPROPERTY(id, N'IsView') = 1)
drop view [dbo].[SQL_CoNews]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[SQL_company]') and OBJECTPROPERTY(id, N'IsView') = 1)
drop view [dbo].[SQL_company]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[SQL_expo]') and OBJECTPROPERTY(id, N'IsView') = 1)
drop view [dbo].[SQL_expo]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[SQL_info]') and OBJECTPROPERTY(id, N'IsView') = 1)
drop view [dbo].[SQL_info]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[SQL_products]') and OBJECTPROPERTY(id, N'IsView') = 1)
drop view [dbo].[SQL_products]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[SQL_works]') and OBJECTPROPERTY(id, N'IsView') = 1)
drop view [dbo].[SQL_works]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Sql_Article]') and OBJECTPROPERTY(id, N'IsView') = 1)
drop view [dbo].[Sql_Article]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Sql_OrderFrom]') and OBJECTPROPERTY(id, N'IsView') = 1)
drop view [dbo].[Sql_OrderFrom]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Sql_cfavorite]') and OBJECTPROPERTY(id, N'IsView') = 1)
drop view [dbo].[Sql_cfavorite]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Sql_help]') and OBJECTPROPERTY(id, N'IsView') = 1)
drop view [dbo].[Sql_help]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_Article]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_Article]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_Article_Itemplet]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_Article_Itemplet]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_Article_picad]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_Article_picad]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_Article_templet]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_Article_templet]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_Article_textad]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_Article_textad]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_Articlebigclass]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_Articlebigclass]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_Articlejs]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_Articlejs]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_Articlesmlclass]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_Articlesmlclass]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_BigClass]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_BigClass]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_CoNews]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_CoNews]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_CoNewsbigclass]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_CoNewsbigclass]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_CoNewsjs]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_CoNewsjs]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_CoNewssmlclass]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_CoNewssmlclass]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_Company]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_Company]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_Companyen]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_Companyen]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_Companyenmb]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_Companyenmb]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_Helpjs]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_Helpjs]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_Iinfo]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_Iinfo]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_Member]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_Member]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_MemberClass]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_MemberClass]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_MemberFriend]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_MemberFriend]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_MemberFriendClass]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_MemberFriendClass]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_MemberMsg]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_MemberMsg]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_Memberen]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_Memberen]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_Memberpic]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_Memberpic]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_Newskeyword]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_Newskeyword]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_Notepad]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_Notepad]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_OrderForm]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_OrderForm]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_ProductsClassen]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_ProductsClassen]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_Productscn]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_Productscn]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_SQLTag]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_SQLTag]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_SmallClass]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_SmallClass]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_ThreeClass]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_ThreeClass]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_UserfriendLink]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_UserfriendLink]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_adclass]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_adclass]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_adlist]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_adlist]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_admin]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_admin]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_adtype]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_adtype]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_appraise]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_appraise]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_bank]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_bank]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_case]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_case]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_channel]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_channel]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_classad]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_classad]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_classadtype]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_classadtype]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_config]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_config]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_configen]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_configen]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_expo]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_expo]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_expobigclass]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_expobigclass]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_expojs]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_expojs]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_exposmlclass]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_exposmlclass]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_favorite]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_favorite]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_feedback]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_feedback]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_friendlink]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_friendlink]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_help]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_help]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_helpbigclass]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_helpbigclass]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_helpsmlclass]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_helpsmlclass]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_honor]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_honor]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_ihdpad]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_ihdpad]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_info]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_info]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_infoen]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_infoen]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_infojs]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_infojs]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_jifeng]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_jifeng]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_jifengset]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_jifengset]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_keywordad]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_keywordad]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_membersendad]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_membersendad]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_otherpicture]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_otherpicture]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_productsen]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_productsen]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_sendmember]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_sendmember]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_star]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_star]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_sysindexmb]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_sysindexmb]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_syssortmb]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_syssortmb]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_tagclassad]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_tagclassad]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_tagcompany]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_tagcompany]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_taginfo]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_taginfo]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_tagproducts]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_tagproducts]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_tagshopping]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_tagshopping]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_voteclass]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_voteclass]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_votelist]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_votelist]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_website]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_website]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_webtemplet]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_webtemplet]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_works]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_works]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_worksbox]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_worksbox]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Asean_xunjia]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Asean_xunjia]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[addressbook]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[addressbook]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[cfavorite]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[cfavorite]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[msg]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[msg]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[person]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[person]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pfavorite]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[pfavorite]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pmailbox]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[pmailbox]
GO

SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS OFF 
GO

--#Tsys信息发布系统
--#函数：判断指定特性是否存在
--#参数：特性表,指定特性
--#返回：1:存在   0:不存在
CREATE    FUNCTION IsSpeciality(@SpeList nvarchar(1000),@Spe nvarchar(20))  
RETURNS int AS  
BEGIN 
 RETURN(CHARINDEX(','+@Spe+',',','+@SpeList+','))
END


GO
SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO

CREATE TABLE [dbo].[Asean_Article] (
	[ID] [int] IDENTITY (10000, 1) NOT NULL ,
	[BigClassID] [int] NULL ,
	[SmlClassid] [int] NULL ,
	[Title] [nvarchar] (120) COLLATE Chinese_PRC_CI_AS NULL ,
	[Author] [nvarchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[Source] [nvarchar] (60) COLLATE Chinese_PRC_CI_AS NULL ,
	[EditAuthor] [nvarchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[keyword] [nvarchar] (80) COLLATE Chinese_PRC_CI_AS NULL ,
	[hits] [int] NULL ,
	[Content] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[url] [nvarchar] (60) COLLATE Chinese_PRC_CI_AS NULL ,
	[Rate] [int] NULL ,
	[Deled] [bit] NOT NULL ,
	[inputtime] [smalldatetime] NULL ,
	[photo] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Isphoto] [int] NULL ,
	[userid] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Passed] [int] NULL ,
	[Toutiao] [int] NULL ,
	[Binpai] [int] NULL ,
	[Tuijian] [int] NULL ,
	[Guding] [int] NULL ,
	[Biaoticolor] [nvarchar] (10) COLLATE Chinese_PRC_CI_AS NULL ,
	[Channelid] [int] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_Article_Itemplet] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[N_templet] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[N_info] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[N_time] [datetime] NULL ,
	[N_channelid] [int] NULL ,
	[N_is] [bit] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_Article_picad] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[pos] [int] NULL ,
	[pic] [varchar] (70) COLLATE Chinese_PRC_CI_AS NULL ,
	[keyword] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Url] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[datatime] [datetime] NULL ,
	[Endtime] [datetime] NULL ,
	[unit] [int] NULL ,
	[userid] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[channelid] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_Article_templet] (
	[ID] [smallint] IDENTITY (1, 1) NOT NULL ,
	[NT_Title] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[NT_Info] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[NT_Time] [datetime] NULL ,
	[NT_channelid] [int] NULL ,
	[NT_true] [bit] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_Article_textad] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[keyword] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[title] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[url] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[datatime] [datetime] NULL ,
	[Endtime] [datetime] NULL ,
	[unit] [int] NULL ,
	[userid] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[channelid] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_Articlebigclass] (
	[ID] [int] IDENTITY (10000, 1) NOT NULL ,
	[ClassName] [nvarchar] (15) COLLATE Chinese_PRC_CI_AS NULL ,
	[Nav] [int] NULL ,
	[Content] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[ordernum] [int] NULL ,
	[Channelid] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_Articlejs] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[Title] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Bigclass] [int] NULL ,
	[smallclass] [int] NULL ,
	[Num] [int] NULL ,
	[Hnum] [int] NULL ,
	[Text] [int] NULL ,
	[Channelid] [int] NULL ,
	[ISclass] [int] NULL ,
	[IStuijian] [int] NULL ,
	[Isguiding] [int] NULL ,
	[Isbinpai] [int] NULL ,
	[IsPhoto] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_Articlesmlclass] (
	[ID] [int] IDENTITY (10000, 1) NOT NULL ,
	[Bigclassid] [int] NULL ,
	[Smallname] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Content] [nvarchar] (200) COLLATE Chinese_PRC_CI_AS NULL ,
	[Nav] [int] NULL ,
	[Channelid] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_BigClass] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[PBC_name] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[PBC_nameEN] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[PBC_reorder] [bigint] NULL ,
	[PBC_Url] [varchar] (80) COLLATE Chinese_PRC_CI_AS NULL ,
	[PBC_jifeng] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_CoNews] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[BigClassID] [int] NULL ,
	[SmlClassid] [int] NULL ,
	[Title] [nvarchar] (120) COLLATE Chinese_PRC_CI_AS NULL ,
	[Author] [nvarchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[Source] [nvarchar] (60) COLLATE Chinese_PRC_CI_AS NULL ,
	[EditAuthor] [nvarchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[keyword] [nvarchar] (80) COLLATE Chinese_PRC_CI_AS NULL ,
	[hits] [int] NULL ,
	[Content] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[url] [nvarchar] (60) COLLATE Chinese_PRC_CI_AS NULL ,
	[Rate] [int] NULL ,
	[Deled] [bit] NOT NULL ,
	[inputtime] [smalldatetime] NULL ,
	[photo] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Isphoto] [int] NULL ,
	[userid] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Passed] [int] NULL ,
	[Toutiao] [int] NULL ,
	[Binpai] [int] NULL ,
	[Tuijian] [int] NULL ,
	[Guding] [int] NULL ,
	[Biaoticolor] [nvarchar] (10) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_CoNewsbigclass] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[ClassName] [nvarchar] (15) COLLATE Chinese_PRC_CI_AS NULL ,
	[Nav] [int] NULL ,
	[Content] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[ordernum] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_CoNewsjs] (
	[ID] [int] IDENTITY (10000, 1) NOT NULL ,
	[Title] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Bigclass] [int] NULL ,
	[smallclass] [int] NULL ,
	[Num] [int] NULL ,
	[Hnum] [int] NULL ,
	[Text] [int] NULL ,
	[Channelid] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_CoNewssmlclass] (
	[ID] [int] IDENTITY (10000, 1) NOT NULL ,
	[Bigclassid] [int] NULL ,
	[Smallname] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Content] [nvarchar] (200) COLLATE Chinese_PRC_CI_AS NULL ,
	[Nav] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_Company] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[C_Name] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_Cy] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_Mode] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_PurveyProducts] [varchar] (400) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_BuyProducts] [varchar] (400) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_PeopleCount] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_Turnover] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_CEO] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_CreateTime] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_Certificate] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_RegFund] [varchar] (400) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_Url] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_Info] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[C_Userid] [varchar] (32) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_ProductsBClas] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_ProductsSClas] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_logo] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_Time] [datetime] NULL ,
	[C_Unit] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_mb] [varchar] (400) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_jobs] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_oem] [varchar] (10) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_output] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_area] [varchar] (20) COLLATE Chinese_PRC_CI_AS NULL ,
	[c_workshop] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_hits] [int] NULL ,
	[c_tjtime] [datetime] NULL ,
	[C_dqtime] [int] NULL ,
	[C_tjunit] [int] NULL ,
	[C_webtitle] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_webkeyword] [varchar] (200) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_webdescription] [varchar] (300) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_ksdate] [datetime] NULL ,
	[C_ktdate] [datetime] NULL ,
	[C_FM] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[SMT_video] [varchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[SMT_indexpic] [varchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[SMT_flash] [varchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[SMT_color] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[SMT_midi] [varchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[SMT_banner] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Iyn_name01] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Iyn_name02] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Iyn_name03] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Iyn_name04] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Iyn_name05] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Iyn_name06] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Iyn_name07] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Iyn_name08] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Iyn_name09] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Iyn_banner] [varchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[Iyn_h] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[IYN_bbs] [varchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[Iyn_name10] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Iyn_c2c] [varchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[Iyn_shopname] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_Companyen] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[E_intlRole] [smallint] NULL ,
	[E_country] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[E_Companyname] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[E_businesstype] [varchar] (40) COLLATE Chinese_PRC_CI_AS NULL ,
	[E_ContactPerson] [varchar] (20) COLLATE Chinese_PRC_CI_AS NULL ,
	[E_Address] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[E_state] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[E_city] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[E_Zip] [varchar] (10) COLLATE Chinese_PRC_CI_AS NULL ,
	[E_Telephone] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[E_MobilePhone] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[E_Fax] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[E_website] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[E_info] [varchar] (4000) COLLATE Chinese_PRC_CI_AS NULL ,
	[E_userid] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[E_date] [datetime] NULL ,
	[E_job] [smallint] NULL ,
	[E_keyword] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[E_bigclassid] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[E_smallclassid] [varchar] (60) COLLATE Chinese_PRC_CI_AS NULL ,
	[E_markets] [smallint] NULL ,
	[E_othermarkets] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[E_Employees] [smallint] NULL ,
	[E_oem] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[E_ceo] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[E_Annual] [smallint] NULL ,
	[E_Year] [varchar] (10) COLLATE Chinese_PRC_CI_AS NULL ,
	[E_unit] [smallint] NULL ,
	[E_webtitle] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[E_webkeyword] [varchar] (60) COLLATE Chinese_PRC_CI_AS NULL ,
	[E_webdescription] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_Companyenmb] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[Gold_member_mb] [text] COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_Helpjs] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[Title] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Bigclass] [int] NULL ,
	[smallclass] [int] NULL ,
	[Num] [int] NULL ,
	[Hnum] [int] NULL ,
	[Text] [int] NULL ,
	[Channelid] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_Iinfo] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[i_title] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[i_turl] [varchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[i_ontop] [int] NULL ,
	[i_comment] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[i_color] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[i_datatime] [datetime] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_Member] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[M_Userid] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_Password] [varchar] (60) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_Question] [varchar] (200) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_Key] [varchar] (200) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_Name] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_Email] [varchar] (80) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_Tel] [varchar] (60) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_Country] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_Province] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_City] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_Adder] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_Zipcode] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_Fax] [varchar] (60) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_Combined] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_Url] [varchar] (80) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_SendToMe] [bit] NULL ,
	[M_Power] [varchar] (500) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_Habitus] [smallint] NULL ,
	[M_Time] [datetime] NULL ,
	[M_usertype] [smallint] NULL ,
	[M_user] [smallint] NULL ,
	[M_sex] [varchar] (10) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_citycn] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_old] [varchar] (20) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_birth] [varchar] (20) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_face] [varchar] (20) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_star] [varchar] (20) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_online] [int] NULL ,
	[M_qm] [varchar] (60) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_ip] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_safepwd] [varchar] (32) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_nickname] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_writename] [varchar] (200) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_SessionID] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_MemberClass] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[MC_Name] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[MC_Userid] [varchar] (60) COLLATE Chinese_PRC_CI_AS NULL ,
	[MC_memberid] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[MC_Explain] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[MC_OrderBy] [bigint] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_MemberFriend] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[F_Userid] [varchar] (32) COLLATE Chinese_PRC_CI_AS NULL ,
	[F_Myuserid] [varchar] (32) COLLATE Chinese_PRC_CI_AS NULL ,
	[F_FriendClass] [int] NULL ,
	[F_check] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_MemberFriendClass] (
	[id] [smallint] IDENTITY (1, 1) NOT NULL ,
	[C_Name] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_Userid] [char] (30) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_MemberMsg] (
	[Id] [int] IDENTITY (1, 1) NOT NULL ,
	[M_SendUserid] [varchar] (60) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_AcknowledgmentUserid] [varchar] (60) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_Read] [bit] NULL ,
	[M_Habitus] [smallint] NULL ,
	[M_Title] [varchar] (120) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_Info] [varchar] (1024) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_Encls] [varchar] (200) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_Time] [datetime] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_Memberen] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[R_type] [smallint] NULL ,
	[R_userid] [varchar] (22) COLLATE Chinese_PRC_CI_AS NULL ,
	[R_password] [varchar] (22) COLLATE Chinese_PRC_CI_AS NULL ,
	[R_email] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[R_firstname] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[R_lastname] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[R_sex] [varchar] (6) COLLATE Chinese_PRC_CI_AS NULL ,
	[R_online] [smallint] NULL ,
	[R_adddate] [datetime] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_Memberpic] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[P_Filename] [varchar] (120) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_Filename_small] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_FileSize] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_FileTime] [datetime] NULL ,
	[P_Explain] [varchar] (300) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_LikeTo] [smallint] NULL ,
	[P_Userid] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_uptype] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_Newskeyword] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[K_name] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[K_url] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_Notepad] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[Userid] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[Title] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Info] [varchar] (200) COLLATE Chinese_PRC_CI_AS NULL ,
	[Class] [varchar] (10) COLLATE Chinese_PRC_CI_AS NULL ,
	[Remind] [bit] NULL ,
	[Remindtime] [datetime] NULL ,
	[Datatime] [datetime] NULL ,
	[addyear] [varchar] (10) COLLATE Chinese_PRC_CI_AS NULL ,
	[addmonth] [varchar] (10) COLLATE Chinese_PRC_CI_AS NULL ,
	[addday] [varchar] (10) COLLATE Chinese_PRC_CI_AS NULL ,
	[readcheck] [bit] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_OrderForm] (
	[ID] [int] IDENTITY (10000, 1) NOT NULL ,
	[OrderFormNum] [nvarchar] (20) COLLATE Chinese_PRC_CI_AS NULL ,
	[UserName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ProductsID] [int] NULL ,
	[ProductsNum] [int] NULL ,
	[NeedInvoice] [bit] NULL ,
	[InvoiceContent] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[Remark] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[MoneyReceipt] [money] NULL ,
	[InputTime] [datetime] NULL ,
	[Begintime] [datetime] NULL ,
	[ContacterName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Address] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[ZipCode] [nvarchar] (10) COLLATE Chinese_PRC_CI_AS NULL ,
	[Mobile] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Phone] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Email] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[PaymentType] [int] NULL ,
	[Ordertype] [int] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_ProductsClassen] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[P_classname] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_userid] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_Productscn] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[P_name] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_pattern] [varchar] (200) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_from] [varchar] (120) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_BigClassID] [int] NULL ,
	[P_SmallClassID] [int] NULL ,
	[P_Keyword] [varchar] (200) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_Explain] [varchar] (2048) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_Pic] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_smallPic] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_MyClassID] [int] NULL ,
	[P_Unit] [int] NULL ,
	[P_memberid] [int] NULL ,
	[P_Userid] [varchar] (60) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_Url] [varchar] (80) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_Unitb] [int] NULL ,
	[datatime] [datetime] NULL ,
	[P_member] [int] NULL ,
	[p_hits] [int] NULL ,
	[p_tjtime] [datetime] NULL ,
	[P_dqtime] [int] NULL ,
	[P_tjunit] [int] NULL ,
	[P_safe] [bit] NULL ,
	[P_mb_tj] [bit] NULL ,
	[P_danwei] [varchar] (20) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_type] [int] NULL ,
	[P_price] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Isprice] [bit] NULL ,
	[P_ThreeClassId] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_SQLTag] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[T_Name] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[T_Remark] [varchar] (200) COLLATE Chinese_PRC_CI_AS NULL ,
	[T_SQL] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[T_HTML] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[IsUsable] [bit] NULL ,
	[T_Type] [varchar] (500) COLLATE Chinese_PRC_CI_AS NULL ,
	[T_Language] [varchar] (20) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_SmallClass] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[PSC_name] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[PSC_nameEN] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[PSC_bigid] [int] NULL ,
	[PSC_reorder] [bigint] NULL ,
	[PBC_Url] [varchar] (80) COLLATE Chinese_PRC_CI_AS NULL ,
	[PSC_jifeng] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_ThreeClass] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[ClassName] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[SmallClassID] [int] NULL ,
	[Numorder] [int] NULL ,
	[BigClassID] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_UserfriendLink] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[L_title] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[L_type] [int] NULL ,
	[L_logo] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[L_comment] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[L_unit] [int] NULL ,
	[L_userID] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_adclass] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[S_typeid] [int] NULL ,
	[S_sortname] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[S_jifeng] [int] NULL ,
	[S_remark] [varchar] (200) COLLATE Chinese_PRC_CI_AS NULL ,
	[S_rebate] [decimal](18, 2) NULL ,
	[S_w] [int] NULL ,
	[S_h] [int] NULL ,
	[S_num] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_adlist] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[A_userid] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[A_jifen] [float] NULL ,
	[A_starttime] [datetime] NULL ,
	[A_endtime] [datetime] NULL ,
	[A_typeid] [int] NULL ,
	[A_sortid] [int] NULL ,
	[A_rebate] [float] NULL ,
	[A_pic] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[A_place] [varchar] (20) COLLATE Chinese_PRC_CI_AS NULL ,
	[A_website] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[A_explain] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[A_webname] [varchar] (40) COLLATE Chinese_PRC_CI_AS NULL ,
	[A_unit] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_admin] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[M_Userid] [varchar] (32) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[M_Password] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[M_Nmae] [varchar] (30) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[M_Role] [varchar] (2000) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_Lock] [bit] NULL ,
	[M_LoginTime] [datetime] NULL ,
	[M_LoginIP] [varchar] (16) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_LoginCount] [int] NULL ,
	[Purview] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_adtype] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[T_ad_typename] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_appraise] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[A_appraise] [int] NULL ,
	[A_content] [varchar] (200) COLLATE Chinese_PRC_CI_AS NULL ,
	[A_man] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[A_time] [datetime] NULL ,
	[A_userid] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_bank] (
	[ID] [int] IDENTITY (10000, 1) NOT NULL ,
	[banktitle] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[banknumber] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[bankname] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Banktype] [int] NULL ,
	[memberID] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[istrue] [bit] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_case] (
	[ID] [int] IDENTITY (10000, 1) NOT NULL ,
	[title] [varchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[Comment] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[siteurl] [varchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[upphoto] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[Classid] [int] NULL ,
	[updatetime] [smalldatetime] NULL ,
	[ontop] [int] NULL ,
	[unit] [int] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_channel] (
	[ID] [int] IDENTITY (10000, 1) NOT NULL ,
	[c_name] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_itemunit] [varchar] (10) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_sortname] [varchar] (20) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_readme] [varchar] (200) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_keywords] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_description] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_dir] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[NewsListnum] [int] NULL ,
	[Nav] [int] NULL ,
	[StructureType] [int] NULL ,
	[FileNameType] [int] NULL ,
	[FileExt_Item] [int] NULL ,
	[HitsOfHot] [int] NULL ,
	[Syclass] [int] NULL ,
	[CommentCount] [int] NULL ,
	[ordernum] [int] NULL ,
	[Isdisabled] [bit] NULL ,
	[Channeltype] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_classad] (
	[Adid] [int] IDENTITY (1, 1) NOT NULL ,
	[title] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[color] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[cu] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[bgcolor1] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[text] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[money] [float] NULL ,
	[type] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[username] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[cardid] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[tel] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[date] [smalldatetime] NULL ,
	[time] [smalldatetime] NULL ,
	[stop] [smalldatetime] NULL ,
	[mark] [int] NULL ,
	[ontop] [int] NULL ,
	[ispic] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[pic] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[url] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[hot] [int] NULL ,
	[shouye] [int] NULL ,
	[hits] [int] NULL ,
	[ip] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[uid] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Acompany] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_classadtype] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[indexid] [int] NULL ,
	[name] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[trcolor] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[tdcolor] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[titlecolor] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[telcolor] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[indexshow] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_config] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[C_Keyword] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[C_emailserver] [varchar] (40) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_emailuser] [varchar] (40) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_emailpass] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_publish_info] [smallint] NULL ,
	[C_publish_products] [smallint] NULL ,
	[C_citybottom] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[C_cityurl] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_cityname] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_citytitle] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_citydns] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_cityaddress] [varchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_cityTel] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_cityWebqq] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_citypreson] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_citylogo] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_cityver] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_citynamefw] [varchar] (20) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_cityFax] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[c_citymii] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_citybbs] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[C_copyright] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[C_Law] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[C_aboutme] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[C_fuwu] [ntext] COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_configen] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[Hotkeyword] [varchar] (500) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_expo] (
	[ID] [int] IDENTITY (10000, 1) NOT NULL ,
	[BigClassID] [int] NULL ,
	[SmlClassid] [int] NULL ,
	[Title] [nvarchar] (120) COLLATE Chinese_PRC_CI_AS NULL ,
	[Author] [nvarchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[Source] [nvarchar] (60) COLLATE Chinese_PRC_CI_AS NULL ,
	[EditAuthor] [nvarchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[keyword] [nvarchar] (80) COLLATE Chinese_PRC_CI_AS NULL ,
	[hits] [int] NULL ,
	[Content] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[url] [nvarchar] (60) COLLATE Chinese_PRC_CI_AS NULL ,
	[Rate] [int] NULL ,
	[Deled] [bit] NOT NULL ,
	[inputtime] [smalldatetime] NULL ,
	[photo] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Isphoto] [int] NULL ,
	[userid] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Passed] [int] NULL ,
	[Toutiao] [int] NULL ,
	[Binpai] [int] NULL ,
	[Tuijian] [int] NULL ,
	[Guding] [int] NULL ,
	[Biaoticolor] [nvarchar] (10) COLLATE Chinese_PRC_CI_AS NULL ,
	[address] [varchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[Begintime] [datetime] NULL ,
	[endtime] [datetime] NULL ,
	[front] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[undertake] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[linkman] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[linktel] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[linkaddress] [varchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[linkcode] [varchar] (7) COLLATE Chinese_PRC_CI_AS NULL ,
	[linkmobile] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[linkmail] [varchar] (60) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_expobigclass] (
	[ID] [int] IDENTITY (10000, 1) NOT NULL ,
	[ClassName] [nvarchar] (15) COLLATE Chinese_PRC_CI_AS NULL ,
	[Nav] [int] NULL ,
	[Content] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[ordernum] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_expojs] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[Title] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Bigclass] [int] NULL ,
	[smallclass] [int] NULL ,
	[Num] [int] NULL ,
	[Hnum] [int] NULL ,
	[Text] [int] NULL ,
	[Channelid] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_exposmlclass] (
	[ID] [int] IDENTITY (10000, 1) NOT NULL ,
	[Bigclassid] [int] NULL ,
	[Smallname] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Content] [nvarchar] (200) COLLATE Chinese_PRC_CI_AS NULL ,
	[Nav] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_favorite] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[F_id] [int] NULL ,
	[F_userid] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[F_type] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_feedback] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[comment] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[sender_email] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_datetime] [datetime] NULL ,
	[recontent] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[pass] [int] NULL ,
	[showye] [int] NULL ,
	[retime] [datetime] NULL ,
	[name] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[title] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[uid] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[tel] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_friendlink] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[L_Name] [varchar] (180) COLLATE Chinese_PRC_CI_AS NULL ,
	[L_Url] [varchar] (180) COLLATE Chinese_PRC_CI_AS NULL ,
	[L_Order] [int] NULL ,
	[L_tw] [int] NULL ,
	[L_type] [int] NULL ,
	[L_pic] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[L_unit] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_help] (
	[ID] [int] IDENTITY (10000, 1) NOT NULL ,
	[BigClassID] [int] NULL ,
	[SmlClassid] [int] NULL ,
	[Title] [nvarchar] (120) COLLATE Chinese_PRC_CI_AS NULL ,
	[Author] [nvarchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[Source] [nvarchar] (60) COLLATE Chinese_PRC_CI_AS NULL ,
	[EditAuthor] [nvarchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[keyword] [nvarchar] (80) COLLATE Chinese_PRC_CI_AS NULL ,
	[hits] [int] NULL ,
	[Content] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[url] [nvarchar] (60) COLLATE Chinese_PRC_CI_AS NULL ,
	[Rate] [int] NULL ,
	[Deled] [bit] NOT NULL ,
	[inputtime] [datetime] NULL ,
	[photo] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Isphoto] [int] NULL ,
	[userid] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Passed] [int] NULL ,
	[Toutiao] [int] NULL ,
	[Binpai] [int] NULL ,
	[Tuijian] [int] NULL ,
	[Guding] [int] NULL ,
	[Biaoticolor] [nvarchar] (10) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_helpbigclass] (
	[ID] [int] IDENTITY (10000, 1) NOT NULL ,
	[ClassName] [nvarchar] (15) COLLATE Chinese_PRC_CI_AS NULL ,
	[Nav] [int] NULL ,
	[Content] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[ordernum] [int] NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_helpsmlclass] (
	[ID] [int] IDENTITY (10000, 1) NOT NULL ,
	[Bigclassid] [int] NULL ,
	[Smallname] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Content] [nvarchar] (200) COLLATE Chinese_PRC_CI_AS NULL ,
	[Nav] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_honor] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[H_name] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[H_setup] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[H_pic] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[H_starttime] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[H_endtime] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[H_userid] [varchar] (20) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_ihdpad] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[picurl01] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[picurl02] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[picurl03] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[picurl04] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[picurl05] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[httpurl01] [varchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[httpurl02] [varchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[httpurl03] [varchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[httpurl04] [varchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[httpurl05] [varchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[shuomin01] [varchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[shuomin02] [varchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[shuomin03] [varchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[shuomin04] [varchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[shuomin05] [varchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[beizhu] [varchar] (255) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_info] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[I_Type] [int] NULL ,
	[I_title] [varchar] (800) COLLATE Chinese_PRC_CI_AS NULL ,
	[I_BigClassId] [int] NULL ,
	[I_SmallClassId] [int] NULL ,
	[I_Keyword] [varchar] (800) COLLATE Chinese_PRC_CI_AS NULL ,
	[I_FbTime] [datetime] NULL ,
	[I_JzTime] [datetime] NULL ,
	[I_explain] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[I_specification] [varchar] (400) COLLATE Chinese_PRC_CI_AS NULL ,
	[I_CountNumber] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[I_packageexplain] [varchar] (400) COLLATE Chinese_PRC_CI_AS NULL ,
	[I_price] [varchar] (400) COLLATE Chinese_PRC_CI_AS NULL ,
	[I_Pic] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[I_smallPic] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[I_Userid] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[I_memberid] [int] NULL ,
	[I_Unit] [smallint] NULL ,
	[I_company] [varchar] (60) COLLATE Chinese_PRC_CI_AS NULL ,
	[I_hits] [bigint] NULL ,
	[I_member] [int] NULL ,
	[I_url] [int] NULL ,
	[I_paixu] [int] NULL ,
	[I_tjtime] [datetime] NULL ,
	[I_dqtime] [int] NULL ,
	[I_tjunit] [smallint] NULL ,
	[I_pic_2] [varchar] (80) COLLATE Chinese_PRC_CI_AS NULL ,
	[I_pic_3] [varchar] (80) COLLATE Chinese_PRC_CI_AS NULL ,
	[I_price_y] [int] NULL ,
	[I_ip] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[I_threeclassid] [int] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_infoen] (
	[Id] [int] IDENTITY (1, 1) NOT NULL ,
	[S_type] [smallint] NULL ,
	[S_title] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[S_ProductName] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[S_Modelnumber] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[S_Placeoforigin] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[S_Fullsize] [varchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[S_PostDate] [datetime] NULL ,
	[S_expirydate] [datetime] NULL ,
	[S_userid] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[S_pic] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[S_smallpic] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[S_info] [varchar] (4000) COLLATE Chinese_PRC_CI_AS NULL ,
	[S_keyword] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[S_bigclassID] [int] NULL ,
	[S_smallclassID] [int] NULL ,
	[S_Quantity] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[S_Packaging] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[S_unit] [smallint] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_infojs] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[Title] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[bigclassid] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[smlclassid] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[num] [int] NULL ,
	[showstrtype] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[text] [int] NULL ,
	[hnum] [int] NULL ,
	[hot] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[tuijian] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[view] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[pictype] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Strtype] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_jifeng] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[D_userid] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[D_num] [int] NULL ,
	[D_starttime] [datetime] NULL ,
	[D_endtime] [datetime] NULL ,
	[D_ip] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[D_hits] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_jifengset] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[info_tj] [int] NULL ,
	[info_hot] [int] NULL ,
	[products_tj] [int] NULL ,
	[products_hot] [int] NULL ,
	[company_info] [int] NULL ,
	[company_products] [int] NULL ,
	[company_tj] [int] NULL ,
	[company_hot] [int] NULL ,
	[company_company] [int] NULL ,
	[company_job] [int] NULL ,
	[News_zg] [int] NULL ,
	[News_left] [int] NULL ,
	[News_right] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_keywordad] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[Weburl] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[pic] [char] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[keyword] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[datatimeT] [datetime] NULL ,
	[datatimeD] [datetime] NULL ,
	[typeid] [int] NULL ,
	[menuid] [int] NULL ,
	[jifeng] [int] NULL ,
	[Userid] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[remark] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[unit] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_membersendad] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[A_ad] [int] NULL ,
	[A_userid] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[A_Name] [varchar] (20) COLLATE Chinese_PRC_CI_AS NULL ,
	[A_sex] [char] (4) COLLATE Chinese_PRC_CI_AS NULL ,
	[A_company] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[A_job] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[A_tel] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[A_mobile] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[A_email] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[A_time] [datetime] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_otherpicture] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[P_Filename] [varchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_Filename_small] [varchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_FileSize] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_FileTime] [datetime] NULL ,
	[P_Explain] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[P_LikeTo] [int] NULL ,
	[P_Userid] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_uptype] [int] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_productsen] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[P_name] [varchar] (80) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_title] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_PriceTerms] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_Quantity] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_OtherPriceTerms] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_SupplyAbility] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_MinimumOrder] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_DeliveryLeadTime] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_Innerpacking] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_Outerpacking] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_userid] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_info] [varchar] (4000) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_classid] [int] NULL ,
	[P_postdate] [datetime] NULL ,
	[P_pic] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_smallPic] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_Modelnumber] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_Fullsize] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_Placeoforigin] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_bigclassid] [int] NULL ,
	[P_smallclassid] [int] NULL ,
	[P_keyword] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[P_Feature] [bit] NULL ,
	[P_hot] [bit] NULL ,
	[P_unit] [smallint] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_sendmember] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[M_type] [int] NULL ,
	[M_userid] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_name] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_sex] [varchar] (4) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_company] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_job] [varchar] (20) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_tel] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_mobile] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_email] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_time] [datetime] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_star] (
	[star_id] [int] IDENTITY (1, 1) NOT NULL ,
	[star_name] [varchar] (20) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[star_post] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[star_intro] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[star_pic] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[star_pass] [int] NOT NULL ,
	[star_date] [datetime] NOT NULL ,
	[star_userid] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_sysindexmb] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[T_info] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[T_products] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[T_news] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[T_jobs] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[datatime] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[T_trade] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[T_member] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[t_memberen] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[T_email] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[T_emailtitle] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[T_index] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[T_company] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[M_company] [ntext] COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_syssortmb] (
	[Id] [int] IDENTITY (1, 1) NOT NULL ,
	[I_bigmb] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[I_smallmb] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[P_bigmb] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[P_smallmb] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[C_bigmb] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[C_smallmb] [text] COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_tagclassad] (
	[ID] [int] IDENTITY (10000, 1) NOT NULL ,
	[cntitle] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[tagtype] [int] NULL ,
	[tjinfo] [int] NULL ,
	[hotinfo] [int] NULL ,
	[Num] [int] NULL ,
	[Text] [int] NULL ,
	[NavPic] [int] NULL ,
	[Gdate] [int] NULL ,
	[DateColor] [nvarchar] (8) COLLATE Chinese_PRC_CI_AS NULL ,
	[NewsBg] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[TDate] [int] NULL ,
	[Picwidth] [int] NULL ,
	[Picheight] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_tagcompany] (
	[ID] [int] IDENTITY (10000, 1) NOT NULL ,
	[cntitle] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[tagtype] [int] NULL ,
	[tjinfo] [int] NULL ,
	[hotinfo] [int] NULL ,
	[Num] [int] NULL ,
	[Text] [int] NULL ,
	[NavPic] [int] NULL ,
	[Gdate] [int] NULL ,
	[DateColor] [nvarchar] (8) COLLATE Chinese_PRC_CI_AS NULL ,
	[NewsBg] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[TDate] [int] NULL ,
	[Picwidth] [int] NULL ,
	[Picheight] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_taginfo] (
	[ID] [int] IDENTITY (10000, 1) NOT NULL ,
	[cntitle] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[tagtype] [int] NULL ,
	[tjinfo] [int] NULL ,
	[hotinfo] [int] NULL ,
	[Num] [int] NULL ,
	[Text] [int] NULL ,
	[NavPic] [int] NULL ,
	[Gdate] [int] NULL ,
	[DateColor] [nvarchar] (8) COLLATE Chinese_PRC_CI_AS NULL ,
	[NewsBg] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[TDate] [int] NULL ,
	[Picwidth] [int] NULL ,
	[Picheight] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_tagproducts] (
	[ID] [int] IDENTITY (10000, 1) NOT NULL ,
	[cntitle] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[tagtype] [int] NULL ,
	[tjinfo] [int] NULL ,
	[hotinfo] [int] NULL ,
	[Num] [int] NULL ,
	[Text] [int] NULL ,
	[NavPic] [int] NULL ,
	[Gdate] [int] NULL ,
	[DateColor] [nvarchar] (8) COLLATE Chinese_PRC_CI_AS NULL ,
	[NewsBg] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[TDate] [int] NULL ,
	[Picwidth] [int] NULL ,
	[Picheight] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_tagshopping] (
	[ID] [int] IDENTITY (10000, 1) NOT NULL ,
	[cntitle] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[tagtype] [int] NULL ,
	[tjinfo] [int] NULL ,
	[hotinfo] [int] NULL ,
	[Num] [int] NULL ,
	[Text] [int] NULL ,
	[NavPic] [int] NULL ,
	[Gdate] [int] NULL ,
	[DateColor] [nvarchar] (8) COLLATE Chinese_PRC_CI_AS NULL ,
	[NewsBg] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[TDate] [int] NULL ,
	[Picwidth] [int] NULL ,
	[Picheight] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_voteclass] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[title] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[style] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[time] [datetime] NULL ,
	[daima] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[ren] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[overtime] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[kg] [int] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_votelist] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[vote] [varchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[class] [int] NULL ,
	[count] [int] NULL ,
	[color] [varchar] (10) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_website] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[W_name] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[W_url] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[W_userid] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[W_sm] [varchar] (300) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_webtemplet] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[T_templet] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[T_files] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[T_other] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[T_unit] [int] NULL ,
	[T_pic] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[T_info] [ntext] COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_works] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[usid] [smalldatetime] NULL ,
	[uname] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[job] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[zptext] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[click] [int] NULL ,
	[idate] [smalldatetime] NULL ,
	[zpnum] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[nianlings] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[edus] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[languages] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[jobtypes] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[hkas] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[hkbs] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[pthuas] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[computers] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[sexs] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[shisus] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[youxiaos] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[marrys] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[zyes] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[moneys] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[gzdd] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[cname] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[addtime] [smalldatetime] NULL ,
	[cypic] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_worksbox] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[reid] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[senduid] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[sendname] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[title] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[mailtext] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[newmail] [int] NULL ,
	[sdate] [smalldatetime] NULL ,
	[Useid] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[Asean_xunjia] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[Title] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[I_id] [int] NULL ,
	[Tel] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Address] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[content] [varchar] (1000) COLLATE Chinese_PRC_CI_AS NULL ,
	[Formname] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Formemail] [varchar] (60) COLLATE Chinese_PRC_CI_AS NULL ,
	[toemail] [varchar] (60) COLLATE Chinese_PRC_CI_AS NULL ,
	[s_date] [datetime] NULL ,
	[S_type] [smallint] NULL ,
	[userid] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_Read] [bit] NULL ,
	[M_userid] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[addressbook] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[uesrid] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[friendname] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[sex] [bit] NULL ,
	[Tel] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[mobile] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Fax] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Email] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[website] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[address] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[company] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[comaddre] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[qq] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[remark] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[selectclass] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[adddatetime] [datetime] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[cfavorite] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[uname] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[fuid] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[msg] (
	[msg_id] [int] IDENTITY (1, 1) NOT NULL ,
	[sendnmb] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[recvnmb] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ip] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[message] [varchar] (1000) COLLATE Chinese_PRC_CI_AS NULL ,
	[wdate] [datetime] NULL ,
	[ifread] [int] NULL ,
	[ifknow] [int] NULL ,
	[msgtype] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[person] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[uname] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[pwd] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[email] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[idate] [smalldatetime] NULL ,
	[guoji] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[shengao] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[nianling] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[tizhong] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[iname] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[sex] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[bday] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[code] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[mzhu] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[marry] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[hka] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[hkb] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[zzmm] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[zcheng] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[edu] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[edus] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[zye] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[zym] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[zyes] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[zyms] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[school] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[byday] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[languages] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[lanlevels] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[language] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[lanlevel] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[mubiao] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[rctype] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[pthua] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[computer] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[othertc] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[gznum] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[gzjl] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[jobtype] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[job] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[gzdd] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[otheryq] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[yuex] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[cname] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[phone] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[callnum] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[oicq] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[http] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[jobs] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[job1] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[job1s] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[job2] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[job2s] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[grzz] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[workdate] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[gzdd1] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[gzdd2] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[gzdd3] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[gzdd4] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[gzdd5] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[posts] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[shouji] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[jtphone] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[emails] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[address] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[pic] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[click] [int] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[pfavorite] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[uname] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[fuid] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[pmailbox] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[reid] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[senduid] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[sendname] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[title] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[mailtext] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[newmail] [int] NULL ,
	[sdate] [smalldatetime] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

ALTER TABLE [dbo].[Asean_Article] ADD 
	CONSTRAINT [PK_Asean_Article] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_Article_Itemplet] ADD 
	CONSTRAINT [DF_R_iNews_templet_N_is] DEFAULT (0) FOR [N_is],
	CONSTRAINT [PK_Asean_Article_Itemplet] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_Article_picad] ADD 
	CONSTRAINT [DF_R_news_ad_pic_datatime] DEFAULT (getdate()) FOR [datatime],
	CONSTRAINT [PK_R_news_ad_pic] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_Article_templet] ADD 
	CONSTRAINT [DF_R_News_Template_NT_Time] DEFAULT (getdate()) FOR [NT_Time],
	CONSTRAINT [PK_Asean_Article_templet] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_Article_textad] ADD 
	CONSTRAINT [DF_R_news_ad_datatime] DEFAULT (getdate()) FOR [datatime],
	CONSTRAINT [PK_R_news_ad] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_Articlejs] ADD 
	CONSTRAINT [DF_Asean_Articlejs_ISclass] DEFAULT (0) FOR [ISclass],
	CONSTRAINT [DF_Asean_Articlejs_IStuijian] DEFAULT (0) FOR [IStuijian],
	CONSTRAINT [DF_Asean_Articlejs_Isguiding] DEFAULT (0) FOR [Isguiding],
	CONSTRAINT [DF_Asean_Articlejs_Isbinpai] DEFAULT (0) FOR [Isbinpai],
	CONSTRAINT [DF_Asean_Articlejs_IsPhoto] DEFAULT (0) FOR [IsPhoto],
	CONSTRAINT [PK_Asean_Articlejs] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_Articlesmlclass] ADD 
	CONSTRAINT [PK_Asean_Articlesmlclass] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_BigClass] ADD 
	CONSTRAINT [PK_Asean_BigClass] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_CoNews] ADD 
	CONSTRAINT [PK_Asean_CoNews] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_CoNewsbigclass] ADD 
	CONSTRAINT [PK_Asean_CoNewsbigclass] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_CoNewsjs] ADD 
	CONSTRAINT [PK_Asean_CoNewsjs] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_CoNewssmlclass] ADD 
	CONSTRAINT [PK_Asean_CoNewssmlclass] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_Company] ADD 
	CONSTRAINT [PK_Asean_Company] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] ,
	CONSTRAINT [IX_asean_company] UNIQUE  NONCLUSTERED 
	(
		[C_Userid]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_Companyen] ADD 
	CONSTRAINT [PK_Asean_Companyen] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_Companyenmb] ADD 
	CONSTRAINT [PK_Asean_Companyenmb] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_Helpjs] ADD 
	CONSTRAINT [PK_asean_newsjs] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_Iinfo] ADD 
	CONSTRAINT [PK_Asean_Iinfo] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_Member] ADD 
	CONSTRAINT [PK_Asean_Member] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] ,
	CONSTRAINT [IX_Asean_Member] UNIQUE  NONCLUSTERED 
	(
		[M_Userid]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_MemberClass] ADD 
	CONSTRAINT [PK_Asean_MemberClass] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_MemberFriend] ADD 
	CONSTRAINT [PK_Asean_MemberFriend] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_MemberFriendClass] ADD 
	CONSTRAINT [PK_Asean_MemberFriendClass] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_MemberMsg] ADD 
	CONSTRAINT [PK_Asean_MemberMsg] PRIMARY KEY  CLUSTERED 
	(
		[Id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_Memberen] ADD 
	CONSTRAINT [PK_R_member_e] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_Memberpic] ADD 
	CONSTRAINT [PK_Asean_Memberpic] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_Newskeyword] ADD 
	CONSTRAINT [PK_Asean_Newskeyword] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_Notepad] ADD 
	CONSTRAINT [PK_Asean_Notepad] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_OrderForm] ADD 
	CONSTRAINT [PK_Asean_OrderForm] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_ProductsClassen] ADD 
	CONSTRAINT [PK_Asean_ProductsClassen] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_Productscn] ADD 
	CONSTRAINT [PK_Asean_Productscn] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_SQLTag] ADD 
	CONSTRAINT [DF_Asean_SQLTag_IsUsable] DEFAULT (1) FOR [IsUsable],
	CONSTRAINT [PK_Asean_DynamicTag] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_SmallClass] ADD 
	CONSTRAINT [PK_Asean_SmallClass] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_ThreeClass] ADD 
	CONSTRAINT [PK_Asean_ThreeClass] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_UserfriendLink] ADD 
	CONSTRAINT [PK_Asean_UserfriendLink] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_adclass] ADD 
	CONSTRAINT [PK_Asean_adclass] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_adlist] ADD 
	CONSTRAINT [PK_Asean_adlist] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_adtype] ADD 
	CONSTRAINT [PK_Asean_adtype] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_appraise] ADD 
	CONSTRAINT [PK_Asean_appraise] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_bank] ADD 
	CONSTRAINT [PK_Asean_bank] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_case] ADD 
	CONSTRAINT [PK_Asean_case] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_channel] ADD 
	CONSTRAINT [PK_Asean_channel] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_classad] ADD 
	CONSTRAINT [PK_Asean_classad] PRIMARY KEY  CLUSTERED 
	(
		[Adid]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_classadtype] ADD 
	CONSTRAINT [PK_Asean_classadtype] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_config] ADD 
	CONSTRAINT [PK_R_Config] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_expo] ADD 
	CONSTRAINT [PK_Asean_expo] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_expobigclass] ADD 
	CONSTRAINT [PK_Asean_expobigclass] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_expojs] ADD 
	CONSTRAINT [PK_Asean_expojs] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_exposmlclass] ADD 
	CONSTRAINT [PK_Asean_exposmlclass] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_feedback] ADD 
	CONSTRAINT [PK_Asean_feedback] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_friendlink] ADD 
	CONSTRAINT [PK_Asean_friendlink] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_help] ADD 
	CONSTRAINT [PK_Asean_help] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_helpbigclass] ADD 
	CONSTRAINT [DF_Asean_helpbigclass_ordernum] DEFAULT (0) FOR [ordernum],
	CONSTRAINT [PK_Asean_helpbigclass] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_helpsmlclass] ADD 
	CONSTRAINT [PK_Asean_helpsmlclass] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_honor] ADD 
	CONSTRAINT [PK_Asean_honor] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_ihdpad] ADD 
	CONSTRAINT [PK_Asean_ihdpad] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_info] ADD 
	CONSTRAINT [PK_Asean_info] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_infoen] ADD 
	CONSTRAINT [PK_R_info_e] PRIMARY KEY  CLUSTERED 
	(
		[Id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_infojs] ADD 
	CONSTRAINT [PK_Asean_infojs] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_jifeng] ADD 
	CONSTRAINT [PK_Asean_jifeng] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_jifengset] ADD 
	CONSTRAINT [PK_Asean_jifengset] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_keywordad] ADD 
	CONSTRAINT [DF_R_info_ad_datatime] DEFAULT (getdate()) FOR [datatimeT],
	CONSTRAINT [PK_Asean_keywordad] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_membersendad] ADD 
	CONSTRAINT [DF_R_sendad_A_time] DEFAULT (getdate()) FOR [A_time],
	CONSTRAINT [PK_Asean_membersendad] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_otherpicture] ADD 
	CONSTRAINT [PK_Asean_otherpicture] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_productsen] ADD 
	CONSTRAINT [PK_R_products_e] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_sendmember] ADD 
	CONSTRAINT [PK_Asean_sendmember] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_star] ADD 
	CONSTRAINT [PK_Asean_star] PRIMARY KEY  CLUSTERED 
	(
		[star_id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_sysindexmb] ADD 
	CONSTRAINT [PK_Asean_sysindexmb] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_syssortmb] ADD 
	CONSTRAINT [PK_Asean_syssortmb] PRIMARY KEY  CLUSTERED 
	(
		[Id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_tagclassad] ADD 
	CONSTRAINT [PK_Asean_tagclassad] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_tagcompany] ADD 
	CONSTRAINT [PK_Asean_tagcompany] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_taginfo] ADD 
	CONSTRAINT [PK_Asean_taginfo] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_tagproducts] ADD 
	CONSTRAINT [PK_Asean_tagproducts] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_tagshopping] ADD 
	CONSTRAINT [PK_Asean_tagshopping] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_voteclass] ADD 
	CONSTRAINT [PK_Aseanec_voteclass] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_votelist] ADD 
	CONSTRAINT [DF_Asean_votelist_count] DEFAULT (0) FOR [count],
	CONSTRAINT [PK_Asean_votelist] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_website] ADD 
	CONSTRAINT [PK_R_website] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_webtemplet] ADD 
	CONSTRAINT [PK_R_templet] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_works] ADD 
	CONSTRAINT [PK_zp] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_worksbox] ADD 
	CONSTRAINT [PK_cmailbox] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Asean_xunjia] ADD 
	CONSTRAINT [PK_Asean_xunjia] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[addressbook] ADD 
	CONSTRAINT [PK_addressbook] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[cfavorite] ADD 
	CONSTRAINT [PK_cfavorite] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[msg] ADD 
	CONSTRAINT [PK_msg] PRIMARY KEY  CLUSTERED 
	(
		[msg_id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[person] ADD 
	CONSTRAINT [DF_person_pic] DEFAULT (N'../images/nopic1.gif') FOR [pic],
	CONSTRAINT [PK_person] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[pfavorite] ADD 
	CONSTRAINT [PK_pfavorite] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[pmailbox] ADD 
	CONSTRAINT [DF_pmailbox_newmail] DEFAULT (0) FOR [newmail],
	CONSTRAINT [PK_pmailbox] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

SET QUOTED_IDENTIFIER ON 
GO
SET ANSI_NULLS ON 
GO


CREATE VIEW dbo.SQL_CoNews
AS
SELECT dbo.Asean_CoNews.*, dbo.Asean_CoNewsbigclass.ClassName, 
      dbo.Asean_CoNewssmlclass.Smallname
FROM dbo.Asean_CoNews LEFT OUTER JOIN
      dbo.Asean_CoNewsbigclass ON 
      dbo.Asean_CoNews.BigClassID = dbo.Asean_CoNewsbigclass.ID LEFT OUTER JOIN
      dbo.Asean_CoNewssmlclass ON 
      dbo.Asean_CoNews.SmlClassid = dbo.Asean_CoNewssmlclass.ID


GO
SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO

SET QUOTED_IDENTIFIER ON 
GO
SET ANSI_NULLS ON 
GO



CREATE  VIEW dbo.SQL_company
AS
SELECT dbo.Asean_Company.*, dbo.Asean_Member.M_Habitus AS M_Habitus, 
      dbo.Asean_Member.M_Tel AS M_Tel, dbo.Asean_Member.M_Country AS M_Country, 
      dbo.Asean_Member.M_Province AS M_Province, 
      dbo.Asean_Member.M_City AS M_City, dbo.Asean_Member.M_Adder AS M_Adder, 
      dbo.Asean_Member.M_Zipcode AS M_Zipcode, 
      dbo.Asean_Member.M_Fax AS M_Fax, 
      dbo.Asean_Member.M_Combined AS M_Combined, 
      dbo.Asean_Member.M_Url AS M_Url, dbo.Asean_Member.M_Time AS M_Time, 
      dbo.Asean_Member.M_Email AS M_Email, 
      dbo.Asean_Member.M_Name AS M_Name, 
      dbo.Asean_Member.M_usertype AS M_usertype
 FROM dbo.Asean_Company,
      dbo.Asean_Member 
WHERE dbo.Asean_Company.C_Userid = dbo.Asean_Member.M_Userid


GO
SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO

SET QUOTED_IDENTIFIER ON 
GO
SET ANSI_NULLS ON 
GO


CREATE VIEW dbo.SQL_expo
AS
SELECT dbo.Asean_expo.*, dbo.Asean_expobigclass.ClassName, 
      dbo.Asean_exposmlclass.Smallname
FROM dbo.Asean_expo LEFT OUTER JOIN
      dbo.Asean_expobigclass ON 
      dbo.Asean_expo.BigClassID = dbo.Asean_expobigclass.ID LEFT OUTER JOIN
      dbo.Asean_exposmlclass ON 
      dbo.Asean_expo.SmlClassid = dbo.Asean_exposmlclass.ID


GO
SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO

SET QUOTED_IDENTIFIER ON 
GO
SET ANSI_NULLS ON 
GO



CREATE VIEW dbo.SQL_info
AS
SELECT dbo.Asean_Company.ID AS C_id, dbo.Asean_Company.C_Name, dbo.Asean_info.*, 
      dbo.Asean_Member.M_Habitus, M_time, C_CEO, C_Logo, C_url, C_cy, C_mode, C_peoplecount, C_RegFund, 
      M_name, M_Tel, M_Combined, M_Fax, M_Country, M_Province, M_City, M_Adder, M_Zipcode
FROM dbo.Asean_info,
      dbo.Asean_Member,
	  dbo.Asean_Company
WHERE dbo.Asean_info.I_Userid = dbo.Asean_Member.M_Userid
  AND dbo.Asean_info.I_Userid = dbo.Asean_Company.C_Userid


GO
SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO

SET QUOTED_IDENTIFIER ON 
GO
SET ANSI_NULLS ON 
GO



CREATE  VIEW dbo.SQL_products
AS
SELECT dbo.Asean_Company.ID AS C_ID, dbo.Asean_Productscn.*, dbo.Asean_Company.C_Name, 
      dbo.Asean_Member.M_Habitus, dbo.Asean_Member.M_Tel, 
      dbo.Asean_Company.ID AS coid, dbo.Asean_Company.C_CEO
FROM dbo.Asean_Productscn,
      dbo.Asean_Member,
	  dbo.Asean_Company
WHERE dbo.Asean_Productscn.P_Userid = dbo.Asean_Member.M_Userid
  AND dbo.Asean_Productscn.P_Userid = dbo.Asean_Company.C_Userid



GO
SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO

SET QUOTED_IDENTIFIER ON 
GO
SET ANSI_NULLS ON 
GO

CREATE VIEW dbo.SQL_works
AS
SELECT dbo.Asean_Company.C_Name, dbo.Asean_Company.ID AS Coid, 
      dbo.Asean_works.*
FROM dbo.Asean_works LEFT OUTER JOIN
      dbo.Asean_Company ON dbo.Asean_Company.C_Userid = dbo.Asean_works.uname

GO
SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO

SET QUOTED_IDENTIFIER ON 
GO
SET ANSI_NULLS ON 
GO


CREATE VIEW dbo.Sql_Article
AS
SELECT dbo.Asean_Article.*, dbo.Asean_Articlebigclass.ClassName, 
      dbo.Asean_Articlesmlclass.Smallname
FROM dbo.Asean_Article LEFT OUTER JOIN
      dbo.Asean_Articlebigclass ON 
      dbo.Asean_Article.BigClassID = dbo.Asean_Articlebigclass.ID LEFT OUTER JOIN
      dbo.Asean_Articlesmlclass ON 
      dbo.Asean_Article.SmlClassid = dbo.Asean_Articlesmlclass.ID


GO
SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO

SET QUOTED_IDENTIFIER ON 
GO
SET ANSI_NULLS ON 
GO

CREATE VIEW dbo.Sql_OrderFrom
AS
SELECT dbo.Asean_OrderForm.*, dbo.Asean_Productscn.P_name
FROM dbo.Asean_OrderForm LEFT OUTER JOIN
      dbo.Asean_Productscn ON 
      dbo.Asean_OrderForm.ProductsID = dbo.Asean_Productscn.id

GO
SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO

SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO

CREATE VIEW dbo.Sql_cfavorite
AS
SELECT dbo.cfavorite.uname, dbo.person.iname, dbo.person.sex, dbo.person.edu, 
      dbo.person.job, dbo.person.idate, dbo.person.id, dbo.person.jobtype
FROM dbo.cfavorite LEFT OUTER JOIN
      dbo.person ON dbo.cfavorite.fuid = dbo.person.id

GO
SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO

SET QUOTED_IDENTIFIER ON 
GO
SET ANSI_NULLS ON 
GO

CREATE VIEW dbo.Sql_help
AS
SELECT dbo.Asean_help.*, dbo.Asean_helpbigclass.ClassName, 
      dbo.Asean_helpsmlclass.Smallname
FROM dbo.Asean_help LEFT OUTER JOIN
      dbo.Asean_helpbigclass ON 
      dbo.Asean_help.BigClassID = dbo.Asean_helpbigclass.ID LEFT OUTER JOIN
      dbo.Asean_helpsmlclass ON 
      dbo.Asean_help.SmlClassid = dbo.Asean_helpsmlclass.ID

GO
SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO

SET QUOTED_IDENTIFIER ON 
GO
SET ANSI_NULLS OFF 
GO

CREATE PROCEDURE [dbo].[EA_List]
@Keyword nvarchar
AS
declare @Sql nvarchar(500) 
SET @Sql = 'SELECT * FROM Table WHERE 1=1'
IF @Keyword = ''
	BEGIN
		SET @Sql= @Sql + ' ORDER BY ID DESC'
	END

GO
SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO

SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS OFF 
GO

---统计多少人把我加入了好友
CREATE PROCEDURE [dbo].[GetCountAddMyFriend] 
	@Userid Varchar(60)
AS
	Select Count(ID) As intCount From R_MemberFriend Where F_Userid=@Userid

GO
SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO

SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS OFF 
GO

--统计好友的商业机会总数,,,,,买
CREATE PROCEDURE [dbo].[GetFriendInfobuy] 
	@FriendUserid Varchar(60)--好友用户名
AS
	Select Count(ID) As intCount From R_Info Where I_Userid=@FriendUserid And I_Type=2

GO
SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO

SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS OFF 
GO

--统计好友的商业机会总数,,,,,卖
CREATE PROCEDURE [dbo].[GetFriendInfosale] 
	@FriendUserid Varchar(60)--好友用户名
AS
	Select Count(ID) as intCount From R_Info Where I_Userid=@FriendUserid And I_Type=1

GO
SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO

SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS OFF 
GO

--显示出商业伙伴
CREATE PROCEDURE [dbo].[SelectMyFriend] 
--@MyUserid 用户ID号
--@FrinedUserid   好友ID号
	@MyUserid VarChar(60),
	@FrinedClassid bigint
AS
	Select R_Member.M_Name,R_MemberFriend.F_Userid,R_ProductsBigClass.PBC_name,R_Member.M_Province,R_Member.M_City,R_MemberFriend.[id], count(R_MemberFriend.id)  as intcount 
	           From R_MemberFriend Left Join (R_Member Left Join (R_Company Left Join R_ProductsBigClass On(R_Company.C_ProductsBClas=R_ProductsBigClass.[id])) On (R_Member.M_Userid=R_Company.C_Userid)) On (R_Member.M_Userid=R_MemberFriend.F_Userid) 
	           Where R_MemberFriend.F_Myuserid=@MyUserid And R_MemberFriend.F_FriendClass=@FrinedClassid Group by R_MemberFriend.id, R_Member.M_Name,R_MemberFriend.F_Userid,R_ProductsBigClass.PBC_name,R_Member.M_Province,R_Member.M_City,R_MemberFriend.[id]
	Return

GO
SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO

SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS OFF 
GO

CREATE   procedure p_splitpage   
@sql nvarchar(4000), --要执行的sql语句
@currentpage int=2,  --要显示的页码
@pagesize int=10,  --每页的大小
@pagecount int=0 out --总页数
as
set nocount on
declare @p1 int
exec sp_cursoropen @p1 output,@sql,@scrollopt=1,@ccopt=1,@rowcount=@pagecount output
set @pagecount = ceiling(1.0*@pagecount/@pagesize) 
set @currentpage=(@currentpage-1)*@pagesize+1
--输出总页数
select @pagecount AS "PageCount"
--输出记录集
exec sp_cursorfetch @p1,16,@currentpage,@pagesize 
exec sp_cursorclose @p1
GO
SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO

SET QUOTED_IDENTIFIER ON 
GO
SET ANSI_NULLS OFF 
GO


CREATE PROCEDURE upGettemplet
(
@templet       VARCHAR(50),
@info        VARCHAR(50),
@channelid   int
) 
AS
BEGIN
insert into R_iNews_templet(N_templet,N_info, N_channelid)
values(@templet,@info,@channelid)      
END
GO
SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO

