IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_AddPermissionToRole]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_AddPermissionToRole]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_AddUserToRole]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_AddUserToRole]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_ClearPermissionsFromRole]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_ClearPermissionsFromRole]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_CreatePermission]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_CreatePermission]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_CreatePermissionCategory]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_CreatePermissionCategory]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_CreateRole]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_CreateRole]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_CreateUser]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_CreateUser]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_DeletePermission]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_DeletePermission]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_DeletePermissionCategory]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_DeletePermissionCategory]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_DeleteRole]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_DeleteRole]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_DeleteUser]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_DeleteUser]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_GetAllRoles]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_GetAllRoles]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_GetEffectivePermissionList]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_GetEffectivePermissionList]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_GetEffectivePermissionListID]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_GetEffectivePermissionListID]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_GetNoPermissionList]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_GetNoPermissionList]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_GetPermissionCategories]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_GetPermissionCategories]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_GetPermissionCategoryDetails]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_GetPermissionCategoryDetails]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_GetPermissionDetails]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_GetPermissionDetails]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_GetPermissionList]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_GetPermissionList]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_GetPermissionsInCategory]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_GetPermissionsInCategory]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_GetRegionID]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_GetRegionID]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_GetRoleDetails]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_GetRoleDetails]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_GetUserDetails]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_GetUserDetails]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_GetUserDetailsByUserName]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_GetUserDetailsByUserName]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_GetUserRoles]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_GetUserRoles]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_GetUsers]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_GetUsers]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_GetUsersByDepart]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_GetUsersByDepart]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_GetUsersByDepartUserType]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_GetUsersByDepartUserType]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_GetUsersByType]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_GetUsersByType]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_RemovePermissionFromRole]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_RemovePermissionFromRole]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_RemoveUserFromRole]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_RemoveUserFromRole]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_SendEmail]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_SendEmail]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_SetPassword]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_SetPassword]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_TestPassword]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_TestPassword]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_UpdatePermission]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_UpdatePermission]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_UpdateRole]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_UpdateRole]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_UpdateUser]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_UpdateUser]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_ValidateLogin]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Accounts_ValidateLogin]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_cc_Category_Update]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_cc_Category_Update]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_CMS_Category_Delete]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_CMS_Category_Delete]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_CMS_ContentClass_Create]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_CMS_ContentClass_Create]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_CMS_SwapContentClassSequence]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_CMS_SwapContentClassSequence]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_CMS_SwapVideoClassSequence]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_CMS_SwapVideoClassSequence]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_CMS_VideoClass_Create]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_CMS_VideoClass_Create]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_CMS_VideoClass_Delete]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_CMS_VideoClass_Delete]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_EmailQueue_Delete]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_EmailQueue_Delete]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_EmailQueue_Failure]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_EmailQueue_Failure]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Emails_Dequeue]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Emails_Dequeue]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Emails_Enqueue]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Emails_Enqueue]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_SwapManage]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Shop_SwapManage]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_TagCategories_Create]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Shop_TagCategories_Create]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_TagCategories_Delete]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Shop_TagCategories_Delete]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_TagCategories_SwapSequence]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Shop_TagCategories_SwapSequence]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Show_Shop_ProductTypesCreateUpdateDelete]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Show_Shop_ProductTypesCreateUpdateDelete]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_SiteSettings_Save]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_SiteSettings_Save]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_SNS_AblumsDeleteAction]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_SNS_AblumsDeleteAction]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_SNS_Category_Create]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_SNS_Category_Create]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_SNS_Category_SwapSequence]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_SNS_Category_SwapSequence]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_SNS_CommentDeleteAction]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_SNS_CommentDeleteAction]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_SNS_ImageDeleteAction]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_SNS_ImageDeleteAction]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_UserAttendance_Statistics]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_UserAttendance_Statistics]
GO
IF  EXISTS (SELECT * FROM sys.views WHERE object_id = OBJECT_ID(N'[View_Content]'))
DROP VIEW [View_Content]
GO
IF  EXISTS (SELECT * FROM sys.views WHERE object_id = OBJECT_ID(N'[View_ContentClass]'))
DROP VIEW [View_ContentClass]
GO
IF  EXISTS (SELECT * FROM sys.views WHERE object_id = OBJECT_ID(N'[View_Video]'))
DROP VIEW [View_Video]
GO
IF  EXISTS (SELECT * FROM sys.views WHERE object_id = OBJECT_ID(N'[View_VideoAlbum]'))
DROP VIEW [View_VideoAlbum]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Sp_MsgBox_SetSystemMsgStateToAlreadyRead]') AND type in (N'P', N'PC'))
DROP PROCEDURE [Sp_MsgBox_SetSystemMsgStateToAlreadyRead]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Sp_MsgBox_SetSystemMsgStateToDel]') AND type in (N'P', N'PC'))
DROP PROCEDURE [Sp_MsgBox_SetSystemMsgStateToDel]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Pay_BalanceDetails_Create]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Pay_BalanceDetails_Create]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Pay_PaymentMode_CreateUpdateDelete]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Pay_PaymentMode_CreateUpdateDelete]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Pay_PaymentMode_Sequence]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Pay_PaymentMode_Sequence]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_AttributesCreateEditDelete]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Shop_AttributesCreateEditDelete]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_AttributesValuesCreateEditDelete]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Shop_AttributesValuesCreateEditDelete]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_BrandsCreateUpdateDelete]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Shop_BrandsCreateUpdateDelete]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_Category_Create]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Shop_Category_Create]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_Category_Delete]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Shop_Category_Delete]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_Category_SwapSequence]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Shop_Category_SwapSequence]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_ChangeProductsCategory]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Shop_ChangeProductsCategory]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_DeleteBeforeUpdate]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Shop_DeleteBeforeUpdate]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_DeleteManage]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Shop_DeleteManage]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_DeleteProducts]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Shop_DeleteProducts]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_DisplaceCategory]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Shop_DisplaceCategory]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_ProductSkuInfo_Get]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Shop_ProductSkuInfo_Get]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_ProductSkuInfo_NotPage_GetProdAcce]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Shop_ProductSkuInfo_NotPage_GetProdAcce]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_ProductStationModesInfo]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Shop_ProductStationModesInfo]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_ProductInfo_Get]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Shop_ProductInfo_Get]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_CompareProduct]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Shop_CompareProduct]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_CompareProductBasicInfo]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Shop_CompareProductBasicInfo]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_BrandsPageInfo]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_Shop_BrandsPageInfo]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_SearchProducts]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_SearchProducts]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_WeChat_Action_TargetId]') AND type = 'D')
BEGIN
ALTER TABLE [WeChat_Action] DROP CONSTRAINT [DF_WeChat_Action_TargetId]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_Action]') AND type in (N'U'))
DROP TABLE [WeChat_Action]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_WeChat_ActivityAward_TargetId]') AND type = 'D')
BEGIN
ALTER TABLE [WeChat_ActivityAward] DROP CONSTRAINT [DF_WeChat_ActivityAward_TargetId]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_ActivityAward]') AND type in (N'U'))
DROP TABLE [WeChat_ActivityAward]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_ActivityCode]') AND type in (N'U'))
DROP TABLE [WeChat_ActivityCode]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_ActivityDetail]') AND type in (N'U'))
DROP TABLE [WeChat_ActivityDetail]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_WeChat_Activity_Type]') AND type = 'D')
BEGIN
ALTER TABLE [WeChat_ActivityInfo] DROP CONSTRAINT [DF_WeChat_Activity_Type]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_WeChat_ActivityInfo_AwardType]') AND type = 'D')
BEGIN
ALTER TABLE [WeChat_ActivityInfo] DROP CONSTRAINT [DF_WeChat_ActivityInfo_AwardType]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_ActivityInfo]') AND type in (N'U'))
DROP TABLE [WeChat_ActivityInfo]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_WeChat_Command_ActionId]') AND type = 'D')
BEGIN
ALTER TABLE [WeChat_Command] DROP CONSTRAINT [DF_WeChat_Command_ActionId]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_WeChat_Command_TargetId]') AND type = 'D')
BEGIN
ALTER TABLE [WeChat_Command] DROP CONSTRAINT [DF_WeChat_Command_TargetId]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_WeChat_Command_Status]') AND type = 'D')
BEGIN
ALTER TABLE [WeChat_Command] DROP CONSTRAINT [DF_WeChat_Command_Status]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_Command]') AND type in (N'U'))
DROP TABLE [WeChat_Command]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_Config]') AND type in (N'U'))
DROP TABLE [WeChat_Config]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_CustomerMsg]') AND type in (N'U'))
DROP TABLE [WeChat_CustomerMsg]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_CustUserMsg]') AND type in (N'U'))
DROP TABLE [WeChat_CustUserMsg]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_Group]') AND type in (N'U'))
DROP TABLE [WeChat_Group]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_KeyRule]') AND type in (N'U'))
DROP TABLE [WeChat_KeyRule]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_WeChat_KeyValue_RuleId]') AND type = 'D')
BEGIN
ALTER TABLE [WeChat_KeyValue] DROP CONSTRAINT [DF_WeChat_KeyValue_RuleId]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_WeChat_KeyValue_MatchType]') AND type = 'D')
BEGIN
ALTER TABLE [WeChat_KeyValue] DROP CONSTRAINT [DF_WeChat_KeyValue_MatchType]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_KeyValue]') AND type in (N'U'))
DROP TABLE [WeChat_KeyValue]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_LinkLog]') AND type in (N'U'))
DROP TABLE [WeChat_LinkLog]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_Location]') AND type in (N'U'))
DROP TABLE [WeChat_Location]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_WeChat_Menu_HasChildren]') AND type = 'D')
BEGIN
ALTER TABLE [WeChat_Menu] DROP CONSTRAINT [DF_WeChat_Menu_HasChildren]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_Menu]') AND type in (N'U'))
DROP TABLE [WeChat_Menu]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_MsgItem]') AND type in (N'U'))
DROP TABLE [WeChat_MsgItem]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_NoReplyMsg]') AND type in (N'U'))
DROP TABLE [WeChat_NoReplyMsg]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_OPLog]') AND type in (N'U'))
DROP TABLE [WeChat_OPLog]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Wiki_PostMsg_UserMsgId]') AND type = 'D')
BEGIN
ALTER TABLE [WeChat_PostMsg] DROP CONSTRAINT [DF_Wiki_PostMsg_UserMsgId]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_PostMsg]') AND type in (N'U'))
DROP TABLE [WeChat_PostMsg]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_WeChat_PostMsgItem_Type]') AND type = 'D')
BEGIN
ALTER TABLE [WeChat_PostMsgItem] DROP CONSTRAINT [DF_WeChat_PostMsgItem_Type]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_PostMsgItem]') AND type in (N'U'))
DROP TABLE [WeChat_PostMsgItem]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_RequestMsg]') AND type in (N'U'))
DROP TABLE [WeChat_RequestMsg]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_Scene]') AND type in (N'U'))
DROP TABLE [WeChat_Scene]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_WeChat_SceneDetail_Sex]') AND type = 'D')
BEGIN
ALTER TABLE [WeChat_SceneDetail] DROP CONSTRAINT [DF_WeChat_SceneDetail_Sex]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_SceneDetail]') AND type in (N'U'))
DROP TABLE [WeChat_SceneDetail]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_SysMsg]') AND type in (N'U'))
DROP TABLE [WeChat_SysMsg]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_WeChat_TaskMsg_GroupId]') AND type = 'D')
BEGIN
ALTER TABLE [WeChat_TaskMsg] DROP CONSTRAINT [DF_WeChat_TaskMsg_GroupId]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_WeChat_TaskMsg_UserName]') AND type = 'D')
BEGIN
ALTER TABLE [WeChat_TaskMsg] DROP CONSTRAINT [DF_WeChat_TaskMsg_UserName]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_TaskMsg]') AND type in (N'U'))
DROP TABLE [WeChat_TaskMsg]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_WeChat_User_UserId]') AND type = 'D')
BEGIN
ALTER TABLE [WeChat_User] DROP CONSTRAINT [DF_WeChat_User_UserId]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SA_WikiUser_GroupId]') AND type = 'D')
BEGIN
ALTER TABLE [WeChat_User] DROP CONSTRAINT [DF_SA_WikiUser_GroupId]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_WeChat_User_Sex]') AND type = 'D')
BEGIN
ALTER TABLE [WeChat_User] DROP CONSTRAINT [DF_WeChat_User_Sex]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_User]') AND type in (N'U'))
DROP TABLE [WeChat_User]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_GetAllTableInfoByName]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_GetAllTableInfoByName]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_GetRecordByPage]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_GetRecordByPage]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_GetRecordByPageOrder]') AND type in (N'P', N'PC'))
DROP PROCEDURE [sp_GetRecordByPageOrder]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SP_GetTableInfo]') AND type in (N'P', N'PC'))
DROP PROCEDURE [SP_GetTableInfo]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_Actions_Permission]') AND type in (N'U'))
DROP TABLE [Accounts_Actions_Permission]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Accounts_EmailQueue_NextTryTime]') AND type = 'D')
BEGIN
ALTER TABLE [Accounts_EmailQueue] DROP CONSTRAINT [DF_Accounts_EmailQueue_NextTryTime]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Accounts_EmailQueue_NumberOfTries]') AND type = 'D')
BEGIN
ALTER TABLE [Accounts_EmailQueue] DROP CONSTRAINT [DF_Accounts_EmailQueue_NumberOfTries]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_EmailQueue]') AND type in (N'U'))
DROP TABLE [Accounts_EmailQueue]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_MailConfig]') AND type in (N'U'))
DROP TABLE [Accounts_MailConfig]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_PermissionCategories]') AND type in (N'U'))
DROP TABLE [Accounts_PermissionCategories]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_Permissions]') AND type in (N'U'))
DROP TABLE [Accounts_Permissions]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_PointsAction]') AND type in (N'U'))
DROP TABLE [Accounts_PointsAction]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_PointsDetail]') AND type in (N'U'))
DROP TABLE [Accounts_PointsDetail]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Accounts_PointsLimit_TargetId]') AND type = 'D')
BEGIN
ALTER TABLE [Accounts_PointsLimit] DROP CONSTRAINT [DF_Accounts_PointsLimit_TargetId]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Accounts_PointsLimit_TargetType]') AND type = 'D')
BEGIN
ALTER TABLE [Accounts_PointsLimit] DROP CONSTRAINT [DF_Accounts_PointsLimit_TargetType]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_PointsLimit]') AND type in (N'U'))
DROP TABLE [Accounts_PointsLimit]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Accounts_PointsRule_TargetId]') AND type = 'D')
BEGIN
ALTER TABLE [Accounts_PointsRule] DROP CONSTRAINT [DF_Accounts_PointsRule_TargetId]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Accounts_PointsRule_TargetType]') AND type = 'D')
BEGIN
ALTER TABLE [Accounts_PointsRule] DROP CONSTRAINT [DF_Accounts_PointsRule_TargetType]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_PointsRule]') AND type in (N'U'))
DROP TABLE [Accounts_PointsRule]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_RankAction]') AND type in (N'U'))
DROP TABLE [Accounts_RankAction]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_RankDetail]') AND type in (N'U'))
DROP TABLE [Accounts_RankDetail]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Accounts_RankLimit_TargetId]') AND type = 'D')
BEGIN
ALTER TABLE [Accounts_RankLimit] DROP CONSTRAINT [DF_Accounts_RankLimit_TargetId]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Accounts_RankLimit_TargetType]') AND type = 'D')
BEGIN
ALTER TABLE [Accounts_RankLimit] DROP CONSTRAINT [DF_Accounts_RankLimit_TargetType]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_RankLimit]') AND type in (N'U'))
DROP TABLE [Accounts_RankLimit]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Accounts_RankRule_TargetId]') AND type = 'D')
BEGIN
ALTER TABLE [Accounts_RankRule] DROP CONSTRAINT [DF_Accounts_RankRule_TargetId]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Accounts_RankRule_TargetType]') AND type = 'D')
BEGIN
ALTER TABLE [Accounts_RankRule] DROP CONSTRAINT [DF_Accounts_RankRule_TargetType]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_RankRule]') AND type in (N'U'))
DROP TABLE [Accounts_RankRule]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_RolePermissions]') AND type in (N'U'))
DROP TABLE [Accounts_RolePermissions]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_Roles]') AND type in (N'U'))
DROP TABLE [Accounts_Roles]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_UserAssignmentRoles]') AND type in (N'U'))
DROP TABLE [Accounts_UserAssignmentRoles]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Accounts_UserBind_Status]') AND type = 'D')
BEGIN
ALTER TABLE [Accounts_UserBind] DROP CONSTRAINT [DF_Accounts_UserBind_Status]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_UserBind]') AND type in (N'U'))
DROP TABLE [Accounts_UserBind]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_UserCard]') AND type in (N'U'))
DROP TABLE [Accounts_UserCard]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Accounts_UserInvite_Status]') AND type = 'D')
BEGIN
ALTER TABLE [Accounts_UserInvite] DROP CONSTRAINT [DF_Accounts_UserInvite_Status]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_UserInvite]') AND type in (N'U'))
DROP TABLE [Accounts_UserInvite]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Accounts_UserRank_RankLevel]') AND type = 'D')
BEGIN
ALTER TABLE [Accounts_UserRank] DROP CONSTRAINT [DF_Accounts_UserRank_RankLevel]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_UserRank]') AND type in (N'U'))
DROP TABLE [Accounts_UserRank]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_UserRoles]') AND type in (N'U'))
DROP TABLE [Accounts_UserRoles]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_Users]') AND type in (N'U'))
DROP TABLE [Accounts_Users]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Accounts_Approve_CreatedDate]') AND type = 'D')
BEGIN
ALTER TABLE [Accounts_UsersApprove] DROP CONSTRAINT [DF_Accounts_Approve_CreatedDate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_UsersApprove]') AND type in (N'U'))
DROP TABLE [Accounts_UsersApprove]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Accounts_UsersExp_Balance]') AND type = 'D')
BEGIN
ALTER TABLE [Accounts_UsersExp] DROP CONSTRAINT [DF_Accounts_UsersExp_Balance]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Accounts_UsersExp_Balance1]') AND type = 'D')
BEGIN
ALTER TABLE [Accounts_UsersExp] DROP CONSTRAINT [DF_Accounts_UsersExp_Balance1]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Accounts_UsersExp_Points]') AND type = 'D')
BEGIN
ALTER TABLE [Accounts_UsersExp] DROP CONSTRAINT [DF_Accounts_UsersExp_Points]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Accounts_UsersExp_RankScore]') AND type = 'D')
BEGIN
ALTER TABLE [Accounts_UsersExp] DROP CONSTRAINT [DF_Accounts_UsersExp_RankScore]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Accounts_UsersExp_PostTopicCount]') AND type = 'D')
BEGIN
ALTER TABLE [Accounts_UsersExp] DROP CONSTRAINT [DF_Accounts_UsersExp_PostTopicCount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Accounts_UsersExp_ReplyTopicCount]') AND type = 'D')
BEGIN
ALTER TABLE [Accounts_UsersExp] DROP CONSTRAINT [DF_Accounts_UsersExp_ReplyTopicCount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Accounts_UsersExp_FavTopicCount]') AND type = 'D')
BEGIN
ALTER TABLE [Accounts_UsersExp] DROP CONSTRAINT [DF_Accounts_UsersExp_FavTopicCount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Accounts_UsersExp_PvCount]') AND type = 'D')
BEGIN
ALTER TABLE [Accounts_UsersExp] DROP CONSTRAINT [DF_Accounts_UsersExp_PvCount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Accounts_UsersExp_FansCount]') AND type = 'D')
BEGIN
ALTER TABLE [Accounts_UsersExp] DROP CONSTRAINT [DF_Accounts_UsersExp_FansCount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Accounts_UsersExp_FellowCount]') AND type = 'D')
BEGIN
ALTER TABLE [Accounts_UsersExp] DROP CONSTRAINT [DF_Accounts_UsersExp_FellowCount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Accounts_UsersExp_AblumsCount]') AND type = 'D')
BEGIN
ALTER TABLE [Accounts_UsersExp] DROP CONSTRAINT [DF_Accounts_UsersExp_AblumsCount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Accounts_UsersExp_FavouritesCount]') AND type = 'D')
BEGIN
ALTER TABLE [Accounts_UsersExp] DROP CONSTRAINT [DF_Accounts_UsersExp_FavouritesCount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Accounts_UsersExp_FavoritedCount]') AND type = 'D')
BEGIN
ALTER TABLE [Accounts_UsersExp] DROP CONSTRAINT [DF_Accounts_UsersExp_FavoritedCount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Accounts_UsersExp_ShareCount]') AND type = 'D')
BEGIN
ALTER TABLE [Accounts_UsersExp] DROP CONSTRAINT [DF_Accounts_UsersExp_ShareCount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Accounts_UsersExp_ProductsCount]') AND type = 'D')
BEGIN
ALTER TABLE [Accounts_UsersExp] DROP CONSTRAINT [DF_Accounts_UsersExp_ProductsCount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Accounts_UsersExp_UerDPI]') AND type = 'D')
BEGIN
ALTER TABLE [Accounts_UsersExp] DROP CONSTRAINT [DF_Accounts_UsersExp_UerDPI]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_UsersExp]') AND type in (N'U'))
DROP TABLE [Accounts_UsersExp]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_UserType]') AND type in (N'U'))
DROP TABLE [Accounts_UserType]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_VerifyMail]') AND type in (N'U'))
DROP TABLE [Accounts_VerifyMail]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_AD_Advertisement_DayMaxPV]') AND type = 'D')
BEGIN
ALTER TABLE [AD_Advertisement] DROP CONSTRAINT [DF_AD_Advertisement_DayMaxPV]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_AD_Advertisement_DayMaxIP]') AND type = 'D')
BEGIN
ALTER TABLE [AD_Advertisement] DROP CONSTRAINT [DF_AD_Advertisement_DayMaxIP]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_AD_Advertisement_CPMPrice]') AND type = 'D')
BEGIN
ALTER TABLE [AD_Advertisement] DROP CONSTRAINT [DF_AD_Advertisement_CPMPrice]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_AD_Advertisement_AutoStop]') AND type = 'D')
BEGIN
ALTER TABLE [AD_Advertisement] DROP CONSTRAINT [DF_AD_Advertisement_AutoStop]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[AD_Advertisement]') AND type in (N'U'))
DROP TABLE [AD_Advertisement]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_AD_AdvertisePosition_IsOne]') AND type = 'D')
BEGIN
ALTER TABLE [AD_AdvertisePosition] DROP CONSTRAINT [DF_AD_AdvertisePosition_IsOne]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[AD_AdvertisePosition]') AND type in (N'U'))
DROP TABLE [AD_AdvertisePosition]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[CMS_Brand]') AND type in (N'U'))
DROP TABLE [CMS_Brand]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[CMS_ClassType]') AND type in (N'U'))
DROP TABLE [CMS_ClassType]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF__SNS_Comme__Creat__38260017]') AND type = 'D')
BEGIN
ALTER TABLE [CMS_Comment] DROP CONSTRAINT [DF__SNS_Comme__Creat__38260017]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[CMS_Comment]') AND type in (N'U'))
DROP TABLE [CMS_Comment]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF__CMS_Conte__Creat__6C0FB871]') AND type = 'D')
BEGIN
ALTER TABLE [CMS_Content] DROP CONSTRAINT [DF__CMS_Conte__Creat__6C0FB871]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_CMS_Content_TotalComment]') AND type = 'D')
BEGIN
ALTER TABLE [CMS_Content] DROP CONSTRAINT [DF_CMS_Content_TotalComment]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_CMS_Content_TotalUp]') AND type = 'D')
BEGIN
ALTER TABLE [CMS_Content] DROP CONSTRAINT [DF_CMS_Content_TotalUp]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_CMS_Content_TotalFav]') AND type = 'D')
BEGIN
ALTER TABLE [CMS_Content] DROP CONSTRAINT [DF_CMS_Content_TotalFav]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_CMS_Content_Reference]') AND type = 'D')
BEGIN
ALTER TABLE [CMS_Content] DROP CONSTRAINT [DF_CMS_Content_Reference]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[CMS_Content]') AND type in (N'U'))
DROP TABLE [CMS_Content]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF__CMS_Conte__Creat__69334BC6]') AND type = 'D')
BEGIN
ALTER TABLE [CMS_ContentClass] DROP CONSTRAINT [DF__CMS_Conte__Creat__69334BC6]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[CMS_ContentClass]') AND type in (N'U'))
DROP TABLE [CMS_ContentClass]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_CMS_FLinks_IsDisplay]') AND type = 'D')
BEGIN
ALTER TABLE [CMS_FLinks] DROP CONSTRAINT [DF_CMS_FLinks_IsDisplay]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[CMS_FLinks]') AND type in (N'U'))
DROP TABLE [CMS_FLinks]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Photo_State]') AND type = 'D')
BEGIN
ALTER TABLE [CMS_Photo] DROP CONSTRAINT [DF_Photo_State]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_CMS_Photo_PVCount]') AND type = 'D')
BEGIN
ALTER TABLE [CMS_Photo] DROP CONSTRAINT [DF_CMS_Photo_PVCount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_CMS_Photo_IsRecomend]') AND type = 'D')
BEGIN
ALTER TABLE [CMS_Photo] DROP CONSTRAINT [DF_CMS_Photo_IsRecomend]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_CMS_Photo_CommentCount]') AND type = 'D')
BEGIN
ALTER TABLE [CMS_Photo] DROP CONSTRAINT [DF_CMS_Photo_CommentCount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_CMS_Photo_FavouriteCount]') AND type = 'D')
BEGIN
ALTER TABLE [CMS_Photo] DROP CONSTRAINT [DF_CMS_Photo_FavouriteCount]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[CMS_Photo]') AND type in (N'U'))
DROP TABLE [CMS_Photo]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_PhotoAlbum_State]') AND type = 'D')
BEGIN
ALTER TABLE [CMS_PhotoAlbum] DROP CONSTRAINT [DF_PhotoAlbum_State]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_PhotoAlbum_Privacy]') AND type = 'D')
BEGIN
ALTER TABLE [CMS_PhotoAlbum] DROP CONSTRAINT [DF_PhotoAlbum_Privacy]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_PhotoAlbum_LastUpdatedDate]') AND type = 'D')
BEGIN
ALTER TABLE [CMS_PhotoAlbum] DROP CONSTRAINT [DF_PhotoAlbum_LastUpdatedDate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[CMS_PhotoAlbum]') AND type in (N'U'))
DROP TABLE [CMS_PhotoAlbum]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_PhotoClass_ParentId]') AND type = 'D')
BEGIN
ALTER TABLE [CMS_PhotoClass] DROP CONSTRAINT [DF_PhotoClass_ParentId]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[CMS_PhotoClass]') AND type in (N'U'))
DROP TABLE [CMS_PhotoClass]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_CMS_Video_AlbumID]') AND type = 'D')
BEGIN
ALTER TABLE [CMS_Video] DROP CONSTRAINT [DF_CMS_Video_AlbumID]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_CMS_Video_VideoClassID]') AND type = 'D')
BEGIN
ALTER TABLE [CMS_Video] DROP CONSTRAINT [DF_CMS_Video_VideoClassID]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_CMS_Video_ImageUrl]') AND type = 'D')
BEGIN
ALTER TABLE [CMS_Video] DROP CONSTRAINT [DF_CMS_Video_ImageUrl]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_CMS_Video_ThumbImageUrl]') AND type = 'D')
BEGIN
ALTER TABLE [CMS_Video] DROP CONSTRAINT [DF_CMS_Video_ThumbImageUrl]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_CMS_Video_NormalImageUrl]') AND type = 'D')
BEGIN
ALTER TABLE [CMS_Video] DROP CONSTRAINT [DF_CMS_Video_NormalImageUrl]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Video_TotalTime]') AND type = 'D')
BEGIN
ALTER TABLE [CMS_Video] DROP CONSTRAINT [DF_Video_TotalTime]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Video_TotalComment]') AND type = 'D')
BEGIN
ALTER TABLE [CMS_Video] DROP CONSTRAINT [DF_Video_TotalComment]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Video_TotalFav]') AND type = 'D')
BEGIN
ALTER TABLE [CMS_Video] DROP CONSTRAINT [DF_Video_TotalFav]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Video_TotalUp]') AND type = 'D')
BEGIN
ALTER TABLE [CMS_Video] DROP CONSTRAINT [DF_Video_TotalUp]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Video_Reference]') AND type = 'D')
BEGIN
ALTER TABLE [CMS_Video] DROP CONSTRAINT [DF_Video_Reference]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Video_Grade]') AND type = 'D')
BEGIN
ALTER TABLE [CMS_Video] DROP CONSTRAINT [DF_Video_Grade]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_CMS_Video_PVCount]') AND type = 'D')
BEGIN
ALTER TABLE [CMS_Video] DROP CONSTRAINT [DF_CMS_Video_PVCount]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[CMS_Video]') AND type in (N'U'))
DROP TABLE [CMS_Video]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_VideoAlbum_CoverVideo]') AND type = 'D')
BEGIN
ALTER TABLE [CMS_VideoAlbum] DROP CONSTRAINT [DF_VideoAlbum_CoverVideo]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_VideoAlbum_PvCount]') AND type = 'D')
BEGIN
ALTER TABLE [CMS_VideoAlbum] DROP CONSTRAINT [DF_VideoAlbum_PvCount]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[CMS_VideoAlbum]') AND type in (N'U'))
DROP TABLE [CMS_VideoAlbum]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_CMS_VideoClass_ParentID]') AND type = 'D')
BEGIN
ALTER TABLE [CMS_VideoClass] DROP CONSTRAINT [DF_CMS_VideoClass_ParentID]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[CMS_VideoClass]') AND type in (N'U'))
DROP TABLE [CMS_VideoClass]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Examples_Of_High_Performance_Traversal]') AND type in (N'P', N'PC'))
DROP PROCEDURE [Examples_Of_High_Performance_Traversal]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[F_GetALLPY]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
DROP FUNCTION [F_GetALLPY]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[F_GetFirstPY]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
DROP FUNCTION [F_GetFirstPY]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[F_SplitToInt]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
DROP FUNCTION [F_SplitToInt]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[F_SplitToString]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
DROP FUNCTION [F_SplitToString]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[GET_BookingDate]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
DROP FUNCTION [GET_BookingDate]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[GET_BookingDay]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
DROP FUNCTION [GET_BookingDay]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[GET_GeneratedDay]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
DROP FUNCTION [GET_GeneratedDay]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[GET_GeneratedDayEx]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
DROP FUNCTION [GET_GeneratedDayEx]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[GET_GeneratedMonth]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
DROP FUNCTION [GET_GeneratedMonth]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[GET_GeneratedMonthEx]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
DROP FUNCTION [GET_GeneratedMonthEx]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[GET_GeneratedYear]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
DROP FUNCTION [GET_GeneratedYear]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_JLT_AttendanceType_CreatedDate]') AND type = 'D')
BEGIN
ALTER TABLE [JLT_AttendanceType] DROP CONSTRAINT [DF_JLT_AttendanceType_CreatedDate]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_JLT_AttendanceType_IsActive]') AND type = 'D')
BEGIN
ALTER TABLE [JLT_AttendanceType] DROP CONSTRAINT [DF_JLT_AttendanceType_IsActive]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_JLT_AttendanceType_Sequence]') AND type = 'D')
BEGIN
ALTER TABLE [JLT_AttendanceType] DROP CONSTRAINT [DF_JLT_AttendanceType_Sequence]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[JLT_AttendanceType]') AND type in (N'U'))
DROP TABLE [JLT_AttendanceType]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_JLT_Reports_Status]') AND type = 'D')
BEGIN
ALTER TABLE [JLT_Reports] DROP CONSTRAINT [DF_JLT_Reports_Status]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_JLT_Reports_CreatedDate]') AND type = 'D')
BEGIN
ALTER TABLE [JLT_Reports] DROP CONSTRAINT [DF_JLT_Reports_CreatedDate]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_JLT_Reports_ToDoDate]') AND type = 'D')
BEGIN
ALTER TABLE [JLT_Reports] DROP CONSTRAINT [DF_JLT_Reports_ToDoDate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[JLT_Reports]') AND type in (N'U'))
DROP TABLE [JLT_Reports]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_JLT_ToDoInfo_CreatedDate]') AND type = 'D')
BEGIN
ALTER TABLE [JLT_ToDoInfo] DROP CONSTRAINT [DF_JLT_ToDoInfo_CreatedDate]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_JLT_ToDoInfo_ToDoDate]') AND type = 'D')
BEGIN
ALTER TABLE [JLT_ToDoInfo] DROP CONSTRAINT [DF_JLT_ToDoInfo_ToDoDate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[JLT_ToDoInfo]') AND type in (N'U'))
DROP TABLE [JLT_ToDoInfo]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_JLT_UserAttendance_CreatedDate]') AND type = 'D')
BEGIN
ALTER TABLE [JLT_UserAttendance] DROP CONSTRAINT [DF_JLT_UserAttendance_CreatedDate]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_JLT_UserAttendance_Score]') AND type = 'D')
BEGIN
ALTER TABLE [JLT_UserAttendance] DROP CONSTRAINT [DF_JLT_UserAttendance_Score]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_JLT_UserAttendance_Status]') AND type = 'D')
BEGIN
ALTER TABLE [JLT_UserAttendance] DROP CONSTRAINT [DF_JLT_UserAttendance_Status]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[JLT_UserAttendance]') AND type in (N'U'))
DROP TABLE [JLT_UserAttendance]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Ms_AgentAD_CreatedDate]') AND type = 'D')
BEGIN
ALTER TABLE [Ms_AgentAD] DROP CONSTRAINT [DF_Ms_AgentAD_CreatedDate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_AgentAD]') AND type in (N'U'))
DROP TABLE [Ms_AgentAD]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_AgentConfig]') AND type in (N'U'))
DROP TABLE [Ms_AgentConfig]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Ms_AgentMenu_Sequence]') AND type = 'D')
BEGIN
ALTER TABLE [Ms_AgentMenus] DROP CONSTRAINT [DF_Ms_AgentMenu_Sequence]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Ms_AgentMenu_Visible]') AND type = 'D')
BEGIN
ALTER TABLE [Ms_AgentMenus] DROP CONSTRAINT [DF_Ms_AgentMenu_Visible]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Ms_AgentMenu_URLType]') AND type = 'D')
BEGIN
ALTER TABLE [Ms_AgentMenus] DROP CONSTRAINT [DF_Ms_AgentMenu_URLType]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Ms_AgentMenu_NavTheme]') AND type = 'D')
BEGIN
ALTER TABLE [Ms_AgentMenus] DROP CONSTRAINT [DF_Ms_AgentMenu_NavTheme]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_AgentMenus]') AND type in (N'U'))
DROP TABLE [Ms_AgentMenus]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Ms_AgentRank_ProductCount]') AND type = 'D')
BEGIN
ALTER TABLE [Ms_AgentRank] DROP CONSTRAINT [DF_Ms_AgentRank_ProductCount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Ms_AgentRank_ImageCount]') AND type = 'D')
BEGIN
ALTER TABLE [Ms_AgentRank] DROP CONSTRAINT [DF_Ms_AgentRank_ImageCount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Ms_AgentRank_Amount]') AND type = 'D')
BEGIN
ALTER TABLE [Ms_AgentRank] DROP CONSTRAINT [DF_Ms_AgentRank_Amount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Ms_AgentRank_LevelValue]') AND type = 'D')
BEGIN
ALTER TABLE [Ms_AgentRank] DROP CONSTRAINT [DF_Ms_AgentRank_LevelValue]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Ms_AgentRank_LevelMax]') AND type = 'D')
BEGIN
ALTER TABLE [Ms_AgentRank] DROP CONSTRAINT [DF_Ms_AgentRank_LevelMax]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_AgentRank]') AND type in (N'U'))
DROP TABLE [Ms_AgentRank]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Ms_Agents_StoreStatus]') AND type = 'D')
BEGIN
ALTER TABLE [Ms_Agents] DROP CONSTRAINT [DF_Ms_Agents_StoreStatus]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Ms_Agents_CategoryId]') AND type = 'D')
BEGIN
ALTER TABLE [Ms_Agents] DROP CONSTRAINT [DF_Ms_Agents_CategoryId]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Ms_Agents_EnteRank]') AND type = 'D')
BEGIN
ALTER TABLE [Ms_Agents] DROP CONSTRAINT [DF_Ms_Agents_EnteRank]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Ms_Agents_CreatedDate]') AND type = 'D')
BEGIN
ALTER TABLE [Ms_Agents] DROP CONSTRAINT [DF_Ms_Agents_CreatedDate]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Ms_Agents_Balance_1]') AND type = 'D')
BEGIN
ALTER TABLE [Ms_Agents] DROP CONSTRAINT [DF_Ms_Agents_Balance_1]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Ms_Agents_IsUserApprove]') AND type = 'D')
BEGIN
ALTER TABLE [Ms_Agents] DROP CONSTRAINT [DF_Ms_Agents_IsUserApprove]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Ms_Agents_IsUserApprove1]') AND type = 'D')
BEGIN
ALTER TABLE [Ms_Agents] DROP CONSTRAINT [DF_Ms_Agents_IsUserApprove1]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Ms_Agents_IsRecomend]') AND type = 'D')
BEGIN
ALTER TABLE [Ms_Agents] DROP CONSTRAINT [DF_Ms_Agents_IsRecomend]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Ms_Agents_Sequence]') AND type = 'D')
BEGIN
ALTER TABLE [Ms_Agents] DROP CONSTRAINT [DF_Ms_Agents_Sequence]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Ms_Agents_ImageCount1]') AND type = 'D')
BEGIN
ALTER TABLE [Ms_Agents] DROP CONSTRAINT [DF_Ms_Agents_ImageCount1]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Ms_Agents_Discount]') AND type = 'D')
BEGIN
ALTER TABLE [Ms_Agents] DROP CONSTRAINT [DF_Ms_Agents_Discount]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_Agents]') AND type in (N'U'))
DROP TABLE [Ms_Agents]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_EmailRoleAction]') AND type in (N'U'))
DROP TABLE [Ms_EmailRoleAction]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_EmailTemplet]') AND type in (N'U'))
DROP TABLE [Ms_EmailTemplet]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Ms_Enterprise_Balance_1]') AND type = 'D')
BEGIN
ALTER TABLE [Ms_Enterprise] DROP CONSTRAINT [DF_Ms_Enterprise_Balance_1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_Enterprise]') AND type in (N'U'))
DROP TABLE [Ms_Enterprise]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_EntryForm]') AND type in (N'U'))
DROP TABLE [Ms_EntryForm]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Ms_Maps_MapType]') AND type = 'D')
BEGIN
ALTER TABLE [Ms_Maps] DROP CONSTRAINT [DF_Ms_Maps_MapType]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_Maps]') AND type in (N'U'))
DROP TABLE [Ms_Maps]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_RegionAreas]') AND type in (N'U'))
DROP TABLE [Ms_RegionAreas]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_RegionRec]') AND type in (N'U'))
DROP TABLE [Ms_RegionRec]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_Regions]') AND type in (N'U'))
DROP TABLE [Ms_Regions]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Ms_SEORelation_CreatedDate]') AND type = 'D')
BEGIN
ALTER TABLE [Ms_SEORelation] DROP CONSTRAINT [DF_Ms_SEORelation_CreatedDate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_SEORelation]') AND type in (N'U'))
DROP TABLE [Ms_SEORelation]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Ms_TimerTasks_IsSingle]') AND type = 'D')
BEGIN
ALTER TABLE [Ms_TaskTimers] DROP CONSTRAINT [DF_Ms_TimerTasks_IsSingle]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Ms_TimerTasks_ExecuteNumber]') AND type = 'D')
BEGIN
ALTER TABLE [Ms_TaskTimers] DROP CONSTRAINT [DF_Ms_TimerTasks_ExecuteNumber]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_TaskTimers]') AND type in (N'U'))
DROP TABLE [Ms_TaskTimers]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Ms_Theme_IsCurrent]') AND type = 'D')
BEGIN
ALTER TABLE [Ms_Theme] DROP CONSTRAINT [DF_Ms_Theme_IsCurrent]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Ms_Theme_CreatedDate]') AND type = 'D')
BEGIN
ALTER TABLE [Ms_Theme] DROP CONSTRAINT [DF_Ms_Theme_CreatedDate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_Theme]') AND type in (N'U'))
DROP TABLE [Ms_Theme]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Ms_ThumbnailSize_CloudType]') AND type = 'D')
BEGIN
ALTER TABLE [Ms_ThumbnailSize] DROP CONSTRAINT [DF_Ms_ThumbnailSize_CloudType]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Ms_ThumbnailSize_ThumMode]') AND type = 'D')
BEGIN
ALTER TABLE [Ms_ThumbnailSize] DROP CONSTRAINT [DF_Ms_ThumbnailSize_ThumMode]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Ms_ThumbnailSize_IsWatermark]') AND type = 'D')
BEGIN
ALTER TABLE [Ms_ThumbnailSize] DROP CONSTRAINT [DF_Ms_ThumbnailSize_IsWatermark]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Ms_ThumbnailSize_Theme]') AND type = 'D')
BEGIN
ALTER TABLE [Ms_ThumbnailSize] DROP CONSTRAINT [DF_Ms_ThumbnailSize_Theme]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_ThumbnailSize]') AND type in (N'U'))
DROP TABLE [Ms_ThumbnailSize]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_WeiBoMsg]') AND type in (N'U'))
DROP TABLE [Ms_WeiBoMsg]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_WeiBoTaskMsg]') AND type in (N'U'))
DROP TABLE [Ms_WeiBoTaskMsg]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Pay_BalanceDetails]') AND type in (N'U'))
DROP TABLE [Pay_BalanceDetails]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Pay_BalanceDrawRequest_RequestStatus]') AND type = 'D')
BEGIN
ALTER TABLE [Pay_BalanceDrawRequest] DROP CONSTRAINT [DF_Pay_BalanceDrawRequest_RequestStatus]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Pay_BalanceDrawRequest_RequestType]') AND type = 'D')
BEGIN
ALTER TABLE [Pay_BalanceDrawRequest] DROP CONSTRAINT [DF_Pay_BalanceDrawRequest_RequestType]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Pay_BalanceDrawRequest_TargetId]') AND type = 'D')
BEGIN
ALTER TABLE [Pay_BalanceDrawRequest] DROP CONSTRAINT [DF_Pay_BalanceDrawRequest_TargetId]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Pay_BalanceDrawRequest]') AND type in (N'U'))
DROP TABLE [Pay_BalanceDrawRequest]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Pay_BalanceFreezeDetails]') AND type in (N'U'))
DROP TABLE [Pay_BalanceFreezeDetails]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Pay_Currencys]') AND type in (N'U'))
DROP TABLE [Pay_Currencys]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Pay_PaymentCurrencys]') AND type in (N'U'))
DROP TABLE [Pay_PaymentCurrencys]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Pay_PaymentTypes_DriveType]') AND type = 'D')
BEGIN
ALTER TABLE [Pay_PaymentTypes] DROP CONSTRAINT [DF_Pay_PaymentTypes_DriveType]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Pay_PaymentTypes]') AND type in (N'U'))
DROP TABLE [Pay_PaymentTypes]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Pay_RechargeRequest_Status]') AND type = 'D')
BEGIN
ALTER TABLE [Pay_RechargeRequest] DROP CONSTRAINT [DF_Pay_RechargeRequest_Status]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Pay_RechargeRequest]') AND type in (N'U'))
DROP TABLE [Pay_RechargeRequest]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Poll_Forms_IsActive]') AND type = 'D')
BEGIN
ALTER TABLE [Poll_Forms] DROP CONSTRAINT [DF_Poll_Forms_IsActive]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Poll_Forms]') AND type in (N'U'))
DROP TABLE [Poll_Forms]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Poll_Options]') AND type in (N'U'))
DROP TABLE [Poll_Options]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Poll_Reply]') AND type in (N'U'))
DROP TABLE [Poll_Reply]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Poll_Topics]') AND type in (N'U'))
DROP TABLE [Poll_Topics]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Poll_UserPoll]') AND type in (N'U'))
DROP TABLE [Poll_UserPoll]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Poll_Users_SystemUserId]') AND type = 'D')
BEGIN
ALTER TABLE [Poll_Users] DROP CONSTRAINT [DF_Poll_Users_SystemUserId]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Poll_Users]') AND type in (N'U'))
DROP TABLE [Poll_Users]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[RoundTime]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
DROP FUNCTION [RoundTime]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_Config_Area]') AND type in (N'U'))
DROP TABLE [SA_Config_Area]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_Config_System]') AND type in (N'U'))
DROP TABLE [SA_Config_System]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_Config_Type]') AND type in (N'U'))
DROP TABLE [SA_Config_Type]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_ErrorLog]') AND type in (N'U'))
DROP TABLE [SA_ErrorLog]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SA_Feedback_Feedback_bSolved]') AND type = 'D')
BEGIN
ALTER TABLE [SA_Feedback] DROP CONSTRAINT [DF_SA_Feedback_Feedback_bSolved]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_Feedback]') AND type in (N'U'))
DROP TABLE [SA_Feedback]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_FeedbackType]') AND type in (N'U'))
DROP TABLE [SA_FeedbackType]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_FilterWords]') AND type in (N'U'))
DROP TABLE [SA_FilterWords]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF__SNS_TMess__Creat__2236BEF8]') AND type = 'D')
BEGIN
ALTER TABLE [SA_Guestbook] DROP CONSTRAINT [DF__SNS_TMess__Creat__2236BEF8]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_CMS_Guestbook_ReplyCount]') AND type = 'D')
BEGIN
ALTER TABLE [SA_Guestbook] DROP CONSTRAINT [DF_CMS_Guestbook_ReplyCount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_TMessage_ParentID]') AND type = 'D')
BEGIN
ALTER TABLE [SA_Guestbook] DROP CONSTRAINT [DF_SNS_TMessage_ParentID]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_Guestbook]') AND type in (N'U'))
DROP TABLE [SA_Guestbook]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_Language_mstr]') AND type in (N'U'))
DROP TABLE [SA_Language_mstr]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_Log]') AND type in (N'U'))
DROP TABLE [SA_Log]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_MultiLang_det]') AND type in (N'U'))
DROP TABLE [SA_MultiLang_det]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_ReceivedMessages]') AND type in (N'U'))
DROP TABLE [SA_ReceivedMessages]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_SendedMessages]') AND type in (N'U'))
DROP TABLE [SA_SendedMessages]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_SiteMessage]') AND type in (N'U'))
DROP TABLE [SA_SiteMessage]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_SiteMessageLog]') AND type in (N'U'))
DROP TABLE [SA_SiteMessageLog]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_SiteSettings]') AND type in (N'U'))
DROP TABLE [SA_SiteSettings]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_TaskQueue]') AND type in (N'U'))
DROP TABLE [SA_TaskQueue]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SA_Tree_TreeType]') AND type = 'D')
BEGIN
ALTER TABLE [SA_Tree] DROP CONSTRAINT [DF_SA_Tree_TreeType]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SA_Tree_IsValid]') AND type = 'D')
BEGIN
ALTER TABLE [SA_Tree] DROP CONSTRAINT [DF_SA_Tree_IsValid]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_Tree]') AND type in (N'U'))
DROP TABLE [SA_Tree]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_TreeFavorite]') AND type in (N'U'))
DROP TABLE [SA_TreeFavorite]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_UserLog]') AND type in (N'U'))
DROP TABLE [SA_UserLog]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_CMS_WebMenuConfig_Sequence]') AND type = 'D')
BEGIN
ALTER TABLE [SA_WebMenuConfig] DROP CONSTRAINT [DF_CMS_WebMenuConfig_Sequence]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_CMS_WebMenuConfig_Visible]') AND type = 'D')
BEGIN
ALTER TABLE [SA_WebMenuConfig] DROP CONSTRAINT [DF_CMS_WebMenuConfig_Visible]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_CMS_WebMenuConfig_Area]') AND type = 'D')
BEGIN
ALTER TABLE [SA_WebMenuConfig] DROP CONSTRAINT [DF_CMS_WebMenuConfig_Area]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_CMS_WebMenuConfig_URLType]') AND type = 'D')
BEGIN
ALTER TABLE [SA_WebMenuConfig] DROP CONSTRAINT [DF_CMS_WebMenuConfig_URLType]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SA_WebMenuConfig_NavTheme]') AND type = 'D')
BEGIN
ALTER TABLE [SA_WebMenuConfig] DROP CONSTRAINT [DF_SA_WebMenuConfig_NavTheme]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_WebMenuConfig]') AND type in (N'U'))
DROP TABLE [SA_WebMenuConfig]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_AccessoriesValues]') AND type in (N'U'))
DROP TABLE [Shop_AccessoriesValues]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ActivityDetail]') AND type in (N'U'))
DROP TABLE [Shop_ActivityDetail]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ActivityInfo_BuyCategoryId_1]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_ActivityInfo] DROP CONSTRAINT [DF_Shop_ActivityInfo_BuyCategoryId_1]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ActivityInfo_CpRuleId_1]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_ActivityInfo] DROP CONSTRAINT [DF_Shop_ActivityInfo_CpRuleId_1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ActivityInfo]') AND type in (N'U'))
DROP TABLE [Shop_ActivityInfo]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ActivityRule]') AND type in (N'U'))
DROP TABLE [Shop_ActivityRule]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_Attributes]') AND type in (N'U'))
DROP TABLE [Shop_Attributes]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_AttributeValues]') AND type in (N'U'))
DROP TABLE [Shop_AttributeValues]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_Brands]') AND type in (N'U'))
DROP TABLE [Shop_Brands]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Categories_HasChildren]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Categories] DROP CONSTRAINT [DF_Shop_Categories_HasChildren]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Categories_Status]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Categories] DROP CONSTRAINT [DF_Shop_Categories_Status]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_Categories]') AND type in (N'U'))
DROP TABLE [Shop_Categories]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_CommissionDetail_ReferType]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_CommissionDetail] DROP CONSTRAINT [DF_Shop_CommissionDetail_ReferType]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_CommissionDetail]') AND type in (N'U'))
DROP TABLE [Shop_CommissionDetail]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_CommissionPro]') AND type in (N'U'))
DROP TABLE [Shop_CommissionPro]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_CommissionRule]') AND type in (N'U'))
DROP TABLE [Shop_CommissionRule]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Table_1_DisplaySequence]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_CountDown] DROP CONSTRAINT [DF_Table_1_DisplaySequence]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_CountDown_PromotionLimitQu]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_CountDown] DROP CONSTRAINT [DF_Shop_CountDown_PromotionLimitQu]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_CountDown]') AND type in (N'U'))
DROP TABLE [Shop_CountDown]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_CouponClass_Status]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_CouponClass] DROP CONSTRAINT [DF_Shop_CouponClass_Status]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_CouponClass]') AND type in (N'U'))
DROP TABLE [Shop_CouponClass]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF__Shop_Coupo__Type__15293EA2]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_CouponHistory] DROP CONSTRAINT [DF__Shop_Coupo__Type__15293EA2]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF__Shop_Coup__Order__1EB2A8DC]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_CouponHistory] DROP CONSTRAINT [DF__Shop_Coup__Order__1EB2A8DC]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_CouponHistory]') AND type in (N'U'))
DROP TABLE [Shop_CouponHistory]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_CouponInfo_Type]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_CouponInfo] DROP CONSTRAINT [DF_Shop_CouponInfo_Type]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF__Shop_Coup__Order__1FA6CD15]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_CouponInfo] DROP CONSTRAINT [DF__Shop_Coup__Order__1FA6CD15]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_CouponInfo]') AND type in (N'U'))
DROP TABLE [Shop_CouponInfo]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_CouponRule_Type]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_CouponRule] DROP CONSTRAINT [DF_Shop_CouponRule_Type]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_CouponRule_DeferDay_1]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_CouponRule] DROP CONSTRAINT [DF_Shop_CouponRule_DeferDay_1]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_CouponRule_AvaType_1]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_CouponRule] DROP CONSTRAINT [DF_Shop_CouponRule_AvaType_1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_CouponRule]') AND type in (N'U'))
DROP TABLE [Shop_CouponRule]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Depot_Type]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Depot] DROP CONSTRAINT [DF_Shop_Depot_Type]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Depot_DepotAttr]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Depot] DROP CONSTRAINT [DF_Shop_Depot_DepotAttr]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_Depot]') AND type in (N'U'))
DROP TABLE [Shop_Depot]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_DepotProduct_AddedDate]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_DepotProduct] DROP CONSTRAINT [DF_Shop_DepotProduct_AddedDate]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_DepotProduct_SaleCounts]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_DepotProduct] DROP CONSTRAINT [DF_Shop_DepotProduct_SaleCounts]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_DepotProduct_DisplaySequence]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_DepotProduct] DROP CONSTRAINT [DF_Shop_DepotProduct_DisplaySequence]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_DepotProduct]') AND type in (N'U'))
DROP TABLE [Shop_DepotProduct]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_DepotProSKUs_Weight]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_DepotProSKUs] DROP CONSTRAINT [DF_Shop_DepotProSKUs_Weight]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_DepotProSKUs_CostPrice]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_DepotProSKUs] DROP CONSTRAINT [DF_Shop_DepotProSKUs_CostPrice]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_DepotProSKUs]') AND type in (N'U'))
DROP TABLE [Shop_DepotProSKUs]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_DepotRegion_Status]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_DepotRegion] DROP CONSTRAINT [DF_Shop_DepotRegion_Status]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_DepotRegion]') AND type in (N'U'))
DROP TABLE [Shop_DepotRegion]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_Distributors]') AND type in (N'U'))
DROP TABLE [Shop_Distributors]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ExchangeDetail]') AND type in (N'U'))
DROP TABLE [Shop_ExchangeDetail]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ExpressTemplates]') AND type in (N'U'))
DROP TABLE [Shop_ExpressTemplates]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Favorite_Type]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Favorite] DROP CONSTRAINT [DF_Shop_Favorite_Type]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Favorite_CreatedDate]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Favorite] DROP CONSTRAINT [DF_Shop_Favorite_CreatedDate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_Favorite]') AND type in (N'U'))
DROP TABLE [Shop_Favorite]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Gifts_NeedPoint]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Gifts] DROP CONSTRAINT [DF_Shop_Gifts_NeedPoint]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_Gifts]') AND type in (N'U'))
DROP TABLE [Shop_Gifts]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_GiftsCategory]') AND type in (N'U'))
DROP TABLE [Shop_GiftsCategory]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_GroupBuy_RegionId]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_GroupBuy] DROP CONSTRAINT [DF_Shop_GroupBuy_RegionId]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_GroupBuy_ProductName]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_GroupBuy] DROP CONSTRAINT [DF_Shop_GroupBuy_ProductName]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_GroupBuy_ProductCategory]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_GroupBuy] DROP CONSTRAINT [DF_Shop_GroupBuy_ProductCategory]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_GroupBuy_CategoryId]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_GroupBuy] DROP CONSTRAINT [DF_Shop_GroupBuy_CategoryId]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_GroupBuy_ProLimitQuantity]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_GroupBuy] DROP CONSTRAINT [DF_Shop_GroupBuy_ProLimitQuantity]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_GroupBuy]') AND type in (N'U'))
DROP TABLE [Shop_GroupBuy]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_HotKeywords]') AND type in (N'U'))
DROP TABLE [Shop_HotKeywords]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Inquiry_UserId]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Inquiry] DROP CONSTRAINT [DF_Shop_Inquiry_UserId]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Inquiry_Amount]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Inquiry] DROP CONSTRAINT [DF_Shop_Inquiry_Amount]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_Inquiry]') AND type in (N'U'))
DROP TABLE [Shop_Inquiry]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_InquiryItem]') AND type in (N'U'))
DROP TABLE [Shop_InquiryItem]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_LineDistributors]') AND type in (N'U'))
DROP TABLE [Shop_LineDistributors]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_OrderAction]') AND type in (N'U'))
DROP TABLE [Shop_OrderAction]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_OrderItems_ProductType]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_OrderItems] DROP CONSTRAINT [DF_Shop_OrderItems_ProductType]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_OrderItems_ReferId]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_OrderItems] DROP CONSTRAINT [DF_Shop_OrderItems_ReferId]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_OrderItems_ReferType]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_OrderItems] DROP CONSTRAINT [DF_Shop_OrderItems_ReferType]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_OrderItems]') AND type in (N'U'))
DROP TABLE [Shop_OrderItems]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_OrderLookupItems]') AND type in (N'U'))
DROP TABLE [Shop_OrderLookupItems]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_OrderLookupList]') AND type in (N'U'))
DROP TABLE [Shop_OrderLookupList]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_OrderOptions]') AND type in (N'U'))
DROP TABLE [Shop_OrderOptions]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_OrderRemark]') AND type in (N'U'))
DROP TABLE [Shop_OrderRemark]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Orders_ParentOrderId]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Orders] DROP CONSTRAINT [DF_Shop_Orders_ParentOrderId]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Orders_OriginalId]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Orders] DROP CONSTRAINT [DF_Shop_Orders_OriginalId]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Orders_CreateUserId]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Orders] DROP CONSTRAINT [DF_Shop_Orders_CreateUserId]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Orders_ShippingStatus]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Orders] DROP CONSTRAINT [DF_Shop_Orders_ShippingStatus]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Orders_PaymentStatus]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Orders] DROP CONSTRAINT [DF_Shop_Orders_PaymentStatus]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Orders_RefundStatus]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Orders] DROP CONSTRAINT [DF_Shop_Orders_RefundStatus]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Orders_OrderTotal]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Orders] DROP CONSTRAINT [DF_Shop_Orders_OrderTotal]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Orders_OrderPoint]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Orders] DROP CONSTRAINT [DF_Shop_Orders_OrderPoint]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Orders_ActivityStatus]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Orders] DROP CONSTRAINT [DF_Shop_Orders_ActivityStatus]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Orders_GroupBuyStatus]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Orders] DROP CONSTRAINT [DF_Shop_Orders_GroupBuyStatus]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Orders_Amount]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Orders] DROP CONSTRAINT [DF_Shop_Orders_Amount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Orders_OrderType]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Orders] DROP CONSTRAINT [DF_Shop_Orders_OrderType]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Orders_OrderTypeSub]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Orders] DROP CONSTRAINT [DF_Shop_Orders_OrderTypeSub]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Orders_OrderStatus]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Orders] DROP CONSTRAINT [DF_Shop_Orders_OrderStatus]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Orders_CommentStatus]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Orders] DROP CONSTRAINT [DF_Shop_Orders_CommentStatus]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Orders_ReferType]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Orders] DROP CONSTRAINT [DF_Shop_Orders_ReferType]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Orders_OrderProductsPrice]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Orders] DROP CONSTRAINT [DF_Shop_Orders_OrderProductsPrice]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Orders_HasChildren]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Orders] DROP CONSTRAINT [DF_Shop_Orders_HasChildren]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Orders_IsReviews]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Orders] DROP CONSTRAINT [DF_Shop_Orders_IsReviews]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Orders_IsFreeShipping]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Orders] DROP CONSTRAINT [DF_Shop_Orders_IsFreeShipping]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF__Shop_Orde__Depot__5CA28C58]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Orders] DROP CONSTRAINT [DF__Shop_Orde__Depot__5CA28C58]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_Orders]') AND type in (N'U'))
DROP TABLE [Shop_Orders]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_OrdersHistory]') AND type in (N'U'))
DROP TABLE [Shop_OrdersHistory]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Package_CreatedDate]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Package] DROP CONSTRAINT [DF_Shop_Package_CreatedDate]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Package_Status]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Package] DROP CONSTRAINT [DF_Shop_Package_Status]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_Package]') AND type in (N'U'))
DROP TABLE [Shop_Package]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_PackageCategory_CreatedDate]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_PackageCategory] DROP CONSTRAINT [DF_Shop_PackageCategory_CreatedDate]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_PackageCategory_Status]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_PackageCategory] DROP CONSTRAINT [DF_Shop_PackageCategory_Status]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_PackageCategory]') AND type in (N'U'))
DROP TABLE [Shop_PackageCategory]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Predetermine_HandleUserId]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_PreOrder] DROP CONSTRAINT [DF_Shop_Predetermine_HandleUserId]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_PreOrder]') AND type in (N'U'))
DROP TABLE [Shop_PreOrder]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ProductAccessories_MaxQuantity]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_ProductAccessories] DROP CONSTRAINT [DF_Shop_ProductAccessories_MaxQuantity]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ProductAccessories_MinQuantity]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_ProductAccessories] DROP CONSTRAINT [DF_Shop_ProductAccessories_MinQuantity]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ProductAccessories_DiscountType]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_ProductAccessories] DROP CONSTRAINT [DF_Shop_ProductAccessories_DiscountType]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ProductAccessories_DiscountAmount]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_ProductAccessories] DROP CONSTRAINT [DF_Shop_ProductAccessories_DiscountAmount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ProductAccessories_Type]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_ProductAccessories] DROP CONSTRAINT [DF_Shop_ProductAccessories_Type]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ProductAccessories_Stock]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_ProductAccessories] DROP CONSTRAINT [DF_Shop_ProductAccessories_Stock]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ProductAccessories]') AND type in (N'U'))
DROP TABLE [Shop_ProductAccessories]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ProductAttributes]') AND type in (N'U'))
DROP TABLE [Shop_ProductAttributes]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ProductCategories]') AND type in (N'U'))
DROP TABLE [Shop_ProductCategories]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ProductConsults_TypeId]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_ProductConsults] DROP CONSTRAINT [DF_Shop_ProductConsults_TypeId]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_ProductConsultations_IsReply]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_ProductConsults] DROP CONSTRAINT [DF_ProductConsultations_IsReply]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ProductConsults_ReplyUserId]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_ProductConsults] DROP CONSTRAINT [DF_Shop_ProductConsults_ReplyUserId]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_ProductConsultations_IsTop]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_ProductConsults] DROP CONSTRAINT [DF_ProductConsultations_IsTop]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ProductConsults]') AND type in (N'U'))
DROP TABLE [Shop_ProductConsults]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ProductConsultationsType_IsActive]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_ProductConsultsType] DROP CONSTRAINT [DF_Shop_ProductConsultationsType_IsActive]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ProductConsultsType]') AND type in (N'U'))
DROP TABLE [Shop_ProductConsultsType]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ProductImages]') AND type in (N'U'))
DROP TABLE [Shop_ProductImages]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ProductLines]') AND type in (N'U'))
DROP TABLE [Shop_ProductLines]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ProductPackage]') AND type in (N'U'))
DROP TABLE [Shop_ProductPackage]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ProductQA]') AND type in (N'U'))
DROP TABLE [Shop_ProductQA]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ProductReviews_OrderId]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_ProductReviews] DROP CONSTRAINT [DF_Shop_ProductReviews_OrderId]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ProductReviews]') AND type in (N'U'))
DROP TABLE [Shop_ProductReviews]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Products_AddedDate]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Products] DROP CONSTRAINT [DF_Shop_Products_AddedDate]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF__tmp_ms_xx__Visti__55FFB06A]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Products] DROP CONSTRAINT [DF__tmp_ms_xx__Visti__55FFB06A]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF__tmp_ms_xx__SaleC__56F3D4A3]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Products] DROP CONSTRAINT [DF__tmp_ms_xx__SaleC__56F3D4A3]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF__tmp_ms_xx__Displ__57E7F8DC]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Products] DROP CONSTRAINT [DF__tmp_ms_xx__Displ__57E7F8DC]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Products_Points]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Products] DROP CONSTRAINT [DF_Shop_Products_Points]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Products_MaxQuantity]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Products] DROP CONSTRAINT [DF_Shop_Products_MaxQuantity]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Products_MinQuantity]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Products] DROP CONSTRAINT [DF_Shop_Products_MinQuantity]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Products_SalesType]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Products] DROP CONSTRAINT [DF_Shop_Products_SalesType]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Products_RestrictionCount]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Products] DROP CONSTRAINT [DF_Shop_Products_RestrictionCount]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_Products]') AND type in (N'U'))
DROP TABLE [Shop_Products]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ProductSpecialOffer_DisplaySequence]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_ProductStationModes] DROP CONSTRAINT [DF_Shop_ProductSpecialOffer_DisplaySequence]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ProductStationModes]') AND type in (N'U'))
DROP TABLE [Shop_ProductStationModes]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ProductTypeBrands]') AND type in (N'U'))
DROP TABLE [Shop_ProductTypeBrands]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ProductTypes]') AND type in (N'U'))
DROP TABLE [Shop_ProductTypes]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_RechargeCards]') AND type in (N'U'))
DROP TABLE [Shop_RechargeCards]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_RelatedProducts]') AND type in (N'U'))
DROP TABLE [Shop_RelatedProducts]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ReturnOrderAction]') AND type in (N'U'))
DROP TABLE [Shop_ReturnOrderAction]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ReturnItem_ProductType]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_ReturnOrderItems] DROP CONSTRAINT [DF_Shop_ReturnItem_ProductType]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ReturnOrderItems]') AND type in (N'U'))
DROP TABLE [Shop_ReturnOrderItems]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ReturnOrders_ReturnsUserId]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_ReturnOrders] DROP CONSTRAINT [DF_Shop_ReturnOrders_ReturnsUserId]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Returned_CreateUserId]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_ReturnOrders] DROP CONSTRAINT [DF_Shop_Returned_CreateUserId]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ReturnOrders_UpdatedUserId]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_ReturnOrders] DROP CONSTRAINT [DF_Shop_ReturnOrders_UpdatedUserId]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Returned_SupplierId]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_ReturnOrders] DROP CONSTRAINT [DF_Shop_Returned_SupplierId]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ReturnOrders_ReturnGoodsType]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_ReturnOrders] DROP CONSTRAINT [DF_Shop_ReturnOrders_ReturnGoodsType]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ReturnOrders_ReturnCoupon]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_ReturnOrders] DROP CONSTRAINT [DF_Shop_ReturnOrders_ReturnCoupon]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Returned_Amount]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_ReturnOrders] DROP CONSTRAINT [DF_Shop_Returned_Amount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ReturnOrders_AmountActual]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_ReturnOrders] DROP CONSTRAINT [DF_Shop_ReturnOrders_AmountActual]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ReturnOrders_PickRegionId]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_ReturnOrders] DROP CONSTRAINT [DF_Shop_ReturnOrders_PickRegionId]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ReturnOrders_ShippingModeId]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_ReturnOrders] DROP CONSTRAINT [DF_Shop_ReturnOrders_ShippingModeId]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ReturnOrders_CardTypeID]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_ReturnOrders] DROP CONSTRAINT [DF_Shop_ReturnOrders_CardTypeID]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Returned_ShippingStatus]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_ReturnOrders] DROP CONSTRAINT [DF_Shop_Returned_ShippingStatus]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ReturnOrders_RefundStatus]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_ReturnOrders] DROP CONSTRAINT [DF_Shop_ReturnOrders_RefundStatus]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ReturnOrders_LogisticStatus]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_ReturnOrders] DROP CONSTRAINT [DF_Shop_ReturnOrders_LogisticStatus]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ReturnOrders_CustomersEvaluate]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_ReturnOrders] DROP CONSTRAINT [DF_Shop_ReturnOrders_CustomersEvaluate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ReturnOrders]') AND type in (N'U'))
DROP TABLE [Shop_ReturnOrders]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SalesItem]') AND type in (N'U'))
DROP TABLE [Shop_SalesItem]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_SalesRule_Type]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_SalesRule] DROP CONSTRAINT [DF_Shop_SalesRule_Type]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SalesRule]') AND type in (N'U'))
DROP TABLE [Shop_SalesRule]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SalesRuleProduct]') AND type in (N'U'))
DROP TABLE [Shop_SalesRuleProduct]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SalesUserRank]') AND type in (N'U'))
DROP TABLE [Shop_SalesUserRank]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Sample_Sequence]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Sample] DROP CONSTRAINT [DF_Shop_Sample_Sequence]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Sample_Status]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Sample] DROP CONSTRAINT [DF_Shop_Sample_Status]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Sample_CreatedDate]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Sample] DROP CONSTRAINT [DF_Shop_Sample_CreatedDate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_Sample]') AND type in (N'U'))
DROP TABLE [Shop_Sample]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_SampleDetail_Type]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_SampleDetail] DROP CONSTRAINT [DF_Shop_SampleDetail_Type]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SampleDetail]') AND type in (N'U'))
DROP TABLE [Shop_SampleDetail]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ScoreDetails]') AND type in (N'U'))
DROP TABLE [Shop_ScoreDetails]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_Shippers]') AND type in (N'U'))
DROP TABLE [Shop_Shippers]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ShippingAddress_IsDefault]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_ShippingAddress] DROP CONSTRAINT [DF_Shop_ShippingAddress_IsDefault]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ShippingAddress_LineId]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_ShippingAddress] DROP CONSTRAINT [DF_Shop_ShippingAddress_LineId]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ShippingAddress_CircleId]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_ShippingAddress] DROP CONSTRAINT [DF_Shop_ShippingAddress_CircleId]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ShippingAddress_DepotId]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_ShippingAddress] DROP CONSTRAINT [DF_Shop_ShippingAddress_DepotId]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ShippingAddress]') AND type in (N'U'))
DROP TABLE [Shop_ShippingAddress]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ShippingGroup]') AND type in (N'U'))
DROP TABLE [Shop_ShippingGroup]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ShippingPayment]') AND type in (N'U'))
DROP TABLE [Shop_ShippingPayment]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ShippingRegionGroups]') AND type in (N'U'))
DROP TABLE [Shop_ShippingRegionGroups]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ShippingRegions]') AND type in (N'U'))
DROP TABLE [Shop_ShippingRegions]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ShippingType_SupplierId]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_ShippingType] DROP CONSTRAINT [DF_Shop_ShippingType_SupplierId]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ShippingType]') AND type in (N'U'))
DROP TABLE [Shop_ShippingType]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ShoppingCarts_ItemType]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_ShoppingCarts] DROP CONSTRAINT [DF_Shop_ShoppingCarts_ItemType]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ShoppingCarts]') AND type in (N'U'))
DROP TABLE [Shop_ShoppingCarts]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SKUItems]') AND type in (N'U'))
DROP TABLE [Shop_SKUItems]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SKUMemberPrice]') AND type in (N'U'))
DROP TABLE [Shop_SKUMemberPrice]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SKURelation]') AND type in (N'U'))
DROP TABLE [Shop_SKURelation]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_SKUs_Weight]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_SKUs] DROP CONSTRAINT [DF_Shop_SKUs_Weight]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_SKUs_CostPrice]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_SKUs] DROP CONSTRAINT [DF_Shop_SKUs_CostPrice]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SKUs]') AND type in (N'U'))
DROP TABLE [Shop_SKUs]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_SuppDistProduct_AddedDate]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_SuppDistProduct] DROP CONSTRAINT [DF_Shop_SuppDistProduct_AddedDate]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_SuppDistProduct_SaleCounts]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_SuppDistProduct] DROP CONSTRAINT [DF_Shop_SuppDistProduct_SaleCounts]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_SuppDistProduct_DisplaySequence]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_SuppDistProduct] DROP CONSTRAINT [DF_Shop_SuppDistProduct_DisplaySequence]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SuppDistProduct]') AND type in (N'U'))
DROP TABLE [Shop_SuppDistProduct]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SuppDistRegion]') AND type in (N'U'))
DROP TABLE [Shop_SuppDistRegion]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_SuppDistSKU_Weight]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_SuppDistSKU] DROP CONSTRAINT [DF_Shop_SuppDistSKU_Weight]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_SuppDistSKU_CostPrice]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_SuppDistSKU] DROP CONSTRAINT [DF_Shop_SuppDistSKU_CostPrice]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SuppDistSKU]') AND type in (N'U'))
DROP TABLE [Shop_SuppDistSKU]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_SupplierAD_CreatedDate]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_SupplierAD] DROP CONSTRAINT [DF_Shop_SupplierAD_CreatedDate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SupplierAD]') AND type in (N'U'))
DROP TABLE [Shop_SupplierAD]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SupplierBrands]') AND type in (N'U'))
DROP TABLE [Shop_SupplierBrands]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_SupplierCategories_HasChildren]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_SupplierCategories] DROP CONSTRAINT [DF_Shop_SupplierCategories_HasChildren]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SupplierCategories]') AND type in (N'U'))
DROP TABLE [Shop_SupplierCategories]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SupplierConfig]') AND type in (N'U'))
DROP TABLE [Shop_SupplierConfig]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_SupplierMenu_Sequence]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_SupplierMenus] DROP CONSTRAINT [DF_Shop_SupplierMenu_Sequence]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_SupplierMenu_Visible]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_SupplierMenus] DROP CONSTRAINT [DF_Shop_SupplierMenu_Visible]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_SupplierMenu_URLType]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_SupplierMenus] DROP CONSTRAINT [DF_Shop_SupplierMenu_URLType]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_SupplierMenu_NavTheme]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_SupplierMenus] DROP CONSTRAINT [DF_Shop_SupplierMenu_NavTheme]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SupplierMenus]') AND type in (N'U'))
DROP TABLE [Shop_SupplierMenus]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_SupplierRank_ProductCount]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_SupplierRank] DROP CONSTRAINT [DF_Shop_SupplierRank_ProductCount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_SupplierRank_ImageCount]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_SupplierRank] DROP CONSTRAINT [DF_Shop_SupplierRank_ImageCount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_SupplierRank_Amount]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_SupplierRank] DROP CONSTRAINT [DF_Shop_SupplierRank_Amount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_SupplierRank_LevelValue]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_SupplierRank] DROP CONSTRAINT [DF_Shop_SupplierRank_LevelValue]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_SupplierRank_LevelMax]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_SupplierRank] DROP CONSTRAINT [DF_Shop_SupplierRank_LevelMax]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SupplierRank]') AND type in (N'U'))
DROP TABLE [Shop_SupplierRank]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SupplierRankThemes]') AND type in (N'U'))
DROP TABLE [Shop_SupplierRankThemes]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Suppliers_StoreStatus]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Suppliers] DROP CONSTRAINT [DF_Shop_Suppliers_StoreStatus]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Suppliers_CategoryId]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Suppliers] DROP CONSTRAINT [DF_Shop_Suppliers_CategoryId]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Suppliers_EnteRank]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Suppliers] DROP CONSTRAINT [DF_Shop_Suppliers_EnteRank]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Suppliers_CreatedDate]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Suppliers] DROP CONSTRAINT [DF_Shop_Suppliers_CreatedDate]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Suppliers_Balance_1]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Suppliers] DROP CONSTRAINT [DF_Shop_Suppliers_Balance_1]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Suppliers_IsUserApprove]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Suppliers] DROP CONSTRAINT [DF_Shop_Suppliers_IsUserApprove]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Suppliers_IsUserApprove1]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Suppliers] DROP CONSTRAINT [DF_Shop_Suppliers_IsUserApprove1]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Suppliers_ScoreDesc]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Suppliers] DROP CONSTRAINT [DF_Shop_Suppliers_ScoreDesc]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Suppliers_ScoreService]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Suppliers] DROP CONSTRAINT [DF_Shop_Suppliers_ScoreService]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Suppliers_ScoreSpeed]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Suppliers] DROP CONSTRAINT [DF_Shop_Suppliers_ScoreSpeed]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Suppliers_IsRecomend]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Suppliers] DROP CONSTRAINT [DF_Shop_Suppliers_IsRecomend]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Suppliers_Sequence]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Suppliers] DROP CONSTRAINT [DF_Shop_Suppliers_Sequence]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Suppliers_ProductsCount]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Suppliers] DROP CONSTRAINT [DF_Shop_Suppliers_ProductsCount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Suppliers_ProductCount1]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Suppliers] DROP CONSTRAINT [DF_Shop_Suppliers_ProductCount1]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Suppliers_ImageCount1]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Suppliers] DROP CONSTRAINT [DF_Shop_Suppliers_ImageCount1]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Suppliers_AgentId]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Suppliers] DROP CONSTRAINT [DF_Shop_Suppliers_AgentId]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Suppliers_IndexProdTop]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Suppliers] DROP CONSTRAINT [DF_Shop_Suppliers_IndexProdTop]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_Suppliers]') AND type in (N'U'))
DROP TABLE [Shop_Suppliers]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_SupplierScoreDetails_CreatedDate]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_SupplierScoreDetails] DROP CONSTRAINT [DF_Shop_SupplierScoreDetails_CreatedDate]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_SupplierScoreDetails_Status]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_SupplierScoreDetails] DROP CONSTRAINT [DF_Shop_SupplierScoreDetails_Status]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SupplierScoreDetails]') AND type in (N'U'))
DROP TABLE [Shop_SupplierScoreDetails]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_SupplierThemes_CreatedDate]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_SupplierThemes] DROP CONSTRAINT [DF_Shop_SupplierThemes_CreatedDate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SupplierThemes]') AND type in (N'U'))
DROP TABLE [Shop_SupplierThemes]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SuppProductCategories]') AND type in (N'U'))
DROP TABLE [Shop_SuppProductCategories]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ProductSpecialOffer1_DisplaySequence]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_SuppProductStatModes] DROP CONSTRAINT [DF_Shop_ProductSpecialOffer1_DisplaySequence]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SuppProductStatModes]') AND type in (N'U'))
DROP TABLE [Shop_SuppProductStatModes]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_TagCategories]') AND type in (N'U'))
DROP TABLE [Shop_TagCategories]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Tags_IsRecommand]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Tags] DROP CONSTRAINT [DF_Shop_Tags_IsRecommand]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Tags_Status]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Tags] DROP CONSTRAINT [DF_Shop_Tags_Status]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_Tags]') AND type in (N'U'))
DROP TABLE [Shop_Tags]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_TrialReports_CreatedUserID]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_TrialReports] DROP CONSTRAINT [DF_Shop_TrialReports_CreatedUserID]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_TrialReports]') AND type in (N'U'))
DROP TABLE [Shop_TrialReports]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ProductTrials_CategoryId]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Trials] DROP CONSTRAINT [DF_Shop_ProductTrials_CategoryId]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ProductTrials_EnterpriseId]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Trials] DROP CONSTRAINT [DF_Shop_ProductTrials_EnterpriseId]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ProductTrials_VistiCounts]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Trials] DROP CONSTRAINT [DF_Shop_ProductTrials_VistiCounts]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ProductTrials_SaleCounts]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Trials] DROP CONSTRAINT [DF_Shop_ProductTrials_SaleCounts]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ProductTrials_DisplaySequence]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Trials] DROP CONSTRAINT [DF_Shop_ProductTrials_DisplaySequence]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_Trials_LowestSalePrice]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Trials] DROP CONSTRAINT [DF_Shop_Trials_LowestSalePrice]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ProductTrials_Points]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Trials] DROP CONSTRAINT [DF_Shop_ProductTrials_Points]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ProductTrials_MaxQuantity]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Trials] DROP CONSTRAINT [DF_Shop_ProductTrials_MaxQuantity]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_Shop_ProductTrials_MinQuantity]') AND type = 'D')
BEGIN
ALTER TABLE [Shop_Trials] DROP CONSTRAINT [DF_Shop_ProductTrials_MinQuantity]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_Trials]') AND type in (N'U'))
DROP TABLE [Shop_Trials]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_AlbumType_AlbumsCount]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_AlbumType] DROP CONSTRAINT [DF_SNS_AlbumType_AlbumsCount]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_AlbumType]') AND type in (N'U'))
DROP TABLE [SNS_AlbumType]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Categories_CreatedDate]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Categories] DROP CONSTRAINT [DF_SNS_Categories_CreatedDate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_Categories]') AND type in (N'U'))
DROP TABLE [SNS_Categories]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_CategorySource]') AND type in (N'U'))
DROP TABLE [SNS_CategorySource]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Comments_ParentID]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Comments] DROP CONSTRAINT [DF_SNS_Comments_ParentID]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Comments_HasScan]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Comments] DROP CONSTRAINT [DF_SNS_Comments_HasScan]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Comments_State]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Comments] DROP CONSTRAINT [DF_SNS_Comments_State]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Comments_CreatedDate]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Comments] DROP CONSTRAINT [DF_SNS_Comments_CreatedDate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_Comments]') AND type in (N'U'))
DROP TABLE [SNS_Comments]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_FellowTopics]') AND type in (N'U'))
DROP TABLE [SNS_FellowTopics]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_GradeConfig]') AND type in (N'U'))
DROP TABLE [SNS_GradeConfig]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Group_CreatedDate]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Groups] DROP CONSTRAINT [DF_SNS_Group_CreatedDate]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Groups_IsRecommand]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Groups] DROP CONSTRAINT [DF_SNS_Groups_IsRecommand]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Group_Status]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Groups] DROP CONSTRAINT [DF_SNS_Group_Status]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_Groups]') AND type in (N'U'))
DROP TABLE [SNS_Groups]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_GroupTags]') AND type in (N'U'))
DROP TABLE [SNS_GroupTags]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_GroupTopicFav]') AND type in (N'U'))
DROP TABLE [SNS_GroupTopicFav]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_GroupTopicReply]') AND type in (N'U'))
DROP TABLE [SNS_GroupTopicReply]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_GroupTopics]') AND type in (N'U'))
DROP TABLE [SNS_GroupTopics]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_GroupUsers]') AND type in (N'U'))
DROP TABLE [SNS_GroupUsers]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_GuestBook_ParentID]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_GuestBook] DROP CONSTRAINT [DF_SNS_GuestBook_ParentID]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_GuestBook]') AND type in (N'U'))
DROP TABLE [SNS_GuestBook]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_HotWords]') AND type in (N'U'))
DROP TABLE [SNS_HotWords]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_OnLineShopPhoto]') AND type in (N'U'))
DROP TABLE [SNS_OnLineShopPhoto]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Photo_State]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Photos] DROP CONSTRAINT [DF_SNS_Photo_State]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Photo_CreatedDate]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Photos] DROP CONSTRAINT [DF_SNS_Photo_CreatedDate]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Photos_CategoryId]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Photos] DROP CONSTRAINT [DF_SNS_Photos_CategoryId]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Photo_PVCount]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Photos] DROP CONSTRAINT [DF_SNS_Photo_PVCount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Photo_Sequence]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Photos] DROP CONSTRAINT [DF_SNS_Photo_Sequence]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Photos_IsRecomend]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Photos] DROP CONSTRAINT [DF_SNS_Photos_IsRecomend]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Photo_ForwardedCount]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Photos] DROP CONSTRAINT [DF_SNS_Photo_ForwardedCount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Photo_CommentCount]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Photos] DROP CONSTRAINT [DF_SNS_Photo_CommentCount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Photo_ApplaudCount]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Photos] DROP CONSTRAINT [DF_SNS_Photo_ApplaudCount]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_Photos]') AND type in (N'U'))
DROP TABLE [SNS_Photos]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_PhotoTags]') AND type in (N'U'))
DROP TABLE [SNS_PhotoTags]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_MicroBlogMain_OriginalMicroBlogID]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Posts] DROP CONSTRAINT [DF_SNS_MicroBlogMain_OriginalMicroBlogID]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_MicroBlogMain_ForwardedMicroBlogID]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Posts] DROP CONSTRAINT [DF_SNS_MicroBlogMain_ForwardedMicroBlogID]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_MicroBlogMain_HasReferUsers]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Posts] DROP CONSTRAINT [DF_SNS_MicroBlogMain_HasReferUsers]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_MicroBlogMain_ReplyCount]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Posts] DROP CONSTRAINT [DF_SNS_MicroBlogMain_ReplyCount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Post_SelfForwardCount]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Posts] DROP CONSTRAINT [DF_SNS_Post_SelfForwardCount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Post_PostType]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Posts] DROP CONSTRAINT [DF_SNS_Post_PostType]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Post_photoID]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Posts] DROP CONSTRAINT [DF_SNS_Post_photoID]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_MicroBlogMain_TopicID]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Posts] DROP CONSTRAINT [DF_SNS_MicroBlogMain_TopicID]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Posts_FavCount]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Posts] DROP CONSTRAINT [DF_SNS_Posts_FavCount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_MicroBlogMain_AuditingStatus]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Posts] DROP CONSTRAINT [DF_SNS_MicroBlogMain_AuditingStatus]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Post_CreatedDate]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Posts] DROP CONSTRAINT [DF_SNS_Post_CreatedDate]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Posts_IsRecommend]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Posts] DROP CONSTRAINT [DF_SNS_Posts_IsRecommend]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Posts_Sequence]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Posts] DROP CONSTRAINT [DF_SNS_Posts_Sequence]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_Posts]') AND type in (N'U'))
DROP TABLE [SNS_Posts]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_PostsTopics]') AND type in (N'U'))
DROP TABLE [SNS_PostsTopics]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Products_FavCount]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Products] DROP CONSTRAINT [DF_SNS_Products_FavCount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Products_GroupBuyCount]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Products] DROP CONSTRAINT [DF_SNS_Products_GroupBuyCount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Products_PVCount]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Products] DROP CONSTRAINT [DF_SNS_Products_PVCount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Products_IsRecomend]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Products] DROP CONSTRAINT [DF_SNS_Products_IsRecomend]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Products_Sequence]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Products] DROP CONSTRAINT [DF_SNS_Products_Sequence]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Products_CommentCount]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Products] DROP CONSTRAINT [DF_SNS_Products_CommentCount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Products_ForwardedCount]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Products] DROP CONSTRAINT [DF_SNS_Products_ForwardedCount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Products_SkipCount]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Products] DROP CONSTRAINT [DF_SNS_Products_SkipCount]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_Products]') AND type in (N'U'))
DROP TABLE [SNS_Products]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_ProductSources]') AND type in (N'U'))
DROP TABLE [SNS_ProductSources]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_ReferUsers]') AND type in (N'U'))
DROP TABLE [SNS_ReferUsers]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Report_Status]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Report] DROP CONSTRAINT [DF_SNS_Report_Status]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_Report]') AND type in (N'U'))
DROP TABLE [SNS_Report]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_ReportType]') AND type in (N'U'))
DROP TABLE [SNS_ReportType]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_SearchWordLog]') AND type in (N'U'))
DROP TABLE [SNS_SearchWordLog]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_SearchWordTop]') AND type in (N'U'))
DROP TABLE [SNS_SearchWordTop]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_Star]') AND type in (N'U'))
DROP TABLE [SNS_Star]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_StarRank]') AND type in (N'U'))
DROP TABLE [SNS_StarRank]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_StarType]') AND type in (N'U'))
DROP TABLE [SNS_StarType]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_Tags]') AND type in (N'U'))
DROP TABLE [SNS_Tags]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_TagType]') AND type in (N'U'))
DROP TABLE [SNS_TagType]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_UserAlbumDetail]') AND type in (N'U'))
DROP TABLE [SNS_UserAlbumDetail]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_UserAlbums_PhotoCount]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_UserAlbums] DROP CONSTRAINT [DF_SNS_UserAlbums_PhotoCount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_PhotoAlbum_PVCount]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_UserAlbums] DROP CONSTRAINT [DF_SNS_PhotoAlbum_PVCount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_UserAlbums_FavouritesCount]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_UserAlbums] DROP CONSTRAINT [DF_SNS_UserAlbums_FavouritesCount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_UserAlbums_CommentCount]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_UserAlbums] DROP CONSTRAINT [DF_SNS_UserAlbums_CommentCount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_UserAlbums_IsRecommend]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_UserAlbums] DROP CONSTRAINT [DF_SNS_UserAlbums_IsRecommend]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_UserAlbums_ChannelSequence]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_UserAlbums] DROP CONSTRAINT [DF_SNS_UserAlbums_ChannelSequence]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_UserAlbums_Privacy]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_UserAlbums] DROP CONSTRAINT [DF_SNS_UserAlbums_Privacy]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_PhotoAlbum_Sequence]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_UserAlbums] DROP CONSTRAINT [DF_SNS_PhotoAlbum_Sequence]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_PhotoAlbum_LastUpdatedDate]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_UserAlbums] DROP CONSTRAINT [DF_SNS_PhotoAlbum_LastUpdatedDate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_UserAlbums]') AND type in (N'U'))
DROP TABLE [SNS_UserAlbums]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_UserAlbumsType]') AND type in (N'U'))
DROP TABLE [SNS_UserAlbumsType]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_UserBlog_Status]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_UserBlog] DROP CONSTRAINT [DF_SNS_UserBlog_Status]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_UserBlog]') AND type in (N'U'))
DROP TABLE [SNS_UserBlog]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_UserFavAlbum]') AND type in (N'U'))
DROP TABLE [SNS_UserFavAlbum]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_UserFavourite]') AND type in (N'U'))
DROP TABLE [SNS_UserFavourite]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_UserShip_RelationType]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_UserShip] DROP CONSTRAINT [DF_SNS_UserShip_RelationType]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_UserShip_CreatedDate]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_UserShip] DROP CONSTRAINT [DF_SNS_UserShip_CreatedDate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_UserShip]') AND type in (N'U'))
DROP TABLE [SNS_UserShip]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_spb_FriendUserCategories_Description]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_UserShipCategories] DROP CONSTRAINT [DF_spb_FriendUserCategories_Description]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_spb_FriendUserCategoriess_DisplayOrder]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_UserShipCategories] DROP CONSTRAINT [DF_spb_FriendUserCategoriess_DisplayOrder]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_spb_FriendUserCategories_MostRecentUpdateDate]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_UserShipCategories] DROP CONSTRAINT [DF_spb_FriendUserCategories_MostRecentUpdateDate]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_spb_FriendUserCategories_DateCreated]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_UserShipCategories] DROP CONSTRAINT [DF_spb_FriendUserCategories_DateCreated]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_spb_FriendUserCategories_AuditingStatus]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_UserShipCategories] DROP CONSTRAINT [DF_spb_FriendUserCategories_AuditingStatus]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_UserShipCategories]') AND type in (N'U'))
DROP TABLE [SNS_UserShipCategories]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Video_State]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Videos] DROP CONSTRAINT [DF_SNS_Video_State]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Video_CreatedDate]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Videos] DROP CONSTRAINT [DF_SNS_Video_CreatedDate]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Video_PVCount]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Videos] DROP CONSTRAINT [DF_SNS_Video_PVCount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Video_Sequence]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Videos] DROP CONSTRAINT [DF_SNS_Video_Sequence]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Video_ForwardedCount]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Videos] DROP CONSTRAINT [DF_SNS_Video_ForwardedCount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Video_CommentCount]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Videos] DROP CONSTRAINT [DF_SNS_Video_CommentCount]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_Video_ApplaudCount]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_Videos] DROP CONSTRAINT [DF_SNS_Video_ApplaudCount]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_Videos]') AND type in (N'U'))
DROP TABLE [SNS_Videos]
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_VisiteLogs_VisitTimes]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_VisiteLogs] DROP CONSTRAINT [DF_SNS_VisiteLogs_VisitTimes]
END
GO
IF  EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'[DF_SNS_VisiteLogs_LastVisitTime]') AND type = 'D')
BEGIN
ALTER TABLE [SNS_VisiteLogs] DROP CONSTRAINT [DF_SNS_VisiteLogs_LastVisitTime]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_VisiteLogs]') AND type in (N'U'))
DROP TABLE [SNS_VisiteLogs]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_VisiteLogs]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_VisiteLogs](
	[VisitID] [int] IDENTITY(1,1) NOT NULL,
	[FromUserID] [int] NOT NULL,
	[FromNickName] [nvarchar](50) NOT NULL,
	[ToUserID] [int] NOT NULL,
	[ToNickName] [nvarchar](50) NOT NULL,
	[VisitTimes] [int] NULL CONSTRAINT [DF_SNS_VisiteLogs_VisitTimes]  DEFAULT ((0)),
	[LastVisitTime] [datetime] NOT NULL CONSTRAINT [DF_SNS_VisiteLogs_LastVisitTime]  DEFAULT (getdate()),
 CONSTRAINT [PK_spb_UserVisits] PRIMARY KEY CLUSTERED 
(
	[VisitID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_Videos]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_Videos](
	[VideoID] [int] IDENTITY(1,1) NOT NULL,
	[VideoName] [nvarchar](200) NULL,
	[VideoUrl] [nvarchar](200) NOT NULL,
	[Type] [int] NOT NULL,
	[Description] [nvarchar](500) NULL,
	[Status] [int] NOT NULL CONSTRAINT [DF_SNS_Video_State]  DEFAULT ((1)),
	[CreatedUserID] [int] NOT NULL,
	[CreatedNickName] [nvarchar](50) NULL,
	[CreatedDate] [datetime] NOT NULL CONSTRAINT [DF_SNS_Video_CreatedDate]  DEFAULT (getdate()),
	[CategoryId] [int] NULL,
	[PVCount] [int] NOT NULL CONSTRAINT [DF_SNS_Video_PVCount]  DEFAULT ((0)),
	[ThumbImageUrl] [nvarchar](200) NULL,
	[NormalImageUrl] [nvarchar](200) NULL,
	[Sequence] [int] NOT NULL CONSTRAINT [DF_SNS_Video_Sequence]  DEFAULT ((0)),
	[IsRecomend] [int] NOT NULL,
	[ForwardedCount] [int] NOT NULL CONSTRAINT [DF_SNS_Video_ForwardedCount]  DEFAULT ((0)),
	[CommentCount] [int] NOT NULL CONSTRAINT [DF_SNS_Video_CommentCount]  DEFAULT ((0)),
	[FavouriteCount] [int] NOT NULL CONSTRAINT [DF_SNS_Video_ApplaudCount]  DEFAULT ((0)),
	[OwnerVideoId] [int] NULL,
	[Tags] [nvarchar](100) NULL,
 CONSTRAINT [PK_SNS_Video] PRIMARY KEY CLUSTERED 
(
	[VideoID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_UserShipCategories]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_UserShipCategories](
	[CategoryID] [int] IDENTITY(1,1) NOT NULL,
	[CreatedUserID] [int] NOT NULL,
	[CategoryName] [nvarchar](100) NOT NULL,
	[Description] [text] NULL CONSTRAINT [DF_spb_FriendUserCategories_Description]  DEFAULT (''),
	[Sequence] [int] NOT NULL CONSTRAINT [DF_spb_FriendUserCategoriess_DisplayOrder]  DEFAULT ((0)),
	[LastUpdatedDate] [datetime] NULL CONSTRAINT [DF_spb_FriendUserCategories_MostRecentUpdateDate]  DEFAULT (getdate()),
	[CreatedDate] [datetime] NOT NULL CONSTRAINT [DF_spb_FriendUserCategories_DateCreated]  DEFAULT (getdate()),
	[Privacy] [smallint] NOT NULL CONSTRAINT [DF_spb_FriendUserCategories_AuditingStatus]  DEFAULT ((30)),
 CONSTRAINT [PK_spb_FriendUserCategories] PRIMARY KEY CLUSTERED 
(
	[CategoryID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_UserShip]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_UserShip](
	[ActiveUserID] [int] NOT NULL,
	[PassiveUserID] [int] NOT NULL,
	[State] [int] NOT NULL,
	[Type] [int] NOT NULL CONSTRAINT [DF_SNS_UserShip_RelationType]  DEFAULT ((0)),
	[CategoryID] [int] NOT NULL,
	[CreatedDate] [datetime] NOT NULL CONSTRAINT [DF_SNS_UserShip_CreatedDate]  DEFAULT (getdate()),
	[IsRead] [bit] NOT NULL,
 CONSTRAINT [PK_SNS_Friends] PRIMARY KEY CLUSTERED 
(
	[ActiveUserID] ASC,
	[PassiveUserID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_UserFavourite]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_UserFavourite](
	[FavouriteID] [int] IDENTITY(1,1) NOT NULL,
	[TargetID] [int] NOT NULL,
	[Type] [int] NOT NULL,
	[CreatedUserID] [int] NOT NULL,
	[CreatedNickName] [nvarchar](50) NULL,
	[OwnerUserID] [int] NULL,
	[OwnerNickName] [nvarchar](100) NULL,
	[Description] [nvarchar](max) NULL,
	[Tags] [nvarchar](100) NULL,
	[CreatedDate] [datetime] NOT NULL,
 CONSTRAINT [PK_SNS_UserFavourite] PRIMARY KEY CLUSTERED 
(
	[FavouriteID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_UserFavAlbum]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_UserFavAlbum](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[AlbumID] [int] NOT NULL,
	[UserID] [int] NOT NULL,
	[Tags] [nvarchar](100) NULL,
	[CreatedDate] [datetime] NOT NULL,
 CONSTRAINT [PK_SNS_UserFavAlbum] PRIMARY KEY CLUSTERED 
(
	[AlbumID] ASC,
	[UserID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_UserBlog]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_UserBlog](
	[BlogID] [int] IDENTITY(1,1) NOT NULL,
	[Title] [nvarchar](100) NOT NULL,
	[Summary] [nvarchar](300) NULL,
	[Description] [text] NOT NULL,
	[UserID] [int] NOT NULL,
	[UserName] [nvarchar](100) NOT NULL,
	[LinkUrl] [nvarchar](200) NULL,
	[Status] [int] NOT NULL CONSTRAINT [DF_SNS_UserBlog_Status]  DEFAULT ((1)),
	[Keywords] [nvarchar](50) NULL,
	[Recomend] [int] NOT NULL,
	[Attachment] [nvarchar](200) NULL,
	[Remark] [nvarchar](200) NULL,
	[PvCount] [int] NOT NULL,
	[TotalComment] [int] NOT NULL,
	[TotalFav] [int] NOT NULL,
	[TotalShare] [int] NOT NULL,
	[Meta_Title] [nvarchar](100) NULL,
	[Meta_Description] [nvarchar](1000) NULL,
	[Meta_Keywords] [nvarchar](1000) NULL,
	[SeoUrl] [nvarchar](300) NULL,
	[StaticUrl] [nvarchar](500) NULL,
	[CreatedDate] [datetime] NOT NULL,
 CONSTRAINT [PK_SNS_UserBlog] PRIMARY KEY CLUSTERED 
(
	[BlogID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_UserAlbumsType]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_UserAlbumsType](
	[AlbumsID] [int] NOT NULL,
	[TypeID] [int] NOT NULL,
	[AlbumsUserID] [int] NULL,
 CONSTRAINT [PK_SNS_UserAlbumsType] PRIMARY KEY CLUSTERED 
(
	[AlbumsID] ASC,
	[TypeID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_UserAlbums]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_UserAlbums](
	[AlbumID] [int] IDENTITY(1,1) NOT NULL,
	[AlbumName] [nvarchar](100) NOT NULL,
	[Description] [nvarchar](max) NULL,
	[CoverTargetID] [int] NULL,
	[CoverPhotoUrl] [nvarchar](200) NULL,
	[CoverTargetType] [int] NULL,
	[Status] [smallint] NOT NULL,
	[CreatedUserID] [int] NOT NULL,
	[CreatedNickName] [nvarchar](50) NULL,
	[PhotoCount] [int] NOT NULL CONSTRAINT [DF_SNS_UserAlbums_PhotoCount]  DEFAULT ((0)),
	[PVCount] [int] NOT NULL CONSTRAINT [DF_SNS_PhotoAlbum_PVCount]  DEFAULT ((0)),
	[FavouriteCount] [int] NOT NULL CONSTRAINT [DF_SNS_UserAlbums_FavouritesCount]  DEFAULT ((0)),
	[CreatedDate] [datetime] NOT NULL,
	[CommentsCount] [int] NULL CONSTRAINT [DF_SNS_UserAlbums_CommentCount]  DEFAULT ((0)),
	[IsRecommend] [smallint] NOT NULL CONSTRAINT [DF_SNS_UserAlbums_IsRecommend]  DEFAULT ((0)),
	[ChannelSequence] [int] NOT NULL CONSTRAINT [DF_SNS_UserAlbums_ChannelSequence]  DEFAULT ((0)),
	[Privacy] [int] NOT NULL CONSTRAINT [DF_SNS_UserAlbums_Privacy]  DEFAULT ((0)),
	[Sequence] [int] NOT NULL CONSTRAINT [DF_SNS_PhotoAlbum_Sequence]  DEFAULT ((0)),
	[LastUpdatedDate] [datetime] NULL CONSTRAINT [DF_SNS_PhotoAlbum_LastUpdatedDate]  DEFAULT (getdate()),
	[Tags] [nvarchar](100) NULL,
 CONSTRAINT [PK_SNS_PhotoAlbum] PRIMARY KEY CLUSTERED 
(
	[AlbumID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_UserAlbumDetail]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_UserAlbumDetail](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[AlbumID] [int] NOT NULL,
	[TargetID] [int] NOT NULL,
	[Type] [int] NOT NULL,
	[AlbumUserId] [int] NULL,
	[Description] [nvarchar](200) NULL,
 CONSTRAINT [PK_SNS_AlbumDetail_1] PRIMARY KEY CLUSTERED 
(
	[AlbumID] ASC,
	[TargetID] ASC,
	[Type] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_TagType]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_TagType](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[TypeName] [nvarchar](50) NOT NULL,
	[Remark] [nvarchar](100) NULL,
	[Cid] [int] NULL,
	[Status] [int] NULL,
 CONSTRAINT [PK_SNS_TagType] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_Tags]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_Tags](
	[TagID] [int] IDENTITY(1,1) NOT NULL,
	[TagName] [nvarchar](50) NULL,
	[TypeId] [int] NOT NULL,
	[IsRecommand] [int] NULL,
	[Status] [int] NOT NULL,
 CONSTRAINT [PK_SNS_Tags] PRIMARY KEY CLUSTERED 
(
	[TagID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_StarType]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_StarType](
	[TypeID] [int] IDENTITY(1,1) NOT NULL,
	[TypeName] [nvarchar](100) NULL,
	[CheckRule] [nvarchar](50) NULL,
	[Remark] [nvarchar](200) NULL,
	[Status] [int] NULL,
 CONSTRAINT [PK_SNS_StarType] PRIMARY KEY CLUSTERED 
(
	[TypeID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_StarRank]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_StarRank](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[UserId] [int] NOT NULL,
	[UserGravatar] [nvarchar](200) NULL,
	[TypeId] [int] NOT NULL,
	[NickName] [nvarchar](50) NOT NULL,
	[IsRecommend] [bit] NOT NULL,
	[Sequence] [int] NOT NULL,
	[TimeUnit] [int] NOT NULL,
	[StartDate] [datetime] NOT NULL,
	[EndDate] [datetime] NOT NULL,
	[CreatedDate] [datetime] NOT NULL,
	[RankDate] [datetime] NOT NULL,
	[Status] [int] NOT NULL,
	[RankType] [int] NOT NULL,
 CONSTRAINT [PK_SNS_StarRank] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_Star]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_Star](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[UserID] [int] NOT NULL,
	[TypeID] [int] NOT NULL,
	[NickName] [nvarchar](50) NOT NULL,
	[UserGravatar] [nvarchar](200) NULL,
	[ApplyReason] [nvarchar](max) NULL,
	[CreatedDate] [datetime] NOT NULL,
	[ExpiredDate] [datetime] NULL,
	[Status] [int] NULL,
 CONSTRAINT [PK_SNS_Star_1] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_SearchWordTop]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_SearchWordTop](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[HotWord] [nvarchar](100) NOT NULL,
	[TimeUnit] [int] NOT NULL,
	[DateStart] [datetime] NULL,
	[DateEnd] [datetime] NULL,
	[SearchCount] [int] NOT NULL,
	[CreatedDate] [datetime] NOT NULL,
	[Status] [int] NOT NULL,
 CONSTRAINT [PK_SNS_HotWord_1] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_SearchWordLog]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_SearchWordLog](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[SearchWord] [nvarchar](100) NOT NULL,
	[CreatedUserId] [int] NOT NULL,
	[CreatedNickName] [nvarchar](50) NULL,
	[CreatedDate] [datetime] NOT NULL,
	[Status] [int] NOT NULL,
 CONSTRAINT [PK_SNS_HotWord] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_ReportType]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_ReportType](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[TypeName] [nvarchar](50) NOT NULL,
	[Status] [int] NOT NULL,
	[Remark] [nvarchar](100) NULL,
 CONSTRAINT [PK_SNS_ReportType] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_Report]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_Report](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[ReportTypeID] [int] NOT NULL,
	[TargetType] [int] NOT NULL,
	[TargetID] [int] NOT NULL,
	[CreatedUserID] [int] NOT NULL,
	[CreatedNickName] [nvarchar](50) NULL,
	[Description] [nvarchar](200) NULL,
	[CreatedDate] [datetime] NOT NULL,
	[Status] [int] NULL CONSTRAINT [DF_SNS_Report_Status]  DEFAULT ((0)),
 CONSTRAINT [PK_SNS_Report] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_ReferUsers]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_ReferUsers](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[TagetID] [int] NOT NULL,
	[Type] [int] NOT NULL,
	[ReferUserID] [int] NOT NULL,
	[ReferNickName] [nvarchar](50) NULL,
	[CreatedDate] [datetime] NOT NULL,
	[IsRead] [bit] NOT NULL,
 CONSTRAINT [PK_SNS_ReferUsers] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_ProductSources]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_ProductSources](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[WebSiteName] [nvarchar](100) NULL,
	[WebSiteUrl] [nvarchar](200) NULL,
	[WebSiteLogo] [nvarchar](200) NULL,
	[CategoryTags] [nvarchar](max) NULL,
	[PriceTags] [nvarchar](max) NULL,
	[ImagesTag] [nvarchar](max) NULL,
	[Status] [int] NOT NULL,
 CONSTRAINT [PK_SNS_ProductSource] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_Products]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_Products](
	[ProductID] [bigint] IDENTITY(1,1) NOT NULL,
	[ProductName] [nvarchar](200) NOT NULL,
	[ProductDescription] [nvarchar](500) NULL,
	[Price] [decimal](18, 0) NULL,
	[ProductSourceID] [int] NULL,
	[CategoryID] [int] NULL,
	[ProductUrl] [nvarchar](max) NULL,
	[FavouriteCount] [int] NOT NULL CONSTRAINT [DF_SNS_Products_FavCount]  DEFAULT ((0)),
	[GroupBuyCount] [int] NULL CONSTRAINT [DF_SNS_Products_GroupBuyCount]  DEFAULT ((0)),
	[CreateUserID] [int] NOT NULL,
	[CreatedNickName] [nvarchar](50) NULL,
	[ThumbImageUrl] [varchar](300) NULL,
	[NormalImageUrl] [varchar](300) NULL,
	[PVCount] [int] NOT NULL CONSTRAINT [DF_SNS_Products_PVCount]  DEFAULT ((0)),
	[IsRecomend] [int] NOT NULL CONSTRAINT [DF_SNS_Products_IsRecomend]  DEFAULT ((0)),
	[Status] [int] NOT NULL,
	[Sequence] [int] NOT NULL CONSTRAINT [DF_SNS_Products_Sequence]  DEFAULT ((0)),
	[TopCommentsId] [nvarchar](100) NULL,
	[CommentCount] [int] NOT NULL CONSTRAINT [DF_SNS_Products_CommentCount]  DEFAULT ((0)),
	[ForwardedCount] [int] NULL CONSTRAINT [DF_SNS_Products_ForwardedCount]  DEFAULT ((0)),
	[ShareDescription] [nvarchar](200) NULL,
	[SkipCount] [int] NOT NULL CONSTRAINT [DF_SNS_Products_SkipCount]  DEFAULT ((0)),
	[OwnerProductId] [int] NULL,
	[Tags] [nvarchar](400) NULL,
	[CreatedDate] [datetime] NOT NULL,
	[Color] [nvarchar](100) NULL,
	[OriginalID] [bigint] NULL,
	[SourceType] [int] NULL,
	[StaticUrl] [nvarchar](300) NULL,
 CONSTRAINT [PK_SNS_Product] PRIMARY KEY CLUSTERED 
(
	[ProductID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_PostsTopics]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_PostsTopics](
	[Title] [nvarchar](200) NOT NULL,
	[Description] [nvarchar](max) NULL,
	[CreatedUserID] [int] NOT NULL,
	[CreatedNickName] [nvarchar](50) NULL,
	[CreatedDate] [datetime] NOT NULL,
	[TopicsCount] [int] NOT NULL,
	[IsRecommend] [bit] NOT NULL,
	[Sequence] [int] NOT NULL,
	[Tags] [nvarchar](100) NULL,
 CONSTRAINT [PK_SNS_PostTopics] PRIMARY KEY CLUSTERED 
(
	[Title] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_Posts]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_Posts](
	[PostID] [int] IDENTITY(1,1) NOT NULL,
	[CreatedUserID] [int] NOT NULL,
	[CreatedNickName] [nvarchar](50) NOT NULL,
	[OriginalID] [int] NOT NULL CONSTRAINT [DF_SNS_MicroBlogMain_OriginalMicroBlogID]  DEFAULT ((0)),
	[ForwardedID] [int] NULL CONSTRAINT [DF_SNS_MicroBlogMain_ForwardedMicroBlogID]  DEFAULT ((0)),
	[Description] [nvarchar](max) NULL,
	[HasReferUsers] [bit] NOT NULL CONSTRAINT [DF_SNS_MicroBlogMain_HasReferUsers]  DEFAULT ((0)),
	[CommentCount] [int] NOT NULL CONSTRAINT [DF_SNS_MicroBlogMain_ReplyCount]  DEFAULT ((0)),
	[ForwardCount] [int] NOT NULL CONSTRAINT [DF_SNS_Post_SelfForwardCount]  DEFAULT ((0)),
	[Type] [int] NULL CONSTRAINT [DF_SNS_Post_PostType]  DEFAULT ((0)),
	[PostExUrl] [nvarchar](200) NULL,
	[VideoUrl] [nvarchar](200) NULL,
	[AudioUrl] [nvarchar](200) NULL,
	[ImageUrl] [nvarchar](200) NULL,
	[TargetId] [int] NULL CONSTRAINT [DF_SNS_Post_photoID]  DEFAULT ((0)),
	[TopicTitle] [nvarchar](200) NULL CONSTRAINT [DF_SNS_MicroBlogMain_TopicID]  DEFAULT ((0)),
	[Price] [decimal](18, 0) NULL,
	[ProductLinkUrl] [nvarchar](500) NULL,
	[ProductName] [nvarchar](200) NULL,
	[FavCount] [int] NULL CONSTRAINT [DF_SNS_Posts_FavCount]  DEFAULT ((0)),
	[UserIP] [nvarchar](15) NULL,
	[Status] [int] NOT NULL CONSTRAINT [DF_SNS_MicroBlogMain_AuditingStatus]  DEFAULT ((1)),
	[CreatedDate] [datetime] NOT NULL CONSTRAINT [DF_SNS_Post_CreatedDate]  DEFAULT (getdate()),
	[IsRecommend] [bit] NOT NULL CONSTRAINT [DF_SNS_Posts_IsRecommend]  DEFAULT ((0)),
	[Sequence] [int] NOT NULL CONSTRAINT [DF_SNS_Posts_Sequence]  DEFAULT ((0)),
	[Tags] [nvarchar](100) NULL,
 CONSTRAINT [PK_SNS_MicroBlogMain] PRIMARY KEY CLUSTERED 
(
	[PostID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_PhotoTags]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_PhotoTags](
	[TagID] [int] IDENTITY(1,1) NOT NULL,
	[TagName] [nvarchar](100) NULL,
	[IsRecommand] [smallint] NULL,
	[Status] [int] NULL,
	[CreatedDate] [datetime] NULL,
	[Remark] [nvarchar](100) NULL,
 CONSTRAINT [PK_PhotoTags] PRIMARY KEY CLUSTERED 
(
	[TagID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_Photos]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_Photos](
	[PhotoID] [int] IDENTITY(1,1) NOT NULL,
	[PhotoName] [nvarchar](200) NULL,
	[PhotoUrl] [nvarchar](200) NOT NULL,
	[Type] [int] NULL,
	[Description] [nvarchar](500) NULL,
	[Status] [int] NOT NULL CONSTRAINT [DF_SNS_Photo_State]  DEFAULT ((1)),
	[CreatedUserID] [int] NOT NULL,
	[CreatedNickName] [nvarchar](50) NULL,
	[CreatedDate] [datetime] NOT NULL CONSTRAINT [DF_SNS_Photo_CreatedDate]  DEFAULT (getdate()),
	[CategoryId] [int] NULL CONSTRAINT [DF_SNS_Photos_CategoryId]  DEFAULT ((-1)),
	[PVCount] [int] NOT NULL CONSTRAINT [DF_SNS_Photo_PVCount]  DEFAULT ((0)),
	[ThumbImageUrl] [nvarchar](200) NULL,
	[NormalImageUrl] [nvarchar](200) NULL,
	[Sequence] [int] NOT NULL CONSTRAINT [DF_SNS_Photo_Sequence]  DEFAULT ((0)),
	[IsRecomend] [int] NULL CONSTRAINT [DF_SNS_Photos_IsRecomend]  DEFAULT ((0)),
	[TopCommentsId] [nvarchar](100) NULL,
	[ForwardedCount] [int] NOT NULL CONSTRAINT [DF_SNS_Photo_ForwardedCount]  DEFAULT ((0)),
	[CommentCount] [int] NOT NULL CONSTRAINT [DF_SNS_Photo_CommentCount]  DEFAULT ((0)),
	[FavouriteCount] [int] NOT NULL CONSTRAINT [DF_SNS_Photo_ApplaudCount]  DEFAULT ((0)),
	[OwnerPhotoId] [int] NULL,
	[Tags] [nvarchar](100) NULL,
	[StaticUrl] [nvarchar](300) NULL,
	[MapLng] [nvarchar](200) NULL,
	[MapLat] [nvarchar](200) NULL,
	[PhotoAddress] [nvarchar](300) NULL,
 CONSTRAINT [PK_SNS_Photo] PRIMARY KEY CLUSTERED 
(
	[PhotoID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_OnLineShopPhoto]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_OnLineShopPhoto](
	[PhotoID] [int] NOT NULL,
	[ProductID] [int] NOT NULL,
	[CreatedUserId] [int] NOT NULL,
	[CreatedNickName] [nvarchar](50) NULL,
	[CreatedDate] [datetime] NOT NULL,
	[Status] [int] NOT NULL,
 CONSTRAINT [PK_SNS_OnLineShopPhoto] PRIMARY KEY CLUSTERED 
(
	[PhotoID] ASC,
	[ProductID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_HotWords]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_HotWords](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[KeyWord] [nvarchar](100) NOT NULL,
	[CreatedDate] [datetime] NOT NULL,
	[IsRecommend] [bit] NOT NULL,
	[Sequence] [int] NOT NULL,
	[Status] [int] NOT NULL,
 CONSTRAINT [PK_SNS_SearchKeyWord] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_GuestBook]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_GuestBook](
	[GuestBookID] [int] IDENTITY(1,1) NOT NULL,
	[CreateUserID] [int] NOT NULL,
	[CreateNickName] [nvarchar](50) NULL,
	[ToUserID] [int] NOT NULL,
	[ToNickName] [nvarchar](100) NULL,
	[ParentID] [int] NULL CONSTRAINT [DF_SNS_GuestBook_ParentID]  DEFAULT ((0)),
	[Description] [text] NULL,
	[UserIP] [nvarchar](15) NULL,
	[Privacy] [smallint] NULL,
	[CreatedDate] [datetime] NOT NULL,
	[Email] [nvarchar](100) NULL,
	[Path] [nvarchar](100) NULL,
	[Depth] [int] NULL,
 CONSTRAINT [PK_SNS_LeaveMessage] PRIMARY KEY CLUSTERED 
(
	[GuestBookID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_GroupUsers]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_GroupUsers](
	[GroupID] [int] NOT NULL,
	[UserID] [int] NOT NULL,
	[NickName] [nvarchar](50) NULL,
	[JoinTime] [datetime] NOT NULL,
	[Role] [int] NOT NULL,
	[ApplyReason] [nvarchar](max) NULL,
	[IsRecommend] [bit] NOT NULL,
	[Sequence] [int] NOT NULL,
	[Status] [int] NOT NULL,
 CONSTRAINT [PK_SNS_GroupUser_1] PRIMARY KEY CLUSTERED 
(
	[GroupID] ASC,
	[UserID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_GroupTopics]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_GroupTopics](
	[TopicID] [int] IDENTITY(1,1) NOT NULL,
	[CreatedUserID] [int] NOT NULL,
	[CreatedNickName] [nvarchar](50) NULL,
	[GroupID] [int] NOT NULL,
	[GroupName] [nvarchar](50) NULL,
	[Title] [nvarchar](100) NULL,
	[Description] [nvarchar](max) NULL,
	[IsRecomend] [int] NOT NULL,
	[Sequence] [int] NOT NULL,
	[ReplyCount] [int] NOT NULL,
	[PvCount] [int] NOT NULL,
	[DingCount] [int] NOT NULL,
	[Status] [int] NOT NULL,
	[IsTop] [int] NOT NULL,
	[IsActive] [bit] NOT NULL,
	[IsAdminRecommend] [bit] NOT NULL,
	[ChannelSequence] [int] NULL,
	[HasReferUsers] [bit] NOT NULL,
	[PostExUrl] [nvarchar](200) NULL,
	[ImageUrl] [nvarchar](200) NULL,
	[VideoUrl] [nvarchar](200) NULL,
	[AudioUrl] [nvarchar](200) NULL,
	[ProductName] [nvarchar](200) NULL,
	[Price] [decimal](18, 0) NULL,
	[ProductLinkUrl] [nvarchar](500) NULL,
	[Type] [int] NOT NULL,
	[TargetID] [int] NULL,
	[FavCount] [int] NOT NULL,
	[CreatedDate] [datetime] NOT NULL,
	[LastReplyUserId] [int] NULL,
	[LastReplyNickName] [nvarchar](50) NULL,
	[LastPostTime] [datetime] NULL,
	[Tags] [nvarchar](100) NULL,
 CONSTRAINT [PK_SNS_GroupTopic] PRIMARY KEY CLUSTERED 
(
	[TopicID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_GroupTopicReply]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_GroupTopicReply](
	[ReplyID] [int] IDENTITY(1,1) NOT NULL,
	[GroupID] [int] NOT NULL,
	[ReplyType] [int] NOT NULL,
	[ReplyNickName] [nvarchar](50) NOT NULL,
	[ReplyUserID] [int] NOT NULL,
	[OriginalID] [int] NOT NULL,
	[OrginalDes] [nvarchar](max) NULL,
	[OrginalUserID] [int] NOT NULL,
	[OrgianlNickName] [nvarchar](50) NULL,
	[TopicID] [int] NOT NULL,
	[Description] [nvarchar](max) NULL,
	[HasReferUsers] [bit] NULL,
	[PhotoUrl] [nvarchar](200) NULL,
	[TargetId] [int] NULL,
	[Type] [int] NULL,
	[ProductUrl] [nvarchar](200) NULL,
	[ProductName] [nvarchar](200) NULL,
	[ReplyExUrl] [nvarchar](200) NULL,
	[ProductLinkUrl] [nvarchar](500) NULL,
	[FavCount] [int] NOT NULL,
	[Price] [decimal](18, 0) NULL,
	[UserIP] [nvarchar](15) NULL,
	[Status] [int] NOT NULL,
	[CreatedDate] [datetime] NOT NULL,
 CONSTRAINT [PK_SNS_TopicReply] PRIMARY KEY CLUSTERED 
(
	[ReplyID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_GroupTopicFav]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_GroupTopicFav](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[CreatedUserID] [int] NOT NULL,
	[CreatedDate] [datetime] NOT NULL,
	[TopicID] [int] NOT NULL,
	[Tags] [nvarchar](100) NULL,
	[Remark] [nvarchar](100) NULL,
 CONSTRAINT [PK_SNS_GroupTopicFav] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_GroupTags]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_GroupTags](
	[TagID] [int] IDENTITY(1,1) NOT NULL,
	[TagName] [nvarchar](50) NOT NULL,
	[IsRecommand] [smallint] NOT NULL,
	[Status] [smallint] NOT NULL,
 CONSTRAINT [PK_SNS_GroupTags] PRIMARY KEY CLUSTERED 
(
	[TagID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_Groups]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_Groups](
	[GroupID] [int] IDENTITY(1,1) NOT NULL,
	[GroupName] [nvarchar](50) NOT NULL,
	[GroupDescription] [nvarchar](max) NULL,
	[GroupUserCount] [int] NOT NULL,
	[CreatedUserId] [int] NOT NULL,
	[CreatedNickName] [nvarchar](50) NOT NULL,
	[CreatedDate] [datetime] NOT NULL CONSTRAINT [DF_SNS_Group_CreatedDate]  DEFAULT (getdate()),
	[GroupLogo] [nvarchar](200) NULL,
	[GroupLogoThumb] [nvarchar](200) NULL,
	[GroupBackground] [nvarchar](200) NULL,
	[ApplyGroupReason] [nvarchar](max) NULL,
	[IsRecommand] [smallint] NOT NULL CONSTRAINT [DF_SNS_Groups_IsRecommand]  DEFAULT ((0)),
	[TopicCount] [int] NOT NULL,
	[TopicReplyCount] [int] NOT NULL,
	[Status] [int] NOT NULL CONSTRAINT [DF_SNS_Group_Status]  DEFAULT ((0)),
	[Sequence] [int] NOT NULL,
	[Privacy] [smallint] NOT NULL,
	[Tags] [nvarchar](100) NULL,
 CONSTRAINT [PK_SNS_Group] PRIMARY KEY CLUSTERED 
(
	[GroupID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_GradeConfig]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_GradeConfig](
	[GradeID] [int] IDENTITY(1,1) NOT NULL,
	[GradeName] [nvarchar](50) NULL,
	[MinRange] [int] NULL,
	[MaxRange] [int] NULL,
	[Remark] [nvarchar](200) NULL,
 CONSTRAINT [PK_SNS_GradeConfig] PRIMARY KEY CLUSTERED 
(
	[GradeID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_FellowTopics]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_FellowTopics](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[TopicTitle] [nvarchar](200) NOT NULL,
	[CreatedUserId] [int] NOT NULL,
	[CreatedDate] [datetime] NOT NULL,
	[Status] [int] NOT NULL,
 CONSTRAINT [PK_SNS_FellowTopics] PRIMARY KEY CLUSTERED 
(
	[TopicTitle] ASC,
	[CreatedUserId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_Comments]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_Comments](
	[CommentID] [int] IDENTITY(1,1) NOT NULL,
	[Type] [int] NOT NULL,
	[TargetId] [int] NOT NULL,
	[ParentID] [int] NULL CONSTRAINT [DF_SNS_Comments_ParentID]  DEFAULT ((0)),
	[CreatedUserID] [int] NOT NULL,
	[CreatedNickName] [nvarchar](50) NOT NULL,
	[HasReferUser] [bit] NOT NULL,
	[Description] [ntext] NOT NULL,
	[IsRead] [bit] NOT NULL CONSTRAINT [DF_SNS_Comments_HasScan]  DEFAULT ((0)),
	[Status] [smallint] NOT NULL CONSTRAINT [DF_SNS_Comments_State]  DEFAULT ((1)),
	[ReplyCount] [int] NOT NULL,
	[UserIP] [nvarchar](15) NULL,
	[CreatedDate] [datetime] NOT NULL CONSTRAINT [DF_SNS_Comments_CreatedDate]  DEFAULT (getdate()),
 CONSTRAINT [PK_SNS_Comments] PRIMARY KEY CLUSTERED 
(
	[CommentID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_CategorySource]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_CategorySource](
	[SourceId] [int] NOT NULL,
	[CategoryId] [int] NOT NULL,
	[Name] [nvarchar](50) NOT NULL,
	[Description] [nvarchar](200) NOT NULL,
	[ParentID] [int] NOT NULL,
	[Path] [nvarchar](50) NOT NULL,
	[Depth] [int] NOT NULL,
	[Sequence] [int] NOT NULL,
	[HasChildren] [bit] NOT NULL,
	[IsMenu] [bit] NOT NULL,
	[Type] [int] NOT NULL,
	[MenuIsShow] [bit] NOT NULL,
	[MenuSequence] [int] NOT NULL,
	[CreatedUserID] [int] NOT NULL,
	[CreatedDate] [datetime] NOT NULL,
	[Status] [int] NOT NULL,
	[SnsCategoryId] [int] NULL,
 CONSTRAINT [PK_SNS_CategorySource] PRIMARY KEY CLUSTERED 
(
	[SourceId] ASC,
	[CategoryId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_Categories]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_Categories](
	[CategoryId] [int] IDENTITY(1,1) NOT NULL,
	[Name] [nvarchar](50) NOT NULL,
	[Description] [nvarchar](200) NULL,
	[ParentID] [int] NOT NULL,
	[Path] [nvarchar](50) NULL,
	[Depth] [int] NOT NULL,
	[Sequence] [int] NOT NULL,
	[HasChildren] [bit] NOT NULL,
	[IsMenu] [bit] NOT NULL,
	[Type] [int] NOT NULL,
	[MenuIsShow] [bit] NOT NULL,
	[MenuSequence] [int] NOT NULL,
	[FontColor] [nvarchar](100) NULL,
	[CreatedUserID] [int] NOT NULL,
	[CreatedDate] [datetime] NOT NULL CONSTRAINT [DF_SNS_Categories_CreatedDate]  DEFAULT (getdate()),
	[Status] [int] NOT NULL,
	[SeoUrl] [nvarchar](300) NULL,
	[Meta_Title] [nvarchar](100) NULL,
	[Meta_Description] [nvarchar](1000) NULL,
	[Meta_Keywords] [nvarchar](1000) NULL,
 CONSTRAINT [PK_SNS_Categories] PRIMARY KEY CLUSTERED 
(
	[CategoryId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SNS_AlbumType]') AND type in (N'U'))
BEGIN
CREATE TABLE [SNS_AlbumType](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[TypeName] [nvarchar](50) NOT NULL,
	[IsMenu] [bit] NOT NULL,
	[MenuIsShow] [bit] NOT NULL,
	[MenuSequence] [int] NOT NULL,
	[AlbumsCount] [int] NULL CONSTRAINT [DF_SNS_AlbumType_AlbumsCount]  DEFAULT ((0)),
	[Status] [int] NOT NULL,
	[Remark] [nvarchar](200) NULL,
 CONSTRAINT [PK_SNS_AlbumType] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET IDENTITY_INSERT [SNS_AlbumType] ON
INSERT [SNS_AlbumType] ([ID], [TypeName], [IsMenu], [MenuIsShow], [MenuSequence], [AlbumsCount], [Status], [Remark]) VALUES (1, N'欧美', 1, 1, 1, 2, 1, N'')
INSERT [SNS_AlbumType] ([ID], [TypeName], [IsMenu], [MenuIsShow], [MenuSequence], [AlbumsCount], [Status], [Remark]) VALUES (2, N'包包', 1, 1, 2, 0, 0, NULL)
INSERT [SNS_AlbumType] ([ID], [TypeName], [IsMenu], [MenuIsShow], [MenuSequence], [AlbumsCount], [Status], [Remark]) VALUES (4, N'美容', 1, 1, 2, 0, 1, NULL)
INSERT [SNS_AlbumType] ([ID], [TypeName], [IsMenu], [MenuIsShow], [MenuSequence], [AlbumsCount], [Status], [Remark]) VALUES (7, N'甜美', 1, 1, 1, 0, 1, NULL)
INSERT [SNS_AlbumType] ([ID], [TypeName], [IsMenu], [MenuIsShow], [MenuSequence], [AlbumsCount], [Status], [Remark]) VALUES (8, N'日系', 1, 1, 2, 0, 1, NULL)
INSERT [SNS_AlbumType] ([ID], [TypeName], [IsMenu], [MenuIsShow], [MenuSequence], [AlbumsCount], [Status], [Remark]) VALUES (10, N'韩范', 1, 1, 2, 0, 1, NULL)
INSERT [SNS_AlbumType] ([ID], [TypeName], [IsMenu], [MenuIsShow], [MenuSequence], [AlbumsCount], [Status], [Remark]) VALUES (12, N'个性', 1, 1, 2, 1, 0, N'')
SET IDENTITY_INSERT [SNS_AlbumType] OFF
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_Trials]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_Trials](
	[TrialId] [int] IDENTITY(1,1) NOT NULL,
	[CategoryId] [int] NOT NULL CONSTRAINT [DF_Shop_ProductTrials_CategoryId]  DEFAULT ((-1)),
	[TrialName] [nvarchar](200) NOT NULL,
	[EnterpriseId] [int] NOT NULL CONSTRAINT [DF_Shop_ProductTrials_EnterpriseId]  DEFAULT ((-1)),
	[RegionId] [int] NULL,
	[ShortDescription] [nvarchar](2000) NULL,
	[Unit] [nvarchar](50) NULL,
	[Description] [ntext] NULL,
	[Meta_Title] [nvarchar](100) NULL,
	[Meta_Description] [nvarchar](1000) NULL,
	[Meta_Keywords] [nvarchar](1000) NULL,
	[LinklUrl] [nvarchar](500) NOT NULL,
	[TrialStatus] [smallint] NOT NULL,
	[StartDate] [datetime] NOT NULL,
	[EndDate] [datetime] NOT NULL,
	[CreatedDate] [datetime] NOT NULL,
	[CreatedUserID] [int] NULL,
	[VistiCounts] [int] NOT NULL CONSTRAINT [DF_Shop_ProductTrials_VistiCounts]  DEFAULT ((0)),
	[TrialCounts] [int] NOT NULL CONSTRAINT [DF_Shop_ProductTrials_SaleCounts]  DEFAULT ((0)),
	[DisplaySequence] [int] NOT NULL CONSTRAINT [DF_Shop_ProductTrials_DisplaySequence]  DEFAULT ((0)),
	[MarketPrice] [money] NOT NULL,
	[LowestSalePrice] [money] NOT NULL CONSTRAINT [DF_Shop_Trials_LowestSalePrice]  DEFAULT ((0)),
	[MainCategoryPath] [nvarchar](256) NULL,
	[ExtendCategoryPath] [nvarchar](256) NULL,
	[Points] [decimal](18, 2) NULL CONSTRAINT [DF_Shop_ProductTrials_Points]  DEFAULT ((0)),
	[ImageUrl] [nvarchar](255) NULL,
	[ThumbnailUrl] [nvarchar](255) NULL,
	[MaxQuantity] [int] NULL CONSTRAINT [DF_Shop_ProductTrials_MaxQuantity]  DEFAULT ((0)),
	[MinQuantity] [int] NULL CONSTRAINT [DF_Shop_ProductTrials_MinQuantity]  DEFAULT ((0)),
	[Tags] [nvarchar](50) NULL,
	[SeoUrl] [nvarchar](300) NULL,
	[SeoImageAlt] [nvarchar](300) NULL,
	[SeoImageTitle] [nvarchar](300) NULL,
 CONSTRAINT [PK_Shop_Trials] PRIMARY KEY CLUSTERED 
(
	[TrialId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_TrialReports]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_TrialReports](
	[ReportId] [int] IDENTITY(1,1) NOT NULL,
	[Title] [nvarchar](200) NOT NULL,
	[LinkUrl] [nvarchar](500) NOT NULL,
	[ShortDescription] [nvarchar](2000) NULL,
	[CreatedUserID] [int] NOT NULL CONSTRAINT [DF_Shop_TrialReports_CreatedUserID]  DEFAULT ((-1)),
	[CreatedUserName] [nvarchar](200) NOT NULL,
	[Description] [ntext] NULL,
	[ImageUrl] [nvarchar](255) NULL,
	[ThumbnailUrl] [nvarchar](255) NULL,
 CONSTRAINT [PK_Shop_TrialReports] PRIMARY KEY CLUSTERED 
(
	[ReportId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_Tags]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_Tags](
	[TagID] [int] IDENTITY(1,1) NOT NULL,
	[TagCategoryId] [int] NOT NULL,
	[TagName] [nvarchar](50) NOT NULL,
	[IsRecommand] [bit] NOT NULL CONSTRAINT [DF_Shop_Tags_IsRecommand]  DEFAULT ((0)),
	[Status] [int] NOT NULL CONSTRAINT [DF_Shop_Tags_Status]  DEFAULT ((0)),
	[Meta_Title] [nvarchar](1000) NULL,
	[Meta_Description] [nvarchar](1000) NULL,
	[Meta_Keywords] [nvarchar](1000) NULL,
 CONSTRAINT [PK_Shop_Tags] PRIMARY KEY CLUSTERED 
(
	[TagID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_TagCategories]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_TagCategories](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[CategoryName] [nvarchar](50) NOT NULL,
	[ParentCategoryId] [int] NOT NULL,
	[DisplaySequence] [int] NOT NULL,
	[Depth] [int] NOT NULL,
	[Path] [nvarchar](500) NOT NULL,
	[Meta_Title] [nvarchar](1000) NULL,
	[Meta_Description] [nvarchar](1000) NULL,
	[Meta_Keywords] [nvarchar](1000) NULL,
	[HasChildren] [bit] NOT NULL,
	[Status] [int] NOT NULL,
	[Remark] [nvarchar](200) NULL,
 CONSTRAINT [PK_Shop_TagCategories] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SuppProductStatModes]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_SuppProductStatModes](
	[StationId] [int] IDENTITY(1,1) NOT NULL,
	[ProductId] [bigint] NOT NULL,
	[DisplaySequence] [int] NOT NULL CONSTRAINT [DF_Shop_ProductSpecialOffer1_DisplaySequence]  DEFAULT ((0)),
	[Type] [smallint] NOT NULL,
	[SupplierId] [int] NOT NULL,
 CONSTRAINT [PK_Shop_SuppProductStatModes] PRIMARY KEY CLUSTERED 
(
	[StationId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SuppProductCategories]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_SuppProductCategories](
	[CategoryId] [int] NOT NULL,
	[ProductId] [bigint] NOT NULL,
	[CategoryPath] [nvarchar](4000) NULL,
 CONSTRAINT [PK_Shop_SuppProductCategories] PRIMARY KEY CLUSTERED 
(
	[CategoryId] ASC,
	[ProductId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SupplierThemes]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_SupplierThemes](
	[ThemeId] [int] IDENTITY(1,1) NOT NULL,
	[Name] [nvarchar](50) NOT NULL,
	[Description] [nvarchar](200) NULL,
	[ImageUrl] [nvarchar](100) NULL,
	[Author] [nvarchar](100) NULL,
	[WebSite] [nvarchar](200) NULL,
	[Language] [nvarchar](50) NULL,
	[CreatedDate] [datetime] NOT NULL CONSTRAINT [DF_Shop_SupplierThemes_CreatedDate]  DEFAULT (getdate()),
	[UpdatedDate] [datetime] NULL,
	[Remark] [nvarchar](100) NULL,
 CONSTRAINT [PK_Shop_SupplierThemes] PRIMARY KEY CLUSTERED 
(
	[ThemeId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SupplierScoreDetails]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_SupplierScoreDetails](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[Score] [money] NOT NULL,
	[ScoreType] [smallint] NOT NULL,
	[CreatedDate] [datetime] NOT NULL CONSTRAINT [DF_Shop_SupplierScoreDetails_CreatedDate]  DEFAULT (getdate()),
	[CreatedUserId] [int] NOT NULL,
	[Status] [smallint] NOT NULL CONSTRAINT [DF_Shop_SupplierScoreDetails_Status]  DEFAULT ((0)),
	[Remark] [nvarchar](200) NULL,
	[SupplierId] [int] NOT NULL,
 CONSTRAINT [PK_Shop_SupplierScoreDetails] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_Suppliers]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_Suppliers](
	[SupplierId] [int] IDENTITY(1,1) NOT NULL,
	[Name] [nvarchar](100) NOT NULL,
	[ShopName] [nvarchar](100) NULL,
	[StoreStatus] [smallint] NOT NULL CONSTRAINT [DF_Shop_Suppliers_StoreStatus]  DEFAULT ((0)),
	[CategoryId] [int] NOT NULL CONSTRAINT [DF_Shop_Suppliers_CategoryId]  DEFAULT ((-1)),
	[Rank] [int] NOT NULL CONSTRAINT [DF_Shop_Suppliers_EnteRank]  DEFAULT ((0)),
	[UserId] [int] NOT NULL,
	[UserName] [nvarchar](50) NULL,
	[TelPhone] [nvarchar](50) NULL,
	[CellPhone] [nvarchar](50) NULL,
	[ContactMail] [nvarchar](50) NULL,
	[Introduction] [nvarchar](max) NULL,
	[RegisteredCapital] [int] NULL,
	[RegionId] [int] NULL,
	[Address] [nvarchar](500) NULL,
	[Contact] [nvarchar](50) NULL,
	[EstablishedDate] [datetime] NULL,
	[EstablishedCity] [int] NULL,
	[LOGO] [nvarchar](300) NULL,
	[Fax] [nvarchar](30) NULL,
	[PostCode] [nvarchar](10) NULL,
	[HomePage] [nvarchar](50) NULL,
	[ArtiPerson] [nvarchar](50) NULL,
	[CompanyType] [smallint] NULL,
	[BusinessLicense] [nvarchar](300) NULL,
	[TaxNumber] [nvarchar](300) NULL,
	[AccountBank] [nvarchar](300) NULL,
	[AccountInfo] [nvarchar](300) NULL,
	[ServicePhone] [nvarchar](300) NULL,
	[QQ] [nvarchar](500) NULL,
	[MSN] [nvarchar](30) NULL,
	[Status] [smallint] NOT NULL,
	[CreatedDate] [datetime] NOT NULL CONSTRAINT [DF_Shop_Suppliers_CreatedDate]  DEFAULT (getdate()),
	[CreatedUserId] [int] NOT NULL,
	[UpdatedDate] [datetime] NULL,
	[UpdatedUserId] [int] NULL,
	[ExpirationDate] [datetime] NULL,
	[Balance] [money] NOT NULL CONSTRAINT [DF_Shop_Suppliers_Balance_1]  DEFAULT ((0)),
	[IsUserApprove] [bit] NOT NULL CONSTRAINT [DF_Shop_Suppliers_IsUserApprove]  DEFAULT ((0)),
	[IsSuppApprove] [bit] NOT NULL CONSTRAINT [DF_Shop_Suppliers_IsUserApprove1]  DEFAULT ((0)),
	[ScoreDesc] [money] NOT NULL CONSTRAINT [DF_Shop_Suppliers_ScoreDesc]  DEFAULT ((0)),
	[ScoreService] [money] NOT NULL CONSTRAINT [DF_Shop_Suppliers_ScoreService]  DEFAULT ((0)),
	[ScoreSpeed] [money] NOT NULL CONSTRAINT [DF_Shop_Suppliers_ScoreSpeed]  DEFAULT ((0)),
	[Recomend] [smallint] NOT NULL CONSTRAINT [DF_Shop_Suppliers_IsRecomend]  DEFAULT ((0)),
	[Sequence] [int] NOT NULL CONSTRAINT [DF_Shop_Suppliers_Sequence]  DEFAULT ((0)),
	[ProductCount] [int] NOT NULL CONSTRAINT [DF_Shop_Suppliers_ProductsCount]  DEFAULT ((0)),
	[PhotoCount] [int] NOT NULL CONSTRAINT [DF_Shop_Suppliers_ProductCount1]  DEFAULT ((0)),
	[ThemeId] [int] NOT NULL CONSTRAINT [DF_Shop_Suppliers_ImageCount1]  DEFAULT ((0)),
	[Remark] [nvarchar](1000) NULL,
	[AgentId] [int] NOT NULL CONSTRAINT [DF_Shop_Suppliers_AgentId]  DEFAULT ((-1)),
	[IndexProdTop] [int] NOT NULL CONSTRAINT [DF_Shop_Suppliers_IndexProdTop]  DEFAULT ((0)),
	[IndexContent] [nvarchar](max) NULL,
	[Latitude] [decimal](18, 6) NULL,
	[Longitude] [decimal](18, 6) NULL,
 CONSTRAINT [PK_Maticsoft_Shop_SupplierId] PRIMARY KEY CLUSTERED 
(
	[SupplierId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SupplierRankThemes]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_SupplierRankThemes](
	[RankId] [int] NOT NULL,
	[ThemeId] [int] NOT NULL,
 CONSTRAINT [PK_Shop_SupplierRankThemes] PRIMARY KEY CLUSTERED 
(
	[RankId] ASC,
	[ThemeId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SupplierRank]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_SupplierRank](
	[RankId] [int] IDENTITY(1,1) NOT NULL,
	[Name] [nvarchar](50) NOT NULL,
	[ProductCount] [int] NOT NULL CONSTRAINT [DF_Shop_SupplierRank_ProductCount]  DEFAULT ((-1)),
	[ImageCount] [int] NOT NULL CONSTRAINT [DF_Shop_SupplierRank_ImageCount]  DEFAULT ((-1)),
	[Price] [money] NOT NULL CONSTRAINT [DF_Shop_SupplierRank_Amount]  DEFAULT ((0)),
	[IsDefault] [bit] NOT NULL,
	[IsApproval] [bit] NOT NULL,
	[Description] [text] NULL,
	[RankMin] [money] NOT NULL CONSTRAINT [DF_Shop_SupplierRank_LevelValue]  DEFAULT ((-1)),
	[RankMax] [money] NOT NULL CONSTRAINT [DF_Shop_SupplierRank_LevelMax]  DEFAULT ((-1)),
 CONSTRAINT [PK_Shop_SupplierRank] PRIMARY KEY CLUSTERED 
(
	[RankId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SupplierMenus]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_SupplierMenus](
	[MenuId] [int] IDENTITY(1,1) NOT NULL,
	[MenuName] [nvarchar](50) NOT NULL,
	[NavURL] [nvarchar](max) NULL,
	[MenuTitle] [nvarchar](50) NULL,
	[MenuType] [int] NULL,
	[Target] [int] NULL,
	[IsUsed] [bit] NULL,
	[Sequence] [int] NOT NULL CONSTRAINT [DF_Shop_SupplierMenu_Sequence]  DEFAULT ((0)),
	[Visible] [int] NOT NULL CONSTRAINT [DF_Shop_SupplierMenu_Visible]  DEFAULT ((1)),
	[URLType] [int] NOT NULL CONSTRAINT [DF_Shop_SupplierMenu_URLType]  DEFAULT ((0)),
	[NavTheme] [nvarchar](100) NULL CONSTRAINT [DF_Shop_SupplierMenu_NavTheme]  DEFAULT (N''),
	[SupplierId] [int] NOT NULL,
 CONSTRAINT [PK_Shop_SupplierMenu] PRIMARY KEY CLUSTERED 
(
	[MenuId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SupplierConfig]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_SupplierConfig](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[KeyName] [nvarchar](50) NULL,
	[Value] [nvarchar](max) NULL,
	[KeyType] [int] NULL,
	[Description] [nvarchar](200) NULL,
	[SupplierId] [int] NOT NULL,
 CONSTRAINT [PK_Shop_SupplierConfig] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SupplierCategories]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_SupplierCategories](
	[CategoryId] [int] IDENTITY(1,1) NOT NULL,
	[Name] [nvarchar](100) NOT NULL,
	[DisplaySequence] [int] NOT NULL,
	[Meta_Title] [nvarchar](1000) NULL,
	[Meta_Description] [nvarchar](1000) NULL,
	[Meta_Keywords] [nvarchar](1000) NULL,
	[Description] [nvarchar](1000) NULL,
	[ParentCategoryId] [int] NULL,
	[Depth] [int] NOT NULL,
	[Path] [nvarchar](4000) NOT NULL,
	[ImageUrl] [nvarchar](300) NULL,
	[Theme] [nvarchar](100) NULL,
	[HasChildren] [bit] NOT NULL CONSTRAINT [DF_Shop_SupplierCategories_HasChildren]  DEFAULT ((0)),
	[SeoUrl] [nvarchar](300) NULL,
	[SeoImageAlt] [nvarchar](300) NULL,
	[SeoImageTitle] [nvarchar](300) NULL,
	[CreatedUserId] [int] NOT NULL,
	[SupplierId] [int] NOT NULL,
	[Remark] [nvarchar](200) NULL,
 CONSTRAINT [PK_Shop_SupplierCategories] PRIMARY KEY CLUSTERED 
(
	[CategoryId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SupplierBrands]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_SupplierBrands](
	[SupplierId] [int] NOT NULL,
	[BrandId] [int] NOT NULL,
 CONSTRAINT [PK_Shop_SupplierBrands] PRIMARY KEY CLUSTERED 
(
	[SupplierId] ASC,
	[BrandId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SupplierAD]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_SupplierAD](
	[AdvertisementId] [int] IDENTITY(1,1) NOT NULL,
	[Name] [nvarchar](100) NULL,
	[PositionId] [int] NOT NULL,
	[ContentType] [int] NOT NULL,
	[FileUrl] [nvarchar](500) NULL,
	[AlternateText] [nvarchar](200) NULL,
	[NavigateUrl] [nvarchar](500) NULL,
	[AdvHtml] [nvarchar](max) NULL,
	[CreatedDate] [datetime] NOT NULL CONSTRAINT [DF_Shop_SupplierAD_CreatedDate]  DEFAULT (getdate()),
	[CreatedUserID] [int] NOT NULL,
	[Status] [smallint] NOT NULL,
	[Sequence] [int] NOT NULL,
	[SupplierId] [int] NOT NULL,
 CONSTRAINT [PK_Shop_SupplierAD] PRIMARY KEY CLUSTERED 
(
	[AdvertisementId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SuppDistSKU]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_SuppDistSKU](
	[SKU] [nvarchar](50) NOT NULL,
	[ProductId] [bigint] NOT NULL,
	[Weight] [int] NOT NULL CONSTRAINT [DF_Shop_SuppDistSKU_Weight]  DEFAULT ((0)),
	[Stock] [int] NOT NULL,
	[AlertStock] [int] NOT NULL,
	[CostPrice] [money] NOT NULL CONSTRAINT [DF_Shop_SuppDistSKU_CostPrice]  DEFAULT ((0)),
	[SalePrice] [money] NOT NULL,
	[Upselling] [bit] NOT NULL,
 CONSTRAINT [PK_Shop_SuppDistSKU] PRIMARY KEY CLUSTERED 
(
	[SKU] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SuppDistRegion]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_SuppDistRegion](
	[SupplierId] [int] NOT NULL,
	[RegionId] [int] NOT NULL,
 CONSTRAINT [PK_Shop_DistSuppRegion] PRIMARY KEY CLUSTERED 
(
	[SupplierId] ASC,
	[RegionId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SuppDistProduct]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_SuppDistProduct](
	[ProductId] [bigint] NOT NULL,
	[TypeId] [int] NULL,
	[BrandId] [int] NOT NULL,
	[ProductName] [nvarchar](200) NOT NULL,
	[SaleStatus] [int] NOT NULL,
	[AddedDate] [datetime] NOT NULL CONSTRAINT [DF_Shop_SuppDistProduct_AddedDate]  DEFAULT (getdate()),
	[SaleCounts] [int] NOT NULL CONSTRAINT [DF_Shop_SuppDistProduct_SaleCounts]  DEFAULT ((0)),
	[MarketPrice] [money] NULL,
	[Stock] [int] NOT NULL,
	[LowestSalePrice] [money] NOT NULL,
	[HasSKU] [bit] NOT NULL,
	[DisplaySequence] [int] NOT NULL CONSTRAINT [DF_Shop_SuppDistProduct_DisplaySequence]  DEFAULT ((0)),
	[ImageUrl] [nvarchar](255) NULL,
	[ThumbnailUrl1] [nvarchar](255) NULL,
 CONSTRAINT [PK_Shop_SuppDistProduct] PRIMARY KEY CLUSTERED 
(
	[ProductId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SKUs]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_SKUs](
	[SkuId] [bigint] IDENTITY(1,1) NOT NULL,
	[ProductId] [bigint] NOT NULL,
	[SKU] [nvarchar](50) NOT NULL,
	[Weight] [int] NOT NULL CONSTRAINT [DF_Shop_SKUs_Weight]  DEFAULT ((0)),
	[Stock] [int] NOT NULL,
	[AlertStock] [int] NOT NULL,
	[CostPrice] [money] NOT NULL CONSTRAINT [DF_Shop_SKUs_CostPrice]  DEFAULT ((0)),
	[SalePrice] [money] NOT NULL,
	[Upselling] [bit] NOT NULL,
 CONSTRAINT [PK_Shop_SKUs] PRIMARY KEY CLUSTERED 
(
	[SkuId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
IF NOT EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[Shop_SKUs]') AND name = N'IX_Shop_SKUs')
CREATE UNIQUE NONCLUSTERED INDEX [IX_Shop_SKUs] ON [Shop_SKUs] 
(
	[SKU] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SKURelation]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_SKURelation](
	[SkuId] [bigint] NOT NULL,
	[SpecId] [bigint] NOT NULL,
	[ProductId] [bigint] NOT NULL,
 CONSTRAINT [PK_Shop_SkuItemRelation] PRIMARY KEY CLUSTERED 
(
	[SpecId] ASC,
	[SkuId] ASC,
	[ProductId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SKUMemberPrice]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_SKUMemberPrice](
	[SkuId] [bigint] NOT NULL,
	[GradeId] [int] NOT NULL,
	[MemberSalePrice] [money] NOT NULL,
 CONSTRAINT [PK_Shop_SKUMemberPrice] PRIMARY KEY CLUSTERED 
(
	[SkuId] ASC,
	[GradeId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SKUItems]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_SKUItems](
	[SpecId] [bigint] IDENTITY(1,1) NOT NULL,
	[AttributeId] [bigint] NOT NULL,
	[ValueId] [bigint] NOT NULL,
	[ImageUrl] [nvarchar](255) NULL,
	[ValueStr] [nvarchar](200) NULL,
	[ProductId] [bigint] NOT NULL,
 CONSTRAINT [PK_Shop_SKUItems] PRIMARY KEY CLUSTERED 
(
	[SpecId] ASC,
	[AttributeId] ASC,
	[ValueId] ASC,
	[ProductId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ShoppingCarts]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_ShoppingCarts](
	[ItemId] [int] NOT NULL,
	[UserId] [int] NOT NULL,
	[SKU] [nvarchar](50) NOT NULL,
	[Quantity] [int] NOT NULL,
	[ItemType] [int] NOT NULL CONSTRAINT [DF_Shop_ShoppingCarts_ItemType]  DEFAULT ((1)),
	[ProductId] [bigint] NOT NULL,
	[Name] [nvarchar](200) NOT NULL,
	[ThumbnailsUrl] [nvarchar](300) NULL,
	[Description] [nvarchar](500) NULL,
	[CostPrice] [money] NOT NULL,
	[SellPrice] [money] NOT NULL,
	[AdjustedPrice] [money] NOT NULL,
	[Attributes] [text] NULL,
	[Weight] [int] NOT NULL,
	[Deduct] [money] NULL,
	[Points] [int] NOT NULL,
	[ProductLineId] [int] NULL,
	[SupplierId] [int] NULL,
	[SupplierName] [nvarchar](100) NULL,
 CONSTRAINT [PK_Shop_ShoppingCarts] PRIMARY KEY CLUSTERED 
(
	[ItemId] ASC,
	[UserId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ShippingType]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_ShippingType](
	[ModeId] [int] IDENTITY(1,1) NOT NULL,
	[Name] [nvarchar](100) NOT NULL,
	[Weight] [int] NOT NULL,
	[AddWeight] [int] NULL,
	[Price] [money] NOT NULL,
	[AddPrice] [money] NULL,
	[Description] [nvarchar](4000) NULL,
	[DisplaySequence] [int] NOT NULL,
	[ExpressCompanyName] [nvarchar](500) NULL,
	[ExpressCompanyEn] [nvarchar](500) NULL,
	[SupplierId] [int] NOT NULL CONSTRAINT [DF_Shop_ShippingType_SupplierId]  DEFAULT ((-1)),
 CONSTRAINT [PK_Shop_ShippingType] PRIMARY KEY CLUSTERED 
(
	[ModeId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET IDENTITY_INSERT [Shop_ShippingType] ON
INSERT [Shop_ShippingType] ([ModeId], [Name], [Weight], [AddWeight], [Price], [AddPrice], [Description], [DisplaySequence], [ExpressCompanyName], [ExpressCompanyEn], [SupplierId]) VALUES (1, N'动软卓越配送', 0, 10, 10.0000, 5.0000, N'', -1, N'EMS', N'ems', -1)
SET IDENTITY_INSERT [Shop_ShippingType] OFF
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ShippingRegions]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_ShippingRegions](
	[ModeId] [int] NOT NULL,
	[GroupId] [int] NOT NULL,
	[RegionId] [int] NOT NULL,
 CONSTRAINT [PK_Shop_ShippingRegions] PRIMARY KEY CLUSTERED 
(
	[ModeId] ASC,
	[RegionId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ShippingRegionGroups]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_ShippingRegionGroups](
	[GroupId] [int] IDENTITY(1,1) NOT NULL,
	[ModeId] [int] NOT NULL,
	[Price] [money] NOT NULL,
	[AddPrice] [money] NULL,
 CONSTRAINT [PK_Shop_ShippingTypeGroups] PRIMARY KEY CLUSTERED 
(
	[GroupId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ShippingPayment]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_ShippingPayment](
	[ShippingModeId] [int] NOT NULL,
	[PaymentModeId] [int] NOT NULL,
 CONSTRAINT [PK_Shop_ShippingPayment] PRIMARY KEY CLUSTERED 
(
	[ShippingModeId] ASC,
	[PaymentModeId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
INSERT [Shop_ShippingPayment] ([ShippingModeId], [PaymentModeId]) VALUES (1, 1)
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ShippingGroup]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_ShippingGroup](
	[GroupId] [int] IDENTITY(1,1) NOT NULL,
	[ModeId] [int] NOT NULL,
	[Price] [money] NOT NULL,
	[AddPrice] [money] NULL,
 CONSTRAINT [PK_Shop_ShippingGroup] PRIMARY KEY CLUSTERED 
(
	[GroupId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ShippingAddress]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_ShippingAddress](
	[ShippingId] [int] IDENTITY(1,1) NOT NULL,
	[RegionId] [int] NOT NULL,
	[UserId] [int] NOT NULL,
	[ShipName] [nvarchar](50) NOT NULL,
	[Address] [nvarchar](300) NOT NULL,
	[Zipcode] [nvarchar](20) NULL,
	[EmailAddress] [nvarchar](100) NULL,
	[TelPhone] [nvarchar](50) NULL,
	[CelPhone] [nvarchar](50) NULL,
	[IsDefault] [bit] NOT NULL CONSTRAINT [DF_Shop_ShippingAddress_IsDefault]  DEFAULT ((0)),
	[Aliases] [nvarchar](100) NULL,
	[Latitude] [decimal](18, 6) NULL,
	[Longitude] [decimal](18, 6) NULL,
	[LineId] [int] NOT NULL CONSTRAINT [DF_Shop_ShippingAddress_LineId]  DEFAULT ((0)),
	[CircleId] [int] NOT NULL CONSTRAINT [DF_Shop_ShippingAddress_CircleId]  DEFAULT ((0)),
	[DepotId] [int] NOT NULL CONSTRAINT [DF_Shop_ShippingAddress_DepotId]  DEFAULT ((0)),
	[Remark] [nchar](1000) NULL,
 CONSTRAINT [PK_Shop_ShippingAddress] PRIMARY KEY CLUSTERED 
(
	[ShippingId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_Shippers]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_Shippers](
	[ShipperId] [int] IDENTITY(1,1) NOT NULL,
	[IsDefault] [bit] NOT NULL,
	[ShipperTag] [nvarchar](100) NOT NULL,
	[ShipperName] [nvarchar](100) NOT NULL,
	[RegionId] [int] NOT NULL,
	[Address] [nvarchar](300) NOT NULL,
	[CellPhone] [nvarchar](20) NOT NULL,
	[TelPhone] [nvarchar](20) NULL,
	[Zipcode] [nvarchar](20) NOT NULL,
	[Remark] [nvarchar](300) NULL,
 CONSTRAINT [PK_Shop_Shippers] PRIMARY KEY CLUSTERED 
(
	[ShipperId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ScoreDetails]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_ScoreDetails](
	[ScoreId] [int] IDENTITY(1,1) NOT NULL,
	[ReviewId] [int] NOT NULL,
	[UserId] [int] NULL,
	[ProductId] [bigint] NULL,
	[Score] [int] NULL,
	[CreatedDate] [datetime] NULL,
 CONSTRAINT [PK_Shop_ScoreDetails] PRIMARY KEY CLUSTERED 
(
	[ScoreId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SampleDetail]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_SampleDetail](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[SampleId] [int] NOT NULL,
	[Title] [nvarchar](100) NULL,
	[Type] [smallint] NOT NULL CONSTRAINT [DF_Shop_SampleDetail_Type]  DEFAULT ((0)),
	[ImageUrl] [nvarchar](300) NULL,
	[NormalImageUrl] [nvarchar](300) NULL,
	[ThumbImageUrl] [nvarchar](300) NULL,
	[PdfUrl] [nvarchar](300) NULL,
	[CreatedDate] [datetime] NULL,
	[Status] [smallint] NULL,
	[Remark] [nvarchar](300) NULL,
 CONSTRAINT [PK_Shop_SampleDetail] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_Sample]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_Sample](
	[SampleId] [int] IDENTITY(1,1) NOT NULL,
	[Tiltle] [nvarchar](200) NULL,
	[ElecCoverImageUrl] [nvarchar](200) NULL,
	[NormalElecCoverImageUrl] [nvarchar](200) NULL,
	[ThumblElecCoverImageUrl] [nvarchar](200) NULL,
	[PdfCoverImageUrl] [nvarchar](200) NULL,
	[NormalPdfCoverImageUrl] [nvarchar](200) NULL,
	[ThumbPdfCoverImageUrl] [nvarchar](200) NULL,
	[Sequence] [int] NULL CONSTRAINT [DF_Shop_Sample_Sequence]  DEFAULT ((1)),
	[Status] [smallint] NOT NULL CONSTRAINT [DF_Shop_Sample_Status]  DEFAULT ((0)),
	[CreatedDate] [datetime] NULL CONSTRAINT [DF_Shop_Sample_CreatedDate]  DEFAULT (getdate()),
	[Remark] [nvarchar](200) NULL,
	[Meta_Title] [nvarchar](1000) NULL,
	[Meta_Description] [nvarchar](1000) NULL,
	[Meta_KeyWords] [nvarchar](1000) NULL,
	[SeoUrl] [nvarchar](300) NULL,
	[SeoImageAlt] [nvarchar](300) NULL,
	[SeoImageTitle] [nvarchar](300) NULL,
 CONSTRAINT [PK_Shop_Sample] PRIMARY KEY CLUSTERED 
(
	[SampleId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SalesUserRank]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_SalesUserRank](
	[RuleId] [int] NOT NULL,
	[RankId] [int] NOT NULL,
	[Remark] [nvarchar](500) NULL,
 CONSTRAINT [PK_Shop_SalesRank] PRIMARY KEY CLUSTERED 
(
	[RuleId] ASC,
	[RankId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SalesRuleProduct]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_SalesRuleProduct](
	[RuleId] [int] NOT NULL,
	[ProductId] [bigint] NOT NULL,
	[ProductName] [nvarchar](200) NOT NULL,
 CONSTRAINT [PK_Shop_SalesRuleProduct_1] PRIMARY KEY CLUSTERED 
(
	[RuleId] ASC,
	[ProductId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SalesRule]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_SalesRule](
	[RuleId] [int] IDENTITY(1,1) NOT NULL,
	[RuleName] [nvarchar](200) NOT NULL,
	[RuleMode] [int] NOT NULL,
	[RuleUnit] [int] NOT NULL,
	[Status] [int] NOT NULL,
	[Type] [int] NOT NULL CONSTRAINT [DF_Shop_SalesRule_Type]  DEFAULT ((0)),
	[CreatedDate] [datetime] NOT NULL,
	[CreatedUserID] [int] NOT NULL,
 CONSTRAINT [PK_Shop_SalesRule] PRIMARY KEY CLUSTERED 
(
	[RuleId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_SalesItem]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_SalesItem](
	[ItemId] [int] IDENTITY(1,1) NOT NULL,
	[RuleId] [int] NOT NULL,
	[ItemType] [int] NOT NULL,
	[UnitValue] [int] NOT NULL,
	[RateValue] [int] NOT NULL,
 CONSTRAINT [PK_Shop_SalesItem] PRIMARY KEY CLUSTERED 
(
	[ItemId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ReturnOrders]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_ReturnOrders](
	[ReturnOrderId] [bigint] IDENTITY(1,1) NOT NULL,
	[ReturnOrderCode] [nvarchar](50) NOT NULL,
	[OrderId] [bigint] NOT NULL,
	[OrderCode] [nvarchar](50) NOT NULL,
	[ReturnUserId] [int] NOT NULL CONSTRAINT [DF_Shop_ReturnOrders_ReturnsUserId]  DEFAULT ((0)),
	[ReturnUserName] [nvarchar](100) NOT NULL,
	[CreateUserId] [int] NOT NULL CONSTRAINT [DF_Shop_Returned_CreateUserId]  DEFAULT ((-1)),
	[CreatedDate] [datetime] NOT NULL,
	[UpdatedUserId] [int] NOT NULL CONSTRAINT [DF_Shop_ReturnOrders_UpdatedUserId]  DEFAULT ((0)),
	[UpdatedDate] [datetime] NULL,
	[SupplierId] [int] NOT NULL CONSTRAINT [DF_Shop_Returned_SupplierId]  DEFAULT ((0)),
	[SupplierName] [nvarchar](100) NULL,
	[CouponCode] [nvarchar](50) NULL,
	[CouponName] [nvarchar](100) NULL,
	[CouponAmount] [money] NULL,
	[CouponValue] [money] NULL,
	[CouponValueType] [smallint] NULL,
	[ReturnGoodsType] [smallint] NOT NULL CONSTRAINT [DF_Shop_ReturnOrders_ReturnGoodsType]  DEFAULT ((2)),
	[ReturnCoupon] [smallint] NOT NULL CONSTRAINT [DF_Shop_ReturnOrders_ReturnCoupon]  DEFAULT ((0)),
	[ActualSalesTotal] [money] NOT NULL,
	[Amount] [money] NOT NULL CONSTRAINT [DF_Shop_Returned_Amount]  DEFAULT ((0)),
	[AmountAdjusted] [money] NOT NULL,
	[AmountActual] [money] NOT NULL CONSTRAINT [DF_Shop_ReturnOrders_AmountActual]  DEFAULT ((0)),
	[ServiceType] [smallint] NOT NULL,
	[Credential] [nvarchar](100) NULL,
	[Description] [nvarchar](500) NOT NULL,
	[ImageUrl] [text] NULL,
	[ReturnType] [smallint] NOT NULL,
	[PickRegionId] [int] NOT NULL CONSTRAINT [DF_Shop_ReturnOrders_PickRegionId]  DEFAULT ((0)),
	[PickRegion] [nvarchar](300) NULL,
	[PickAddress] [nvarchar](300) NULL,
	[PickZipCode] [nvarchar](20) NULL,
	[PickName] [nvarchar](50) NULL,
	[PickTelPhone] [nvarchar](50) NULL,
	[PickCellPhone] [nvarchar](50) NULL,
	[PickEmail] [nvarchar](100) NULL,
	[ShippingModeId] [int] NOT NULL CONSTRAINT [DF_Shop_ReturnOrders_ShippingModeId]  DEFAULT ((0)),
	[ShippingModeName] [nvarchar](100) NULL,
	[ShipOrderNumber] [nvarchar](50) NULL,
	[ExpressCompanyName] [nvarchar](500) NULL,
	[ExpressCompanyAbb] [nvarchar](500) NULL,
	[ReturnTrueName] [nvarchar](50) NULL,
	[ReturnBankName] [nvarchar](200) NULL,
	[ReturnCard] [nvarchar](50) NULL,
	[ReturnCardType] [int] NOT NULL CONSTRAINT [DF_Shop_ReturnOrders_CardTypeID]  DEFAULT ((3)),
	[ContactName] [nvarchar](100) NOT NULL,
	[ContactPhone] [nvarchar](100) NOT NULL,
	[Status] [smallint] NOT NULL CONSTRAINT [DF_Shop_Returned_ShippingStatus]  DEFAULT ((0)),
	[RefundStatus] [smallint] NOT NULL CONSTRAINT [DF_Shop_ReturnOrders_RefundStatus]  DEFAULT ((0)),
	[LogisticStatus] [smallint] NOT NULL CONSTRAINT [DF_Shop_ReturnOrders_LogisticStatus]  DEFAULT ((0)),
	[RefuseReason] [nvarchar](500) NULL,
	[CustomerReview] [smallint] NOT NULL CONSTRAINT [DF_Shop_ReturnOrders_CustomersEvaluate]  DEFAULT ((0)),
	[Remark] [nvarchar](2000) NULL,
 CONSTRAINT [PK_Shop_Returned] PRIMARY KEY CLUSTERED 
(
	[ReturnOrderId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ReturnOrderItems]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_ReturnOrderItems](
	[ItemId] [bigint] IDENTITY(1,1) NOT NULL,
	[OrderItemId] [bigint] NOT NULL,
	[ReturnOrderId] [bigint] NOT NULL,
	[ReturnOrderCode] [nvarchar](50) NOT NULL,
	[OrderId] [bigint] NOT NULL,
	[OrderCode] [nvarchar](50) NOT NULL,
	[ProductId] [bigint] NOT NULL,
	[ProductCode] [nvarchar](50) NULL,
	[SKU] [nvarchar](200) NULL,
	[Name] [nvarchar](200) NOT NULL,
	[ThumbnailsUrl] [nvarchar](300) NULL,
	[Description] [nvarchar](500) NULL,
	[Quantity] [int] NOT NULL,
	[ShipmentQuantity] [decimal](18, 0) NOT NULL,
	[CostPrice] [money] NOT NULL,
	[SellPrice] [money] NOT NULL,
	[ReturnPrice] [money] NOT NULL,
	[Attribute] [text] NULL,
	[Remark] [text] NULL,
	[Weight] [int] NOT NULL,
	[Deduct] [money] NULL,
	[Points] [int] NOT NULL,
	[ProductLineId] [int] NULL,
	[SupplierId] [int] NULL,
	[SupplierName] [nvarchar](100) NULL,
	[BrandId] [int] NULL,
	[BrandName] [nvarchar](100) NULL,
	[ProductType] [smallint] NOT NULL CONSTRAINT [DF_Shop_ReturnItem_ProductType]  DEFAULT ((1)),
 CONSTRAINT [PK_Shop_ReturnItem_1] PRIMARY KEY CLUSTERED 
(
	[ItemId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ReturnOrderAction]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_ReturnOrderAction](
	[ActionId] [bigint] IDENTITY(1,1) NOT NULL,
	[ReturnOrderId] [bigint] NOT NULL,
	[ReturnOrderCode] [nvarchar](50) NOT NULL,
	[UserId] [int] NOT NULL,
	[UserName] [nvarchar](200) NOT NULL,
	[ActionCode] [nvarchar](100) NOT NULL,
	[ActionDate] [datetime] NOT NULL,
	[Remark] [nvarchar](1000) NULL,
 CONSTRAINT [PK_Shop_ReturnedAction] PRIMARY KEY CLUSTERED 
(
	[ActionId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_RelatedProducts]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_RelatedProducts](
	[RelatedId] [bigint] NOT NULL,
	[ProductId] [bigint] NOT NULL,
 CONSTRAINT [PK_Shop_RelatedProducts] PRIMARY KEY CLUSTERED 
(
	[RelatedId] ASC,
	[ProductId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_RechargeCards]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_RechargeCards](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[Number] [nvarchar](200) NOT NULL,
	[Password] [nvarchar](50) NOT NULL,
	[Amount] [money] NOT NULL,
	[CreatedUserId] [int] NOT NULL,
	[CreatedDate] [datetime] NOT NULL,
	[UsedUserId] [int] NULL,
	[UsedDate] [datetime] NULL,
	[Status] [smallint] NOT NULL,
	[Remark] [nvarchar](200) NULL,
 CONSTRAINT [PK__Shop_Rec__3214EC275792F321] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ProductTypes]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_ProductTypes](
	[TypeId] [int] IDENTITY(1,1) NOT NULL,
	[TypeName] [nvarchar](50) NOT NULL,
	[Remark] [nvarchar](200) NULL,
 CONSTRAINT [PK_Shop_ProductTypes] PRIMARY KEY CLUSTERED 
(
	[TypeId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ProductTypeBrands]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_ProductTypeBrands](
	[ProductTypeId] [int] NOT NULL,
	[BrandId] [int] NOT NULL,
 CONSTRAINT [PK_Shop_ProductTypeBrands] PRIMARY KEY CLUSTERED 
(
	[ProductTypeId] ASC,
	[BrandId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ProductStationModes]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_ProductStationModes](
	[StationId] [int] IDENTITY(1,1) NOT NULL,
	[ProductId] [bigint] NOT NULL,
	[DisplaySequence] [int] NOT NULL CONSTRAINT [DF_Shop_ProductSpecialOffer_DisplaySequence]  DEFAULT ((0)),
	[Type] [smallint] NOT NULL,
 CONSTRAINT [PK_Shop_ProductShowModes] PRIMARY KEY CLUSTERED 
(
	[StationId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_Products]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_Products](
	[CategoryId] [int] NOT NULL,
	[TypeId] [int] NULL,
	[ProductId] [bigint] IDENTITY(1,1) NOT NULL,
	[BrandId] [int] NOT NULL,
	[ProductName] [nvarchar](200) NOT NULL,
	[ProductCode] [nvarchar](50) NULL,
	[SupplierId] [int] NOT NULL,
	[RegionId] [int] NULL,
	[ShortDescription] [nvarchar](2000) NULL,
	[Unit] [nvarchar](50) NULL,
	[Description] [ntext] NULL,
	[Meta_Title] [nvarchar](100) NULL,
	[Meta_Description] [nvarchar](1000) NULL,
	[Meta_Keywords] [nvarchar](1000) NULL,
	[SaleStatus] [int] NOT NULL,
	[AddedDate] [datetime] NOT NULL CONSTRAINT [DF_Shop_Products_AddedDate]  DEFAULT (getdate()),
	[VistiCounts] [int] NOT NULL CONSTRAINT [DF__tmp_ms_xx__Visti__55FFB06A]  DEFAULT ((0)),
	[SaleCounts] [int] NOT NULL CONSTRAINT [DF__tmp_ms_xx__SaleC__56F3D4A3]  DEFAULT ((0)),
	[Stock] [int] NULL,
	[DisplaySequence] [int] NOT NULL CONSTRAINT [DF__tmp_ms_xx__Displ__57E7F8DC]  DEFAULT ((0)),
	[LineId] [int] NOT NULL,
	[MarketPrice] [money] NULL,
	[LowestSalePrice] [money] NOT NULL,
	[PenetrationStatus] [smallint] NOT NULL,
	[MainCategoryPath] [nvarchar](256) NULL,
	[ExtendCategoryPath] [nvarchar](256) NULL,
	[HasSKU] [bit] NOT NULL,
	[Points] [decimal](18, 2) NULL CONSTRAINT [DF_Shop_Products_Points]  DEFAULT ((0)),
	[ImageUrl] [nvarchar](255) NULL,
	[ThumbnailUrl1] [nvarchar](255) NULL,
	[ThumbnailUrl2] [nvarchar](255) NULL,
	[ThumbnailUrl3] [nvarchar](255) NULL,
	[ThumbnailUrl4] [nvarchar](255) NULL,
	[ThumbnailUrl5] [nvarchar](255) NULL,
	[ThumbnailUrl6] [nvarchar](255) NULL,
	[ThumbnailUrl7] [nvarchar](255) NULL,
	[ThumbnailUrl8] [nvarchar](255) NULL,
	[MaxQuantity] [int] NULL CONSTRAINT [DF_Shop_Products_MaxQuantity]  DEFAULT ((0)),
	[MinQuantity] [int] NULL CONSTRAINT [DF_Shop_Products_MinQuantity]  DEFAULT ((0)),
	[Tags] [nvarchar](50) NULL,
	[SeoUrl] [nvarchar](300) NULL,
	[SeoImageAlt] [nvarchar](300) NULL,
	[SeoImageTitle] [nvarchar](300) NULL,
	[SalesType] [smallint] NOT NULL CONSTRAINT [DF_Shop_Products_SalesType]  DEFAULT ((1)),
	[RestrictionCount] [int] NOT NULL CONSTRAINT [DF_Shop_Products_RestrictionCount]  DEFAULT ((0)),
	[ValidDay] [int] NULL,
	[DeliveryTip] [nvarchar](100) NULL,
	[Remark] [nvarchar](500) NULL,
 CONSTRAINT [PK_Shop_Products] PRIMARY KEY NONCLUSTERED 
(
	[ProductId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ProductReviews]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_ProductReviews](
	[ReviewId] [int] IDENTITY(1,1) NOT NULL,
	[ProductId] [bigint] NOT NULL,
	[UserId] [int] NOT NULL,
	[ReviewText] [nvarchar](max) NOT NULL,
	[UserName] [nvarchar](200) NOT NULL,
	[UserEmail] [nvarchar](50) NULL,
	[CreatedDate] [datetime] NOT NULL,
	[ParentId] [int] NOT NULL,
	[Status] [int] NOT NULL,
	[OrderId] [bigint] NOT NULL CONSTRAINT [DF_Shop_ProductReviews_OrderId]  DEFAULT ((0)),
	[SKU] [nvarchar](200) NULL,
	[Attribute] [text] NULL,
	[ImagesPath] [nvarchar](300) NULL,
	[ImagesNames] [nvarchar](500) NULL,
 CONSTRAINT [PK_Shop_ProductReviews] PRIMARY KEY CLUSTERED 
(
	[ReviewId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ProductQA]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_ProductQA](
	[QAId] [int] IDENTITY(1,1) NOT NULL,
	[ParentId] [int] NULL,
	[ProductId] [int] NOT NULL,
	[UserId] [int] NOT NULL,
	[UserName] [nvarchar](50) NULL,
	[Question] [nvarchar](max) NOT NULL,
	[State] [int] NOT NULL,
	[CreatedDate] [datetime] NULL,
	[ReplyContent] [nvarchar](max) NULL,
	[ReplyDate] [datetime] NULL,
	[ReplyUserId] [int] NULL,
	[ReplyUserName] [nvarchar](50) NULL,
 CONSTRAINT [PK_Shop_ProductQA] PRIMARY KEY CLUSTERED 
(
	[QAId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ProductPackage]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_ProductPackage](
	[ProductId] [bigint] NOT NULL,
	[PackageId] [int] NOT NULL,
 CONSTRAINT [PK_Shop_ProductPackage_1] PRIMARY KEY CLUSTERED 
(
	[ProductId] ASC,
	[PackageId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ProductLines]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_ProductLines](
	[LineId] [int] IDENTITY(1,1) NOT NULL,
	[LineName] [nvarchar](60) NOT NULL,
 CONSTRAINT [PK_Shop_ProductLines] PRIMARY KEY CLUSTERED 
(
	[LineId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ProductImages]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_ProductImages](
	[ProductImageId] [int] IDENTITY(1,1) NOT NULL,
	[ProductId] [bigint] NOT NULL,
	[ImageUrl] [nvarchar](255) NOT NULL,
	[ThumbnailUrl1] [nvarchar](255) NULL,
	[ThumbnailUrl2] [nvarchar](255) NULL,
	[ThumbnailUrl3] [nvarchar](255) NULL,
	[ThumbnailUrl4] [nvarchar](255) NULL,
	[ThumbnailUrl5] [nvarchar](255) NULL,
	[ThumbnailUrl6] [nvarchar](255) NULL,
	[ThumbnailUrl7] [nvarchar](255) NULL,
	[ThumbnailUrl8] [nvarchar](255) NULL,
 CONSTRAINT [PK_Shop_ProductImages_1] PRIMARY KEY CLUSTERED 
(
	[ProductImageId] ASC,
	[ProductId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ProductConsultsType]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_ProductConsultsType](
	[TypeId] [int] IDENTITY(1,1) NOT NULL,
	[TypeName] [nvarchar](50) NULL,
	[CreatedDate] [datetime] NULL,
	[IsActive] [bit] NOT NULL CONSTRAINT [DF_Shop_ProductConsultationsType_IsActive]  DEFAULT ((1)),
 CONSTRAINT [PK_Shop_ProductConsultationsType] PRIMARY KEY CLUSTERED 
(
	[TypeId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET IDENTITY_INSERT [Shop_ProductConsultsType] ON
INSERT [Shop_ProductConsultsType] ([TypeId], [TypeName], [CreatedDate], [IsActive]) VALUES (1, N'商品咨询', CAST(0x0000A0B800F0700D AS DateTime), 1)
INSERT [Shop_ProductConsultsType] ([TypeId], [TypeName], [CreatedDate], [IsActive]) VALUES (2, N'库存及配送', CAST(0x0000A0B800F08B00 AS DateTime), 0)
INSERT [Shop_ProductConsultsType] ([TypeId], [TypeName], [CreatedDate], [IsActive]) VALUES (3, N'支付问题', CAST(0x0000A0B800F0933F AS DateTime), 0)
INSERT [Shop_ProductConsultsType] ([TypeId], [TypeName], [CreatedDate], [IsActive]) VALUES (4, N'发票及保修', CAST(0x0000A0B800F099EF AS DateTime), 0)
INSERT [Shop_ProductConsultsType] ([TypeId], [TypeName], [CreatedDate], [IsActive]) VALUES (5, N'促销及赠品', CAST(0x0000A0B800F0A108 AS DateTime), 0)
SET IDENTITY_INSERT [Shop_ProductConsultsType] OFF
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ProductConsults]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_ProductConsults](
	[ConsultationId] [int] IDENTITY(1,1) NOT NULL,
	[TypeId] [int] NOT NULL CONSTRAINT [DF_Shop_ProductConsults_TypeId]  DEFAULT ((-1)),
	[UserId] [int] NOT NULL,
	[ProductId] [bigint] NOT NULL,
	[UserName] [nvarchar](50) NULL,
	[UserEmail] [nvarchar](50) NULL,
	[ConsultationText] [nvarchar](max) NOT NULL,
	[CreatedDate] [datetime] NOT NULL,
	[ReplyDate] [datetime] NULL,
	[IsReply] [bit] NOT NULL CONSTRAINT [DF_ProductConsultations_IsReply]  DEFAULT ((0)),
	[ReplyText] [nvarchar](max) NULL,
	[ReplyUserId] [int] NOT NULL CONSTRAINT [DF_Shop_ProductConsults_ReplyUserId]  DEFAULT ((0)),
	[ReplyUserName] [nvarchar](200) NULL,
	[Status] [int] NOT NULL,
	[Recomend] [int] NOT NULL CONSTRAINT [DF_ProductConsultations_IsTop]  DEFAULT ((1)),
 CONSTRAINT [PK_ProductConsultations] PRIMARY KEY CLUSTERED 
(
	[ConsultationId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ProductCategories]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_ProductCategories](
	[CategoryId] [int] NOT NULL,
	[ProductId] [bigint] NOT NULL,
	[CategoryPath] [nvarchar](4000) NULL,
 CONSTRAINT [PK_Shop_ProductCategories] PRIMARY KEY CLUSTERED 
(
	[CategoryId] ASC,
	[ProductId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ProductAttributes]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_ProductAttributes](
	[ProductId] [bigint] NOT NULL,
	[AttributeId] [bigint] NOT NULL,
	[ValueId] [bigint] NOT NULL,
 CONSTRAINT [PK_Shop_ProductAttributes] PRIMARY KEY CLUSTERED 
(
	[ProductId] ASC,
	[AttributeId] ASC,
	[ValueId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ProductAccessories]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_ProductAccessories](
	[AccessoriesId] [int] IDENTITY(1,1) NOT NULL,
	[Name] [nvarchar](100) NOT NULL,
	[ProductId] [bigint] NOT NULL,
	[MaxQuantity] [int] NOT NULL CONSTRAINT [DF_Shop_ProductAccessories_MaxQuantity]  DEFAULT ((0)),
	[MinQuantity] [int] NOT NULL CONSTRAINT [DF_Shop_ProductAccessories_MinQuantity]  DEFAULT ((0)),
	[DiscountType] [smallint] NOT NULL CONSTRAINT [DF_Shop_ProductAccessories_DiscountType]  DEFAULT ((1)),
	[DiscountAmount] [money] NOT NULL CONSTRAINT [DF_Shop_ProductAccessories_DiscountAmount]  DEFAULT ((0)),
	[Type] [smallint] NOT NULL CONSTRAINT [DF_Shop_ProductAccessories_Type]  DEFAULT ((1)),
	[Stock] [int] NOT NULL CONSTRAINT [DF_Shop_ProductAccessories_Stock]  DEFAULT ((0)),
 CONSTRAINT [PK_Shop_ProductAccessories_1] PRIMARY KEY CLUSTERED 
(
	[AccessoriesId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_PreOrder]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_PreOrder](
	[PreOrderId] [int] IDENTITY(1,1) NOT NULL,
	[ProductId] [bigint] NOT NULL,
	[ProductName] [nvarchar](200) NOT NULL,
	[Count] [int] NOT NULL,
	[SKU] [nvarchar](50) NOT NULL,
	[Phone] [nvarchar](50) NOT NULL,
	[UserId] [int] NOT NULL,
	[UserName] [nvarchar](100) NOT NULL,
	[CreatedDate] [datetime] NOT NULL,
	[HandleUserId] [int] NOT NULL CONSTRAINT [DF_Shop_Predetermine_HandleUserId]  DEFAULT ((0)),
	[HandleDate] [datetime] NULL,
	[DeliveryTip] [nvarchar](100) NULL,
	[Status] [smallint] NOT NULL,
	[Remark] [nvarchar](500) NULL,
 CONSTRAINT [PK_Shop_Predetermine] PRIMARY KEY CLUSTERED 
(
	[PreOrderId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_PackageCategory]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_PackageCategory](
	[CategoryId] [int] IDENTITY(1,1) NOT NULL,
	[Name] [nvarchar](100) NOT NULL,
	[CreatedDate] [datetime] NULL CONSTRAINT [DF_Shop_PackageCategory_CreatedDate]  DEFAULT (getdate()),
	[Status] [smallint] NULL CONSTRAINT [DF_Shop_PackageCategory_Status]  DEFAULT ((0)),
	[Remark] [nvarchar](500) NULL,
 CONSTRAINT [PK_Shop_PackageCategory] PRIMARY KEY CLUSTERED 
(
	[CategoryId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_Package]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_Package](
	[PackageId] [int] IDENTITY(1,1) NOT NULL,
	[CategoryId] [int] NOT NULL,
	[Name] [nvarchar](100) NOT NULL,
	[Description] [text] NULL,
	[PhotoUrl] [nvarchar](300) NULL,
	[NormalPhotoUrl] [nvarchar](300) NULL,
	[ThumbPhotoUrl] [nvarchar](300) NULL,
	[CreatedDate] [datetime] NULL CONSTRAINT [DF_Shop_Package_CreatedDate]  DEFAULT (getdate()),
	[Status] [smallint] NULL CONSTRAINT [DF_Shop_Package_Status]  DEFAULT ((0)),
	[Remark] [nvarchar](1000) NULL,
 CONSTRAINT [PK_Shop_Package] PRIMARY KEY CLUSTERED 
(
	[PackageId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_OrdersHistory]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_OrdersHistory](
	[OrderId] [bigint] NOT NULL,
	[OrderCode] [nvarchar](50) NOT NULL,
	[ParentOrderId] [bigint] NOT NULL,
	[CreatedDate] [datetime] NOT NULL,
	[UpdatedDate] [datetime] NULL,
	[BuyerID] [int] NOT NULL,
	[BuyerName] [nvarchar](100) NOT NULL,
	[BuyerEmail] [nvarchar](100) NOT NULL,
	[BuyerCellPhone] [nvarchar](50) NULL,
	[RegionId] [int] NULL,
	[ShipRegion] [nvarchar](300) NULL,
	[ShipAddress] [nvarchar](300) NULL,
	[ShipZipCode] [nvarchar](20) NULL,
	[ShipName] [nvarchar](50) NULL,
	[ShipTelPhone] [nvarchar](50) NULL,
	[ShipCellPhone] [nvarchar](50) NULL,
	[ShipEmail] [nvarchar](100) NULL,
	[ShippingModeId] [int] NULL,
	[ShippingModeName] [nvarchar](100) NULL,
	[RealShippingModeId] [int] NULL,
	[RealShippingModeName] [nvarchar](100) NULL,
	[ShipperId] [int] NULL,
	[ShipperName] [nvarchar](100) NULL,
	[ShipperAddress] [nvarchar](300) NULL,
	[ShipperCellPhone] [nvarchar](20) NULL,
	[Freight] [money] NULL,
	[FreightAdjusted] [money] NULL,
	[FreightActual] [money] NULL,
	[Weight] [int] NULL,
	[ShippingStatus] [smallint] NOT NULL,
	[ShipOrderNumber] [nvarchar](50) NULL,
	[ExpressCompanyName] [nvarchar](500) NULL,
	[ExpressCompanyAbb] [nvarchar](500) NULL,
	[PaymentTypeId] [int] NOT NULL,
	[PaymentTypeName] [nvarchar](100) NOT NULL,
	[PaymentGateway] [nvarchar](50) NOT NULL,
	[PaymentStatus] [smallint] NOT NULL,
	[RefundStatus] [smallint] NOT NULL,
	[PayCurrencyCode] [nvarchar](20) NULL,
	[PayCurrencyName] [nvarchar](20) NULL,
	[PaymentFee] [money] NULL,
	[PaymentFeeAdjusted] [money] NULL,
	[GatewayOrderId] [nvarchar](100) NULL,
	[OrderTotal] [money] NOT NULL,
	[OrderPoint] [int] NOT NULL,
	[OrderCostPrice] [money] NULL,
	[OrderProfit] [money] NULL,
	[OrderOtherCost] [money] NULL,
	[OrderOptionPrice] [money] NULL,
	[DiscountName] [nvarchar](200) NULL,
	[DiscountAmount] [money] NULL,
	[DiscountAdjusted] [money] NULL,
	[DiscountValue] [money] NULL,
	[DiscountValueType] [smallint] NULL,
	[CouponCode] [nvarchar](50) NULL,
	[CouponName] [nvarchar](100) NULL,
	[CouponAmount] [money] NULL,
	[CouponValue] [money] NULL,
	[CouponValueType] [smallint] NULL,
	[ActivityName] [nvarchar](200) NULL,
	[ActivityFreeAmount] [money] NULL,
	[ActivityStatus] [smallint] NOT NULL,
	[GroupBuyId] [int] NULL,
	[GroupBuyPrice] [money] NULL,
	[GroupBuyStatus] [smallint] NOT NULL,
	[Amount] [money] NOT NULL,
	[OrderType] [smallint] NOT NULL,
	[OrderStatus] [smallint] NOT NULL,
	[SellerID] [int] NULL,
	[SellerName] [nvarchar](100) NULL,
	[SellerEmail] [nvarchar](100) NULL,
	[SellerCellPhone] [nvarchar](50) NULL,
	[SupplierId] [int] NULL,
	[SupplierName] [nvarchar](100) NULL,
	[ReferID] [nvarchar](50) NULL,
	[ReferURL] [nvarchar](200) NULL,
	[OrderIP] [nvarchar](50) NULL,
	[Remark] [nvarchar](2000) NULL,
 CONSTRAINT [PK_Shop_OrdersHistory] PRIMARY KEY CLUSTERED 
(
	[OrderId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_Orders]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_Orders](
	[OrderId] [bigint] IDENTITY(10,1) NOT NULL,
	[OrderCode] [nvarchar](50) NOT NULL,
	[ParentOrderId] [bigint] NOT NULL CONSTRAINT [DF_Shop_Orders_ParentOrderId]  DEFAULT ((-1)),
	[OriginalId] [bigint] NOT NULL CONSTRAINT [DF_Shop_Orders_OriginalId]  DEFAULT ((0)),
	[CreateUserId] [int] NOT NULL CONSTRAINT [DF_Shop_Orders_CreateUserId]  DEFAULT ((-1)),
	[CreatedDate] [datetime] NOT NULL,
	[UpdatedDate] [datetime] NULL,
	[BuyerID] [int] NOT NULL,
	[BuyerName] [nvarchar](100) NOT NULL,
	[BuyerEmail] [nvarchar](100) NOT NULL,
	[BuyerCellPhone] [nvarchar](50) NULL,
	[RegionId] [int] NULL,
	[ShipRegion] [nvarchar](300) NULL,
	[ShipAddress] [nvarchar](300) NULL,
	[ShipZipCode] [nvarchar](20) NULL,
	[ShipName] [nvarchar](50) NULL,
	[ShipTelPhone] [nvarchar](50) NULL,
	[ShipCellPhone] [nvarchar](50) NULL,
	[ShipEmail] [nvarchar](100) NULL,
	[ShippingModeId] [int] NULL,
	[ShippingModeName] [nvarchar](100) NULL,
	[RealShippingModeId] [int] NULL,
	[RealShippingModeName] [nvarchar](100) NULL,
	[ShipperId] [int] NULL,
	[ShipperName] [nvarchar](100) NULL,
	[ShipperAddress] [nvarchar](300) NULL,
	[ShipperCellPhone] [nvarchar](20) NULL,
	[Freight] [money] NULL,
	[FreightAdjusted] [money] NULL,
	[FreightActual] [money] NULL,
	[Weight] [int] NULL,
	[ShippingStatus] [smallint] NOT NULL CONSTRAINT [DF_Shop_Orders_ShippingStatus]  DEFAULT ((0)),
	[ShipOrderNumber] [nvarchar](50) NULL,
	[ExpressCompanyName] [nvarchar](500) NULL,
	[ExpressCompanyAbb] [nvarchar](500) NULL,
	[PaymentTypeId] [int] NOT NULL,
	[PaymentTypeName] [nvarchar](100) NOT NULL,
	[PaymentGateway] [nvarchar](50) NOT NULL,
	[PaymentStatus] [smallint] NOT NULL CONSTRAINT [DF_Shop_Orders_PaymentStatus]  DEFAULT ((0)),
	[RefundStatus] [smallint] NOT NULL CONSTRAINT [DF_Shop_Orders_RefundStatus]  DEFAULT ((0)),
	[PayCurrencyCode] [nvarchar](20) NULL,
	[PayCurrencyName] [nvarchar](20) NULL,
	[PaymentFee] [money] NULL,
	[PaymentFeeAdjusted] [money] NULL,
	[GatewayOrderId] [nvarchar](100) NULL,
	[OrderTotal] [money] NOT NULL CONSTRAINT [DF_Shop_Orders_OrderTotal]  DEFAULT ((0)),
	[OrderPoint] [int] NOT NULL CONSTRAINT [DF_Shop_Orders_OrderPoint]  DEFAULT ((0)),
	[OrderCostPrice] [money] NULL,
	[OrderProfit] [money] NULL,
	[OrderOtherCost] [money] NULL,
	[OrderOptionPrice] [money] NULL,
	[DiscountName] [nvarchar](200) NULL,
	[DiscountAmount] [money] NULL,
	[DiscountAdjusted] [money] NULL,
	[DiscountValue] [money] NULL,
	[DiscountValueType] [smallint] NULL,
	[CouponCode] [nvarchar](50) NULL,
	[CouponName] [nvarchar](100) NULL,
	[CouponAmount] [money] NULL,
	[CouponValue] [money] NULL,
	[CouponValueType] [smallint] NULL,
	[ActivityName] [nvarchar](200) NULL,
	[ActivityFreeAmount] [money] NULL,
	[ActivityStatus] [smallint] NOT NULL CONSTRAINT [DF_Shop_Orders_ActivityStatus]  DEFAULT ((0)),
	[GroupBuyId] [int] NULL,
	[GroupBuyPrice] [money] NULL,
	[GroupBuyStatus] [smallint] NOT NULL CONSTRAINT [DF_Shop_Orders_GroupBuyStatus]  DEFAULT ((0)),
	[Amount] [money] NOT NULL CONSTRAINT [DF_Shop_Orders_Amount]  DEFAULT ((0)),
	[OrderType] [smallint] NOT NULL CONSTRAINT [DF_Shop_Orders_OrderType]  DEFAULT ((1)),
	[OrderTypeSub] [smallint] NOT NULL CONSTRAINT [DF_Shop_Orders_OrderTypeSub]  DEFAULT ((0)),
	[OrderStatus] [smallint] NOT NULL CONSTRAINT [DF_Shop_Orders_OrderStatus]  DEFAULT ((0)),
	[SellerID] [int] NULL,
	[SellerName] [nvarchar](100) NULL,
	[SellerEmail] [nvarchar](100) NULL,
	[SellerCellPhone] [nvarchar](50) NULL,
	[CommentStatus] [smallint] NOT NULL CONSTRAINT [DF_Shop_Orders_CommentStatus]  DEFAULT ((0)),
	[SupplierId] [int] NULL,
	[SupplierName] [nvarchar](100) NULL,
	[ReferID] [nvarchar](50) NULL,
	[ReferURL] [nvarchar](200) NULL,
	[ReferType] [int] NULL CONSTRAINT [DF_Shop_Orders_ReferType]  DEFAULT ((0)),
	[OrderIP] [nvarchar](50) NULL,
	[Remark] [nvarchar](2000) NULL,
	[ProductTotal] [money] NOT NULL CONSTRAINT [DF_Shop_Orders_OrderProductsPrice]  DEFAULT ((0)),
	[HasChildren] [bit] NOT NULL CONSTRAINT [DF_Shop_Orders_HasChildren]  DEFAULT ((0)),
	[IsReviews] [bit] NOT NULL CONSTRAINT [DF_Shop_Orders_IsReviews]  DEFAULT ((0)),
	[IsFreeShipping] [bit] NOT NULL CONSTRAINT [DF_Shop_Orders_IsFreeShipping]  DEFAULT ((0)),
	[DepotId] [int] NOT NULL CONSTRAINT [DF__Shop_Orde__Depot__5CA28C58]  DEFAULT ((0)),
	[DepotName] [nvarchar](200) NULL,
 CONSTRAINT [PK_Shop_Orders] PRIMARY KEY CLUSTERED 
(
	[OrderId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_OrderRemark]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_OrderRemark](
	[RemarkId] [bigint] IDENTITY(1,1) NOT NULL,
	[OrderId] [bigint] NOT NULL,
	[OrderCode] [nvarchar](50) NOT NULL,
	[UserId] [int] NOT NULL,
	[UserName] [nvarchar](200) NOT NULL,
	[Remark] [nvarchar](1000) NOT NULL,
	[CreatedDate] [datetime] NOT NULL,
 CONSTRAINT [PK_Shop_OrderRemark] PRIMARY KEY CLUSTERED 
(
	[RemarkId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_OrderOptions]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_OrderOptions](
	[LookupListId] [int] NOT NULL,
	[LookupItemId] [int] NOT NULL,
	[OrderId] [bigint] NOT NULL,
	[OrderCode] [nvarchar](50) NOT NULL,
	[ListDescription] [nvarchar](500) NOT NULL,
	[ItemDescription] [nvarchar](500) NOT NULL,
	[AdjustedPrice] [money] NOT NULL,
	[CustomerTitle] [nvarchar](500) NULL,
	[CustomerDescription] [nvarchar](500) NULL,
 CONSTRAINT [PK_Table_2] PRIMARY KEY CLUSTERED 
(
	[LookupListId] ASC,
	[LookupItemId] ASC,
	[OrderId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_OrderLookupList]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_OrderLookupList](
	[LookupListId] [int] IDENTITY(1,1) NOT NULL,
	[Name] [nvarchar](100) NOT NULL,
	[SelectMode] [int] NOT NULL,
	[Description] [nvarchar](1000) NULL,
 CONSTRAINT [PK_Shop_OrderLookupList] PRIMARY KEY CLUSTERED 
(
	[LookupListId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_OrderLookupItems]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_OrderLookupItems](
	[LookupItemId] [int] IDENTITY(1,1) NOT NULL,
	[LookupListId] [int] NOT NULL,
	[Name] [nvarchar](100) NOT NULL,
	[IsInputRequired] [bit] NOT NULL,
	[InputTitle] [nvarchar](20) NULL,
	[AppendMoney] [money] NULL,
	[CalculateMode] [int] NULL,
	[Remark] [nvarchar](300) NULL,
 CONSTRAINT [PK_Shop_OrderLookupItems] PRIMARY KEY CLUSTERED 
(
	[LookupItemId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_OrderItems]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_OrderItems](
	[ItemId] [bigint] IDENTITY(1,1) NOT NULL,
	[OrderId] [bigint] NOT NULL,
	[OrderCode] [nvarchar](50) NOT NULL,
	[ProductId] [bigint] NOT NULL,
	[ProductCode] [nvarchar](50) NULL,
	[SKU] [nvarchar](200) NULL,
	[Name] [nvarchar](200) NOT NULL,
	[ThumbnailsUrl] [nvarchar](300) NULL,
	[Description] [nvarchar](500) NULL,
	[Quantity] [int] NOT NULL,
	[ShipmentQuantity] [int] NOT NULL,
	[CostPrice] [money] NOT NULL,
	[SellPrice] [money] NOT NULL,
	[AdjustedPrice] [money] NOT NULL,
	[Attribute] [text] NULL,
	[Remark] [text] NULL,
	[Weight] [int] NOT NULL,
	[Deduct] [money] NULL,
	[Points] [int] NOT NULL,
	[ProductLineId] [int] NULL,
	[SupplierId] [int] NULL,
	[SupplierName] [nvarchar](100) NULL,
	[BrandId] [int] NULL,
	[BrandName] [nvarchar](100) NULL,
	[ProductType] [smallint] NOT NULL CONSTRAINT [DF_Shop_OrderItems_ProductType]  DEFAULT ((1)),
	[ReferId] [int] NOT NULL CONSTRAINT [DF_Shop_OrderItems_ReferId]  DEFAULT ((0)),
	[ReferType] [int] NOT NULL CONSTRAINT [DF_Shop_OrderItems_ReferType]  DEFAULT ((0)),
 CONSTRAINT [PK_Shop_OrderItem] PRIMARY KEY CLUSTERED 
(
	[ItemId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_OrderAction]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_OrderAction](
	[ActionId] [bigint] IDENTITY(1,1) NOT NULL,
	[OrderId] [bigint] NOT NULL,
	[OrderCode] [nvarchar](50) NOT NULL,
	[UserId] [int] NOT NULL,
	[Username] [nvarchar](200) NOT NULL,
	[ActionCode] [nvarchar](100) NOT NULL,
	[ActionDate] [datetime] NOT NULL,
	[Remark] [nvarchar](1000) NULL,
 CONSTRAINT [PK_Shop_OrderAction] PRIMARY KEY CLUSTERED 
(
	[ActionId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_LineDistributors]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_LineDistributors](
	[LineId] [int] NOT NULL,
	[DistributorId] [int] NOT NULL,
 CONSTRAINT [PK_Lines] PRIMARY KEY CLUSTERED 
(
	[LineId] ASC,
	[DistributorId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_InquiryItem]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_InquiryItem](
	[ItemId] [bigint] IDENTITY(1,1) NOT NULL,
	[InquiryId] [bigint] NOT NULL,
	[TargetId] [bigint] NOT NULL,
	[Type] [smallint] NOT NULL,
	[ProductCode] [nvarchar](50) NULL,
	[SKU] [nvarchar](200) NULL,
	[Name] [nvarchar](200) NOT NULL,
	[ThumbnailsUrl] [nvarchar](300) NULL,
	[Description] [nvarchar](500) NULL,
	[Quantity] [int] NOT NULL,
	[CostPrice] [money] NOT NULL,
	[SellPrice] [money] NOT NULL,
	[AdjustedPrice] [money] NOT NULL,
	[Attribute] [text] NULL,
	[Remark] [text] NULL,
	[Weight] [int] NOT NULL,
	[Deduct] [money] NULL,
	[Points] [int] NOT NULL,
	[ProductLineId] [int] NULL,
	[SupplierId] [int] NULL,
	[SupplierName] [nvarchar](100) NULL,
 CONSTRAINT [PK_Shop_InquiryItem] PRIMARY KEY CLUSTERED 
(
	[ItemId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_Inquiry]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_Inquiry](
	[InquiryId] [bigint] IDENTITY(1,1) NOT NULL,
	[ParentId] [bigint] NOT NULL,
	[UserId] [int] NOT NULL CONSTRAINT [DF_Shop_Inquiry_UserId]  DEFAULT ((0)),
	[UserName] [nvarchar](100) NOT NULL,
	[Email] [nvarchar](100) NOT NULL,
	[CellPhone] [nvarchar](100) NULL,
	[Telephone] [nvarchar](100) NULL,
	[RegionId] [int] NOT NULL,
	[Company] [nvarchar](200) NULL,
	[Address] [nvarchar](200) NULL,
	[QQ] [nvarchar](100) NULL,
	[Status] [smallint] NOT NULL,
	[LeaveMsg] [text] NOT NULL,
	[ReplyMsg] [text] NOT NULL,
	[MarketPrice] [money] NULL,
	[Amount] [money] NOT NULL CONSTRAINT [DF_Shop_Inquiry_Amount]  DEFAULT ((0)),
	[CreatedDate] [datetime] NOT NULL,
	[UpdatedDate] [datetime] NULL,
	[UpdatedUserId] [int] NOT NULL,
	[Remark] [nvarchar](500) NULL,
 CONSTRAINT [PK_Shop_Inquiry] PRIMARY KEY CLUSTERED 
(
	[InquiryId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_HotKeywords]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_HotKeywords](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[Keywords] [nvarchar](50) NOT NULL,
	[CategoryId] [int] NULL,
 CONSTRAINT [PK_Shop_ProductHotKeywords] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_GroupBuy]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_GroupBuy](
	[GroupBuyId] [int] IDENTITY(1,1) NOT NULL,
	[ProductId] [bigint] NOT NULL,
	[Sequence] [int] NOT NULL,
	[FinePrice] [money] NOT NULL,
	[StartDate] [datetime] NOT NULL,
	[EndDate] [datetime] NOT NULL,
	[MaxCount] [int] NOT NULL,
	[GroupCount] [int] NOT NULL,
	[BuyCount] [int] NOT NULL,
	[Price] [money] NOT NULL,
	[Status] [int] NOT NULL,
	[Description] [text] NULL,
	[RegionId] [int] NOT NULL CONSTRAINT [DF_Shop_GroupBuy_RegionId]  DEFAULT ((-1)),
	[ProductName] [nvarchar](200) NOT NULL CONSTRAINT [DF_Shop_GroupBuy_ProductName]  DEFAULT (N'暂无'),
	[ProductCategory] [nvarchar](100) NOT NULL CONSTRAINT [DF_Shop_GroupBuy_ProductCategory]  DEFAULT (N'暂无'),
	[GroupBuyImage] [nvarchar](255) NULL,
	[CategoryId] [int] NOT NULL CONSTRAINT [DF_Shop_GroupBuy_CategoryId]  DEFAULT ((0)),
	[CategoryPath] [nvarchar](4000) NULL,
	[LimitQty] [int] NOT NULL CONSTRAINT [DF_Shop_GroupBuy_ProLimitQuantity]  DEFAULT ((0)),
 CONSTRAINT [PK_Shop_GroupBuy] PRIMARY KEY CLUSTERED 
(
	[GroupBuyId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_GiftsCategory]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_GiftsCategory](
	[CategoryID] [int] IDENTITY(1,1) NOT NULL,
	[ParentCategoryId] [int] NULL,
	[Name] [nvarchar](200) NOT NULL,
	[Depth] [int] NOT NULL,
	[Path] [nvarchar](200) NOT NULL,
	[DisplaySequence] [int] NOT NULL,
	[Description] [nvarchar](max) NULL,
	[Theme] [nvarchar](200) NULL,
	[HasChildren] [bit] NOT NULL,
 CONSTRAINT [PK_Shop_GiftsCategory] PRIMARY KEY CLUSTERED 
(
	[CategoryID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_Gifts]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_Gifts](
	[GiftId] [int] IDENTITY(1,1) NOT NULL,
	[CategoryID] [int] NOT NULL,
	[Name] [nvarchar](100) NOT NULL,
	[ShortDescription] [nvarchar](2000) NULL,
	[Unit] [nvarchar](50) NULL,
	[Weight] [int] NOT NULL,
	[LongDescription] [ntext] NULL,
	[Title] [nvarchar](100) NULL,
	[Meta_Description] [nvarchar](1000) NULL,
	[Meta_Keywords] [nvarchar](1000) NULL,
	[ThumbnailsUrl] [nvarchar](255) NULL,
	[InFocusImageUrl] [nvarchar](255) NULL,
	[CostPrice] [money] NULL,
	[MarketPrice] [money] NULL,
	[SalePrice] [money] NULL,
	[Stock] [int] NULL,
	[NeedPoint] [int] NOT NULL CONSTRAINT [DF_Shop_Gifts_NeedPoint]  DEFAULT ((0)),
	[NeedGrade] [int] NOT NULL,
	[SaleCounts] [int] NOT NULL,
	[CreateDate] [datetime] NOT NULL,
	[Enabled] [bit] NOT NULL,
 CONSTRAINT [PK_Shop_Gifts] PRIMARY KEY CLUSTERED 
(
	[GiftId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_Favorite]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_Favorite](
	[FavoriteId] [int] IDENTITY(1,1) NOT NULL,
	[Type] [smallint] NOT NULL CONSTRAINT [DF_Shop_Favorite_Type]  DEFAULT ((0)),
	[TargetId] [bigint] NOT NULL,
	[UserId] [int] NOT NULL,
	[Tags] [nvarchar](100) NULL,
	[Remark] [nvarchar](500) NULL,
	[CreatedDate] [datetime] NOT NULL CONSTRAINT [DF_Shop_Favorite_CreatedDate]  DEFAULT (getdate()),
 CONSTRAINT [PK_Shop_Favorite] PRIMARY KEY CLUSTERED 
(
	[FavoriteId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ExpressTemplates]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_ExpressTemplates](
	[ExpressId] [int] IDENTITY(1,1) NOT NULL,
	[ExpressName] [nvarchar](100) NOT NULL,
	[XmlFile] [nvarchar](200) NOT NULL,
	[IsUse] [bit] NOT NULL,
 CONSTRAINT [PK_Shop_ExpressTemplates] PRIMARY KEY CLUSTERED 
(
	[ExpressId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET IDENTITY_INSERT [Shop_ExpressTemplates] ON
INSERT [Shop_ExpressTemplates] ([ExpressId], [ExpressName], [XmlFile], [IsUse]) VALUES (2, N'圆通', N'201046133312.xml', 1)
INSERT [Shop_ExpressTemplates] ([ExpressId], [ExpressName], [XmlFile], [IsUse]) VALUES (3, N'申通快递', N'20101117152320.xml', 1)
INSERT [Shop_ExpressTemplates] ([ExpressId], [ExpressName], [XmlFile], [IsUse]) VALUES (4, N'邮政普件', N'20101117155058.xml', 1)
INSERT [Shop_ExpressTemplates] ([ExpressId], [ExpressName], [XmlFile], [IsUse]) VALUES (5, N'天天快递', N'20101117155351.xml', 1)
INSERT [Shop_ExpressTemplates] ([ExpressId], [ExpressName], [XmlFile], [IsUse]) VALUES (6, N'宅急送快件', N'20101117155840.xml', 1)
INSERT [Shop_ExpressTemplates] ([ExpressId], [ExpressName], [XmlFile], [IsUse]) VALUES (7, N'申通快递2', N'2010111716252.xml', 1)
INSERT [Shop_ExpressTemplates] ([ExpressId], [ExpressName], [XmlFile], [IsUse]) VALUES (8, N'韵达快运', N'20101117161058.xml', 1)
INSERT [Shop_ExpressTemplates] ([ExpressId], [ExpressName], [XmlFile], [IsUse]) VALUES (9, N'EMS', N'20101117162921.xml', 1)
INSERT [Shop_ExpressTemplates] ([ExpressId], [ExpressName], [XmlFile], [IsUse]) VALUES (10, N'顺丰速运', N'20101117163245.xml', 1)
INSERT [Shop_ExpressTemplates] ([ExpressId], [ExpressName], [XmlFile], [IsUse]) VALUES (11, N'中通速递', N'20101117163638.xml', 1)
INSERT [Shop_ExpressTemplates] ([ExpressId], [ExpressName], [XmlFile], [IsUse]) VALUES (12, N'宅急送普件', N'20101117163823.xml', 1)
SET IDENTITY_INSERT [Shop_ExpressTemplates] OFF
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ExchangeDetail]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_ExchangeDetail](
	[DetailID] [int] IDENTITY(1,1) NOT NULL,
	[Type] [int] NOT NULL,
	[GiftID] [int] NOT NULL,
	[UserID] [int] NOT NULL,
	[OrderID] [int] NULL,
	[GiftName] [nvarchar](200) NULL,
	[Price] [money] NULL,
	[CouponCode] [nvarchar](200) NULL,
	[CostScore] [int] NOT NULL,
	[Status] [int] NOT NULL,
	[Description] [nvarchar](max) NULL,
	[CreatedDate] [datetime] NOT NULL,
 CONSTRAINT [PK_Shop_ExchangeDetail] PRIMARY KEY CLUSTERED 
(
	[DetailID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_Distributors]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_Distributors](
	[DistributorId] [int] IDENTITY(1,1) NOT NULL,
	[DistributorName] [nvarchar](50) NOT NULL,
 CONSTRAINT [PK_Shop_Distributors] PRIMARY KEY CLUSTERED 
(
	[DistributorId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_DepotRegion]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_DepotRegion](
	[DepotId] [int] NOT NULL,
	[RegionId] [int] NOT NULL,
	[RegionName] [nvarchar](50) NOT NULL,
	[Status] [bit] NOT NULL CONSTRAINT [DF_Shop_DepotRegion_Status]  DEFAULT ((0)),
	[Path] [nvarchar](4000) NOT NULL,
	[Depth] [int] NOT NULL,
 CONSTRAINT [PK_Shop_DepotRegion] PRIMARY KEY CLUSTERED 
(
	[DepotId] ASC,
	[RegionId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_DepotProSKUs]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_DepotProSKUs](
	[SKU] [nvarchar](50) NOT NULL,
	[ProductId] [bigint] NOT NULL,
	[Weight] [int] NOT NULL CONSTRAINT [DF_Shop_DepotProSKUs_Weight]  DEFAULT ((0)),
	[Stock] [int] NOT NULL,
	[AlertStock] [int] NOT NULL,
	[CostPrice] [money] NOT NULL CONSTRAINT [DF_Shop_DepotProSKUs_CostPrice]  DEFAULT ((0)),
	[SalePrice] [money] NOT NULL,
	[Upselling] [bit] NOT NULL,
 CONSTRAINT [PK_Shop_DepotProSKUs] PRIMARY KEY CLUSTERED 
(
	[SKU] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_DepotProduct]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_DepotProduct](
	[ProductId] [bigint] NOT NULL,
	[TypeId] [int] NULL,
	[BrandId] [int] NOT NULL,
	[ProductName] [nvarchar](200) NOT NULL,
	[SaleStatus] [int] NOT NULL,
	[AddedDate] [datetime] NOT NULL CONSTRAINT [DF_Shop_DepotProduct_AddedDate]  DEFAULT (getdate()),
	[SaleCounts] [int] NOT NULL CONSTRAINT [DF_Shop_DepotProduct_SaleCounts]  DEFAULT ((0)),
	[MarketPrice] [money] NULL,
	[Stock] [int] NOT NULL,
	[LowestSalePrice] [money] NOT NULL,
	[HasSKU] [bit] NOT NULL,
	[DisplaySequence] [int] NOT NULL CONSTRAINT [DF_Shop_DepotProduct_DisplaySequence]  DEFAULT ((0)),
	[ImageUrl] [nvarchar](255) NULL,
	[ThumbnailUrl1] [nvarchar](255) NULL,
 CONSTRAINT [PK_Shop_DepotProduct] PRIMARY KEY CLUSTERED 
(
	[ProductId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_Depot]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_Depot](
	[DepotId] [int] IDENTITY(1,1) NOT NULL,
	[Name] [nvarchar](200) NOT NULL,
	[Code] [nvarchar](50) NOT NULL,
	[RegionId] [int] NOT NULL,
	[Address] [nvarchar](200) NULL,
	[ContactName] [nvarchar](200) NULL,
	[Phone] [nvarchar](200) NULL,
	[Email] [nvarchar](200) NULL,
	[Status] [int] NOT NULL,
	[HelpCode] [nvarchar](50) NULL,
	[CreatedDate] [datetime] NOT NULL,
	[Latitude] [decimal](18, 6) NULL,
	[Longitude] [decimal](18, 6) NULL,
	[Type] [int] NOT NULL CONSTRAINT [DF_Shop_Depot_Type]  DEFAULT ((0)),
	[DepotAttr] [int] NOT NULL CONSTRAINT [DF_Shop_Depot_DepotAttr]  DEFAULT ((0)),
	[Remark] [nvarchar](max) NULL,
 CONSTRAINT [PK_Shop_Depot] PRIMARY KEY CLUSTERED 
(
	[DepotId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_CouponRule]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_CouponRule](
	[RuleId] [int] IDENTITY(1,1) NOT NULL,
	[CategoryId] [int] NOT NULL,
	[ProductId] [bigint] NULL,
	[ProductSku] [nvarchar](50) NULL,
	[ClassId] [int] NOT NULL,
	[SupplierId] [int] NOT NULL,
	[Name] [nvarchar](200) NOT NULL,
	[PreName] [nvarchar](200) NOT NULL,
	[ImageUrl] [nvarchar](300) NULL,
	[CouponPrice] [money] NOT NULL,
	[LimitPrice] [money] NOT NULL,
	[CouponDesc] [nvarchar](max) NULL,
	[SendCount] [int] NOT NULL,
	[NeedPoint] [int] NOT NULL,
	[IsPwd] [int] NOT NULL,
	[IsReuse] [int] NOT NULL,
	[Status] [int] NOT NULL,
	[Recommend] [int] NOT NULL,
	[StartDate] [datetime] NOT NULL,
	[EndDate] [datetime] NOT NULL,
	[CreateDate] [datetime] NOT NULL,
	[CreateUserId] [int] NOT NULL,
	[Type] [int] NOT NULL CONSTRAINT [DF_Shop_CouponRule_Type]  DEFAULT ((0)),
	[CpLength] [int] NOT NULL,
	[PwdLength] [int] NOT NULL,
	[DeferDay] [int] NOT NULL CONSTRAINT [DF_Shop_CouponRule_DeferDay_1]  DEFAULT ((0)),
	[AvaType] [int] NOT NULL CONSTRAINT [DF_Shop_CouponRule_AvaType_1]  DEFAULT ((0)),
 CONSTRAINT [PK_Shop_Coupon] PRIMARY KEY CLUSTERED 
(
	[RuleId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_CouponInfo]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_CouponInfo](
	[CouponCode] [nvarchar](200) NOT NULL,
	[CategoryId] [int] NOT NULL,
	[ProductId] [bigint] NULL,
	[ProductSku] [nvarchar](50) NULL,
	[ClassId] [int] NOT NULL,
	[SupplierId] [int] NOT NULL,
	[RuleId] [int] NOT NULL,
	[CouponName] [nvarchar](200) NOT NULL,
	[CouponPwd] [nvarchar](200) NOT NULL,
	[UserId] [int] NOT NULL,
	[UserEmail] [nvarchar](200) NULL,
	[Status] [int] NOT NULL,
	[CouponPrice] [money] NOT NULL,
	[LimitPrice] [money] NOT NULL,
	[NeedPoint] [int] NOT NULL,
	[IsPwd] [int] NOT NULL,
	[IsReuse] [int] NOT NULL,
	[StartDate] [datetime] NOT NULL,
	[EndDate] [datetime] NOT NULL,
	[GenerateTime] [datetime] NOT NULL,
	[UsedDate] [datetime] NULL,
	[Type] [int] NOT NULL CONSTRAINT [DF_Shop_CouponInfo_Type]  DEFAULT ((0)),
	[OrderId] [bigint] NOT NULL CONSTRAINT [DF__Shop_Coup__Order__1FA6CD15]  DEFAULT ((0)),
	[OrderCode] [nvarchar](200) NULL,
 CONSTRAINT [PK_Shop_CouponItem] PRIMARY KEY CLUSTERED 
(
	[CouponCode] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_CouponHistory]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_CouponHistory](
	[CouponCode] [nvarchar](200) NOT NULL,
	[CategoryId] [int] NOT NULL,
	[ProductId] [bigint] NULL,
	[ProductSku] [nvarchar](50) NULL,
	[ClassId] [int] NOT NULL,
	[SupplierId] [int] NOT NULL,
	[RuleId] [int] NOT NULL,
	[CouponName] [nvarchar](200) NOT NULL,
	[CouponPwd] [nvarchar](200) NOT NULL,
	[UserId] [int] NOT NULL,
	[UserEmail] [nvarchar](200) NULL,
	[Status] [int] NOT NULL,
	[CouponPrice] [money] NOT NULL,
	[LimitPrice] [money] NOT NULL,
	[NeedPoint] [int] NOT NULL,
	[IsPwd] [int] NOT NULL,
	[IsReuse] [int] NOT NULL,
	[StartDate] [datetime] NOT NULL,
	[EndDate] [datetime] NOT NULL,
	[GenerateTime] [datetime] NOT NULL,
	[UsedDate] [datetime] NULL,
	[Type] [int] NOT NULL CONSTRAINT [DF__Shop_Coupo__Type__15293EA2]  DEFAULT ((0)),
	[OrderId] [bigint] NOT NULL CONSTRAINT [DF__Shop_Coup__Order__1EB2A8DC]  DEFAULT ((0)),
	[OrderCode] [nvarchar](200) NULL,
 CONSTRAINT [PK_Shop_CouponHistory] PRIMARY KEY CLUSTERED 
(
	[CouponCode] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_CouponClass]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_CouponClass](
	[ClassId] [int] IDENTITY(1,1) NOT NULL,
	[Name] [nvarchar](200) NOT NULL,
	[Sequence] [int] NOT NULL,
	[Status] [int] NOT NULL CONSTRAINT [DF_Shop_CouponClass_Status]  DEFAULT ((1)),
 CONSTRAINT [PK_Shop_CouponClass] PRIMARY KEY CLUSTERED 
(
	[ClassId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_CountDown]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_CountDown](
	[CountDownId] [int] IDENTITY(1,1) NOT NULL,
	[ProductId] [bigint] NOT NULL,
	[EndDate] [datetime] NOT NULL,
	[Description] [text] NULL,
	[Sequence] [int] NOT NULL CONSTRAINT [DF_Table_1_DisplaySequence]  DEFAULT ((0)),
	[Price] [money] NOT NULL,
	[Status] [int] NOT NULL,
	[LimitQty] [int] NOT NULL CONSTRAINT [DF_Shop_CountDown_PromotionLimitQu]  DEFAULT ((0)),
 CONSTRAINT [PK_Shop_CountDown] PRIMARY KEY CLUSTERED 
(
	[CountDownId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_CommissionRule]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_CommissionRule](
	[RuleId] [int] IDENTITY(1,1) NOT NULL,
	[RuleName] [nvarchar](200) NOT NULL,
	[RuleMode] [int] NOT NULL,
	[FirstValue] [decimal](18, 2) NOT NULL,
	[SecondValue] [decimal](18, 2) NOT NULL,
	[ThirdValue] [decimal](18, 2) NOT NULL,
	[FourthValue] [decimal](18, 2) NOT NULL,
	[FifthValue] [decimal](18, 2) NOT NULL,
	[IsAll] [bit] NOT NULL,
	[Status] [int] NOT NULL,
	[CreatedDate] [datetime] NOT NULL,
	[CreatedUserID] [int] NOT NULL,
 CONSTRAINT [PK_Shop_CommissionRule] PRIMARY KEY CLUSTERED 
(
	[RuleId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_CommissionPro]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_CommissionPro](
	[RuleId] [int] NOT NULL,
	[ProductId] [bigint] NOT NULL,
 CONSTRAINT [PK_Shop_CommissionPro] PRIMARY KEY CLUSTERED 
(
	[RuleId] ASC,
	[ProductId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_CommissionDetail]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_CommissionDetail](
	[DetailId] [bigint] IDENTITY(1,1) NOT NULL,
	[RuleId] [int] NOT NULL,
	[RuleName] [nvarchar](200) NOT NULL,
	[UserId] [int] NOT NULL,
	[UserName] [nvarchar](200) NOT NULL,
	[RuleLevel] [int] NOT NULL,
	[TradeDate] [datetime] NOT NULL,
	[TradeType] [int] NOT NULL,
	[Fee] [money] NOT NULL,
	[OrderId] [bigint] NOT NULL,
	[OrderCode] [nvarchar](50) NOT NULL,
	[BuyerID] [int] NOT NULL,
	[BuyerName] [nvarchar](100) NOT NULL,
	[OrderAmount] [money] NOT NULL,
	[ReferID] [int] NOT NULL,
	[ReferType] [int] NULL CONSTRAINT [DF_Shop_CommissionDetail_ReferType]  DEFAULT ((0)),
	[ProductId] [bigint] NOT NULL,
	[Quantity] [int] NOT NULL,
	[Name] [nvarchar](200) NOT NULL,
	[SupplierId] [int] NOT NULL,
	[SupplierName] [nvarchar](100) NULL,
	[BrandId] [int] NOT NULL,
	[BrandName] [nvarchar](100) NULL,
	[Remark] [nvarchar](2000) NULL,
 CONSTRAINT [PK_Shop_CommissionDetail] PRIMARY KEY CLUSTERED 
(
	[DetailId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_Categories]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_Categories](
	[CategoryId] [int] IDENTITY(1,1) NOT NULL,
	[DisplaySequence] [int] NOT NULL,
	[Name] [nvarchar](100) NOT NULL,
	[Meta_Title] [nvarchar](1000) NULL,
	[Meta_Description] [nvarchar](1000) NULL,
	[Meta_Keywords] [nvarchar](1000) NULL,
	[Description] [nvarchar](1000) NULL,
	[ParentCategoryId] [int] NULL,
	[Depth] [int] NOT NULL,
	[Path] [varchar](4000) NOT NULL,
	[RewriteName] [nvarchar](50) NULL,
	[SKUPrefix] [nvarchar](10) NULL,
	[AssociatedProductType] [int] NULL,
	[ImageUrl] [nvarchar](300) NULL,
	[Notes1] [ntext] NULL,
	[Notes2] [ntext] NULL,
	[Notes3] [ntext] NULL,
	[Notes4] [ntext] NULL,
	[Notes5] [ntext] NULL,
	[Theme] [varchar](100) NULL,
	[HasChildren] [bit] NOT NULL CONSTRAINT [DF_Shop_Categories_HasChildren]  DEFAULT ((0)),
	[SeoUrl] [nvarchar](300) NULL,
	[SeoImageAlt] [nvarchar](300) NULL,
	[SeoImageTitle] [nvarchar](300) NULL,
	[Status] [bit] NOT NULL CONSTRAINT [DF_Shop_Categories_Status]  DEFAULT ((1)),
 CONSTRAINT [PK_Shop_Categories] PRIMARY KEY CLUSTERED 
(
	[CategoryId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO
SET IDENTITY_INSERT [Shop_Categories] ON
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (2, 1, N'女装', N'', N'', N'', N'', 0, 1, N'2', N'', N'', -1, N'/Upload/Shop/Images/Categories/201501201024362817068.jpg', N'', N'', N'', N'', N'', N'', 1, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (3, 73, N'连衣裙', N'', N'', N'', N'<p>连衣裙<br /></p>', 115, 3, N'2|115|3', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (4, 1, N'T恤/卫衣', N'', N'', N'', N'<p id="initContent"><br/></p><p>T恤/卫衣<br /></p><p><br/></p>', 109, 3, N'2|109|4', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (5, 71, N'半身裙', N'', N'', N'', N'', 115, 3, N'2|115|5', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (7, 9, N'夹克', N'', N'', N'', N'<p id="initContent"><br/></p><p>夹克<br /></p><p><br/></p>', 109, 3, N'2|109|7', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (8, 69, N'短裤', N'', N'', N'', N'<p>短裤<br /></p>', 111, 3, N'2|111|8', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (9, 2, N'衬衫', N'', N'', N'', N'<p id="initContent"><br/></p><p>衬衫<br /></p><p><br/></p>', 109, 3, N'2|109|9', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (10, 3, N'针织衫', N'', N'', N'', N'<p id="initContent"><br/></p><p>针织衫<br /></p><p><br/></p>', 109, 3, N'2|109|10', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (11, 4, N'吊带', N'', N'', N'', N'', 109, 3, N'2|109|11', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (12, 5, N'背心', N'', N'', N'', N'<p id="initContent"><br/></p><p>背心<br /></p><p><br/></p>', 109, 3, N'2|109|12', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (13, 6, N'开衫', N'', N'', N'', N'<p id="initContent"><br/></p><p>开衫<br /></p><p><br/></p>', 109, 3, N'2|109|13', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (14, 7, N'毛衫', N'', N'', N'', N'<p id="initContent"><br/></p><p>毛衫<br /></p><p><br/></p>', 109, 3, N'2|109|14', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (15, 8, N'打底衫', N'', N'', N'', N'<p id="initContent"><br/></p><p>打底衫<br /></p><p><br/></p>', 109, 3, N'2|109|15', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (16, 10, N'风衣', N'', N'', N'', N'<p id="initContent"><br/></p><p>风衣<br /></p><p><br/></p>', 109, 3, N'2|109|16', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (17, 12, N'大衣', N'', N'', N'', N'<p id="initContent"><br/></p><p>大衣<br /></p><p><br/></p>', 109, 3, N'2|109|17', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (18, 13, N'马甲', N'', N'', N'', N'<p id="initContent"><br/></p><p>马甲<br /></p><p><br/></p>', 109, 3, N'2|109|18', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (19, 14, N'羽绒服', N'', N'', N'', N'<p id="initContent"><br/></p><p>羽绒服<br /></p><p><br/></p>', 109, 3, N'2|109|19', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (20, 15, N'小西装', N'', N'', N'', N'<p id="initContent"><br/></p><p>小西装<br /></p><p><br/></p>', 109, 3, N'2|109|20', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (21, 16, N'棉服', N'', N'', N'', N'<p id="initContent"><br/></p><p>棉服<br /></p><p><br/></p>', 109, 3, N'2|109|21', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (22, 55, N'吊带裙', N'', N'', N'', N'<p>吊带裙<br /></p>', 115, 3, N'2|115|22', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (23, 54, N'雪纺裙', N'', N'', N'', N'<p id="initContent"><br/></p><p>雪纺裙<br /></p><p><br/></p>', 115, 3, N'2|115|23', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (24, 53, N'长裙', N'', N'', N'', N'<p id="initContent"><br/></p><p>长裙<br /></p><p><br/></p>', 115, 3, N'2|115|24', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (25, 52, N'短裙', N'', N'', N'', N'<p id="initContent"><br/></p><p>短裙<br /></p><p><br/></p>', 115, 3, N'2|115|25', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (26, 51, N'蕾丝裙', N'', N'', N'', N'<p id="initContent"><br/></p><p>蕾丝裙<br /></p><p><br/></p>', 115, 3, N'2|115|26', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (28, 50, N'休闲裤', N'', N'', N'', N'<p id="initContent"><br/></p><p id="initContent"><br /></p><p>休闲裤<br /></p><p><br /></p><p><br/></p>', 111, 3, N'2|111|28', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (29, 49, N'牛仔裤', N'', N'', N'', N'<p id="initContent"><br/></p><p id="initContent"><br /></p><p>牛仔裤<br /></p><p><br /></p><p><br/></p>', 111, 3, N'2|111|29', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (31, 2, N'男装', N'', N'', N'', N'', 0, 1, N'31', N'', N'', -1, N'/Upload/Shop/Images/Categories/201501201030203472888.jpg', N'', N'', N'', N'', N'', N'', 1, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (32, 47, N'T恤', N'', N'', N'', N'<p id="initContent"><br/></p><p>T恤<br /></p><p><br/></p>', 116, 3, N'31|116|32', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (33, 46, N'衬衫', N'', N'', N'', N'<p id="initContent"><br/></p><p>衬衫<br /></p><p><br/></p>', 116, 3, N'31|116|33', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (34, 45, N'毛衫', N'', N'', N'', N'<p id="initContent"><br/></p><p>毛衫<br /></p><p><br/></p>', 116, 3, N'31|116|34', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (35, 44, N'棉服', N'', N'', N'', N'<p id="initContent"><br/></p><p>棉服<br /></p><p><br/></p>', 116, 3, N'31|116|35', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (36, 43, N'羽绒服', N'', N'', N'', N'<p id="initContent"><br/></p><p>羽绒服<br /></p><p><br/></p>', 116, 3, N'31|116|36', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (37, 42, N'大衣', N'', N'', N'', N'<p id="initContent"><br/></p><p>大衣<br /></p><p><br/></p>', 116, 3, N'31|116|37', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (38, 41, N'夹克', N'', N'', N'', N'<p id="initContent"><br/></p><p>夹克<br /></p><p><br/></p>', 116, 3, N'31|116|38', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (39, 40, N'马甲', N'', N'', N'', N'<p id="initContent"><br/></p><p>马甲<br /></p><p><br/></p>', 116, 3, N'31|116|39', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (40, 39, N'卫衣', N'', N'', N'', N'<p id="initContent"><br/></p><p>卫衣<br /></p><p><br/></p>', 116, 3, N'31|116|40', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (41, 38, N'西装', N'', N'', N'', N'<p id="initContent"><br/></p><p>西装<br /></p><p><br/></p>', 116, 3, N'31|116|41', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (42, 3, N'运动/户外', N'', N'', N'', N'<p>运动 / 户外<br /></p>', 31, 2, N'31|42', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (43, 36, N'西裤', N'', N'', N'', N'<p id="initContent"><br/></p><p>西裤<br /></p><p><br/></p>', 117, 3, N'31|117|43', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (44, 35, N'休闲裤', N'', N'', N'', N'<p id="initContent"><br/></p><p>休闲裤<br /></p><p><br/></p>', 117, 3, N'31|117|44', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (45, 34, N'牛仔裤', N'', N'', N'', N'', 117, 3, N'31|117|45', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (46, 33, N'短裤', N'', N'', N'', N'<p id="initContent"><br/></p><p>短裤<br /></p><p><br/></p>', 117, 3, N'31|117|46', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (47, 32, N'长裤', N'', N'', N'', N'<p id="initContent"><br/></p><p>长裤<br /></p><p><br/></p>', 117, 3, N'31|117|47', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (48, 31, N'运动裤', N'', N'', N'', N'<p id="initContent"><br/></p><p>运动裤<br /></p><p><br/></p>', 117, 3, N'31|117|48', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', N'', N'', N'', N'', N'', N'', 0, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (49, 3, N'内衣', N'', N'', N'', N'', 0, 1, N'49', N'', N'', -1, N'/Upload/Shop/Images/Categories/201501201031086806072.jpg', N'', N'', N'', N'', N'', N'', 1, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (50, 29, N'文胸', N'', N'', N'', N'<p>文胸<br /></p>', 49, 2, N'49|50', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (51, 20, N'内裤', N'', N'', N'', N'<p>内裤<br /></p>', 49, 2, N'49|51', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (52, 32, N'家居服', N'', N'', N'', N'<p>家居服<br /></p>', 49, 2, N'49|52', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (53, 28, N'女士内裤', N'', N'', N'', N'<p>女士内裤<br /></p>', 51, 3, N'49|51|53', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (54, 27, N'男士内裤', N'', N'', N'', N'<p>男士内裤<br /></p>', 51, 3, N'49|51|54', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (55, 26, N'棉质内裤', N'', N'', N'', N'<p>棉质内裤<br /></p>', 51, 3, N'49|51|55', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (56, 25, N'三角裤', N'', N'', N'', N'<p>三角裤<br /></p>', 51, 3, N'49|51|56', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (57, 24, N'平角裤', N'', N'', N'', N'<p>平角裤<br /></p>', 51, 3, N'49|51|57', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (58, 23, N'高腰裤', N'', N'', N'', N'<p>高腰裤<br /></p>', 51, 3, N'49|51|58', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (59, 22, N'收腹提臀', N'', N'', N'', N'<p>收腹提臀<br /></p>', 51, 3, N'49|51|59', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (60, 21, N'青春时尚', N'', N'', N'', N'<p>青春时尚<br /></p>', 51, 3, N'49|51|60', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (61, 4, N'童装', N'', N'', N'', N'', 0, 1, N'61', N'', N'', -1, N'/Upload/Shop/Images/Categories/201501201032398578357.jpg', N'', N'', N'', N'', N'', N'', 1, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (62, 13, N'女童服装', N'', N'', N'', N'<p>女童服装<br /></p>', 61, 2, N'61|62', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (63, 8, N'男童服装', N'', N'', N'', N'<p>男童服装<br /></p>', 61, 2, N'61|63', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (64, 12, N'T恤/卫衣', N'', N'', N'', N'<p>T恤/卫衣<br /></p>', 63, 3, N'61|63|64', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (65, 11, N'外套', N'', N'', N'', N'<p>外套<br /></p>', 63, 3, N'61|63|65', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (66, 10, N'运动装/套装', N'', N'', N'', N'<p>运动装/套装<br /></p>', 63, 3, N'61|63|66', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (67, 9, N'裤子', N'', N'', N'', N'<p>裤子<br /></p>', 63, 3, N'61|63|67', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (68, 17, N'T恤/卫衣', N'', N'', N'', N'<p>T恤/卫衣<br /></p>', 62, 3, N'61|62|68', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (69, 16, N'裙装', N'', N'', N'', N'<p>裙装<br /></p>', 62, 3, N'61|62|69', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (70, 15, N'运动装/套装', N'', N'', N'', N'<p>运动装/套装<br /></p>', 62, 3, N'61|62|70', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (71, 14, N'裤子', N'', N'', N'', N'<p>裤子<br /></p>', 62, 3, N'61|62|71', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (72, 5, N'美妆', N'', N'', N'', N'', 0, 1, N'72', N'', N'', -1, N'/Upload/Shop/Images/Categories/201501201036077446978.jpg', N'', N'', N'', N'', N'', N'', 1, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (73, 1, N'美容护肤', N'', N'', N'', N'<p>美容护肤<br /></p>', 72, 2, N'72|73', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (74, 1, N'美体瘦身', N'', N'', N'', N'<p>美体瘦身<br /></p>', 72, 2, N'72|74', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (75, 6, N'护肤', N'', N'', N'', N'<p>护肤<br /></p>', 73, 3, N'72|73|75', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (76, 5, N'彩妆', N'', N'', N'', N'<p>彩妆<br /></p>', 73, 3, N'72|73|76', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (77, 4, N'头发洗护', N'', N'', N'', N'<p>头发洗护<br /></p>', 73, 3, N'72|73|77', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (78, 3, N'美容工具', N'', N'', N'', N'<p>美容工具<br /></p>', 73, 3, N'72|73|78', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (79, 2, N'男士护肤', N'', N'', N'', N'<p>男士护肤<br /></p>', 73, 3, N'72|73|79', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (80, 6, N'鞋子', N'', N'', N'', N'<p>鞋子<br/></p>', 0, 1, N'80', N'', N'', -1, N'/Upload/Shop/Images/Categories/201501201040220954017.jpg', N'', N'', N'', N'', N'', N'', 1, N'', N'', N'', 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (81, 83, N'凉鞋', N'', N'', N'', N'<p>凉鞋<br /></p>', 80, 2, N'80|81', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (83, 76, N'靴子', N'', N'', N'', N'<p>靴子<br /></p>', 80, 2, N'80|83', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (84, 91, N'时尚凉鞋', N'', N'', N'', N'<p>时尚凉鞋<br /></p>', 81, 3, N'80|81|84', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (85, 90, N'坡跟凉鞋', N'', N'', N'', N'<p>坡跟凉鞋<br /></p>', 81, 3, N'80|81|85', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (86, 89, N'鱼嘴凉鞋', N'', N'', N'', N'<p>鱼嘴凉鞋<br /></p>', 81, 3, N'80|81|86', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (87, 88, N'凉拖鞋', N'', N'', N'', N'<p>凉拖鞋<br /></p>', 81, 3, N'80|81|87', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (88, 87, N'厚底凉鞋', N'', N'', N'', N'<p>厚底凉鞋<br /></p>', 81, 3, N'80|81|88', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (89, 86, N'罗马凉鞋', N'', N'', N'', N'<p>罗马凉鞋<br /></p>', 81, 3, N'80|81|89', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (90, 85, N'PU凉鞋', N'', N'', N'', N'<p>PU凉鞋<br /></p>', 81, 3, N'80|81|90', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (91, 84, N'真皮凉鞋', N'', N'', N'', N'<p>真皮凉鞋<br /></p>', 81, 3, N'80|81|91', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (102, 83, N'踝靴', N'', N'', N'', N'<p>踝靴<br /></p>', 83, 3, N'80|83|102', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (103, 82, N'短靴', N'', N'', N'', N'<p>短靴<br /></p>', 83, 3, N'80|83|103', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (104, 81, N'中靴', N'', N'', N'', N'<p>中靴<br /></p>', 83, 3, N'80|83|104', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (105, 80, N'高靴', N'', N'', N'', N'<p>高靴<br /></p>', 83, 3, N'80|83|105', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (106, 79, N'真皮', N'', N'', N'', N'<p>真皮<br /></p>', 83, 3, N'80|83|106', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (107, 78, N'PU', N'', N'', N'', N'<p>PU<br /></p>', 83, 3, N'80|83|107', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (108, 77, N'特价靴', N'', N'', N'', N'<p>特价靴<br /></p>', 83, 3, N'80|83|108', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (109, 1, N'上衣', N'', N'', N'', N'<p>上衣<br /></p>', 2, 2, N'2|109', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (111, 3, N'裤子', N'', N'', N'', N'<p>裤子<br /></p>', 2, 2, N'2|111', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (115, 2, N'裙子', N'', N'', N'', N'<p>裙子<br /></p>', 2, 2, N'2|115', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (116, 1, N'上衣', N'', N'', N'', N'<p>上衣<br /></p>', 31, 2, N'31|116', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1)
INSERT [Shop_Categories] ([CategoryId], [DisplaySequence], [Name], [Meta_Title], [Meta_Description], [Meta_Keywords], [Description], [ParentCategoryId], [Depth], [Path], [RewriteName], [SKUPrefix], [AssociatedProductType], [ImageUrl], [Notes1], [Notes2], [Notes3], [Notes4], [Notes5], [Theme], [HasChildren], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [Status]) VALUES (117, 2, N'裤子', N'', N'', N'', N'<p>裤子<br /></p>', 31, 2, N'31|117', N'', N'', -1, N'/Content/themes/base/Shop/images/none.png', NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1)
SET IDENTITY_INSERT [Shop_Categories] OFF
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_Brands]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_Brands](
	[BrandId] [int] IDENTITY(1,1) NOT NULL,
	[BrandName] [nvarchar](50) NOT NULL,
	[BrandSpell] [nvarchar](200) NULL,
	[Meta_Description] [nvarchar](1000) NULL,
	[Meta_Keywords] [nvarchar](1000) NULL,
	[Logo] [nvarchar](255) NULL,
	[CompanyUrl] [nvarchar](255) NULL,
	[Description] [ntext] NULL,
	[DisplaySequence] [int] NOT NULL,
	[Theme] [nvarchar](100) NULL,
 CONSTRAINT [PK_Shop_BrandCategories] PRIMARY KEY CLUSTERED 
(
	[BrandId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO
SET IDENTITY_INSERT [Shop_Brands] ON
INSERT [Shop_Brands] ([BrandId], [BrandName], [BrandSpell], [Meta_Description], [Meta_Keywords], [Logo], [CompanyUrl], [Description], [DisplaySequence], [Theme]) VALUES (2, N'动软卓越', N'', N'', N'', N'/Upload/Shop/Brands/201306271941592802500.gif', N'http://www.maticsoft.com', N'', 1, NULL)
INSERT [Shop_Brands] ([BrandId], [BrandName], [BrandSpell], [Meta_Description], [Meta_Keywords], [Logo], [CompanyUrl], [Description], [DisplaySequence], [Theme]) VALUES (3, N'欧梦达', N'', N'', N'', N'/Upload/Shop/Brands/201306261945065146250.jpg', N'http://www.maticsoft.com', N'', 2, NULL)
INSERT [Shop_Brands] ([BrandId], [BrandName], [BrandSpell], [Meta_Description], [Meta_Keywords], [Logo], [CompanyUrl], [Description], [DisplaySequence], [Theme]) VALUES (4, N'韩都衣舍', N'', N'', N'', N'/Upload/Shop/Brands/201306261952453427500.jpg', N'http://www.maticsoft.com', N'', 3, NULL)
INSERT [Shop_Brands] ([BrandId], [BrandName], [BrandSpell], [Meta_Description], [Meta_Keywords], [Logo], [CompanyUrl], [Description], [DisplaySequence], [Theme]) VALUES (5, N'collection', N'', N'', N'', N'/Upload/Shop/Brands/201306261946587646250.jpg', N'http://www.maticsoft.com', N'', 4, NULL)
INSERT [Shop_Brands] ([BrandId], [BrandName], [BrandSpell], [Meta_Description], [Meta_Keywords], [Logo], [CompanyUrl], [Description], [DisplaySequence], [Theme]) VALUES (6, N'Sprotica', N'', N'', N'', N'/Upload/Shop/Brands/201306261947313583750.jpg', N'http://www.maticsoft.com', N'', 5, NULL)
INSERT [Shop_Brands] ([BrandId], [BrandName], [BrandSpell], [Meta_Description], [Meta_Keywords], [Logo], [CompanyUrl], [Description], [DisplaySequence], [Theme]) VALUES (7, N'Sevenjoy', N'', N'', N'', N'/Upload/Shop/Brands/201306261947582021250.jpg', N'http://www.maticsoft.com', N'', 6, NULL)
INSERT [Shop_Brands] ([BrandId], [BrandName], [BrandSpell], [Meta_Description], [Meta_Keywords], [Logo], [CompanyUrl], [Description], [DisplaySequence], [Theme]) VALUES (8, N'英国芙耐', N'', N'', N'', N'/Upload/Shop/Brands/201306261949490615000.jpg', N'http://www.maticsoft.com', N'', 7, NULL)
INSERT [Shop_Brands] ([BrandId], [BrandName], [BrandSpell], [Meta_Description], [Meta_Keywords], [Logo], [CompanyUrl], [Description], [DisplaySequence], [Theme]) VALUES (9, N'卡芙琳', N'', N'', N'', N'/Upload/Shop/Brands/201306261953006240000.jpg', N'http://www.maticsoft.com', N'', 8, NULL)
SET IDENTITY_INSERT [Shop_Brands] OFF
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_AttributeValues]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_AttributeValues](
	[ValueId] [bigint] IDENTITY(1,1) NOT NULL,
	[AttributeId] [bigint] NOT NULL,
	[DisplaySequence] [int] NOT NULL,
	[ValueStr] [nvarchar](200) NOT NULL,
	[ImageUrl] [nvarchar](255) NULL,
 CONSTRAINT [PK_Shop_AttributeValues] PRIMARY KEY CLUSTERED 
(
	[ValueId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_Attributes]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_Attributes](
	[AttributeId] [bigint] IDENTITY(1,1) NOT NULL,
	[AttributeName] [nvarchar](50) NOT NULL,
	[DisplaySequence] [int] NOT NULL,
	[TypeId] [int] NOT NULL,
	[UsageMode] [int] NOT NULL,
	[UseAttributeImage] [bit] NOT NULL,
	[UserDefinedPic] [bit] NULL,
 CONSTRAINT [PK_Shop_Attributes] PRIMARY KEY CLUSTERED 
(
	[AttributeId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ActivityRule]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_ActivityRule](
	[RuleId] [int] IDENTITY(1,1) NOT NULL,
	[RuleName] [nvarchar](200) NOT NULL,
	[Priority] [int] NOT NULL,
	[Status] [int] NOT NULL,
	[CreatedUserId] [int] NOT NULL,
	[CreatedDate] [datetime] NOT NULL,
 CONSTRAINT [PK_Shop_ActivityRule] PRIMARY KEY CLUSTERED 
(
	[RuleId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET IDENTITY_INSERT [Shop_ActivityRule] ON
INSERT [Shop_ActivityRule] ([RuleId], [RuleName], [Priority], [Status], [CreatedUserId], [CreatedDate]) VALUES (1, N'首单赠送', 1, 1, 1, CAST(0x0000A39500C1AE08 AS DateTime))
INSERT [Shop_ActivityRule] ([RuleId], [RuleName], [Priority], [Status], [CreatedUserId], [CreatedDate]) VALUES (2, N'满额赠送', 1, 1, 1, CAST(0x0000A39500C1BDAD AS DateTime))
INSERT [Shop_ActivityRule] ([RuleId], [RuleName], [Priority], [Status], [CreatedUserId], [CreatedDate]) VALUES (3, N'赠优惠劵', 1, 1, 1, CAST(0x0000A38B0109730B AS DateTime))
INSERT [Shop_ActivityRule] ([RuleId], [RuleName], [Priority], [Status], [CreatedUserId], [CreatedDate]) VALUES (4, N'包邮', 4, 1, 1, CAST(0x0000A3FE00A5B8B7 AS DateTime))
SET IDENTITY_INSERT [Shop_ActivityRule] OFF
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ActivityInfo]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_ActivityInfo](
	[ActivityId] [int] IDENTITY(1,1) NOT NULL,
	[RuleId] [int] NOT NULL,
	[BuyCategoryId] [int] NOT NULL CONSTRAINT [DF_Shop_ActivityInfo_BuyCategoryId_1]  DEFAULT ((0)),
	[BuyCategoryName] [nvarchar](100) NULL,
	[BuyProductId] [bigint] NULL,
	[BuyProductName] [nvarchar](200) NULL,
	[BuySKU] [nvarchar](200) NULL,
	[BuyCount] [int] NOT NULL,
	[CpRuleId] [int] NOT NULL CONSTRAINT [DF_Shop_ActivityInfo_CpRuleId_1]  DEFAULT ((0)),
	[CpRuleName] [nvarchar](200) NULL,
	[ProductId] [bigint] NOT NULL,
	[ProductName] [nvarchar](200) NULL,
	[SKU] [nvarchar](200) NOT NULL,
	[SalePrice] [money] NOT NULL,
	[LimitPrice] [money] NOT NULL,
	[LimitMaxPrice] [money] NULL,
	[Count] [int] NOT NULL,
	[MaxCount] [int] NOT NULL,
	[Status] [int] NOT NULL,
	[StartDate] [datetime] NOT NULL,
	[EndDate] [datetime] NOT NULL,
	[CreatedUserId] [int] NOT NULL,
	[CreatedDate] [datetime] NOT NULL,
 CONSTRAINT [PK_Shop_ActivityInfo_1] PRIMARY KEY CLUSTERED 
(
	[ActivityId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_ActivityDetail]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_ActivityDetail](
	[DetailId] [bigint] IDENTITY(1,1) NOT NULL,
	[UserId] [int] NOT NULL,
	[UserName] [nvarchar](200) NOT NULL,
	[ActivityId] [int] NOT NULL,
	[RuleId] [int] NOT NULL,
	[CreateDate] [datetime] NOT NULL,
	[OrderId] [bigint] NOT NULL,
	[OrderCode] [nvarchar](50) NOT NULL,
	[Remark] [nvarchar](max) NULL,
 CONSTRAINT [PK_Shop_ActivityDetail] PRIMARY KEY CLUSTERED 
(
	[DetailId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Shop_AccessoriesValues]') AND type in (N'U'))
BEGIN
CREATE TABLE [Shop_AccessoriesValues](
	[AccessoriesValueId] [int] IDENTITY(1,1) NOT NULL,
	[AccessoriesId] [int] NOT NULL,
	[SKU] [nvarchar](50) NOT NULL,
 CONSTRAINT [PK_Shop_AccessoriesValues] PRIMARY KEY CLUSTERED 
(
	[AccessoriesValueId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_WebMenuConfig]') AND type in (N'U'))
BEGIN
CREATE TABLE [SA_WebMenuConfig](
	[MenuID] [int] IDENTITY(1,1) NOT NULL,
	[MenuName] [nvarchar](50) NOT NULL,
	[NavURL] [nvarchar](max) NULL,
	[MenuTitle] [nvarchar](50) NULL,
	[MenuType] [int] NULL,
	[Target] [int] NULL,
	[IsUsed] [bit] NULL,
	[Sequence] [int] NOT NULL CONSTRAINT [DF_CMS_WebMenuConfig_Sequence]  DEFAULT ((0)),
	[Visible] [int] NOT NULL CONSTRAINT [DF_CMS_WebMenuConfig_Visible]  DEFAULT ((1)),
	[NavArea] [int] NOT NULL CONSTRAINT [DF_CMS_WebMenuConfig_Area]  DEFAULT ((0)),
	[URLType] [int] NOT NULL CONSTRAINT [DF_CMS_WebMenuConfig_URLType]  DEFAULT ((0)),
	[NavTheme] [nvarchar](100) NULL CONSTRAINT [DF_SA_WebMenuConfig_NavTheme]  DEFAULT (N''),
 CONSTRAINT [PK_CMS_WebMenuConfig] PRIMARY KEY CLUSTERED 
(
	[MenuID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET IDENTITY_INSERT [SA_WebMenuConfig] ON
INSERT [SA_WebMenuConfig] ([MenuID], [MenuName], [NavURL], [MenuTitle], [MenuType], [Target], [IsUsed], [Sequence], [Visible], [NavArea], [URLType], [NavTheme]) VALUES (1, N'全部', N'Home', N'', 0, 0, 1, 1, 1, 0, 0, NULL)
INSERT [SA_WebMenuConfig] ([MenuID], [MenuName], [NavURL], [MenuTitle], [MenuType], [Target], [IsUsed], [Sequence], [Visible], [NavArea], [URLType], [NavTheme]) VALUES (25, N'行业资讯', N'Category/1', N'', 1, 0, 1, 2, 1, 0, 0, NULL)
INSERT [SA_WebMenuConfig] ([MenuID], [MenuName], [NavURL], [MenuTitle], [MenuType], [Target], [IsUsed], [Sequence], [Visible], [NavArea], [URLType], [NavTheme]) VALUES (26, N'电子商务', N'Category/2', N'', 1, 0, 1, 3, 1, 0, 0, NULL)
INSERT [SA_WebMenuConfig] ([MenuID], [MenuName], [NavURL], [MenuTitle], [MenuType], [Target], [IsUsed], [Sequence], [Visible], [NavArea], [URLType], [NavTheme]) VALUES (27, N'移动互联网', N'Category/3', N'', 1, 0, 1, 4, 1, 0, 0, NULL)
INSERT [SA_WebMenuConfig] ([MenuID], [MenuName], [NavURL], [MenuTitle], [MenuType], [Target], [IsUsed], [Sequence], [Visible], [NavArea], [URLType], [NavTheme]) VALUES (28, N'产品设计', N'Category/4', N'', 1, 0, 1, 5, 1, 0, 0, NULL)
INSERT [SA_WebMenuConfig] ([MenuID], [MenuName], [NavURL], [MenuTitle], [MenuType], [Target], [IsUsed], [Sequence], [Visible], [NavArea], [URLType], [NavTheme]) VALUES (29, N'技术', N'Category/5', N'', 1, 0, 1, 6, 1, 0, 0, NULL)
INSERT [SA_WebMenuConfig] ([MenuID], [MenuName], [NavURL], [MenuTitle], [MenuType], [Target], [IsUsed], [Sequence], [Visible], [NavArea], [URLType], [NavTheme]) VALUES (30, N'图片', N'Photo', N'图片', 1, 0, 1, 7, 1, 0, 0, NULL)
INSERT [SA_WebMenuConfig] ([MenuID], [MenuName], [NavURL], [MenuTitle], [MenuType], [Target], [IsUsed], [Sequence], [Visible], [NavArea], [URLType], [NavTheme]) VALUES (36, N'用户视频', N'/sns/Video', N'', 1, 0, 1, 15, 1, 1, 0, N'')
INSERT [SA_WebMenuConfig] ([MenuID], [MenuName], [NavURL], [MenuTitle], [MenuType], [Target], [IsUsed], [Sequence], [Visible], [NavArea], [URLType], [NavTheme]) VALUES (37, N'交流圈', N'/sns/Group', N'', 1, 0, 1, 16, 1, 1, 0, N'')
INSERT [SA_WebMenuConfig] ([MenuID], [MenuName], [NavURL], [MenuTitle], [MenuType], [Target], [IsUsed], [Sequence], [Visible], [NavArea], [URLType], [NavTheme]) VALUES (47, N'晒货达人', N'/sns/Star/Pioneer', N'', 1, 0, 1, 13, 1, 1, 0, N'')
INSERT [SA_WebMenuConfig] ([MenuID], [MenuName], [NavURL], [MenuTitle], [MenuType], [Target], [IsUsed], [Sequence], [Visible], [NavArea], [URLType], [NavTheme]) VALUES (48, N'用户博客', N'/sns/Blog', N'', 1, 0, 1, 10, 1, 1, 0, N'')
INSERT [SA_WebMenuConfig] ([MenuID], [MenuName], [NavURL], [MenuTitle], [MenuType], [Target], [IsUsed], [Sequence], [Visible], [NavArea], [URLType], [NavTheme]) VALUES (50, N'男装', N'31', N'', 1, 0, 1, 2, 1, 2, 4, N'M1')
INSERT [SA_WebMenuConfig] ([MenuID], [MenuName], [NavURL], [MenuTitle], [MenuType], [Target], [IsUsed], [Sequence], [Visible], [NavArea], [URLType], [NavTheme]) VALUES (51, N'内衣', N'49', N'', 1, 0, 1, 3, 1, 2, 4, N'M1')
INSERT [SA_WebMenuConfig] ([MenuID], [MenuName], [NavURL], [MenuTitle], [MenuType], [Target], [IsUsed], [Sequence], [Visible], [NavArea], [URLType], [NavTheme]) VALUES (52, N'童装', N'61', N'', 1, 0, 1, 4, 1, 2, 4, N'M1')
INSERT [SA_WebMenuConfig] ([MenuID], [MenuName], [NavURL], [MenuTitle], [MenuType], [Target], [IsUsed], [Sequence], [Visible], [NavArea], [URLType], [NavTheme]) VALUES (53, N'美妆', N'72', N'', 1, 0, 1, 5, 1, 2, 4, N'M1')
INSERT [SA_WebMenuConfig] ([MenuID], [MenuName], [NavURL], [MenuTitle], [MenuType], [Target], [IsUsed], [Sequence], [Visible], [NavArea], [URLType], [NavTheme]) VALUES (55, N'用户社区', N'/sns/', N'', 1, 1, 1, 8, 1, 2, 0, N'M1')
INSERT [SA_WebMenuConfig] ([MenuID], [MenuName], [NavURL], [MenuTitle], [MenuType], [Target], [IsUsed], [Sequence], [Visible], [NavArea], [URLType], [NavTheme]) VALUES (62, N'女装', N'2', N'', 1, 0, 1, 1, 1, 2, 4, N'M1')
INSERT [SA_WebMenuConfig] ([MenuID], [MenuName], [NavURL], [MenuTitle], [MenuType], [Target], [IsUsed], [Sequence], [Visible], [NavArea], [URLType], [NavTheme]) VALUES (63, N'最新资讯', N'/SNS/Article/Index/17', N'', 1, 0, 1, 5, 1, 1, 0, N'')
INSERT [SA_WebMenuConfig] ([MenuID], [MenuName], [NavURL], [MenuTitle], [MenuType], [Target], [IsUsed], [Sequence], [Visible], [NavArea], [URLType], [NavTheme]) VALUES (64, N'品牌故事', N'/SNS/Article/Index/19', N'', 1, 0, 1, 9, 1, 1, 0, N'')
INSERT [SA_WebMenuConfig] ([MenuID], [MenuName], [NavURL], [MenuTitle], [MenuType], [Target], [IsUsed], [Sequence], [Visible], [NavArea], [URLType], [NavTheme]) VALUES (65, N'商品评测', N'/SNS/Article/Index/18', N'', 1, 0, 1, 7, 1, 1, 0, N'')
INSERT [SA_WebMenuConfig] ([MenuID], [MenuName], [NavURL], [MenuTitle], [MenuType], [Target], [IsUsed], [Sequence], [Visible], [NavArea], [URLType], [NavTheme]) VALUES (67, N'商城', N'/', N'', 1, 0, 1, 20, 1, 1, 0, N'')
INSERT [SA_WebMenuConfig] ([MenuID], [MenuName], [NavURL], [MenuTitle], [MenuType], [Target], [IsUsed], [Sequence], [Visible], [NavArea], [URLType], [NavTheme]) VALUES (68, N'限时抢购', N'/ProSales/CountDown', N'', 1, 0, 1, 6, 1, 2, 0, N'M1')
INSERT [SA_WebMenuConfig] ([MenuID], [MenuName], [NavURL], [MenuTitle], [MenuType], [Target], [IsUsed], [Sequence], [Visible], [NavArea], [URLType], [NavTheme]) VALUES (69, N'团购', N'/ProSales/GroupBuy', N'', 1, 0, 1, 7, 1, 2, 0, N'M1')
INSERT [SA_WebMenuConfig] ([MenuID], [MenuName], [NavURL], [MenuTitle], [MenuType], [Target], [IsUsed], [Sequence], [Visible], [NavArea], [URLType], [NavTheme]) VALUES (70, N'首页', N'/', N'', 1, 0, 1, 1, 1, 2, 0, N'Baimai')
INSERT [SA_WebMenuConfig] ([MenuID], [MenuName], [NavURL], [MenuTitle], [MenuType], [Target], [IsUsed], [Sequence], [Visible], [NavArea], [URLType], [NavTheme]) VALUES (71, N'现货特价', N'/Prosales/CountDown', N'', 1, 0, 1, 2, 1, 2, 0, N'Baimai')
INSERT [SA_WebMenuConfig] ([MenuID], [MenuName], [NavURL], [MenuTitle], [MenuType], [Target], [IsUsed], [Sequence], [Visible], [NavArea], [URLType], [NavTheme]) VALUES (72, N'品牌女装', N'2', N'', 1, 0, 1, 3, 1, 2, 4, N'Baimai')
INSERT [SA_WebMenuConfig] ([MenuID], [MenuName], [NavURL], [MenuTitle], [MenuType], [Target], [IsUsed], [Sequence], [Visible], [NavArea], [URLType], [NavTheme]) VALUES (73, N'品牌库', N'/Home/BrandsList', N'', 1, 0, 1, 4, 1, 2, 0, N'Baimai')
INSERT [SA_WebMenuConfig] ([MenuID], [MenuName], [NavURL], [MenuTitle], [MenuType], [Target], [IsUsed], [Sequence], [Visible], [NavArea], [URLType], [NavTheme]) VALUES (74, N'团购', N'/ProSales/GroupBuy', N'', 1, 0, 1, 5, 1, 2, 0, N'Baimai')
INSERT [SA_WebMenuConfig] ([MenuID], [MenuName], [NavURL], [MenuTitle], [MenuType], [Target], [IsUsed], [Sequence], [Visible], [NavArea], [URLType], [NavTheme]) VALUES (75, N'用户社区', N'/sns/', N'', 1, 1, 1, 6, 1, 2, 0, N'Baimai')
SET IDENTITY_INSERT [SA_WebMenuConfig] OFF
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_UserLog]') AND type in (N'U'))
BEGIN
CREATE TABLE [SA_UserLog](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[OPTime] [datetime] NULL,
	[Url] [nvarchar](200) NULL,
	[OPInfo] [nvarchar](max) NULL,
	[UserName] [nvarchar](50) NULL,
	[UserType] [char](2) NULL,
	[UserIP] [nvarchar](50) NULL,
 CONSTRAINT [PK_S_UserLog] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET IDENTITY_INSERT [SA_UserLog] ON
INSERT [SA_UserLog] ([ID], [OPTime], [Url], [OPInfo], [UserName], [UserType], [UserIP]) VALUES (1, CAST(0x0000A3400006E573 AS DateTime), N'http://localhost:8051/admin/login.aspx', N'登录成功', N'admin', N'AA', N'::1')
INSERT [SA_UserLog] ([ID], [OPTime], [Url], [OPInfo], [UserName], [UserType], [UserIP]) VALUES (2, CAST(0x0000A340000B8384 AS DateTime), N'http://localhost:8051/admin/SysManage/Modify.aspx?id=762&TreeType=0', N'编辑菜单：【用户注册统计】', N'admin', N'AA', N'::1')
INSERT [SA_UserLog] ([ID], [OPTime], [Url], [OPInfo], [UserName], [UserType], [UserIP]) VALUES (3, CAST(0x0000A340000B976D AS DateTime), N'http://localhost:8051/admin/SysManage/Modify.aspx?id=757&TreeType=0', N'编辑菜单：【销售量统计】', N'admin', N'AA', N'::1')
INSERT [SA_UserLog] ([ID], [OPTime], [Url], [OPInfo], [UserName], [UserType], [UserIP]) VALUES (4, CAST(0x0000A340000BC419 AS DateTime), N'http://localhost:8051/admin/SysManage/add.aspx?TreeType=0', N'添加菜单：【注册来源统计】', N'admin', N'AA', N'::1')
INSERT [SA_UserLog] ([ID], [OPTime], [Url], [OPInfo], [UserName], [UserType], [UserIP]) VALUES (5, CAST(0x0000A340000BE0DF AS DateTime), N'http://localhost:8051/admin/SysManage/add.aspx?TreeType=0', N'添加菜单：【订单统计】', N'admin', N'AA', N'::1')
INSERT [SA_UserLog] ([ID], [OPTime], [Url], [OPInfo], [UserName], [UserType], [UserIP]) VALUES (6, CAST(0x0000A340000C030E AS DateTime), N'http://localhost:8051/admin/SysManage/add.aspx?TreeType=0', N'添加菜单：【商品销售排行】', N'admin', N'AA', N'::1')
INSERT [SA_UserLog] ([ID], [OPTime], [Url], [OPInfo], [UserName], [UserType], [UserIP]) VALUES (7, CAST(0x0000A340000C1CAB AS DateTime), N'http://localhost:8051/admin/SysManage/add.aspx?TreeType=0', N'添加菜单：【商品统计】', N'admin', N'AA', N'::1')
INSERT [SA_UserLog] ([ID], [OPTime], [Url], [OPInfo], [UserName], [UserType], [UserIP]) VALUES (8, CAST(0x0000A340000C3244 AS DateTime), N'http://localhost:8051/admin/SysManage/add.aspx?TreeType=0', N'添加菜单：【订单统计】', N'admin', N'AA', N'::1')
INSERT [SA_UserLog] ([ID], [OPTime], [Url], [OPInfo], [UserName], [UserType], [UserIP]) VALUES (9, CAST(0x0000A340000C5271 AS DateTime), N'http://localhost:8051/admin/SysManage/add.aspx?TreeType=0', N'添加菜单：【客户活跃数】', N'admin', N'AA', N'::1')
INSERT [SA_UserLog] ([ID], [OPTime], [Url], [OPInfo], [UserName], [UserType], [UserIP]) VALUES (10, CAST(0x0000A340000C6989 AS DateTime), N'http://localhost:8051/admin/SysManage/add.aspx?TreeType=0', N'添加菜单：【品牌销售排行】', N'admin', N'AA', N'::1')
INSERT [SA_UserLog] ([ID], [OPTime], [Url], [OPInfo], [UserName], [UserType], [UserIP]) VALUES (11, CAST(0x0000A340000CD8A1 AS DateTime), N'http://localhost:8051/admin/SysManage/Modify.aspx?id=758&TreeType=0', N'编辑菜单：【订单统计】', N'admin', N'AA', N'::1')
INSERT [SA_UserLog] ([ID], [OPTime], [Url], [OPInfo], [UserName], [UserType], [UserIP]) VALUES (12, CAST(0x0000A340000D418F AS DateTime), N'http://localhost:8051/admin/SysManage/treelist.aspx?TreeType=0', N'删除菜单', N'admin', N'AA', N'::1')
INSERT [SA_UserLog] ([ID], [OPTime], [Url], [OPInfo], [UserName], [UserType], [UserIP]) VALUES (13, CAST(0x0000A340000D4CEC AS DateTime), N'http://localhost:8051/admin/SysManage/Modify.aspx?id=858&TreeType=0', N'编辑菜单：【订单来源统计】', N'admin', N'AA', N'::1')
INSERT [SA_UserLog] ([ID], [OPTime], [Url], [OPInfo], [UserName], [UserType], [UserIP]) VALUES (14, CAST(0x0000A39500BFDC43 AS DateTime), N'http://localhost:8078/admin/login.aspx', N'登录成功', N'admin', N'AA', N'::1')
INSERT [SA_UserLog] ([ID], [OPTime], [Url], [OPInfo], [UserName], [UserType], [UserIP]) VALUES (15, CAST(0x0000A39500C097AB AS DateTime), N'http://localhost:8078/admin/login.aspx', N'登录成功', N'admin', N'AA', N'::1')
INSERT [SA_UserLog] ([ID], [OPTime], [Url], [OPInfo], [UserName], [UserType], [UserIP]) VALUES (16, CAST(0x0000A39500C0BA40 AS DateTime), N'http://localhost:8078/admin/login.aspx', N'登录成功', N'admin', N'AA', N'::1')
INSERT [SA_UserLog] ([ID], [OPTime], [Url], [OPInfo], [UserName], [UserType], [UserIP]) VALUES (17, CAST(0x0000A39500C15488 AS DateTime), N'http://localhost:8078/admin/SysManage/add.aspx?TreeType=0', N'添加菜单：【促销管理】', N'admin', N'AA', N'::1')
INSERT [SA_UserLog] ([ID], [OPTime], [Url], [OPInfo], [UserName], [UserType], [UserIP]) VALUES (18, CAST(0x0000A39500C1865C AS DateTime), N'http://localhost:8078/admin/SysManage/add.aspx?TreeType=0', N'添加菜单：【促销规则】', N'admin', N'AA', N'::1')
INSERT [SA_UserLog] ([ID], [OPTime], [Url], [OPInfo], [UserName], [UserType], [UserIP]) VALUES (19, CAST(0x0000A39500C19D42 AS DateTime), N'http://localhost:8078/admin/SysManage/add.aspx?TreeType=0', N'添加菜单：【促销活动】', N'admin', N'AA', N'::1')
INSERT [SA_UserLog] ([ID], [OPTime], [Url], [OPInfo], [UserName], [UserType], [UserIP]) VALUES (20, CAST(0x0000A39500C2BF0D AS DateTime), N'http://localhost:8078/admin/SysManage/ConfigSystem.aspx', N'添加系统参数：【Shop_CouponRule_IsCategory】', N'admin', N'AA', N'::1')
INSERT [SA_UserLog] ([ID], [OPTime], [Url], [OPInfo], [UserName], [UserType], [UserIP]) VALUES (21, CAST(0x0000A39500C3238A AS DateTime), N'http://localhost:8078/admin/SysManage/add.aspx?TreeType=0', N'添加菜单：【微社区管理】', N'admin', N'AA', N'::1')
INSERT [SA_UserLog] ([ID], [OPTime], [Url], [OPInfo], [UserName], [UserType], [UserIP]) VALUES (22, CAST(0x0000A39500C47AEB AS DateTime), N'http://localhost:8078/admin/SysManage/add.aspx?TreeType=0', N'添加菜单：【小组管理】', N'admin', N'AA', N'::1')
INSERT [SA_UserLog] ([ID], [OPTime], [Url], [OPInfo], [UserName], [UserType], [UserIP]) VALUES (23, CAST(0x0000A39500C4A4D0 AS DateTime), N'http://localhost:8078/admin/SysManage/add.aspx?TreeType=0', N'添加菜单：【添加小组】', N'admin', N'AA', N'::1')
INSERT [SA_UserLog] ([ID], [OPTime], [Url], [OPInfo], [UserName], [UserType], [UserIP]) VALUES (24, CAST(0x0000A39500C4C55C AS DateTime), N'http://localhost:8078/admin/SysManage/add.aspx?TreeType=0', N'添加菜单：【微社区话题】', N'admin', N'AA', N'::1')
INSERT [SA_UserLog] ([ID], [OPTime], [Url], [OPInfo], [UserName], [UserType], [UserIP]) VALUES (25, CAST(0x0000A39500C4D704 AS DateTime), N'http://localhost:8078/admin/SysManage/Modify.aspx?id=865&TreeType=0', N'编辑菜单：【小组管理】', N'admin', N'AA', N'::1')
INSERT [SA_UserLog] ([ID], [OPTime], [Url], [OPInfo], [UserName], [UserType], [UserIP]) VALUES (26, CAST(0x0000A39500C4EB12 AS DateTime), N'http://localhost:8078/admin/SysManage/Modify.aspx?id=866&TreeType=0', N'编辑菜单：【添加小组】', N'admin', N'AA', N'::1')
INSERT [SA_UserLog] ([ID], [OPTime], [Url], [OPInfo], [UserName], [UserType], [UserIP]) VALUES (27, CAST(0x0000A39500C51634 AS DateTime), N'http://localhost:8078/admin/SysManage/Modify.aspx?id=391&TreeType=0', N'编辑菜单：【视频管理】', N'admin', N'AA', N'::1')
INSERT [SA_UserLog] ([ID], [OPTime], [Url], [OPInfo], [UserName], [UserType], [UserIP]) VALUES (28, CAST(0x0000A39500C76084 AS DateTime), N'http://localhost:8078/admin/SysManage/add.aspx?TreeType=0', N'添加菜单：【退单管理】', N'admin', N'AA', N'::1')
INSERT [SA_UserLog] ([ID], [OPTime], [Url], [OPInfo], [UserName], [UserType], [UserIP]) VALUES (29, CAST(0x0000A39500C78100 AS DateTime), N'http://localhost:8078/admin/SysManage/add.aspx?TreeType=0', N'添加菜单：【退单管理】', N'admin', N'AA', N'::1')
INSERT [SA_UserLog] ([ID], [OPTime], [Url], [OPInfo], [UserName], [UserType], [UserIP]) VALUES (30, CAST(0x0000A39500C7AADE AS DateTime), N'http://localhost:8078/admin/SysManage/add.aspx?TreeType=0', N'添加菜单：【代退货】', N'admin', N'AA', N'::1')
INSERT [SA_UserLog] ([ID], [OPTime], [Url], [OPInfo], [UserName], [UserType], [UserIP]) VALUES (31, CAST(0x0000A39500C8BBD1 AS DateTime), N'http://localhost:8078/admin/SysManage/add.aspx?TreeType=0', N'添加菜单：【代退货】', N'admin', N'AA', N'::1')
INSERT [SA_UserLog] ([ID], [OPTime], [Url], [OPInfo], [UserName], [UserType], [UserIP]) VALUES (32, CAST(0x0000A39500C92CA8 AS DateTime), N'http://localhost:8078/admin/SysManage/Modify.aspx?id=868&TreeType=0', N'编辑菜单：【退单管理】', N'admin', N'AA', N'::1')
INSERT [SA_UserLog] ([ID], [OPTime], [Url], [OPInfo], [UserName], [UserType], [UserIP]) VALUES (33, CAST(0x0000A39500C95ADF AS DateTime), N'http://localhost:8078/admin/SysManage/treelist.aspx?TreeType=0&all=1', N'删除菜单', N'admin', N'AA', N'::1')
SET IDENTITY_INSERT [SA_UserLog] OFF
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_TreeFavorite]') AND type in (N'U'))
BEGIN
CREATE TABLE [SA_TreeFavorite](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[UserID] [int] NOT NULL,
	[NodeID] [int] NOT NULL,
	[CreatDate] [datetime] NOT NULL,
	[OrderID] [int] NULL,
 CONSTRAINT [PK_S_TreeFavorite] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_Tree]') AND type in (N'U'))
BEGIN
CREATE TABLE [SA_Tree](
	[NodeID] [int] IDENTITY(1,1) NOT NULL,
	[TreeText] [nvarchar](100) NOT NULL,
	[ParentID] [int] NOT NULL,
	[ParentPath] [nvarchar](50) NULL,
	[Location] [nvarchar](50) NULL,
	[OrderID] [int] NULL,
	[Comment] [nvarchar](50) NULL,
	[Url] [nvarchar](100) NULL,
	[PermissionID] [int] NULL,
	[ImageUrl] [nvarchar](100) NULL,
	[ModuleID] [int] NULL,
	[KeShiDM] [int] NULL,
	[KeshiPublic] [nvarchar](50) NULL,
	[TreeType] [smallint] NOT NULL CONSTRAINT [DF_SA_Tree_TreeType]  DEFAULT ((0)),
	[Enabled] [bit] NOT NULL CONSTRAINT [DF_SA_Tree_IsValid]  DEFAULT ((1)),
 CONSTRAINT [PK_SA_Tree] PRIMARY KEY CLUSTERED 
(
	[NodeID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET IDENTITY_INSERT [SA_Tree] ON
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (12, N'系统管理', 0, N'0', N'0.28', 28, N'', N'', 6, N'/admin/Images/MenuImg/folder16.gif', -1, 17, N'false', 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (15, N'用户帐号管理', 12, N'0.12', N'12.1', 1, N'', N'', 1, N'/admin/Images/MenuImg/folder16.gif', -1, 17, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (16, N'后台菜单管理', 152, NULL, N'152.2', 2, N'', N'SysManage/treelist.aspx?TreeType=0&all=1', 2, N'/admin/Images/MenuImg/folder16.gif', -1, 17, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (21, N'用户管理', 15, NULL, N'15.1', 1, N'', N'Accounts/Admin/UserAdmin.aspx', 3, N'/admin/Images/MenuImg/folder16.gif', -1, 17, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (22, N'角色管理', 15, NULL, N'15.2', 2, N'', N'Accounts/Admin/RoleAdmin.aspx', 4, N'/admin/Images/MenuImg/folder16.gif', -1, 17, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (23, N'权限管理', 15, NULL, N'15.3', 3, N'', N'Accounts/Admin/PermissionAdmin.aspx', 4, N'/admin/Images/MenuImg/folder16.gif', -1, 17, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (152, N'配置管理', 12, NULL, N'12.5', 5, N'', N'', 2, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (153, N'参数管理', 152, NULL, N'152.3', 3, N'', N'SysManage/ConfigSystem.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (154, N' 用户日志', 392, NULL, N'152.4', 4, N'', N'sysmanage/UserLog.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (155, N'错误日志', 392, NULL, N'152.5', 5, N'', N'sysManage/ErrorLog.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (157, N'功能行为管理', 15, NULL, N'15.4', 4, N'', N'Accounts/Admin/Actions.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (158, N'多语言管理', 152, NULL, N'152.2', 2, N'', N'sysManage/MultiLanguage.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (296, N'清空缓存', 152, NULL, N'152.6', 6, N'', N'sysManage/ClearCache.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (339, N'内容管理', 0, NULL, N'0.12', 12, N'', N'', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (343, N'类型管理', 390, NULL, N'390.8', 8, N'', N'CMS/ClassType/List.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (347, N'投票管理', 645, NULL, N'352.10', 10, N'', N'', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (349, N'问卷管理', 347, NULL, N'322.5', 2, NULL, N'Poll/Forms/index.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (350, N'投票用户管理', 347, NULL, N'347.3', 3, N'', N'Poll/Users/List.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (351, N'问卷统计', 347, NULL, N'347.4', 4, N'', N'Poll/Options/showcount.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (352, N'网站设置', 0, NULL, N'0.1', 1, N'', N'', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (353, N'友情链接', 388, NULL, N'388.5', 5, N'', N'Settings/FriendlyLink/ListNew.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (354, N'在线用户', 392, NULL, N'15.9', 9, N'', N'SysManage/OnlineUser.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (355, N'站内信', 384, NULL, N'387.5', 5, N'', N'', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (357, N'发件箱', 355, NULL, N'355.2', 2, N'', N'members/SiteMessages/list.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (358, N'发消息', 355, NULL, N'355.3', 3, N'', N'Members/SiteMessages/add.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (359, N'栏目管理', 390, NULL, N'390.7', 7, N'', N'CMS/ContentClass/List.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (360, N'内容管理', 390, NULL, N'390.4', 4, N'', N'CMS/Content/List.aspx?type=0', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (362, N'邮件配置', 634, NULL, N'389.21', 21, N'', N'Accounts/MailConfigInfo.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (364, N'企业管理', 363, NULL, N'363.1', 1, N'', N'Ms/Enterprise/List.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (365, N'支付方式管理', 478, NULL, N'478.26', 26, N'支付方式管理', N'Payment/PaymentModes.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (366, N'邮件群发', 634, NULL, N'389.23', 23, N'', N'Accounts/SendEmail.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (368, N'敏感词管理', 389, NULL, N'389.4', 4, N'', N'Settings/FilterWord/list.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (369, N'留言管理', 645, NULL, N'339.12', 12, N'留言管理', N'', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (370, N'留言管理', 369, NULL, N'369.1', 1, N'', N'Members/Guestbook/GuestBookList.aspx?type=0', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (371, N'网站设置', 388, NULL, N'388.0', 0, N'', N'SysManage/WebSiteConfig.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (372, N'导航菜单', 388, NULL, N'388.5', 5, N'', N'Settings/MainMenus/List.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (376, N'视频专辑管理', 391, NULL, N'339.6', 6, N'', N'CMS/VideoAlbum/List.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (378, N'视频信息管理', 391, NULL, N'391.9', 9, N'', N'CMS/Video/List.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (379, N'用户类别管理', 15, NULL, N'15.30', 30, N'', N'Accounts/Admin/UserTypeAdmin.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (380, N'相册管理', 339, NULL, N'339.3', 3, N'', N'', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (382, N'相册管理', 380, NULL, N'380.1', 1, N'', N'CMS/PhotoAlbum/List.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (383, N'商家管理', 384, NULL, N'384.4', 4, N'', N'', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (384, N'会员管理', 0, NULL, N'0.14', 14, N'', N'', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (385, N'商品管理', 0, NULL, N'0.5', 5, N'', N'', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (386, N'交易管理', 0, NULL, N'0.6', 6, N'', N'', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (388, N'基本设置', 352, NULL, N'352.1', 1, N'', N'', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (389, N'运营设置', 352, NULL, N'352.3', 3, N'', N'', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (390, N'文章管理', 339, NULL, N'339.1', 1, N'', N'', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (391, N'视频管理', 339, NULL, N'339.5', 5, N'', N'/Admin/SNS/PostsVideo/List.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (392, N'日志管理', 12, NULL, N'12.7', 7, N'', N'', 95, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (393, N'用户权限设置', 383, NULL, N'383.1', 1, N'', N'Ms/Enterprise/EnterpriseRoleAssignment.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (394, N'图片分类', 380, NULL, N'380.3', 3, N'', N'CMS/PhotoClass/List.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (399, N'企业菜单管理', 152, NULL, N'152.40', 40, N'', N'SysManage/treelist.aspx?TreeType=1&all=1', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (409, N'图片管理', 380, NULL, N'380.3', 3, N'', N'CMS/Photo/List.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (410, N'视频分类管理', 391, NULL, N'391.8', 8, N'', N'CMS/VideoClass/List.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (420, N'广告管理', 389, NULL, N'389.6', 6, N'', N'Settings/AdvertisePosition/List.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (423, N'企业管理', 383, NULL, N'383.3', 3, N'', N'Ms/Enterprise/List.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (424, N'未分类商品', 476, NULL, N'476.6', 6, N'', N'shop/Products/ProductsNoCategories.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (425, N'品牌管理', 474, NULL, N'474.4', 4, N'', N'shop/Brands/AList.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (426, N'在售商品', 476, NULL, N'476.2', 2, N'', N'shop/Products/ProductsInStock.aspx?SaleStatus=1', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (427, N'下架商品', 476, NULL, N'476.3', 3, N'', N'shop/Products/ProductsInStock.aspx?SaleStatus=0', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (428, N'商品推荐', 476, NULL, N'385.5', 5, N'', N'shop/Products/ProductsStationModes.aspx?type=0', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (429, N'添加新商品', 476, NULL, N'476.1', 1, N'', N'Shop/Products/ProductAdd.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (430, N'商品类型管理', 475, NULL, N'385.3', 3, N'', N'Shop/ProductType/list.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (431, N'热门关键词', 476, NULL, N'385.8', 8, N'', N'shop/Products/HotKeyword.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (432, N'批量上传', 476, NULL, N'385.9', 9, N'', N'Shop/Products/ProductsBatchUpload.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (433, N'商品分类', 474, NULL, N'385.1', 1, N'', N'shop/ShopCategories/List.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (435, N'导出商品', 476, NULL, N'385.10', 10, N'', N'Shop/Products/ProductsExport.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (437, N'积分管理', 384, NULL, N'384.3', 3, N'', N'', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (438, N'积分规则管理', 437, NULL, N'437.3', 3, N'', N'Members/Points/PointsRule.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (439, N'积分限制管理', 437, NULL, N'437.3', 3, N'', N'Members/Points/PointsLimit.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (440, N'兑换管理', 630, NULL, N'630.10', 10, N'', N'', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (441, N'礼品管理', 440, NULL, N'440.1', 1, N'', N'Shop/Gift/GiftsList.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (443, N'商品评论', 481, NULL, N'481.8', 8, N'', N'shop/ProductReview/list.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (447, N'社区管理', 0, NULL, N'0.9', 9, N'', N'', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (448, N'分享管理', 447, NULL, N'447.2', 2, N'', N'', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (449, N'群组管理', 447, NULL, N'447.6', 6, N'', N'', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (450, N'专辑管理', 447, NULL, N'447.4', 4, N'', N'', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (452, N'商品分享分类', 514, NULL, N'514.3', 3, N'', N'SNS/Categories/List.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (453, N'已分类商品分享', 448, NULL, N'448.1', 1, N'', N'SNS/Products/Listex.aspx?type=0', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (454, N'未分类图片分享', 448, NULL, N'448.4', 4, N'', N'SNS/Photos/Listex.aspx?type=0', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (455, N'视频分享', 448, NULL, N'448.6', 6, N'', N'SNS/Posts/PostsVideo.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (456, N'全部动态', 448, NULL, N'448.7', 7, N'', N'SNS/Posts/Posts.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (458, N'专辑管理', 450, NULL, N'450.3', 3, N'', N'SNS/UserAlbums/UserAlbums.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (459, N'专辑分类', 450, NULL, N'450.4', 4, N'', N'SNS/UserAlbums/TypeList.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (462, N'群组列表', 449, NULL, N'449.3', 3, N'', N'SNS/Groups/Group.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (463, N'群组主题', 449, NULL, N'449.4', 4, N'', N'SNS/Groups/GroupTopics.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (464, N'API接口设置', 389, NULL, N'389.1', 1, N'', N'Settings/APIConfig.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (465, N'商品标签', 514, NULL, N'514.8', 8, N'', N'SNS/Products/TagsList.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (466, N'搜索日志', 516, NULL, N'451.9', 9, N'', N'SNS/SearchWord/SearchLog.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (467, N'会员管理', 384, NULL, N'384.2', 2, N'', N'', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (468, N'会员等级_SNS', 467, NULL, N'467.11', 11, N'', N'SNS/Members/GradeList.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (469, N'会员管理', 467, NULL, N'467.1', 1, N'', N'Members/MembershipManage/list.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (470, N'达人类型', 575, NULL, N'467.6', 6, N'', N'SNS/Star/StarTypeList.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (471, N'达人管理', 575, NULL, N'467.7', 7, N'', N'SNS/Star/Star.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (472, N'达人排行', 575, NULL, N'467.8', 8, N'', N'SNS/Star/StarRank.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (474, N'品牌与分类', 385, NULL, N'385.1', 1, N'', N'', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (475, N'类型与规格', 385, NULL, N'385.3', 3, N'', N'', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (476, N'商品管理', 385, NULL, N'385.4', 4, N'', N'', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (477, N'订单管理', 386, NULL, N'386.2', 2, N'', N'', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
GO
print 'Processed 100 total records'
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (478, N'支付管理', 386, NULL, N'386.3', 3, N'', N'', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (479, N'物流配送', 386, NULL, N'386.4', 4, N'', N'', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (480, N'快递单管理', 386, NULL, N'386.5', 5, N'', N'', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (481, N'评论咨询', 385, NULL, N'385.8', 8, N'', N'', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (482, N'商品标签分类', 514, NULL, N'514.7', 7, N'', N'SNS/Products/TagTypeList.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (483, N'礼品分类', 440, NULL, N'440.2', 2, N'', N'Shop/Gift/CategoryList.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (484, N'采集淘宝分类', 514, NULL, N'514.2', 2, N'', N'SNS/TaoBaoCate/TaoBaoCateList.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (485, N'SEO关联链接', 633, NULL, N'389.5', 5, N'', N'Settings/SEORelation/List.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (487, N'图片分类', 514, NULL, N'451.5', 5, N'', N'SNS/Categories/List.aspx?type=1', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (489, N'举报类型', 516, NULL, N'451.12', 12, N'', N'SNS/Report/TypeList.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (490, N'举报管理', 516, NULL, N'451.13', 13, N'', N'SNS/Report/Report.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (492, N'更新统计数据', 515, NULL, N'515.10', 10, N'', N'SNS/Members/UpdateCount.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (493, N'热门搜索排行', 516, NULL, N'451.10', 10, N'', N'SNS/SearchWord/SearchTop.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (494, N'小组标签', 449, NULL, N'449.1', 1, N'', N'SNS/Groups/GroupTags.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (496, N'用户实名认证', 467, NULL, N'467.3', 3, N'', N'Members/UsersApprove/List.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (497, N'未分类商品分享', 448, NULL, N'448.2', 2, N'', N'SNS/Products/Listex.aspx?type=1', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (498, N'已分类图片分享', 448, NULL, N'448.5', 5, N'', N'SNS/Photos/Listex.aspx?type=1', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (499, N'社区SEO设置', 515, NULL, N'389.13', 13, N'', N'SNS/Setting/SEOConfig.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (500, N'全部评论', 448, NULL, N'448.12', 12, N'', N'SNS/Comments/List.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (502, N'店铺管理', 501, NULL, N'501.1', 1, N'', N'', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (503, N'商品管理', 501, NULL, N'501.2', 2, N'', N'', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (505, N'图片标签', 514, NULL, N'451.4', 4, N'', N'SNS/Photos/PhotoTags.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (506, N'分享设置', 515, NULL, N'515.5', 5, N'', N'SNS/Posts/Setting.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (512, N'界面设置', 515, NULL, N'515.6', 6, N'', N'SNS/ViewConfig/ViewConfig.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (513, N'社区设置', 0, NULL, N'0.10', 10, N'', N'', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (514, N'基础设置', 513, NULL, N'513.1', 1, N'', N'', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (515, N'功能设置', 513, NULL, N'513.3', 3, N'', N'', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (516, N'监控管理', 447, NULL, N'447.10', 10, N'', N'', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (519, N'邮件模板', 634, NULL, N'389.22', 22, N'', N'Ms/EmailTemplet/TempletList.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (520, N'用户标签管理', 467, NULL, N'467.8', 8, N'', N'SNS/Members/UserTags.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (521, N'淘宝商品采集', 514, NULL, N'514.1', 1, N'', N'/Admin/SNS/Products/ProductDatas.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (522, N'水印设置', 389, NULL, N'389.12', 12, N'', N'Ms/WaterMarks/Setting.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (524, N'会员注册信息', 388, NULL, N'388.13', 13, N'', N'Settings/RegistStatement.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (534, N'静态页面生成', 536, NULL, N'390.10', 10, N'', N'CMS/Content/ToStatic.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (535, N'文章SEO设置', 633, NULL, N'389.14', 14, N'', N'CMS/Setting/SEOConfig.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (536, N'功能设置', 339, NULL, N'339.4', 4, N'', N'', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (539, N'标签管理', 385, NULL, N'385.2', 2, N'', N'', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (540, N'标签分类', 539, NULL, N'539.1', 1, N'', N'Shop/TagsType/List.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (541, N'标签管理', 539, NULL, N'539.2', 2, N'', N'Shop/Tags/List.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (542, N'添加内容', 390, NULL, N'390.1', 1, N'', N'CMS/Content/add.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (543, N'会员等级管理', 467, NULL, N'467.2', 2, N'', N'Members/UserRank/RankList.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (544, N'会员管理_SNS', 467, NULL, N'467.12', 12, N'', N'SNS/Members/Members.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (545, N'商品回收站', 476, NULL, N'476.7', 7, N'', N'Shop/Products/ProductRecycle.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (546, N'评论管理', 390, NULL, N'390.12', 12, N'', N'CMS/Comments/List.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (547, N'图片存储设置', 515, NULL, N'515.3', 3, N'', N'SNS/Setting/StoreConfig.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (548, N'网站模版管理', 388, NULL, N'388.8', 8, N'', N'Ms/Themes/List.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (549, N'图片存储设置', 536, NULL, N'536.5', 5, N'', N'CMS/Setting/StoreConfig.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (550, N'缩略图生成', 514, NULL, N'514.15', 15, N'', N'/Admin/SNS/Photos/ImageReGen.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (551, N'缩略图生成', 380, NULL, N'380.3', 3, N'', N'/Admin/CMS/Photo/PhotoReGen.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (552, N'社区静态生成', 515, NULL, N'515.11', 11, N'', N'/Admin/SNS/Setting/SNSToStatic.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (554, N'地区管理', 152, NULL, N'152.10', 10, N'', N'Ms/Regions/List.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (555, N'地区推荐管理', 389, NULL, N'389.18', 18, N'', N'Ms/RegionRec/RecList.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (556, N'缩略图设置', 389, NULL, N'389.13', 13, N'', N'Ms/ThumbnailSize/ThumSizeList.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (557, N'采集工具设置', 389, NULL, N'389.15', 15, N'', N'SysManage/GetImageJs.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (562, N'订单可选项', 477, NULL, N'477.1', 1, N'', N'Shop/Order/OrderLookupList.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (563, N'配送设置', 561, NULL, N'561.2', 2, N'', N'', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (564, N'地区分组', 479, NULL, N'479.1', 1, N'', N'Ms/Regions/AreaList.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (565, N'配送方式', 479, NULL, N'479.1', 1, N'', N'Shop/Shipping/ShippingType.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (566, N'添加配送方式', 479, NULL, N'479.1', 1, N'', N'Shop/Shipping/AddShippingType.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (567, N'订单管理', 477, NULL, N'477.1', 1, N'', N'Shop/Order/OrdersList.aspx?type=0', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (572, N'批发规则', 386, NULL, N'386.4', 4, N'', N'', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (573, N'批发规则管理', 572, NULL, N'572.1', 1, N'', N'Shop/WholeSale/SalesRule.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (574, N'批发商品管理', 572, NULL, N'572.2', 2, N'', N'Shop/WholeSale/SalesProductList.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (575, N'社区达人', 513, NULL, N'513.5', 5, N'', N'', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (576, N'商城SEO设置', 633, NULL, N'389.12', 12, N'', N'Shop/Setting/SEOConfig.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (577, N'用户博客', 448, NULL, N'448.8', 8, N'', N'SNS/Posts/UserBlog.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (578, N'微博绑定', 634, NULL, N'389.24', 24, N'', N'Accounts/UserBind.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (579, N'商品咨询', 481, NULL, N'481.3', 3, N'', N'Shop/Consultations/list.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (580, N'APP信息推送', 389, NULL, N'389.20', 20, N'', N'Ms/Push/BaiDuPush.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (581, N'微信菜单管理', 582, NULL, N'582.8', 8, N'', N'WeChat/Menu/MenuList.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (582, N'微信运营管理', 645, NULL, N'645.1', 1, N'', N'', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (583, N'微信用户管理', 582, NULL, N'582.1', 1, N'', N'WeChat/User/UserList.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (584, N'用户小组管理', 582, NULL, N'582.2', 2, N'', N'WeChat/Group/GroupList.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (585, N'用户消息记录', 774, NULL, N'582.2', 2, N'', N'WeChat/User/RequestMsg.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (586, N'指令菜单', 582, NULL, N'582.9', 9, N'', N'WeChat/Command/CommandList.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (587, N'系统功能指令', 775, NULL, N'582.7', 7, N'', N'WeChat/Action/ActionList.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (588, N'智能回复设置', 582, NULL, N'582.4', 4, N'', N'WeChat/PostMsg/RuleList.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (589, N'默认回复消息', 582, NULL, N'582.3', 3, N'', N'WeChat/SysMsg/MsgList.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (590, N'微博群发', 634, NULL, N'389.25', 25, N'', N'Ms/WeiBo/WeiBoList.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (591, N'二维码设置', 388, NULL, N'388.7', 7, N'', N'Ms/QR/QRCode.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (595, N'商家菜单管理', 152, NULL, N'152.21', 21, N'', N'SysManage/treelist.aspx?TreeType=4&all=1', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (596, N'商家管理', 383, NULL, N'383.3', 3, N'', N'Shop/Supplier/SupplierInfo/list.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (597, N'优惠券管理', 630, NULL, N'385.8', 8, N'', N'', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (598, N'优惠券分类', 597, NULL, N'597.1', 1, N'', N'Shop/Coupon/ClassList.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (599, N'优惠券活动', 597, NULL, N'597.2', 2, N'', N'Shop/Coupon/RuleList.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (600, N'我的店铺', 604, NULL, N'604.2', 2, N'', N'', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (601, N'优惠券管理', 597, NULL, N'597.3', 3, N'', N'Shop/Coupon/CouponList.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (602, N'商家信息', 605, NULL, N'605.4', 4, N'', N'Home/Show', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (603, N'商家设置', 605, NULL, N'605.3', 3, N'', N'Home/Modify', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (604, N'基本设置', 0, NULL, N'0.0', 0, N'', N'', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (605, N'帐号管理', 604, NULL, N'604.1', 1, N'', N'', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (606, N'登录信息', 605, NULL, N'605.1', 1, N'', N'Home/UserModify', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (607, N'修改密码', 605, NULL, N'605.2', 2, N'', N'Home/UserPass', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (608, N'过期优惠券', 597, NULL, N'597.4', 4, N'', N'Shop/Coupon/CouponHistorys.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (609, N'交易管理', 0, NULL, N'0.2', 2, N'', N'', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (610, N'数据统计', 0, NULL, N'0.3', 3, N'', N'', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (611, N'订单管理', 609, NULL, N'609.2', 2, N'', N'Order/Orders?os=2', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (612, N'供货统计', 610, NULL, N'610.1', 1, N'', N'Home/Supply', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (613, N'短信接口设置', 389, NULL, N'389.19', 19, N'', N'Ms/SMS/Settings.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (614, N'销量统计', 610, NULL, N'610.2', 2, N'', N'Home/SalesLine', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (615, N'业绩走势', 610, NULL, N'610.3', 3, N'', N'Home/SalesLine?SalesType=2', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 1)
GO
print 'Processed 200 total records'
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (616, N'商品管理', 0, NULL, N'0.1', 1, N'', N'', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (618, N'提现管理', 478, NULL, N'478.2', 2, N'', N'Pay/BalanceDrawRequest/List.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (621, N'商品审核', 476, NULL, N'476.3', 3, N'', N'shop/Products/ProductsInStock.aspx?SaleStatus=-1', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (622, N'未审核商品', 616, NULL, N'616.2', 2, N'', N'Product/InStock/-1', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (623, N'仓库中的商品', 616, NULL, N'616.3', 3, N'', N'Product/InStock/0', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (624, N'出售中的商品', 616, NULL, N'616.4', 4, N'', N'Product/InStock/1', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (625, N'推荐邀请', 592, NULL, N'592.3', 3, N'', N'CMS/Content/UpdateSimArti.aspx?classid=40', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (626, N'添加新商品', 616, NULL, N'616.1', 1, N'', N'Product/ProductAdd', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (627, N'邀请管理', 467, NULL, N'467.12', 12, N'', N'Members/UserInvite/list.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (628, N'定时微博发布', 634, NULL, N'634.26', 26, N'', N'Ms/WeiBo/WeiBoTaskList.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (629, N'淘宝店铺同步', 476, NULL, N'476.11', 11, N'', N'Ms/TaoData/GetTaoList.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (630, N'促销管理', 0, NULL, N'0.8', 8, N'', N'', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (631, N'限时抢购', 630, NULL, N'630.1', 1, N'', N'', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (632, N'限时抢购', 631, NULL, N'631.1', 1, N'', N'Shop/PromoteSales/CountDownList.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (633, N'网站优化', 352, NULL, N'352.5', 5, N'', N'', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (634, N'营销设置', 352, NULL, N'352.6', 6, N'', N'', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (635, N'充值管理', 478, NULL, N'478.3', 3, N'', N'Pay/RechargeRequest/List.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (636, N'团购管理', 630, NULL, N'630.2', 2, N'', N'', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (637, N'团购管理', 636, NULL, N'636.1', 1, N'', N'Shop/PromoteSales/GroupBuyList.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (638, N'积分兑换管理', 440, NULL, N'440.1', 1, N'', N'Shop/Gift/ExchangeDetail.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (639, N'积分换券', 440, NULL, N'440.3', 3, N'', N'Shop/Gift/PointExchange.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (640, N'充值卡管理', 478, NULL, N'478.3', 3, N'', N'Shop/RechargeCards/list.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (641, N'广告管理', 600, NULL, N'600.4', 4, N'', N'Home/AdsSetting', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (642, N'网站店铺菜单', 600, NULL, N'600.2', 2, N'', N'Home/SupplierMenu', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (644, N'商品分类', 600, NULL, N'600.5', 5, N'', N'Product/ProCategory', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (645, N'微信营销', 0, NULL, N'0.11', 11, N'', N'', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (646, N'公众号设置', 775, NULL, N'775.6', 6, N'', N'WeChat/Setting/Config.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (647, N'缩略图生成', 751, NULL, N'751.1', 1, N'', N'Shop/Products/ImageReGen.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (648, N'创建快递单', 480, NULL, N'480.1', 1, N'', N'Shop/ExpressTemplate/Add.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (649, N'快递单管理', 480, NULL, N'480.2', 2, N'', N'Shop/ExpressTemplate/ExpressTemplates.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (656, N'模版管理', 604, NULL, N'604.3', 3, N'', N'Home/ThemeSetting', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (657, N'模板管理', 656, NULL, N'656.1', 1, N'', N'Home/ThemeSetting', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (658, N'店铺管理', 383, NULL, N'383.4', 4, N'', N'Shop/Supplier/SupplierStore/list.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (659, N'微信设置', 647, NULL, N'647.8', 8, N'', N'WeChat/Setting', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (660, N'邮件模板设置', 647, NULL, N'647.9', 9, N'', N'WeChat/EmailTemplate', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (661, N'微信导航管理', 647, NULL, N'647.8', 8, N'', N'WeChat/CommandList', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (662, N'商品推荐', 616, NULL, N'616.5', 5, N'', N'Product/ProductsStationMode', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (751, N'功能设置', 385, NULL, N'385.5', 5, N'', N'', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (752, N'静态页面生成', 751, NULL, N'751.10', 10, N'', N'/Admin/Shop/Products/ToStatic.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (753, N'微官网模版', 388, NULL, N'388.10', 10, N'', N'Ms/Themes/MPageList.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (754, N'发货人管理', 480, NULL, N'480.4', 4, N'', N'Shop/Shippers/List.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (755, N'运营统计', 386, NULL, N'386.6', 6, N'', N'', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (756, N'销售额统计', 755, NULL, N'755.3', 3, N'销售额统计', N'Statistics/SalesLine.aspx?SalesType=2', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (757, N'销售量统计', 755, NULL, N'755.4', 4, N'销售量统计', N'Statistics/SalesLine.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (758, N'订单统计', 755, NULL, N'755.1', 1, N'订单统计', N'Statistics/OrderCount.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (759, N'充值提现统计', 755, NULL, N'755.5', 5, N'充值提现统计', N'Statistics/RechargeAndTx.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (760, N'供货统计', 755, NULL, N'755.2', 2, N'供货统计', N'Statistics/Supply.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (761, N'商品销量排行', 755, NULL, N'755.4', 4, N'', N'Statistics/ProductSales.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (762, N'用户注册统计', 755, NULL, N'755.6', 6, N'用户统计', N'Statistics/UserRegCount.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (763, N'店铺销售额排行', 755, NULL, N'755.7', 7, N'店铺销售额排行', N'Statistics/ShopSales.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (764, N'用户统计', 610, NULL, N'610.4', 4, N'用户统计', N'Home/UserCount', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (765, N'商品销量排行', 610, NULL, N'610.5', 5, N'商品销量排行', N'Home/ProductSales', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (766, N'群发消息管理', 774, NULL, N'774.9', 9, N'', N'WeChat/CustomerMsg/MsgList.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (767, N'店铺设置', 600, NULL, N'600.1', 1, N'', N'Home/ShopInfo', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (768, N'店铺模版', 600, NULL, N'600.3', 3, N'', N'Home/ThemeSetting', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (769, N'未处理订单', 609, NULL, N'609.1', 1, N'', N'Order/Orders?os=1', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (770, N'历史订单', 609, NULL, N'609.3', 3, N'', N'Order/Orders?os=3', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (771, N'订单导出', 609, NULL, N'609.4', 4, N'', N'Order/Orders?os=-1', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (772, N'邮件通知', 775, NULL, N'582.10', 10, N'', N'WeChat/Setting/EmailTemplate.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (773, N'消息推送', 774, NULL, N'582.11', 11, N'', N'wechat/User/PushMsg.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (774, N'消息管理', 645, NULL, N'645.3', 3, N'', N'', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (775, N'高级设置', 645, NULL, N'645.5', 5, N'', N'', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (804, N'在线报名', 369, NULL, N'369.2', 2, N'', N'Members/EntryForm/List.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (822, N'会员卡管理', 467, NULL, N'467.8', 8, N'', N'Members/UserCard/CardList.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (824, N'微商城模板', 388, NULL, N'388.9', 9, N'', N'Ms/Themes/MShopList.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (828, N'定时消息推送', 774, NULL, N'774.5', 5, N'', N'WeChat/Push/MsgList.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (829, N'结算中心', 0, NULL, N'0.5', 5, N'', N'', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (830, N'结算中心', 829, NULL, N'829.1', 1, N'', N'', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (831, N'商家结算', 830, NULL, N'830.1', 1, N'', N'Account/Balance', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (832, N'收支明细', 830, NULL, N'830.2', 2, N'', N'Account/BalanceDetail', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (833, N'充值明细', 830, NULL, N'830.3', 3, N'', N'Account/RechargeDetail', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (834, N'结算明细', 830, NULL, N'830.4', 4, N'', N'Account/DrawDetail', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (835, N'商家信息', 389, NULL, N'389.1', 1, N'', N'Settings/OperatorsInfo.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (836, N'商家结算', 383, NULL, N'383.5', 5, N'', N'Pay/BalanceDrawRequest/ListSupplier.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (837, N'微信活动管理', 645, NULL, N'645.5', 5, N'', N'', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (838, N'刮刮卡', 837, NULL, N'837.1', 1, N'', N'WeChat/Activity/InfoList.aspx?type=0', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (840, N'大转盘', 837, NULL, N'837.2', 2, N'', N'WeChat/Activity/InfoList.aspx?type=1', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (844, N'系统设置', 388, NULL, N'388.2', 2, N'', N'SysManage/SysConfig.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (845, N'微商城设置', 388, NULL, N'388.3', 3, N'', N'SysManage/MShopConfig.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (846, N'微官网设置', 388, NULL, N'388.4', 4, N'', N'SysManage/MPageConfig.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (847, N'导入优惠券', 597, NULL, N'597.8', 8, N'', N'Shop/Coupon/ImportCoupon.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (848, N'积分明细', 437, NULL, N'437.3', 3, N'', N'Members/Points/DetailList.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (849, N'推广渠道管理', 582, NULL, N'582.8', 11, N'', N'WeChat/Scene/SceneList.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (850, N'渠道详细', 582, NULL, N'582.12', 12, N'', N'WeChat/Scene/DetailList.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (851, N'渠道统计', 582, NULL, N'582.12', 13, N'', N'WeChat/Scene/DetailCount.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (852, N'未有效回复消息', 774, NULL, N'774.5', 5, N'', N'WeChat/User/NoReplyMsg.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (853, N'二维码生成', 751, NULL, N'751.2', 2, N'', N'Shop/Products/CodeGen.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (854, N'注册来源统计', 755, NULL, N'755.3', 3, N'', N'Statistics/UserSource.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (857, N'商品统计', 755, NULL, N'755.6', 6, N'', N'Statistics/ProductCategory.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (858, N'订单来源统计', 755, NULL, N'755.8', 8, N'', N'Statistics/OrderStats.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (859, N'客户活跃数', 755, NULL, N'755.9', 9, N'', N'Statistics/ActiveCus.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (860, N'品牌销售排行', 755, NULL, N'755.10', 10, N'', N'Statistics/BrandSales.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (861, N'促销管理', 630, NULL, N'630.3', 3, N'', N'', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (862, N'促销规则', 861, NULL, N'861.1', 1, N'', N'Shop/ActivityRule/list.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (863, N'促销活动', 861, NULL, N'861.2', 2, N'', N'Shop/ActivityInfo/list.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (864, N'微社区管理', 447, NULL, N'447.3', 3, N'', N'', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (865, N'小组管理', 864, NULL, N'864.1', 1, N'', N'SNS/Groups/SNS_Groups/list.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (866, N'添加小组', 864, NULL, N'864.2', 2, N'', N'SNS/Groups/SNS_Groups/add.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (867, N'微社区话题', 864, NULL, N'864.4', 4, N'', N'SNS/Groups/SNS_Groups/GroupTopics.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (868, N'退单管理', 386, NULL, N'386.5', 5, N'', N'', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (869, N'退单管理', 868, NULL, N'868.1', 1, N'', N'Shop/ReturnOrder/List.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
GO
print 'Processed 300 total records'
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (870, N'代退货', 868, NULL, N'868.2', 2, N'', N'Shop/SubstituteReturn/OrdersList.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (871, N'订单打印', 477, NULL, N'477.3', 3, N'', N'Shop/Order/OrderPrints.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (872, N'优惠券使用', 597, NULL, N'597.8', 8, N'', N'Shop/Coupon/CouponUsed.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (873, N'等级管理', 384, NULL, N'384.4', 4, N'', N'', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (874, N'等级规则管理', 873, NULL, N'873.1', 1, N'', N'Members/UserRank/RankRule.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (875, N'等级限制管理', 873, NULL, N'873.2', 2, N'', N'Members/UserRank/RankLimit.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (876, N'成长值明细', 873, NULL, N'873.3', 3, N'', N'Members/UserRank/DetailList.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (877, N'短信群发', 634, NULL, N'634.8', 8, N'', N'Accounts/SendSMS.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (878, N'会员价格', 630, NULL, N'630.3', 3, N'', N'', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (879, N'会员价格规则', 878, NULL, N'878.1', 1, N'', N'Shop/WholeSale/RanksRule.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (880, N'会员价格商品', 878, NULL, N'878.2', 2, N'', N'Shop/WholeSale/SalesProductList.aspx?id=1', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (881, N'佣金管理', 630, NULL, N'630.4', 4, N'', N'', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (882, N'佣金规则管理', 881, NULL, N'881.1', 1, N'', N'Shop/Commission/RuleList.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (883, N'佣金统计', 881, NULL, N'881.2', 2, N'', N'Statistics/Commission.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (884, N'退单管理', 609, NULL, N'609.5', 5, N'', N'ReturnOrder/Index', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 4, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (885, N'基础数据同步', 890, NULL, N'890.14', 14, N'', N'Shop/Products/SyncPMS.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 0)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (886, N'分仓商品库存', 890, NULL, N'890.12', 12, N'', N'Shop/Depot/ProductList.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (887, N'仓库地区管理', 890, NULL, N'890.13', 13, N'', N'Shop/Depot/DepotRegionList.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (888, N'多仓设置', 388, NULL, N'388.8', 8, N'', N'SysManage/DepotConfig.aspx', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (889, N'仓库管理', 890, NULL, N'890.11', 11, N'', N'Shop/Depot/list.aspx', -1, N'Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
INSERT [SA_Tree] ([NodeID], [TreeText], [ParentID], [ParentPath], [Location], [OrderID], [Comment], [Url], [PermissionID], [ImageUrl], [ModuleID], [KeShiDM], [KeshiPublic], [TreeType], [Enabled]) VALUES (890, N'分仓商品管理', 385, NULL, N'385.3', 3, N'', N'', -1, N'/admin/Images/MenuImg/folder16.gif', NULL, NULL, NULL, 0, 1)
SET IDENTITY_INSERT [SA_Tree] OFF
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_TaskQueue]') AND type in (N'U'))
BEGIN
CREATE TABLE [SA_TaskQueue](
	[ID] [int] NOT NULL,
	[Type] [int] NOT NULL,
	[TaskId] [int] NOT NULL,
	[Status] [int] NOT NULL,
	[RunDate] [datetime] NULL,
 CONSTRAINT [PK_Ms_GenerateTask] PRIMARY KEY CLUSTERED 
(
	[ID] ASC,
	[Type] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_SiteSettings]') AND type in (N'U'))
BEGIN
CREATE TABLE [SA_SiteSettings](
	[SettingsId] [int] IDENTITY(100,1) NOT NULL,
	[Disabled] [bit] NOT NULL,
	[Version] [nvarchar](64) NULL,
	[SettingsXML] [ntext] NULL,
	[SettingsKey] [uniqueidentifier] NULL,
	[ApplicationName] [nvarchar](256) NULL,
 CONSTRAINT [PK_SA_SiteSettings] PRIMARY KEY CLUSTERED 
(
	[SettingsId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_SiteMessageLog]') AND type in (N'U'))
BEGIN
CREATE TABLE [SA_SiteMessageLog](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[MessageID] [int] NULL,
	[MessageType] [nvarchar](50) NULL,
	[MessageState] [nvarchar](50) NULL,
	[ReceiverID] [int] NULL,
	[Ext1] [nvarchar](300) NULL,
	[Ext2] [nvarchar](300) NULL,
 CONSTRAINT [PK_SiteMessageLog] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_SiteMessage]') AND type in (N'U'))
BEGIN
CREATE TABLE [SA_SiteMessage](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[SenderID] [int] NULL,
	[ReceiverID] [int] NULL,
	[Title] [nvarchar](300) NULL,
	[Content] [nvarchar](max) NULL,
	[MsgType] [nvarchar](50) NULL,
	[SendTime] [datetime] NULL,
	[ReadTime] [datetime] NULL,
	[ReceiverIsRead] [bit] NULL,
	[SenderIsDel] [bit] NULL,
	[ReaderIsDel] [bit] NULL,
	[Ext1] [nvarchar](300) NULL,
	[Ext2] [nvarchar](300) NULL,
 CONSTRAINT [PK_SA_SiteMessage] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_SendedMessages]') AND type in (N'U'))
BEGIN
CREATE TABLE [SA_SendedMessages](
	[SendMessageId] [bigint] IDENTITY(1,1) NOT NULL,
	[AddresserId] [int] NOT NULL,
	[AddresseeId] [int] NOT NULL,
	[Title] [nvarchar](100) NOT NULL,
	[PublishContent] [nvarchar](3000) NOT NULL,
	[PublishDate] [datetime] NOT NULL,
	[ReceiveMessageId] [bigint] NULL,
 CONSTRAINT [PK_Maticsoft_SendedMessages] PRIMARY KEY CLUSTERED 
(
	[SendMessageId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_ReceivedMessages]') AND type in (N'U'))
BEGIN
CREATE TABLE [SA_ReceivedMessages](
	[ReceiveMessageId] [bigint] IDENTITY(1,1) NOT NULL,
	[AddresserId] [int] NOT NULL,
	[AddresseeId] [int] NOT NULL,
	[Title] [nvarchar](100) NOT NULL,
	[PublishContent] [nvarchar](3000) NOT NULL,
	[PublishDate] [datetime] NOT NULL,
	[LastTime] [datetime] NOT NULL,
	[IsRead] [bit] NOT NULL,
 CONSTRAINT [PK_Maticsoft_ReceivedMessages] PRIMARY KEY CLUSTERED 
(
	[ReceiveMessageId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_MultiLang_det]') AND type in (N'U'))
BEGIN
CREATE TABLE [SA_MultiLang_det](
	[MultiLang_iID] [int] IDENTITY(1,1) NOT NULL,
	[MultiLang_cField] [nvarchar](30) NOT NULL,
	[MultiLang_iPKValue] [int] NOT NULL,
	[MultiLang_cLang] [varchar](10) NOT NULL,
	[MultiLang_cValue] [nvarchar](500) NULL,
 CONSTRAINT [PK_SA_MultiLang_det] PRIMARY KEY CLUSTERED 
(
	[MultiLang_cField] ASC,
	[MultiLang_iPKValue] ASC,
	[MultiLang_cLang] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_Log]') AND type in (N'U'))
BEGIN
CREATE TABLE [SA_Log](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[datetime] [datetime] NOT NULL,
	[loginfo] [varchar](500) NULL,
	[Particular] [varchar](1000) NULL
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_Language_mstr]') AND type in (N'U'))
BEGIN
CREATE TABLE [SA_Language_mstr](
	[Language_cCode] [nvarchar](50) NOT NULL,
	[Language_cName] [nvarchar](50) NULL,
	[Language_bDefault] [bit] NULL,
	[Language_bValid] [bit] NULL,
	[Language_dateValid] [datetime] NULL,
	[Language_dateExpire] [datetime] NULL,
 CONSTRAINT [PK_Language_master] PRIMARY KEY CLUSTERED 
(
	[Language_cCode] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_Guestbook]') AND type in (N'U'))
BEGIN
CREATE TABLE [SA_Guestbook](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[CreateUserID] [int] NULL,
	[CreateNickName] [nvarchar](50) NOT NULL,
	[ToUserID] [int] NULL,
	[ToNickName] [nvarchar](50) NULL,
	[CreatorUserIP] [nvarchar](20) NULL,
	[Title] [nvarchar](100) NULL,
	[Description] [nvarchar](500) NULL,
	[CreatedDate] [datetime] NOT NULL CONSTRAINT [DF__SNS_TMess__Creat__2236BEF8]  DEFAULT (getdate()),
	[CreatorEmail] [nvarchar](50) NULL,
	[CreatorRegion] [nvarchar](50) NULL,
	[CreatorCompany] [nvarchar](100) NULL,
	[CreatorPageSite] [nvarchar](200) NULL,
	[CreatorPhone] [nvarchar](20) NULL,
	[CreatorQQ] [nvarchar](50) NULL,
	[CreatorMsn] [nvarchar](50) NULL,
	[CreatorSex] [bit] NULL,
	[HandlerNickName] [nvarchar](50) NULL,
	[HandlerUserID] [int] NULL,
	[HandlerDate] [datetime] NULL,
	[Privacy] [int] NULL,
	[ReplyCount] [int] NOT NULL CONSTRAINT [DF_CMS_Guestbook_ReplyCount]  DEFAULT ((0)),
	[ReplyDescription] [nvarchar](500) NULL,
	[ParentID] [int] NULL CONSTRAINT [DF_SNS_TMessage_ParentID]  DEFAULT ((0)),
	[Status] [int] NULL,
 CONSTRAINT [PK__SNS_TMes__3214EC27204E7686] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_FilterWords]') AND type in (N'U'))
BEGIN
CREATE TABLE [SA_FilterWords](
	[FilterId] [int] IDENTITY(1,1) NOT NULL,
	[WordPattern] [nvarchar](100) NOT NULL,
	[ActionType] [int] NOT NULL,
	[RepalceWord] [nvarchar](100) NULL,
 CONSTRAINT [PK_SA_FilterWords] PRIMARY KEY CLUSTERED 
(
	[FilterId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_FeedbackType]') AND type in (N'U'))
BEGIN
CREATE TABLE [SA_FeedbackType](
	[TypeId] [int] IDENTITY(1,1) NOT NULL,
	[TypeName] [nvarchar](200) NOT NULL,
	[Description] [text] NULL,
 CONSTRAINT [PK_SA_FeedbackType] PRIMARY KEY CLUSTERED 
(
	[TypeId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_Feedback]') AND type in (N'U'))
BEGIN
CREATE TABLE [SA_Feedback](
	[FeedbackId] [int] IDENTITY(1,1) NOT NULL,
	[TypeId] [int] NOT NULL,
	[Description] [text] NOT NULL,
	[UserName] [nvarchar](200) NULL,
	[UserSex] [char](10) NULL,
	[UserEmail] [nvarchar](100) NULL,
	[Phone] [nvarchar](100) NULL,
	[TelPhone] [nvarchar](100) NULL,
	[UserCompany] [nvarchar](200) NULL,
	[UserIP] [nvarchar](20) NOT NULL,
	[IsSolved] [bit] NOT NULL CONSTRAINT [DF_SA_Feedback_Feedback_bSolved]  DEFAULT ((0)),
	[CreatedDate] [datetime] NOT NULL,
	[Result] [text] NULL,
	[Status] [int] NULL,
	[Remark] [nvarchar](300) NULL,
	[ExtData] [text] NULL,
 CONSTRAINT [PK_SA_Feedback] PRIMARY KEY CLUSTERED 
(
	[FeedbackId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_ErrorLog]') AND type in (N'U'))
BEGIN
CREATE TABLE [SA_ErrorLog](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[OPTime] [datetime] NULL,
	[Url] [nvarchar](200) NULL,
	[Loginfo] [nvarchar](max) NULL,
	[StackTrace] [nvarchar](max) NULL,
 CONSTRAINT [PK_S_ErrorLog] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_Config_Type]') AND type in (N'U'))
BEGIN
CREATE TABLE [SA_Config_Type](
	[KeyType] [int] IDENTITY(1,1) NOT NULL,
	[TypeName] [nvarchar](50) NOT NULL,
 CONSTRAINT [PK_SA_Config_Type] PRIMARY KEY CLUSTERED 
(
	[KeyType] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET IDENTITY_INSERT [SA_Config_Type] ON
INSERT [SA_Config_Type] ([KeyType], [TypeName]) VALUES (1, N'System')
INSERT [SA_Config_Type] ([KeyType], [TypeName]) VALUES (2, N'SNS')
INSERT [SA_Config_Type] ([KeyType], [TypeName]) VALUES (3, N'Shop')
INSERT [SA_Config_Type] ([KeyType], [TypeName]) VALUES (4, N'CMS')
INSERT [SA_Config_Type] ([KeyType], [TypeName]) VALUES (5, N'OpenAPI')
INSERT [SA_Config_Type] ([KeyType], [TypeName]) VALUES (6, N'Mobile')
SET IDENTITY_INSERT [SA_Config_Type] OFF
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_Config_System]') AND type in (N'U'))
BEGIN
CREATE TABLE [SA_Config_System](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[Keyname] [nvarchar](50) NULL,
	[Value] [nvarchar](max) NULL,
	[KeyType] [int] NULL,
	[Description] [nvarchar](200) NULL,
 CONSTRAINT [PK_SA_Config_System] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET IDENTITY_INSERT [SA_Config_System] ON
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (1, N'LogInFile', N'false', 1, N'是否记录日志到文件')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (3, N'MenuExpanded', N'true', 1, NULL)
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (7, N'TempFolder', N'/TempFolder', 1, N'临时文件目录，用于存放临时文件')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (10, N'EmployeePhoto', N'/EmployeePhoto', 1, N'员工照片文件夹')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (13, N'AdminUserID', N'1', 1, N'系统预留管理员帐号ID，不允许删除')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (14, N'DefaultEmpRoleID', N'5', 1, N'默认的员工登录角色ID')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (15, N'ReservedRoleIDs', N'1', 1, N'系统保留的角色')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (16, N'ReservedPermIDs', N'2,87,88', 1, N'系统保留的权限(逗号分隔)')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (20, N'NormalImageWidth', N'800', 1, N'CMS大缩略图的宽度')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (21, N'NormalImageHeight', N'600', 1, N'CMS大缩略图的高度')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (22, N'ThumbImageWidth', N'180', 1, N'CMS小缩略图的宽度')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (23, N'ThumbImageHeight', N'220', 1, N'CMS小缩略图的高度')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (24, N'WebName', N'产品2.4测试', 1, N'站点信息')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (25, N'BaseHost', N'localhost', 1, N'站点域名')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (26, N'LogoPath', N'/Upload/WebSiteLogo/201306252154374208750.png', 1, N'网站Logo路径')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (27, N'WebPowerBy', N'Copyright &#169; Maticsoft All Rights Reserved', 1, N'版权信息')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (28, N'WebRecord', N'', 1, N'网站备案号')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (29, N'Title', N'动软商城-动软电子商务解决方案', 1, N'网站备案号')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (30, N'Keywords', N'动软商城，批发商城，网上商城', 1, N'站点关键字')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (31, N'Description', N'产品2.4测试', 1, N'站点描述')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (32, N'PhotoLength', N'5', 4, N'图片管理：上传图片的大小（单位：M）')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (34, N'HttpRequestMethod', N'aspx', 1, N'伪静态请求还是静态化请求')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (35, N'EmailTemplate', N'5', 1, N'注册邮箱验证')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (36, N'RetrievePasswordTemplate', N'8', 1, N'找回密码邮箱验证')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (43, N'OpenAPI_TaoBaoAppkey', N'212698991', 5, N'淘宝的appkey')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (44, N'OpenAPI_TaobaoAppsecret', N'747bb83a2db874b4569a059c0a2e4415', 5, N'淘宝的Appsecret')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (45, N'OpenAPI_TaobaoApiUrl', N'http://gw.api.taobao.com/router/rest', 5, N'沙箱环境调用地址')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (46, N'SNSPhotoSizes', N'1024000', 2, N'SNS上传图片的大小限制')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (48, N'MainArea', N'Shop', 1, N'当前网站主区域-值[CMS,SNS,Shop] 重启网站后生效!')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (51, N'YouKuAPI', N'http://player.youku.com/player.php/sid/{0}/v.swf', 5, N'优酷视频API。（删除可能会导致系统出现异常，请勿修改！）')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (52, N'FFmpeg', N'/Tools/ffmpeg/ffmpeg.exe', 1, N'FFmpeg视频截图工具')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (53, N'DefaultLoginAdmin', N'/admin/login.aspx', 1, N'')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (54, N'DefaultLoginEnterprise', N'/Enterprise/Login.aspx', 1, N'')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (56, N'UploadImagePath', N'/UploadFolder/Images/ContentImgFile/', 1, N'')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (57, N'UploadVideoUrl', N'/UploadFolder/SWF/', 1, N'')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (58, N'BrandsLogo', N'/UploadFolder/BrandsLogo/', 1, N'')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (59, N'UploadAttachmentPath', N'/UploadFolder/Attachment/', 1, N'')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (60, N'UploadFolder', N'/UploadFolder/', 1, N'')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (61, N'UploadVideoExt', N'|.avi|.swf|.wmv|.flv|.mp4', 1, N'')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (62, N'EnteServiceItemVideoUrl', N'/Images/EnteServiceItemVideo/', 1, N'')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (63, N'GetPwdUrl', N'http://www.maticsoft.com/', 1, N'')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (64, N'EmailValidity', N'http://www.maticsoft.com/', 1, N'')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (65, N'DengluAPPID', N'30677denQM4EK6FjpVI2PBfSKenTgA', 5, N'三方登录的ID')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (66, N'DengluAPIKEY', N'$1$17823den$DXCnzLXoFsRnA0dTbEHNP.', 5, N'三方登录的Key')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (68, N'CacheTime', N'30', 1, N'缓存时间')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (69, N'HomeGetValueType', N'1', 1, N'0：表示自动获取 1：表示人工推荐')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (70, N'SNSHelpCenter', N'1', 2, N'SNS社区帮助中心栏目编号')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (71, N'GroupTag_TypeID', N'6', 1, N'小组标签类型ID')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (75, N'SNS_ProductAndPhotoRecommandState', N'1', 2, N'0：发布时不推荐 1：发布推荐到首页 2：发布时推荐到频道页')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (125, N'SNS_Narmal_Pricture_IsShow', N'1', 2, N'微博上传图片是否显示')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (126, N'SNS_Narmal_Audio_IsShow', N'1', 2, N'微博上传音乐是否显示')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (127, N'SNS_Narmal_Video_IsShow', N'1', 2, N'微博上传视频是否显示')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (128, N'SNS_Picture_IsShow', N'1', 2, N'上传图片模块是否显示')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (129, N'SNS_Product_IsShow', N'0', 2, N'上传商品模块是否显示')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (130, N'SNS_PostType_All_IsShow', N'1', 2, N'全部微博是否显示')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (131, N'SNS_PostType_EachOther_IsShow', N'0', 2, N'互相关注的微博是否显示')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (132, N'SNS_PostType_Fellow_IsShow', N'1', 2, N'我关注的微博是否显示')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (133, N'SNS_PostType_User_IsShow', N'1', 2, N'我发表的')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (134, N'SNS_PostType_ReferMe_IsShow', N'1', 2, N'提到我的微博是否显示')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (135, N'SNS_Home_Title', N'渠道社区， {hostname} - 动软电子商务解决方案', 2, N'SNS_Home_Title')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (139, N'SNS_ProductList_Keywords', N'{cname}， 渠道社区，动软商城，批发商城，网上商城', 2, N'SNS_ProductList_Keywords')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (141, N'SNS_ProductDetail_Title', N'商品详细 {hostname} - 动软,电子商务解决方案提供商', 2, N'SNS_ProductDetail_Title')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (142, N'SNS_ProductDetail_Keywords', N'{cname}， 渠道社区，动软商城，批发商城，网上商城', 2, N'SNS_ProductDetail_Keywords')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (143, N'SNS_ProductDetail_Description', N'{cname}，动软卓越（北京）科技有限公司是专业的电子商务系统软件研发和系统服务商。', 2, N'SNS_ProductDetail_Description')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (144, N'SNS_Collocation_Title', N'搭配频道 {hostname} - 动软,电子商务解决方案提供商', 2, N'SNS_Collocation_Title')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (145, N'SNS_Collocation_Keywords', N'动软代码生成器,电子商务解决方案提供商', 2, N'SNS_Collocation_Keywords')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (146, N'SNS_Collocation_Description', N'动软卓越（北京）科技有限公司是专业的电子商务解决方案提供商和企业软件开发平台提供者,动软代码生成器是最好的全功能代码生成器,企业管理软件开发利器,智能化软件开发平台。', 2, N'SNS_Collocation_Description')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (147, N'SNS_ShareGoods_Title', N'晒货频道 {hostname} - 动软,电子商务解决方案提供商', 2, N'SNS_ShareGoods_Title')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (148, N'SNS_ShareGoods_Keywords', N'动软代码生成器,电子商务解决方案提供商', 2, N'SNS_ShareGoods_Keywords')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (149, N'SNS_ShareGoods_Description', N'动软卓越（北京）科技有限公司是专业的电子商务解决方案提供商和企业软件开发平台提供者,动软代码生成器是最好的全功能代码生成器,企业管理软件开发利器,智能化软件开发平台。', 2, N'SNS_ShareGoods_Description')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (150, N'SNS_PhotoDetail_Title', N'图片详细 {cname} - 动软,电子商务解决方案提供商 {hostname}', 2, N'SNS_PhotoDetail_Title')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (151, N'SNS_PhotoDetail_Keywords', N'{cname}，渠道社区，动软商城，批发商城，网上商城', 2, N'SNS_PhotoDetail_Keywords')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (152, N'SNS_PhotoDetail_Description', N'动软卓越（北京）科技有限公司是专业的电子商务系统软件研发和系统服务商。', 2, N'SNS_PhotoDetail_Description')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (153, N'SNS_Group_Title', N'小组频道首页 {hostname} - 动软,电子商务解决方案提供商', 2, N'SNS_Group_Title')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (154, N'SNS_Group_Keywords', N'{hostname}，动软电子商务解决方案，渠道社区，动软商城，批发商城，网上商城', 2, N'SNS_Group_Keywords')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (155, N'SNS_Group_Description', N'动软卓越（北京）科技有限公司是专业的电子商务系统软件研发和系统服务商。', 2, N'SNS_Group_Description')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (156, N'SNS_GroupList_Title', N'小组首页(帖子列表) {cname} {hostname} - 动软,电子商务解决方案提供商', 2, N'SNS_GroupList_Title')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (157, N'SNS_GroupList_Keywords', N'{cname}，渠道社区，动软商城，批发商城，网上商城', 2, N'SNS_GroupList_Keywords')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (158, N'SNS_GroupList_Description', N'动软卓越（北京）科技有限公司是专业的电子商务系统软件研发和系统服务商。', 2, N'SNS_GroupList_Description')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (159, N'SNS_GroupDetail_Title', N'小组帖子详细 {cname}-{ctname} {hostname} - 动软,电子商务解决方案提供商', 2, N'SNS_GroupDetail_Title')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (160, N'SNS_GroupDetail_Keywords', N'{cname}，{ctname}，渠道社区，动软商城，批发商城，网上商城', 2, N'SNS_GroupDetail_Keywords')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (161, N'SNS_GroupDetail_Description', N'动软卓越（北京）科技有限公司是专业的电子商务系统软件研发和系统服务商。', 2, N'SNS_GroupDetail_Description')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (162, N'SNS_Ablum_Title', N'专辑首页 {hostname} - 动软,电子商务解决方案提供商', 2, N'SNS_Ablum_Title')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (163, N'SNS_Ablum_Keywords', N'渠道社区，动软商城，批发商城，网上商城', 2, N'SNS_Ablum_Keywords')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (164, N'SNS_Ablum_Description', N'动软卓越（北京）科技有限公司是专业的电子商务系统软件研发和系统服务商。', 2, N'SNS_Ablum_Description')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (165, N'SNS_AblumList_Title', N'专辑列表 {hostname} - 动软,电子商务解决方案提供商', 2, N'SNS_AblumList_Title')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (166, N'SNS_AblumList_Keywords', N'{cname}，渠道社区，动软商城，批发商城，网上商城', 2, N'SNS_AblumList_Keywords')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (167, N'SNS_AblumList_Description', N'动软卓越（北京）科技有限公司是专业的电子商务系统软件研发和系统服务商。', 2, N'SNS_AblumList_Description')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (168, N'SNS_AblumDetail_Title', N'专辑详细 {hostname} - 动软,电子商务解决方案提供商', 2, N'SNS_AblumDetail_Title')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (169, N'SNS_AblumDetail_Keywords', N'{cname}，渠道社区，动软商城，批发商城，网上商城', 2, N'SNS_AblumDetail_Keywords')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (170, N'SNS_AblumDetail_Description', N'动软卓越（北京）科技有限公司是专业的电子商务系统软件研发和系统服务商。', 2, N'SNS_AblumDetail_Description')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (171, N'SNS_Star_Title', N'达人 {hostname} - 动软电子商务解决方案', 2, N'SNS_Star_Title')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (172, N'SNS_Star_Keywords', N'{hostname}', 2, N'SNS_Star_Keywords')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (173, N'SNS_Star_Description', N'动软卓越（北京）科技有限公司是专业的电子商务系统软件研发和系统服务商。', 2, N'SNS_Star_Description')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (174, N'SNS_FallDataSize', N'30', 2, N'瀑布流每页的数量')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (175, N'SNS_PostDataSize', N'10', 2, N'动态每页显示的数量')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (176, N'SNS_CommentDataSize', N'3', 2, N'评论显示的条数')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (177, N'SNS_FallInitDataSize', N'15', 2, N'瀑布流数次加载的数量')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (178, N'SNS_check_audio', N'0', 2, N'上传音频的审核状态')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (179, N'SNS_check_video', N'0', 2, N'上传视频的审核状态')
GO
print 'Processed 100 total records'
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (180, N'SNS_check_photo', N'0', 2, N'上传图片的审核状态')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (181, N'SNS_check_picture', N'0', 2, N'分享照片的审核状态')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (182, N'SNS_check_product', N'0', 2, N'分享照片的审核状态')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (183, N'SNS_HomeScollTop', N'10', 2, N'首页滚动的默认条数')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (184, N'SNS_Register_IsBind', N'1', 2, N'注册的时候是否默认绑定三方账号 0：不绑定  1：绑定')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (185, N'chk_check_word', N'0', 2, N'上传文字的审核状态')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (187, N'SNS_FansList', N'1,88,87,', 2, N'用户注册了，自动关注的id(用逗号（,）分割)')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (188, N'PageFootJs', N'<div style="display:none">
<script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id=''cnzz_stat_icon_5762614''%3E%3C/span%3E%3Cscript src=''" + cnzz_protocol + "s17.cnzz.com/stat.php%3Fid%3D5762614'' type=''text/javascript''%3E%3C/script%3E"));</script></div>', 1, N'网站统计脚本')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (189, N'RebateRate', N'0.8', 1, N'淘宝客佣金返利比率')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (190, N'SNS_SmallPhotoSize', N'180X240', 2, N'SNS小缩略图')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (191, N'SNS_BigPhotoSize', N'500X500', 2, N'SNS小缩略图')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (192, N'SNS_DefaultUserTags', N'屌丝,技术男,音乐,电影', 2, N'前台用户的标签提示项,用英文逗号（,）分隔')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (193, N'PointEnable', N'true', 1, N'是否启用积分系统')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (194, N'Shop_ThumbImageWidth', N'104', 3, N'图片管理：产品缩略图宽度')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (195, N'Shop_ThumbImageHeight', N'104', 3, N'图片管理：产品缩略图高度')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (196, N'Shop_NormalImageWidth', N'300', 3, N'图片管理：产品清晰图宽度')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (197, N'Shop_NormalImageHeight', N'300', 3, N'图片管理：产品清晰图高度')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (198, N'ForegroundLanguage', N'Chinese', 1, N'前台语言')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (199, N'TimeZoneInformation', N'(GMT +08:00)北京，香港', 1, N'时区信息')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (200, N'TimeFormat', N'24小时制', 1, N'时间格式')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (201, N'DateFormat', N'Month-Day-Year(01-01-1900)', 1, N'时间格式')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (202, N'Shop_ImageSizes', N'300', 3, N'上传图片大小限制')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (212, N'RegistStatement', N'<p><strong>用户注册协议</strong></p><p>本协议是您与本站所有者之间就网站服务等相关事宜所订立的契约，请您仔细阅读本注册协议，您点击"同意并继续"按钮后，本协议即构成对双方有约束力的法律文件。</p><p>第1条 本站服务条款的确认和接纳</p><p>1.1本站的各项电子服务的所有权和运作权归本站所有。用户同意所有注册协议条款并完成注册程序，才能成为本站的正式用户。用户确认：本协议条款是处理双方权利义务的契约，始终有效，法律另有强制性规定或双方另有特别约定的，依其规定。</p><p>1.2用户点击同意本协议的，即视为用户确认自己具有享受本站服务、下单购物等相应的权利能力和行为能力，能够独立承担法律责任。</p><p>1.3如果您在18周岁以下，您只能在父母或监护人的监护参与下才能使用本站。</p><p>1.4本站保留在中华人民共和国大陆地区法施行之法律允许的范围内独自决定拒绝服务、关闭用户账户、清除或编辑内容或取消订单的权利。</p><p>第2条 本站服务</p><p>2.1本站通过互联网依法为用户提供互联网信息等服务，用户在完全同意本协议及本站规定的情况下，方有权使用本站的相关服务。</p><p>2.2用户必须自行准备如下设备和承担如下开支：（1）上网设备，包括并不限于电脑或者其他上网终端、调制解调器及其他必备的上网装置；（2）上网开支，包括并不限于网络接入费、上网设备租用费、手机流量费等。</p><p>第3条 用户信息</p><p>3.1用户应自行诚信向本站提供注册资料，用户同意其提供的注册资料真实、准确、完整、合法有效，用户注册资料如有变动的，应及时更新其注册资料。如果用户提供的注册资料不合法、不真实、不准确、不详尽的，用户需承担因此引起的相应责任及后果，并且本站保留终止用户使用本站各项服务的权利。</p><p>3.2用户在本站进行浏览、下单购物等活动时，涉及用户真实姓名/名称、通信地址、联系电话、电子邮箱等隐私信息的，本站将予以严格保密，除非得到用户的授权或法律另有规定，本站不会向外界披露用户隐私信息。</p><p>3.3用户注册成功后，将产生用户名和密码等账户信息，您可以根据本站规定改变您的密码。用户应谨慎合理的保存、使用其用户名和密码。用户若发现任何非法使用用户账号或存在安全漏洞的情况，请立即通知本站并向公安机关报案。</p><p>3.4用户同意，本站拥有通过邮件、短信电话等形式，向在本站注册、购物用户、收货人发送订单信息、促销活动等告知信息的权利。</p><p>3.5用户不得将在本站注册获得的账户借给他人使用，否则用户应承担由此产生的全部责任，并与实际使用人承担连带责任。</p><p>3.6用户同意，本站有权使用用户的注册信息、用户名、密码等信息，登陆进入用户的注册账户，进行证据保全，包括但不限于公证、见证等。</p><p>第4条 用户依法言行义务</p><p>本协议依据国家相关法律法规规章制定，用户同意严格遵守以下义务：</p><p>（1）不得传输或发表：煽动抗拒、破坏宪法和法律、行政法规实施的言论，煽动颠覆国家政权，推翻社会主义制度的言论，煽动分裂国家、破坏国家统一的的言论，煽动民族仇恨、民族歧视、破坏民族团结的言论；</p><p>（2）从中国大陆向境外传输资料信息时必须符合中国有关法规；</p><p>（3）不得利用本站从事洗钱、窃取商业秘密、窃取个人信息等违法犯罪活动；</p><p>（4）不得干扰本站的正常运转，不得侵入本站及国家计算机信息系统；</p><p>（5）不得传输或发表任何违法犯罪的、骚扰性的、中伤他人的、辱骂性的、恐吓性的、伤害性的、庸俗的，淫秽的、不文明的等信息资料；</p><p>（6）不得传输或发表损害国家社会公共利益和涉及国家安全的信息资料或言论；</p><p>（7）不得教唆他人从事本条所禁止的行为；</p><p>（8）不得利用在本站注册的账户进行牟利性经营活动；</p><p>（9）不得发布任何侵犯他人著作权、商标权等知识产权或合法权利的内容；</p><p>用户应不时关注并遵守本站不时公布或修改的各类合法规则规定。</p><p>本站保有删除站内各类不符合法律政策或不真实的信息内容而无须通知用户的权利。</p><p>若用户未遵守以上规定的，本站有权作出独立判断并采取暂停或关闭用户帐号等措施。用户须对自己在网上的言论和行为承担法律责任。</p><p>第5条 商品信息</p><p>本站上的商品价格、数量、是否有货等商品信息随时都有可能发生变动，本站不作特别通知。由于网站上商品信息的数量极其庞大，虽然本站会尽最大努力保证您所浏览商品信息的准确性，但由于众所周知的互联网技术因素等客观原因存在，本站网页显示的信息可能会有一定的滞后性或差错，对此情形您知悉并理解；本站欢迎纠错，并会视情况给予纠错者一定的奖励。</p><p>为表述便利，商品和服务简称为"商品"或"货物"。</p><p>第6条 订单</p><p>6.1在您下订单时，请您仔细确认所购商品的名称、价格、数量、型号、规格、尺寸、联系地址、电话、收货人等信息。收货人与用户本人不一致的，收货人的行为和意思表示视为用户的行为和意思表示，用户应对收货人的行为及意思表示的法律后果承担连带责任。</p><p>6.2除法律另有强制性规定外，双方约定如下：本站上销售方展示的商品和价格等信息仅仅是要约邀请，您下单时须填写您希望购买的商品数量、价款及支付方式、收货人、联系方式、收货地址（合同履行地点）、合同履行方式等内容；系统生成的订单信息是计算机信息系统根据您填写的内容自动生成的数据，仅是您向销售方发出的合同要约；销售方收到您的订单信息后，只有在销售方将您在订单中订购的商品从仓库实际直接向您发出时（ 以商品出库为标志），方视为您与销售方之间就实际直接向您发出的商品建立了合同关系；如果您在一份订单里订购了多种商品并且销售方只给您发出了部分商品时，您与销售方之间仅就实际直接向您发出的商品建立了合同关系；只有在销售方实际直接向您发出了订单中订购的其他商品时，您和销售方之间就订单中该其他已实际直接向您发出的商品才成立合同关系。您可以随时登陆您在本站注册的账户，查询您的订单状态。</p><p>6.3由于市场变化及各种以合理商业努力难以控制的因素的影响，本站无法保证您提交的订单信息中希望购买的商品都会有货；如您拟购买的商品，发生缺货，您有权取消订单。</p><p>第7条 配送</p><p>7.1销售方将会把商品（货物）送到您所指定的收货地址，所有在本站上列出的送货时间为参考时间，参考时间的计算是根据库存状况、正常的处理过程和送货时间、送货地点的基础上估计得出的。</p><p>7.2因如下情况造成订单延迟或无法配送等，销售方不承担延迟配送的责任：</p><p>（1）用户提供的信息错误、地址不详细等原因导致的；</p><p>（2）货物送达后无人签收，导致无法配送或延迟配送的；</p><p>（3）情势变更因素导致的；</p><p>（4）不可抗力因素导致的，例如：自然灾害、交通戒严、突发战争等。</p><p>第8条 所有权及知识产权条款</p><p>8.1用户一旦接受本协议，即表明该用户主动将其在任何时间段在本站发表的任何形式的信息内容（包括但不限于客户评价、客户咨询、各类话题文章等信息内容）的财产性权利等任何可转让的权利，如著作权财产权（包括并不限于：复制权、发行权、出租权、展览权、表演权、放映权、广播权、信息网络传播权、摄制权、改编权、翻译权、汇编权以及应当由著作权人享有的其他可转让权利），全部独家且不可撤销地转让给本站所有，用户同意本站有权就任何主体侵权而单独提起诉讼。</p><p>8.2本协议已经构成《中华人民共和国著作权法》第二十五条（条文序号依照2011年版著作权法确定）及相关法律规定的著作财产权等权利转让书面协议，其效力及于用户在本站网站上发布的任何受著作权法保护的作品内容，无论该等内容形成于本协议订立前还是本协议订立后。</p><p>8.3用户同意并已充分了解本协议的条款，承诺不将已发表于本站的信息，以任何形式发布或授权其它主体以任何方式使用（包括但限于在各类网站、媒体上使用）。</p><p>8.4动软是本站的制作者,拥有此网站内容及资源的著作权等合法权利,受国家法律保护,有权不时地对本协议及本站的内容进行修改，并在本站张贴，无须另行通知用户。在法律允许的最大限度范围内，动软对本协议及本站内容拥有解释权。</p><p>8.5除法律另有强制性规定外，未经本站明确的特别书面许可,任何单位或个人不得以任何方式非法地全部或部分复制、转载、引用、链接、抓取或以其他方式使用本站的信息内容，否则，本站有权追究其法律责任。</p><p>8.6本站所刊登的资料信息（诸如文字、图表、标识、按钮图标、图像、声音文件片段、数字下载、数据编辑和软件），均是本站或其内容提供者的财产，受中国和国际版权法的保护。本站上所有内容的汇编是本站的排他财产，受中国和国际版权法的保护。本站上所有软件都是本站或其关联公司或其软件供应商的财产，受中国和国际版权法的保护。</p><p>第9条 责任限制及不承诺担保</p><p>除非另有明确的书面说明,本站及其所包含的或以其它方式通过本站提供给您的全部信息、内容、材料、产品（包括软件）和服务，均是在"按现状"和"按现有"的基础上提供的。</p><p>除非另有明确的书面说明,本站不对本站的运营及其包含在本网站上的信息、内容、材料、产品（包括软件）或服务作任何形式的、明示或默示的声明或担保（根据中华人民共和国法律另有规定的以外）。</p><p>本站不担保本站所包含的或以其它方式通过本站提供给您的全部信息、内容、材料、产品（包括软件）和服务、其服务器或从本站发出的电子信件、信息没有病毒或其他有害成分。</p><p>如因不可抗力或其它本站无法控制的原因使本站销售系统崩溃或无法正常使用导致网上交易无法完成或丢失有关的信息、记录等，本站会合理地尽力协助处理善后事宜。</p><p>第10条 协议更新及用户关注义务</p><p>根据国家法律法规变化及网站运营需要，本站有权对本协议条款不时地进行修改，修改后的协议一旦被张贴在本站上即生效，并代替原来的协议。用户可随时登陆查阅最新协议；用户有义务不时关注并阅读最新版的协议及网站公告。如用户不同意更新后的协议，可以且应立即停止接受本站网站依据本协议提供的服务；如用户继续使用本网站提供的服务的，即视为同意更新后的协议。本站建议您在使用本站之前阅读本协议及本站的公告。 如果本协议中任何一条被视为废止、无效或因任何理由不可执行，该条应视为可分的且并不影响任何其余条款的有效性和可执行性。</p><p>第11条 法律管辖和适用</p><p>本协议的订立、执行和解释及争议的解决均应适用在中华人民共和国大陆地区适用之有效法律（但不包括其冲突法规则）。 如发生本协议与适用之法律相抵触时，则这些条款将完全按法律规定重新解释，而其它有效条款继续有效。 如缔约方就本协议内容或其执行发生任何争议，双方应尽力友好协商解决；协商不成时，任何一方均可向有管辖权的中华人民共和国大陆地区法院提起诉讼。</p><p>第12条 其他</p><p>您点击本协议下方的"同意并继续"按钮即视为您完全接受本协议，在点击之前请您再次确认已知悉并完全理解本协议的全部内容。</p><p><br/></p>', 1, N'会员注册声明信息')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (213, N'WebSiteLogo', N'/Upload/WebSiteLogo/201306251347270104484.jpg', 1, N'网站Logo')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (214, N'WebSiteDomain', N'www.maticsoft.com', 1, N'网站域名')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (215, N'CompanyName', N'maticsoft', 1, N'公司名称')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (216, N'CompanyAddress', N'maticsoft', 1, N'公司地址')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (217, N'CompanyTelephone', N'', 1, N'公司电话')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (218, N'CompanyFax', N'', 1, N'公司传真')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (219, N'CompanyMail', N'', 1, N'公司邮箱')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (221, N'KeyAlt', N'动软卓越-图片', 1, N'图片Alt 信息')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (222, N'KeyImageTitle', N'动软卓越', 1, N'图片Title信息')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (223, N'Shop_Home_Title', N'{hostname}- 动软电子商务解决方案-动软卓越', 3, N'Shop_Home_Title')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (224, N'Shop_Home_Keywords', N'{hostname},网上商城，批发商城，分销商城，电子商务解决方案', 3, N'Shop_Home_Keywords')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (225, N'Shop_Home_Description', N'动软卓越（北京）科技有限公司是专业的电子商务系统软件研发和系统服务商。', 3, N'Shop_Home_Description')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (226, N'Shop_About_Title', N'动软卓越 - 动软,电子商务解决方案提供商', 3, N'Shop_About_Title')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (227, N'Shop_About_Keywords', N'动软代码生成器,电子商务解决方案提供商', 3, N'Shop_About_Keywords')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (228, N'Shop_About_Description', N'动软卓越（北京）科技有限公司是专业的电子商务解决方案提供商和企业软件开发平台提供者,动软代码生成器是最好的全功能代码生成器,企业管理软件开发利器,智能化软件开发平台。', 3, N'Shop_About_Description')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (229, N'Shop_Contact_Title', N'动软卓越 - 动软,电子商务解决方案提供商', 3, N'Shop_Contact_Title')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (230, N'Shop_Contact_Keywords', N'动软代码生成器,电子商务解决方案提供商', 3, N'Shop_Contact_Keywords')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (231, N'Shop_Contact_Description', N'动软卓越（北京）科技有限公司是专业的电子商务解决方案提供商和企业软件开发平台提供者,动软代码生成器是最好的全功能代码生成器,企业管理软件开发利器,智能化软件开发平台。', 3, N'Shop_Contact_Description')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (232, N'Shop_Category_Title', N'{cname} -{hostname}', 3, N'Shop_Category_Title')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (233, N'Shop_Category_Keywords', N'{cname}', 3, N'Shop_Category_Keywords')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (234, N'Shop_Category_Description', N'{cname}-{hostname}', 3, N'Shop_Category_Description')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (236, N'Shop_CategorySelf_Title', N'动软卓越 - 动软,电子商务解决方案提供商', 3, N'Shop_CategorySelf_Title')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (237, N'Shop_CategorySelf_Keywords', N'动软代码生成器,电{hostname}子商务解决方案提供商', 3, N'Shop_CategorySelf_Keywords')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (238, N'Shop_CategorySelf_Description', N'动软卓越（北京）科技有限公司是专业的电子商务解决方案提供商和企业软件开发平台提供者,动软代码生成器是最好的全功能代码生成器,企业管理软件开发利器,智能化软件开发平台。', 3, N'Shop_CategorySelf_Description')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (240, N'Shop_Product_Title', N'{cname}-{hostname}', 3, N'Shop_Product_Title')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (241, N'Shop_Product_Keywords', N'{hostname},{cname},{ctag}', 3, N'Shop_Product_Keywords')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (242, N'Shop_Product_Description', N'{cname}-{ctag}-{hostname}', 3, N'Shop_Product_Description')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (244, N'Shop_ProductSelf_Title', N'动软卓越 - 动软,电子商务解决方案提供商', 3, N'Shop_ProductSelf_Title')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (245, N'Shop_ProductSelf_Keywords', N'动软代码生成器,电子商务解决方案提供商', 3, N'Shop_ProductSelf_Keywords')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (246, N'Shop_ProductSelf_Description', N'动软卓越（北京）科技有限公司是专业的电子商务解决方案提供商和企业软件开发平台提供者,动软代码生成器是最好的全功能代码生成器,企业管理软件开发利器,智能化软件开发平台。', 3, N'Shop_ProductSelf_Description')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (248, N'Shop_News_Title', N'动软卓越 - 动软,电子商务解决方案提供商', 3, N'Shop_News_Title')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (249, N'Shop_News_Keywords', N'动软代码生成器,电子商务解决方案提供商', 3, N'Shop_News_Keywords')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (250, N'Shop_News_Description', N'动软卓越（北京）科技有限公司是专业的电子商务解决方案提供商和企业软件开发平台提供者,动软代码生成器是最好的全功能代码生成器,企业管理软件开发利器,智能化软件开发平台。', 3, N'Shop_News_Description')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (270, N'Shop_Category_KeyUrl', N'{hostname}{cname}', 3, N'Shop_Category_KeyUrl')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (271, N'Shop_Product_KeyUrl', N'/HTML/{catepath}/{cname}_{cid}.html', 3, N'Shop_Product_KeyUrl')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (280, N'Shop_ProductImage_KeyAlt', N'动软卓越-图片', 3, N'Shop_ProductImage_KeyAlt')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (281, N'Shop_ProductImage_ImageTitle', N'很好很强大', 3, N'Shop_ProductImage_ImageTitle')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (283, N'PageHeader', N'<a href="Home.aspx">Home</a>', 1, N'此处设置内容将显示在网站头部')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (284, N'PageFooter', N'<a href="Home.aspx">Home</a>', 1, N'此处设置内容将显示在网站尾部')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (285, N'Shop_CMS_Title', N'{cname}- {hostname}', 3, N'Shop_CMS_Title')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (286, N'Shop_CMS_Keywords', N'{cname}', 3, N'Shop_CMS_Keywords')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (287, N'Shop_CMS_Description', N'{cname}-{catepath}-{hostname}', 3, N'Shop_CMS_Description')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (288, N'Shop_CMS_KeyUrl', N'{hostname}{cname}', 3, N'Shop_CMS_KeyUrl')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (289, N'ArticleIsStatic', N'false', 5, N'CMS 文章是否静态化，true表示静态化，false表示不需要静态化')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (290, N'CMS_Home_Title', N'动软商城-动软电子商务解决方案', 4, N'CMS_Home_Title')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (291, N'CMS_Home_Keywords', N'动软商城-动软电子商务解决方案', 4, N'CMS_Home_Keywords')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (292, N'CMS_Home_Description', N'动软卓越（北京）科技有限公司是专业的电子商务系统软件研发和系统服务商。', 4, N'CMS_Home_Description')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (293, N'CMS_About_Title', N'动软卓越 - 动软,电子商务解决方案提供商', 4, N'CMS_About_Title')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (294, N'CMS_About_Keywords', N'动软代码生成器,电子商务解决方案提供商', 4, N'CMS_About_Keywords')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (295, N'CMS_About_Description', N'动软卓越（北京）科技有限公司是专业的电子商务解决方案提供商和企业软件开发平台提供者,动软代码生成器是最好的全功能代码生成器,企业管理软件开发利器,智能化软件开发平台。', 4, N'CMS_About_Description')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (296, N'CMS_Contact_Title', N'动软卓越 - 动软,电子商务解决方案提供商', 4, N'CMS_Contact_Title')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (297, N'CMS_Contact_Keywords', N'动软代码生成器,电子商务解决方案提供商', 4, N'CMS_Contact_Keywords')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (298, N'CMS_Contact_Description', N'动软卓越（北京）科技有限公司是专业的电子商务解决方案提供商和企业软件开发平台提供者,动软代码生成器是最好的全功能代码生成器,企业管理软件开发利器,智能化软件开发平台。', 4, N'CMS_Contact_Description')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (299, N'CMS_CMSImage_KeyAlt', N'动软卓越-图片', 4, N'CMS_CMSImage_KeyAlt')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (300, N'CMS_CMSImage_ImageTitle', N'动软卓越——{cname}', 4, N'CMS_CMSImage_ImageTitle')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (301, N'CMS_CMS_Title', N'{cname} - 动软电子商务解决方案', 4, N'CMS_CMS_Title')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (302, N'CMS_CMS_Keywords', N'{cname}', 4, N'CMS_CMS_Keywords')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (303, N'CMS_CMS_Description', N'{cname},{ctname}', 4, N'CMS_CMS_Description')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (304, N'CMS_CMS_KeyUrl', N'/HTML/{catedir}/{cname_p}-{cid}.html', 4, N'CMS_CMS_KeyUrl')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (306, N'EmailTemplet_Register', N'2', 1, N'用户注册邮件激活模板')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (307, N'EmailTemplet_FindPwd', N'1', 1, N'用户找回密码邮件模板')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (308, N'EmailTemplet_Feedback', N'1', 1, N'用户意见与反馈邮件模板')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (309, N'EmailTemplet_GuestBook', N'3', 1, N'回复用户留言邮件模板')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (310, N'EmailTemplet_Inquery', N'4', 1, N'用户询盘邮件模板')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (311, N'SNS_ImageStoreWay', N'0', 5, N'图片存储的方式[1:网上存储 0：本地存储]')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (312, N'SNS_YouPaiYunOperaterName', N'remaigou', 5, N'网络又拍云存储照片【操作者名称】')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (313, N'SNS_YouPaiOperaterPassword', N'rmg99999', 5, N'网络又拍云存储照片【操作者密码】')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (314, N'SNS_YouPaiSpaceName', N'remaigou', 5, N'网络又拍云存储照片【空间名称】')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (315, N'SNS_YouPaiThumbPhotoExt', N'!200px', 5, N'网络又拍云存储照片缩略小图后缀名')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (316, N'SNS_YouPaiBigPhotoExt', N'!800px', 5, N'网络又拍云存储照片缩略大图后缀名')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (317, N'SNS_YouPaiPhotoDomain', N'http://remaigou.b0.upaiyun.com', 5, N'网络又拍云存储照片域名')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (318, N'BaiduShareUserId', N'0', 1, N'百度分享的用户id')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (319, N'CMS_ImageStoreWay', N'0', 5, N'图片存储的方式[1:网上存储 0：本地存储]')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (320, N'CMS_YouPaiYunOperaterName', N'remaigou', 5, N'网络又拍云存储照片【操作者名称】')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (321, N'CMS_YouPaiOperaterPassword', N'rmg99999', 5, N'网络又拍云存储照片【操作者密码】')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (322, N'CMS_YouPaiSpaceName', N'remaigou', 5, N'网络又拍云存储照片【空间名称】')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (323, N'CMS_YouPaiThumbPhotoExt', N'!200px', 5, N'网络又拍云存储照片缩略小图后缀名')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (324, N'CMS_YouPaiBigPhotoExt', N'!800px', 5, N'网络又拍云存储照片缩略大图后缀名')
GO
print 'Processed 200 total records'
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (325, N'CMS_YouPaiPhotoDomain', N'http://remaigou.b0.upaiyun.com', 5, N'网络又拍云存储照片域名')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (326, N'CMS_ThumbPhotoSize', N'148x108', 4, N'CMS 上传图片缩略图的尺寸')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (327, N'SNSIsStatic', N'false', 1, N'是否静态化，true表示静态化，false表示不需要静态化')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (328, N'AuthorizeCode', N'9K6Q5E63D1A0D918EFD2C9ED3D8AB65F8D3D184605C5CF|9i3W4X4DF75EDEC1A3A6D8D0A3163B686AA1F18CF0C418', 1, N'AuthorizeCode')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (329, N'CMS_Static_ClassRule', N'0', 4, N'文章静态化栏目URL规则，0：表示使用ID，1：表示使用栏目名称拼音，2：表示使用自定义优化')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (330, N'CMS_Static_ContentRule', N'0', 4, N'文章静态化内容URL规则，0：表示使用ID，1：表示使用文章名称拼音，2：表示使用自定义优化')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (331, N'ArticleStaticRoot', N'/HTML/', 4, N'文章静态化根目录地址，为空就默认为根目录下')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (332, N'SNS_Home_Keywords', N'渠道社区，动软商城，批发商城，网上商城', 2, N'SNS_Home_Keywords')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (333, N'SNS_Home_Description', N'动软卓越（北京）科技有限公司是专业的电子商务系统软件研发和系统服务商。', 2, N'SNS_Home_Description')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (334, N'SNS_ProductList_Title', N'商品 {hostname} - 动软电子商务解决方案', 2, N'SNS_ProductList_Title')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (335, N'SNS_ProductList_Description', N'动软卓越（北京）科技有限公司是专业的电子商务系统软件研发和系统服务商。', 2, N'SNS_ProductList_Description')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (336, N'SNS_PhotoList_Title', N'图片列表 {hostname} - 动软,电子商务解决方案提供商', 2, N'SNS_PhotoList_Title')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (337, N'SNS_PhotoList_Keywords', N'动软卓越（北京）科技有限公司是专业的电子商务系统软件研发和系统服务商。', 2, N'SNS_PhotoList_Keywords')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (338, N'SNS_PhotoList_Description', N'{hostname}，渠道社区，动软商城，批发商城，网上商城', 2, N'SNS_PhotoList_Description')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (341, N'Shop_AddProduct_OpenSku', N'True', 3, N'添加商品时是否显示规格选项卡')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (342, N'Shop_AddProduct_OpenFit', N'False', 3, N'添加商品时是否显示配件选项卡')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (343, N'Shop_AddProduct_OpenRelated', N'True', 3, N'添加商品时是否显示相关商品选项卡')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (344, N'Shop_OrderList_Paying', N'True', 3, N'开启后台订单列表等待付款选项卡')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (345, N'Shop_OrderList_PreHandle', N'True', 3, N'开启后台订单列表等待处理选项卡')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (346, N'Shop_OrderList_Cancel', N'True', 3, N'开启后台订单列表取消订单选项卡')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (347, N'Shop_OrderList_Locking', N'True', 3, N'开启后台订单列表订单锁定选项卡')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (348, N'Shop_OrderList_PreConfirm', N'True', 3, N'开启后台订单列表等待付款确认选项卡')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (349, N'Shop_OrderList_Handling', N'True', 3, N'开启后台订单列表正在处理选项卡')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (350, N'Shop_OrderList_Shipping', N'True', 3, N'开启后台订单列表配货中选项卡')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (351, N'Shop_OrderList_Shiped', N'True', 3, N'开启后台订单列表已发货选项卡')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (352, N'Shop_OrderList_Complete', N'True', 3, N'开启后台订单列表已完成选项卡')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (353, N'SNS_check_word', N'0', 2, N'上传文字的审核状态')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (354, N'SNS_Open_Comment', N'True', 2, N'是否启用社区的评论功能')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (355, N'SNS_Open_Login', N'True', 2, N'是否启用社区的用户登录功能')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (356, N'SNS_Open_Post', N'True', 2, N'是否启用社区的发表动态功能')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (357, N'SNS_Open_Register', N'True', 2, N'是否启用社区的用户注册功能')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (358, N'Social_SinaAppId', N'', 5, N'新浪媒体SinaAppKey')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (359, N'Social_SinaSercet', N'', 5, N'新浪媒体SinaAppSerce')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (360, N'Social_QQAppId', N'', 5, N'QQ媒体QQAPPID')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (361, N'Social_QQSercet', N'', 5, N'QQ媒体txtQQAPPKEY')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (362, N'Social_TencentAppId', N'', 5, N'腾讯微博媒体txtTencentAppId')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (363, N'Social_TencentSercet', N'', 5, N'腾讯微博媒体Social_TencentSercet')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (364, N'SNS_Open_Blog', N'True', 2, N' 是否开启前台的文章频道')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (365, N'SNS_Product_OpenRedirect', N'False', 2, N'分享商品开启本地重定向跳转，True 为确认开启，False 为不开启，默认为不开启')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (366, N'SNS_TaoBaoExcel_SheetName', N'Page1', 2, N'淘宝导出数据的SheetName')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (367, N'SNS_Close_Login', N'False', 2, N'是否关闭社区的用户登录功能')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (368, N'SNS_Close_Register', N'False', 2, N'是否关闭社区的用户注册功能')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (369, N'SNS_Blog_IsShow', N'True', NULL, N'发表文章')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (372, N'Shop_Create_Post', N'True', 3, N'商品评论是否创建动态')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (373, N'SNS_BlogDetail_Title', N'{cname}动软商城-动软电子商务解决方案', 2, N'SNS_BlogDetail_Title')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (374, N'SNS_BlogDetail_Keywords', N'{cname}，渠道社区，动软商城，批发商城，网上商城', 2, N'SNS_BlogDetail_Keywords')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (375, N'SNS_BlogDetail_Description', N'动软卓越（北京）科技有限公司是专业的电子商务系统软件研发和系统服务商。', 2, N'SNS_BlogDetail_Description')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (376, N'CMS_CMSSelf_Title', N'动软商城-动软电子商务解决方案', 4, N'CMS_CMSSelf_Title')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (377, N'CMS_CMSSelf_Keywords', N'动软商城，批发商城，网上商城', 4, N'CMS_CMSSelf_Keywords')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (378, N'CMS_CMSSelf_Description', N'动软卓越（北京）科技有限公司是专业的电子商务系统软件研发和系统服务商。', 4, N'CMS_CMSSelf_Description')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (379, N'CMS_CMSSelf_KeyUrl', N'', 4, N'CMS_CMSSelf_KeyUrl')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (380, N'API_BaiDuPushApiKey', N'', 5, N'百度云推送API_BaiDuPushApiKey')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (381, N'API_BaiDuPushSecretKey', N'', 5, N'百度云推送API_BaiDuPushSecretKey')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (382, N'System_Close_Login', N'False', 3, N'是否关闭社区的用户登录功能')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (383, N'System_Close_Register', N'False', 3, N'是否关闭社区的用户注册功能')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (384, N'System_Close_RegisterEmailCheck', N'False', 3, N'是否关闭商城注册邮件验证功能')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (385, N'ThemeCurrent', N'M1', NULL, N'当前主模板的名称')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (386, N'System_ThumbImage_AddWater', N'false', 1, N'图片缩略图是否添加水印')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (387, N'System_SinaApi_IsShow', N'True', 5, N'是否显示新浪API设置')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (388, N'System_ShopTaoApi_IsShow', N'True', 5, N'API 设置-是否显示淘宝卖家API设置')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (389, N'System_QQApi_IsShow', N'True', 5, N'是否显示QQAPI设置')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (390, N'System_TaoCode_IsShow', N'False', 5, N'API 设置-是否显示淘点金设置')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (391, N'System_VideoApi_IsShow', N'True', 5, N'视频API设置')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (392, N'System_BaiduApi_IsShow', N'False', 5, N'APP信息推送')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (439, N'System_WeChatApi_IsShow', N'True', 1, N'微信API显示')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (452, N'System_ExpressApi_IsShow', N'true', 1, N'是否显示物流接口设置')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (453, N'Shop_CouponRule_IsCategory', N'True', 1, N'优惠券分类使用')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (454, N'V_SNS_GroupId', N'1', 1, N'微社区小组')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (455, N'EmailTemplet_Order', N'3', 3, N'用户订单通知邮件模版')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (456, N'Shop_ShoppingCart_IsUpdate', N'True', 3, N'购物车价格实时更新')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (457, N'RankScoreEnable', N'True', 1, N'开启等级成长值体系')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (458, N'Shop_Commssion_IsOpen', N'True', 3, N'是否开启佣金系统')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (459, N'Shop_Register_OpenForCoupon', N'False', 3, N'是否开启注册送优惠券')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (460, N'Shop_Register_CouponRuleId', N'0', 3, N'注册送优惠券规则id，多种优惠券可用，或者|分割，如114,115|116')
INSERT [SA_Config_System] ([ID], [Keyname], [Value], [KeyType], [Description]) VALUES (474, N'Shop_DefaultDeliveryRegionId', N'651', 1, N'开启分仓时 默认配送地区Id')
SET IDENTITY_INSERT [SA_Config_System] OFF
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SA_Config_Area]') AND type in (N'U'))
BEGIN
CREATE TABLE [SA_Config_Area](
	[AreaName] [nvarchar](50) NOT NULL,
	[Status] [smallint] NOT NULL,
 CONSTRAINT [PK_SA_Config_Area_1] PRIMARY KEY CLUSTERED 
(
	[AreaName] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
INSERT [SA_Config_Area] ([AreaName], [Status]) VALUES (N'CMS', 1)
INSERT [SA_Config_Area] ([AreaName], [Status]) VALUES (N'Shop', 1)
INSERT [SA_Config_Area] ([AreaName], [Status]) VALUES (N'SNS', 1)
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[RoundTime]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
BEGIN
execute sp_executesql @statement = N'CREATE FUNCTION [RoundTime] (@Time datetime, @RoundTo float)
RETURNS datetime
AS
BEGIN
   DECLARE @RoundedTime smalldatetime
   DECLARE @Multiplier float

   SET @Multiplier= 24.0/@RoundTo

   SET @RoundedTime= ROUND(CAST(CAST(CONVERT(varchar,@Time,121) AS datetime) AS float) * @Multiplier,0)/@Multiplier

   RETURN @RoundedTime
END' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Poll_Users]') AND type in (N'U'))
BEGIN
CREATE TABLE [Poll_Users](
	[UserID] [int] IDENTITY(1,1) NOT NULL,
	[UserName] [nvarchar](50) NULL,
	[Password] [binary](50) NULL,
	[TrueName] [nvarchar](50) NULL,
	[Age] [int] NULL,
	[Sex] [char](2) NULL,
	[Phone] [nvarchar](50) NULL,
	[Email] [nvarchar](50) NULL,
	[UserType] [char](2) NULL,
	[SysUserId] [int] NOT NULL CONSTRAINT [DF_Poll_Users_SystemUserId]  DEFAULT ((0)),
 CONSTRAINT [PK_Poll_Users] PRIMARY KEY NONCLUSTERED 
(
	[UserID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Poll_UserPoll]') AND type in (N'U'))
BEGIN
CREATE TABLE [Poll_UserPoll](
	[UserID] [int] NOT NULL,
	[TopicID] [int] NULL,
	[OptionID] [int] NULL,
	[CreatTime] [datetime] NULL,
	[UserIP] [nvarchar](50) NULL
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Poll_Topics]') AND type in (N'U'))
BEGIN
CREATE TABLE [Poll_Topics](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[Title] [nvarchar](max) NULL,
	[Type] [smallint] NULL,
	[FormID] [int] NULL,
 CONSTRAINT [PK_Poll_Topics] PRIMARY KEY NONCLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Poll_Reply]') AND type in (N'U'))
BEGIN
CREATE TABLE [Poll_Reply](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[TopicID] [int] NULL,
	[ReContent] [nvarchar](300) NULL,
	[ReTime] [datetime] NULL,
 CONSTRAINT [PK_Poll_Reply] PRIMARY KEY NONCLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Poll_Options]') AND type in (N'U'))
BEGIN
CREATE TABLE [Poll_Options](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[Name] [nvarchar](150) NULL,
	[TopicID] [int] NULL,
	[isChecked] [smallint] NULL,
	[SubmitNum] [int] NULL,
 CONSTRAINT [PK_Poll_Options] PRIMARY KEY NONCLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Poll_Forms]') AND type in (N'U'))
BEGIN
CREATE TABLE [Poll_Forms](
	[FormID] [int] IDENTITY(1,1) NOT NULL,
	[Name] [nvarchar](50) NULL,
	[IsActive] [bit] NULL CONSTRAINT [DF_Poll_Forms_IsActive]  DEFAULT ((0)),
	[Description] [nvarchar](300) NULL,
 CONSTRAINT [PK_Poll_Forms] PRIMARY KEY NONCLUSTERED 
(
	[FormID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Pay_RechargeRequest]') AND type in (N'U'))
BEGIN
CREATE TABLE [Pay_RechargeRequest](
	[RechargeId] [bigint] IDENTITY(10000,1) NOT NULL,
	[TradeDate] [datetime] NOT NULL,
	[RechargeBlance] [money] NOT NULL,
	[UserId] [int] NOT NULL,
	[SellerId] [int] NULL,
	[Status] [int] NOT NULL CONSTRAINT [DF_Pay_RechargeRequest_Status]  DEFAULT ((0)),
	[Tradetype] [int] NULL,
	[PaymentTypeId] [int] NOT NULL,
	[PaymentGateway] [nvarchar](50) NULL,
 CONSTRAINT [PK_Pay_RechargeRequest] PRIMARY KEY CLUSTERED 
(
	[RechargeId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Pay_PaymentTypes]') AND type in (N'U'))
BEGIN
CREATE TABLE [Pay_PaymentTypes](
	[ModeId] [int] IDENTITY(1,1) NOT NULL,
	[MerchantCode] [nvarchar](300) NOT NULL,
	[EmailAddress] [nvarchar](255) NULL,
	[SecretKey] [nvarchar](4000) NULL,
	[SecondKey] [nvarchar](4000) NULL,
	[Password] [nvarchar](4000) NULL,
	[Partner] [nvarchar](300) NULL,
	[Name] [nvarchar](100) NOT NULL,
	[Description] [ntext] NULL,
	[Gateway] [nvarchar](200) NULL,
	[DisplaySequence] [int] NOT NULL,
	[Charge] [money] NOT NULL,
	[IsPercent] [bit] NOT NULL,
	[AllowRecharge] [bit] NOT NULL,
	[Logo] [nvarchar](255) NULL,
	[DrivePath] [nvarchar](255) NOT NULL CONSTRAINT [DF_Pay_PaymentTypes_DriveType]  DEFAULT (N'|1|'),
 CONSTRAINT [PK_Pay_PaymentTypes] PRIMARY KEY CLUSTERED 
(
	[ModeId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO
SET IDENTITY_INSERT [Pay_PaymentTypes] ON
INSERT [Pay_PaymentTypes] ([ModeId], [MerchantCode], [EmailAddress], [SecretKey], [SecondKey], [Password], [Partner], [Name], [Description], [Gateway], [DisplaySequence], [Charge], [IsPercent], [AllowRecharge], [Logo], [DrivePath]) VALUES (1, N'', N'', N'', N'', N'', N'', N'货到付款', N'', N'cod', 1, 0.0000, 0, 0, NULL, N'|1|2|')
SET IDENTITY_INSERT [Pay_PaymentTypes] OFF
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Pay_PaymentCurrencys]') AND type in (N'U'))
BEGIN
CREATE TABLE [Pay_PaymentCurrencys](
	[Code] [nvarchar](20) NOT NULL,
	[ModeId] [int] NOT NULL,
 CONSTRAINT [PK_Pay_PaymentCurrencys] PRIMARY KEY CLUSTERED 
(
	[Code] ASC,
	[ModeId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Pay_Currencys]') AND type in (N'U'))
BEGIN
CREATE TABLE [Pay_Currencys](
	[Code] [nvarchar](20) NOT NULL,
	[Name] [nvarchar](20) NOT NULL,
	[Symbol] [nvarchar](20) NOT NULL,
	[ExchangeRate] [money] NOT NULL,
 CONSTRAINT [PK_Pay_Currencys] PRIMARY KEY CLUSTERED 
(
	[Code] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Pay_BalanceFreezeDetails]') AND type in (N'U'))
BEGIN
CREATE TABLE [Pay_BalanceFreezeDetails](
	[JournalNumber] [bigint] IDENTITY(1,1) NOT NULL,
	[FreezeType] [int] NOT NULL,
	[FreezeTime] [datetime] NOT NULL,
	[Amount] [money] NOT NULL,
	[UserId] [int] NOT NULL,
	[Remark] [nvarchar](2000) NULL,
 CONSTRAINT [PK_Pay_BalanceFreezeDetails] PRIMARY KEY CLUSTERED 
(
	[JournalNumber] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Pay_BalanceDrawRequest]') AND type in (N'U'))
BEGIN
CREATE TABLE [Pay_BalanceDrawRequest](
	[JournalNumber] [bigint] IDENTITY(1,1) NOT NULL,
	[RequestTime] [datetime] NOT NULL,
	[Amount] [money] NOT NULL,
	[UserID] [int] NOT NULL,
	[TrueName] [nvarchar](50) NULL,
	[BankName] [nvarchar](200) NULL,
	[BankCard] [nvarchar](50) NOT NULL,
	[CardTypeID] [int] NOT NULL,
	[RequestStatus] [int] NOT NULL CONSTRAINT [DF_Pay_BalanceDrawRequest_RequestStatus]  DEFAULT ((1)),
	[RequestType] [smallint] NOT NULL CONSTRAINT [DF_Pay_BalanceDrawRequest_RequestType]  DEFAULT ((1)),
	[TargetId] [int] NOT NULL CONSTRAINT [DF_Pay_BalanceDrawRequest_TargetId]  DEFAULT ((-1)),
	[Remark] [nvarchar](2000) NULL,
 CONSTRAINT [PK_Pay_BalanceDrawRequest] PRIMARY KEY CLUSTERED 
(
	[JournalNumber] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Pay_BalanceDetails]') AND type in (N'U'))
BEGIN
CREATE TABLE [Pay_BalanceDetails](
	[JournalNumber] [bigint] IDENTITY(1,1) NOT NULL,
	[UserId] [int] NOT NULL,
	[TradeDate] [datetime] NOT NULL,
	[TradeType] [int] NOT NULL,
	[Income] [money] NULL,
	[Expenses] [money] NULL,
	[Balance] [money] NOT NULL,
	[Payer] [int] NULL,
	[Payee] [int] NULL,
	[Remark] [nvarchar](2000) NULL,
 CONSTRAINT [PK_Pay_BalanceDetails] PRIMARY KEY CLUSTERED 
(
	[JournalNumber] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_WeiBoTaskMsg]') AND type in (N'U'))
BEGIN
CREATE TABLE [Ms_WeiBoTaskMsg](
	[WeiBoTaskId] [int] IDENTITY(1,1) NOT NULL,
	[WeiboMsg] [nvarchar](200) NOT NULL,
	[ImageUrl] [nvarchar](300) NULL,
	[CreateDate] [datetime] NOT NULL,
	[PublishDate] [datetime] NULL,
 CONSTRAINT [PK_Ms_WeiBoTaskMsg] PRIMARY KEY CLUSTERED 
(
	[WeiBoTaskId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_WeiBoMsg]') AND type in (N'U'))
BEGIN
CREATE TABLE [Ms_WeiBoMsg](
	[WeiBoId] [int] IDENTITY(1,1) NOT NULL,
	[WeiboMsg] [nvarchar](200) NOT NULL,
	[ImageUrl] [nvarchar](300) NULL,
	[CreateDate] [datetime] NOT NULL,
	[PublishDate] [datetime] NULL,
 CONSTRAINT [PK_Ms_WeiBoMsg] PRIMARY KEY CLUSTERED 
(
	[WeiBoId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_ThumbnailSize]') AND type in (N'U'))
BEGIN
CREATE TABLE [Ms_ThumbnailSize](
	[ThumName] [nvarchar](50) NOT NULL,
	[ThumWidth] [int] NOT NULL,
	[ThumHeight] [int] NOT NULL,
	[Type] [int] NOT NULL,
	[Remark] [nvarchar](300) NULL,
	[CloudSizeName] [nvarchar](50) NULL,
	[CloudType] [int] NOT NULL CONSTRAINT [DF_Ms_ThumbnailSize_CloudType]  DEFAULT ((0)),
	[ThumMode] [int] NOT NULL CONSTRAINT [DF_Ms_ThumbnailSize_ThumMode]  DEFAULT ((0)),
	[IsWatermark] [bit] NOT NULL CONSTRAINT [DF_Ms_ThumbnailSize_IsWatermark]  DEFAULT ((0)),
	[Theme] [nvarchar](100) NULL CONSTRAINT [DF_Ms_ThumbnailSize_Theme]  DEFAULT (N''),
 CONSTRAINT [PK_SA_ThumSize] PRIMARY KEY CLUSTERED 
(
	[ThumName] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
INSERT [Ms_ThumbnailSize] ([ThumName], [ThumWidth], [ThumHeight], [Type], [Remark], [CloudSizeName], [CloudType], [ThumMode], [IsWatermark], [Theme]) VALUES (N'T115X115_', 115, 115, 2, N'', N'', 0, 0, 0, N'')
INSERT [Ms_ThumbnailSize] ([ThumName], [ThumWidth], [ThumHeight], [Type], [Remark], [CloudSizeName], [CloudType], [ThumMode], [IsWatermark], [Theme]) VALUES (N'T116x170_', 116, 170, 1, N'热卖购首页图片推荐', N'!200px', 0, 0, 0, N'')
INSERT [Ms_ThumbnailSize] ([ThumName], [ThumWidth], [ThumHeight], [Type], [Remark], [CloudSizeName], [CloudType], [ThumMode], [IsWatermark], [Theme]) VALUES (N'T120X120_', 120, 120, 2, N'', N'', 0, 2, 0, N'Baimai')
INSERT [Ms_ThumbnailSize] ([ThumName], [ThumWidth], [ThumHeight], [Type], [Remark], [CloudSizeName], [CloudType], [ThumMode], [IsWatermark], [Theme]) VALUES (N'T120X92_', 120, 92, 2, N'', N'', 0, 4, 0, N'')
INSERT [Ms_ThumbnailSize] ([ThumName], [ThumWidth], [ThumHeight], [Type], [Remark], [CloudSizeName], [CloudType], [ThumMode], [IsWatermark], [Theme]) VALUES (N'T128X130_', 128, 130, 2, N'', N'', 0, 0, 0, N'')
INSERT [Ms_ThumbnailSize] ([ThumName], [ThumWidth], [ThumHeight], [Type], [Remark], [CloudSizeName], [CloudType], [ThumMode], [IsWatermark], [Theme]) VALUES (N'T157X180_', 157, 180, 2, N'大banner下商品', N'', 0, 1, 0, N'Baimai')
INSERT [Ms_ThumbnailSize] ([ThumName], [ThumWidth], [ThumHeight], [Type], [Remark], [CloudSizeName], [CloudType], [ThumMode], [IsWatermark], [Theme]) VALUES (N'T158X158_', 158, 158, 2, N'', N'', 0, 1, 0, N'')
INSERT [Ms_ThumbnailSize] ([ThumName], [ThumWidth], [ThumHeight], [Type], [Remark], [CloudSizeName], [CloudType], [ThumMode], [IsWatermark], [Theme]) VALUES (N'T158X320_', 158, 320, 2, N'', N'', 0, 2, 0, N'M1')
INSERT [Ms_ThumbnailSize] ([ThumName], [ThumWidth], [ThumHeight], [Type], [Remark], [CloudSizeName], [CloudType], [ThumMode], [IsWatermark], [Theme]) VALUES (N'T160X160_', 160, 160, 1, N'', N'', 0, 1, 0, N'')
INSERT [Ms_ThumbnailSize] ([ThumName], [ThumWidth], [ThumHeight], [Type], [Remark], [CloudSizeName], [CloudType], [ThumMode], [IsWatermark], [Theme]) VALUES (N'T175X228_', 175, 228, 2, N'', N'', 0, 1, 0, N'')
INSERT [Ms_ThumbnailSize] ([ThumName], [ThumWidth], [ThumHeight], [Type], [Remark], [CloudSizeName], [CloudType], [ThumMode], [IsWatermark], [Theme]) VALUES (N'T185X254_', 185, 254, 2, N'', N'', 0, 1, 0, N'')
INSERT [Ms_ThumbnailSize] ([ThumName], [ThumWidth], [ThumHeight], [Type], [Remark], [CloudSizeName], [CloudType], [ThumMode], [IsWatermark], [Theme]) VALUES (N'T192X250_', 192, 250, 2, N'F1-F5中小图', N'', 0, 1, 0, N'Baimai')
INSERT [Ms_ThumbnailSize] ([ThumName], [ThumWidth], [ThumHeight], [Type], [Remark], [CloudSizeName], [CloudType], [ThumMode], [IsWatermark], [Theme]) VALUES (N'T197X259_', 197, 259, 2, N'品牌热销', N'', 0, 1, 0, N'Baimai')
INSERT [Ms_ThumbnailSize] ([ThumName], [ThumWidth], [ThumHeight], [Type], [Remark], [CloudSizeName], [CloudType], [ThumMode], [IsWatermark], [Theme]) VALUES (N'T198X98_', 198, 98, 2, N'', N'', 0, 4, 0, N'M1')
INSERT [Ms_ThumbnailSize] ([ThumName], [ThumWidth], [ThumHeight], [Type], [Remark], [CloudSizeName], [CloudType], [ThumMode], [IsWatermark], [Theme]) VALUES (N'T207x270_', 207, 270, 2, N'', N'', 0, 1, 0, N'')
INSERT [Ms_ThumbnailSize] ([ThumName], [ThumWidth], [ThumHeight], [Type], [Remark], [CloudSizeName], [CloudType], [ThumMode], [IsWatermark], [Theme]) VALUES (N'T211x1280_', 211, 1280, 1, N'图片瀑布流尺寸，宽度固定，高度无限制', N'!200px', 0, 0, 0, N'')
INSERT [Ms_ThumbnailSize] ([ThumName], [ThumWidth], [ThumHeight], [Type], [Remark], [CloudSizeName], [CloudType], [ThumMode], [IsWatermark], [Theme]) VALUES (N'T220X297_', 220, 297, 2, N'', N'', 0, 1, 0, N'M1')
INSERT [Ms_ThumbnailSize] ([ThumName], [ThumWidth], [ThumHeight], [Type], [Remark], [CloudSizeName], [CloudType], [ThumMode], [IsWatermark], [Theme]) VALUES (N'T225x350_', 225, 350, 1, N'最IN搭配晒货推荐图片尺寸', N'', 0, 0, 0, N'')
INSERT [Ms_ThumbnailSize] ([ThumName], [ThumWidth], [ThumHeight], [Type], [Remark], [CloudSizeName], [CloudType], [ThumMode], [IsWatermark], [Theme]) VALUES (N'T230X316_', 230, 316, 2, N'M1店铺首页推荐商品', N'', 0, 1, 0, N'M1')
INSERT [Ms_ThumbnailSize] ([ThumName], [ThumWidth], [ThumHeight], [Type], [Remark], [CloudSizeName], [CloudType], [ThumMode], [IsWatermark], [Theme]) VALUES (N'T235x1280_', 235, 1280, 0, N'CMS图片瀑布流尺寸', N'', 0, 4, 0, N'')
INSERT [Ms_ThumbnailSize] ([ThumName], [ThumWidth], [ThumHeight], [Type], [Remark], [CloudSizeName], [CloudType], [ThumMode], [IsWatermark], [Theme]) VALUES (N'T300X330_', 300, 330, 1, N'', N'', 0, 1, 0, N'')
INSERT [Ms_ThumbnailSize] ([ThumName], [ThumWidth], [ThumHeight], [Type], [Remark], [CloudSizeName], [CloudType], [ThumMode], [IsWatermark], [Theme]) VALUES (N'T300X390_', 300, 390, 2, N'', N'', 0, 1, 0, N'')
INSERT [Ms_ThumbnailSize] ([ThumName], [ThumWidth], [ThumHeight], [Type], [Remark], [CloudSizeName], [CloudType], [ThumMode], [IsWatermark], [Theme]) VALUES (N'T304X280_', 304, 280, 2, N'', N'', 0, 0, 0, N'M1')
INSERT [Ms_ThumbnailSize] ([ThumName], [ThumWidth], [ThumHeight], [Type], [Remark], [CloudSizeName], [CloudType], [ThumMode], [IsWatermark], [Theme]) VALUES (N'T320X158_', 320, 158, 2, N'', N'', 0, 1, 0, N'M1')
INSERT [Ms_ThumbnailSize] ([ThumName], [ThumWidth], [ThumHeight], [Type], [Remark], [CloudSizeName], [CloudType], [ThumMode], [IsWatermark], [Theme]) VALUES (N'T350X350_', 350, 350, 2, N'', N'', 0, 2, 0, N'')
INSERT [Ms_ThumbnailSize] ([ThumName], [ThumWidth], [ThumHeight], [Type], [Remark], [CloudSizeName], [CloudType], [ThumMode], [IsWatermark], [Theme]) VALUES (N'T394X250_', 394, 250, 2, N'F1-F5中中图', N'', 0, 1, 0, N'Baimai')
INSERT [Ms_ThumbnailSize] ([ThumName], [ThumWidth], [ThumHeight], [Type], [Remark], [CloudSizeName], [CloudType], [ThumMode], [IsWatermark], [Theme]) VALUES (N'T394X510_', 394, 510, 2, N'F1-F5中大图', N'', 0, 1, 0, N'Baimai')
INSERT [Ms_ThumbnailSize] ([ThumName], [ThumWidth], [ThumHeight], [Type], [Remark], [CloudSizeName], [CloudType], [ThumMode], [IsWatermark], [Theme]) VALUES (N'T400x1280_', 400, 1280, 1, N'个人中心图片分享查看大图尺寸', N'', 0, 0, 0, N'')
INSERT [Ms_ThumbnailSize] ([ThumName], [ThumWidth], [ThumHeight], [Type], [Remark], [CloudSizeName], [CloudType], [ThumMode], [IsWatermark], [Theme]) VALUES (N'T482X320_', 482, 320, 2, N'', N'', 0, 4, 0, N'M1')
INSERT [Ms_ThumbnailSize] ([ThumName], [ThumWidth], [ThumHeight], [Type], [Remark], [CloudSizeName], [CloudType], [ThumMode], [IsWatermark], [Theme]) VALUES (N'T50X65_', 50, 65, 2, N'', N'', 0, 2, 0, N'')
INSERT [Ms_ThumbnailSize] ([ThumName], [ThumWidth], [ThumHeight], [Type], [Remark], [CloudSizeName], [CloudType], [ThumMode], [IsWatermark], [Theme]) VALUES (N'T558X297_', 558, 297, 2, N'', N'', 0, 1, 0, N'M1')
INSERT [Ms_ThumbnailSize] ([ThumName], [ThumWidth], [ThumHeight], [Type], [Remark], [CloudSizeName], [CloudType], [ThumMode], [IsWatermark], [Theme]) VALUES (N'T56X56_', 56, 56, 2, N'', N'', 0, 2, 0, N'Baimai')
INSERT [Ms_ThumbnailSize] ([ThumName], [ThumWidth], [ThumHeight], [Type], [Remark], [CloudSizeName], [CloudType], [ThumMode], [IsWatermark], [Theme]) VALUES (N'T60x60_', 60, 60, 1, N'专辑封面图片尺寸', N'', 0, 2, 0, N'')
INSERT [Ms_ThumbnailSize] ([ThumName], [ThumWidth], [ThumHeight], [Type], [Remark], [CloudSizeName], [CloudType], [ThumMode], [IsWatermark], [Theme]) VALUES (N'T80x80_', 80, 80, 1, N'小组图片尺寸', N'', 0, 2, 0, N'')
INSERT [Ms_ThumbnailSize] ([ThumName], [ThumWidth], [ThumHeight], [Type], [Remark], [CloudSizeName], [CloudType], [ThumMode], [IsWatermark], [Theme]) VALUES (N'T88X47_', 88, 47, 2, N'品牌旗舰店', N'', 0, 1, 0, N'Baimai')
INSERT [Ms_ThumbnailSize] ([ThumName], [ThumWidth], [ThumHeight], [Type], [Remark], [CloudSizeName], [CloudType], [ThumMode], [IsWatermark], [Theme]) VALUES (N'T95X120_', 95, 120, 2, N'', N'', 0, 1, 0, N'M1')
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_Theme]') AND type in (N'U'))
BEGIN
CREATE TABLE [Ms_Theme](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[Name] [nvarchar](100) NULL,
	[Description] [nvarchar](200) NULL,
	[PreviewPhotoSrc] [nvarchar](100) NULL,
	[ZipPackageSrc] [nvarchar](50) NULL,
	[ThemeSize] [int] NULL,
	[Author] [nvarchar](100) NULL,
	[IsCurrent] [bit] NULL CONSTRAINT [DF_Ms_Theme_IsCurrent]  DEFAULT ((0)),
	[Language] [nvarchar](50) NULL,
	[CreatedDate] [datetime] NULL CONSTRAINT [DF_Ms_Theme_CreatedDate]  DEFAULT (getdate()),
	[Remark] [nvarchar](100) NULL,
 CONSTRAINT [PK_Ms_Theme] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET IDENTITY_INSERT [Ms_Theme] ON
INSERT [Ms_Theme] ([ID], [Name], [Description], [PreviewPhotoSrc], [ZipPackageSrc], [ThemeSize], [Author], [IsCurrent], [Language], [CreatedDate], [Remark]) VALUES (31, N'M1', N'动软商城默认模版', N'/Areas/Shop/Themes/M1/Theme.png', N'/Upload/Themes/M1.zip', 8887015, N'Maticsoft', 1, N'Chinese', CAST(0x0000A1DC013FFA10 AS DateTime), NULL)
SET IDENTITY_INSERT [Ms_Theme] OFF
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_TaskTimers]') AND type in (N'U'))
BEGIN
CREATE TABLE [Ms_TaskTimers](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[ExecuteType] [nvarchar](2000) NOT NULL,
	[IsSingle] [bit] NOT NULL CONSTRAINT [DF_Ms_TimerTasks_IsSingle]  DEFAULT ((1)),
	[Interval] [decimal](18, 2) NOT NULL,
	[ExecuteTime] [datetime] NOT NULL,
	[ExecuteNumber] [int] NOT NULL CONSTRAINT [DF_Ms_TimerTasks_ExecuteNumber]  DEFAULT ((0)),
	[Param1] [nvarchar](4000) NULL,
	[Param2] [nvarchar](4000) NULL,
	[Param3] [nvarchar](4000) NULL,
	[Param4] [nvarchar](4000) NULL,
	[Param5] [nvarchar](4000) NULL,
	[Param6] [nvarchar](4000) NULL,
	[Param7] [nvarchar](4000) NULL,
	[Param8] [nvarchar](4000) NULL,
	[Param9] [nvarchar](4000) NULL,
	[Param10] [nvarchar](4000) NULL,
 CONSTRAINT [PK_Ms_TaskQueue] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_SEORelation]') AND type in (N'U'))
BEGIN
CREATE TABLE [Ms_SEORelation](
	[RelationID] [int] IDENTITY(1,1) NOT NULL,
	[KeyName] [nvarchar](200) NULL,
	[LinkURL] [nvarchar](500) NULL,
	[IsCMS] [bit] NULL,
	[IsShop] [bit] NULL,
	[IsSNS] [bit] NULL,
	[IsComment] [bit] NULL,
	[CreatedDate] [datetime] NULL CONSTRAINT [DF_Ms_SEORelation_CreatedDate]  DEFAULT (getdate()),
	[IsActive] [bit] NULL,
 CONSTRAINT [PK_Ms_SEORelation] PRIMARY KEY CLUSTERED 
(
	[RelationID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_Regions]') AND type in (N'U'))
BEGIN
CREATE TABLE [Ms_Regions](
	[AreaId] [int] NULL,
	[RegionId] [int] IDENTITY(1,1) NOT NULL,
	[ParentId] [int] NULL,
	[RegionName] [nvarchar](100) NOT NULL,
	[Spell] [nvarchar](50) NULL,
	[SpellShort] [nvarchar](50) NULL,
	[DisplaySequence] [int] NOT NULL,
	[Path] [nvarchar](4000) NOT NULL,
	[Depth] [int] NOT NULL,
 CONSTRAINT [PK_MS_Regions] PRIMARY KEY CLUSTERED 
(
	[RegionId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET IDENTITY_INSERT [Ms_Regions] ON
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (1, 100, NULL, N'浙江省', NULL, N'ZJS', 1, N'0,', 1)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 101, 100, N'杭州市', NULL, N'HZS', 1, N'0,100,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 102, 101, N'上城区', NULL, N'SCQ', 1, N'0,100,101,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 103, 101, N'下城区', NULL, N'XCQ', 2, N'0,100,101,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 104, 101, N'江干区', NULL, N'JGQ', 3, N'0,100,101,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 105, 101, N'拱墅区', NULL, N'GSQ', 4, N'0,100,101,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 106, 101, N'西湖区', NULL, N'XHQ', 5, N'0,100,101,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 107, 101, N'滨江区', NULL, N'BJQ', 6, N'0,100,101,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 108, 101, N'萧山区', NULL, N'XSQ', 7, N'0,100,101,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 109, 101, N'余杭区', NULL, N'YHQ', 8, N'0,100,101,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 110, 101, N'桐庐县', NULL, N'TLX', 9, N'0,100,101,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 111, 101, N'淳安县', NULL, N'CAX', 10, N'0,100,101,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 112, 101, N'建德市', NULL, N'JDS', 11, N'0,100,101,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 113, 101, N'富阳市', NULL, N'FYS', 12, N'0,100,101,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 114, 101, N'临安市', NULL, N'LAS', 13, N'0,100,101,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 115, 101, N'其他区', NULL, N'QTQ', 14, N'0,100,101,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 116, 100, N'宁波市', NULL, N'NBS', 2, N'0,100,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 117, 116, N'海曙区', NULL, N'HSQ', 1, N'0,100,116,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 118, 116, N'江东区', NULL, N'JDQ', 2, N'0,100,116,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 119, 116, N'江北区', NULL, N'JBQ', 3, N'0,100,116,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 120, 116, N'北仑区', NULL, N'BLQ', 4, N'0,100,116,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 121, 116, N'镇海区', NULL, N'ZHQ', 5, N'0,100,116,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 122, 116, N'鄞州区', NULL, N'YZQ', 6, N'0,100,116,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 123, 116, N'象山县', NULL, N'XSX', 7, N'0,100,116,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 124, 116, N'宁海县', NULL, N'NHX', 8, N'0,100,116,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 125, 116, N'余姚市', NULL, N'YYS', 9, N'0,100,116,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 126, 116, N'慈溪市', NULL, N'CXS', 10, N'0,100,116,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 127, 116, N'奉化市', NULL, N'FHS', 11, N'0,100,116,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 128, 116, N'其他区', NULL, N'QTQ', 12, N'0,100,116,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 129, 100, N'温州市', NULL, N'WZS', 3, N'0,100,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 130, 129, N'鹿城区', NULL, N'LCQ', 1, N'0,100,129,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 131, 129, N'龙湾区', NULL, N'LWQ', 2, N'0,100,129,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 132, 129, N'瓯海区', NULL, N'OHQ', 3, N'0,100,129,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 133, 129, N'洞头县', NULL, N'DTX', 4, N'0,100,129,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 134, 129, N'永嘉县', NULL, N'YJX', 5, N'0,100,129,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 135, 129, N'平阳县', NULL, N'PYX', 6, N'0,100,129,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 136, 129, N'苍南县', NULL, N'CNX', 7, N'0,100,129,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 137, 129, N'文成县', NULL, N'WCX', 8, N'0,100,129,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 138, 129, N'泰顺县', NULL, N'TSX', 9, N'0,100,129,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 139, 129, N'瑞安市', NULL, N'RAS', 10, N'0,100,129,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 140, 129, N'乐清市', NULL, N'LQS', 11, N'0,100,129,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 141, 129, N'其他区', NULL, N'QTQ', 12, N'0,100,129,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 142, 100, N'嘉兴市', NULL, N'JXS', 4, N'0,100,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 143, 142, N'南湖区', NULL, N'NHQ', 1, N'0,100,142,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 144, 142, N'秀洲区', NULL, N'XZQ', 2, N'0,100,142,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 145, 142, N'嘉善县', NULL, N'JSX', 3, N'0,100,142,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 146, 142, N'海盐县', NULL, N'HYX', 4, N'0,100,142,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 147, 142, N'海宁市', NULL, N'HNS', 5, N'0,100,142,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 148, 142, N'平湖市', NULL, N'PHS', 6, N'0,100,142,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 149, 142, N'桐乡市', NULL, N'TXS', 7, N'0,100,142,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 150, 142, N'其他区', NULL, N'QTQ', 8, N'0,100,142,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 151, 100, N'湖州市', NULL, N'HZS', 5, N'0,100,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 152, 151, N'吴兴区', NULL, N'WXQ', 1, N'0,100,151,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 153, 151, N'南浔区', NULL, N'NXQ', 2, N'0,100,151,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 154, 151, N'德清县', NULL, N'DQX', 3, N'0,100,151,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 155, 151, N'长兴县', NULL, N'CXX', 4, N'0,100,151,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 156, 151, N'安吉县', NULL, N'AJX', 5, N'0,100,151,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 157, 151, N'其他区', NULL, N'QTQ', 6, N'0,100,151,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 158, 100, N'绍兴市', NULL, N'SXS', 6, N'0,100,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 159, 158, N'越城区', NULL, N'YCQ', 1, N'0,100,158,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 160, 158, N'绍兴县', NULL, N'SXX', 2, N'0,100,158,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 161, 158, N'新昌县', NULL, N'XCX', 3, N'0,100,158,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 162, 158, N'诸暨市', NULL, N'ZJS', 4, N'0,100,158,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 163, 158, N'上庹市', NULL, N'STS', 5, N'0,100,158,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 164, 158, N'嵊州市', NULL, N'SZS', 6, N'0,100,158,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 165, 158, N'其他区', NULL, N'QTQ', 7, N'0,100,158,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 166, 100, N'金华市', NULL, N'JHS', 7, N'0,100,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 167, 166, N'婺城区', NULL, N'WCQ', 1, N'0,100,166,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 168, 166, N'金东区', NULL, N'JDQ', 2, N'0,100,166,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 169, 166, N'武义县', NULL, N'WYX', 3, N'0,100,166,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 170, 166, N'浦江县', NULL, N'PJX', 4, N'0,100,166,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 171, 166, N'盘安县', NULL, N'PAX', 5, N'0,100,166,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 172, 166, N'兰溪市', NULL, N'LXS', 6, N'0,100,166,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 173, 166, N'义乌市', NULL, N'YWS', 7, N'0,100,166,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 174, 166, N'东阳市', NULL, N'DYS', 8, N'0,100,166,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 175, 166, N'永康市', NULL, N'YKS', 9, N'0,100,166,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 176, 166, N'其他区', NULL, N'QTQ', 10, N'0,100,166,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 177, 100, N'衢州市', NULL, N'QZS', 8, N'0,100,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 178, 177, N'柯城区', NULL, N'KCQ', 1, N'0,100,177,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 179, 177, N'衢江区', NULL, N'QJQ', 2, N'0,100,177,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 180, 177, N'常山县', NULL, N'CSX', 3, N'0,100,177,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 181, 177, N'开化县', NULL, N'KHX', 4, N'0,100,177,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 182, 177, N'龙游县', NULL, N'LYX', 5, N'0,100,177,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 183, 177, N'江山市', NULL, N'JSS', 6, N'0,100,177,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 184, 177, N'其他区', NULL, N'QTQ', 7, N'0,100,177,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 185, 100, N'舟山市', NULL, N'ZSS', 9, N'0,100,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 186, 185, N'定海区', NULL, N'DHQ', 1, N'0,100,185,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 187, 185, N'普陀区', NULL, N'PTQ', 2, N'0,100,185,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 188, 185, N'岱山县', NULL, N'DSX', 3, N'0,100,185,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 189, 185, N'嵊泗县', NULL, N'SSX', 4, N'0,100,185,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 190, 185, N'其他区', NULL, N'QTQ', 5, N'0,100,185,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 191, 100, N'台州市', NULL, N'TZS', 10, N'0,100,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 192, 191, N'椒江区', NULL, N'JJQ', 1, N'0,100,191,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 193, 191, N'黄岩区', NULL, N'HYQ', 2, N'0,100,191,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 194, 191, N'路桥区', NULL, N'LQQ', 3, N'0,100,191,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 195, 191, N'玉环县', NULL, N'YHX', 4, N'0,100,191,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 196, 191, N'三门县', NULL, N'SMX', 5, N'0,100,191,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 197, 191, N'天台县', NULL, N'TTX', 6, N'0,100,191,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 198, 191, N'仙居县', NULL, N'XJX', 7, N'0,100,191,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 199, 191, N'温岭市', NULL, N'WLS', 8, N'0,100,191,', 3)
GO
print 'Processed 100 total records'
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 200, 191, N'临海市', NULL, N'LHS', 9, N'0,100,191,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 201, 191, N'其他区', NULL, N'QTQ', 10, N'0,100,191,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 202, 100, N'丽水市', NULL, N'LSS', 11, N'0,100,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 203, 202, N'莲都区', NULL, N'LDQ', 1, N'0,100,202,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 204, 202, N'青田县', NULL, N'QTX', 2, N'0,100,202,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 205, 202, N'缙云县', NULL, N'JYX', 3, N'0,100,202,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 206, 202, N'遂昌县', NULL, N'SCX', 4, N'0,100,202,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 207, 202, N'松阳县', NULL, N'SYX', 5, N'0,100,202,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 208, 202, N'云和县', NULL, N'YHX', 6, N'0,100,202,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 209, 202, N'庆元县', NULL, N'QYX', 7, N'0,100,202,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 210, 202, N'景宁畲族自治县', NULL, N'JNSZZZX', 8, N'0,100,202,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 211, 202, N'龙泉市', NULL, N'LQS', 9, N'0,100,202,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 212, 202, N'其他区', NULL, N'QTQ', 10, N'0,100,202,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (1, 213, NULL, N'上海', NULL, N'SH', 2, N'0,', 1)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 214, 213, N'上海市', NULL, N'SHS', 1, N'0,213,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 215, 214, N'黄浦区', NULL, N'HPQ', 1, N'0,213,214,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 216, 214, N'卢湾区', NULL, N'LWQ', 2, N'0,213,214,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 217, 214, N'徐汇区', NULL, N'XHQ', 3, N'0,213,214,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 218, 214, N'长宁区', NULL, N'CNQ', 4, N'0,213,214,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 219, 214, N'静安区', NULL, N'JAQ', 5, N'0,213,214,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 220, 214, N'普陀区', NULL, N'PTQ', 6, N'0,213,214,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 221, 214, N'闸北区', NULL, N'ZBQ', 7, N'0,213,214,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 222, 214, N'虹口区', NULL, N'HKQ', 8, N'0,213,214,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 223, 214, N'杨浦区', NULL, N'YPQ', 9, N'0,213,214,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 224, 214, N'闵行区', NULL, N'MXQ', 10, N'0,213,214,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 225, 214, N'宝山区', NULL, N'BSQ', 11, N'0,213,214,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 226, 214, N'嘉定区', NULL, N'JDQ', 12, N'0,213,214,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 227, 214, N'浦东新区', NULL, N'PDXQ', 13, N'0,213,214,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 228, 214, N'金山区', NULL, N'JSQ', 14, N'0,213,214,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 229, 214, N'松江区', NULL, N'SJQ', 15, N'0,213,214,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 230, 214, N'青浦区', NULL, N'QPQ', 16, N'0,213,214,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 231, 214, N'南汇区', NULL, N'NHQ', 17, N'0,213,214,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 232, 214, N'奉贤区', NULL, N'FXQ', 18, N'0,213,214,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 233, 214, N'川沙区', NULL, N'CSQ', 19, N'0,213,214,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 234, 214, N'崇明县', NULL, N'CMX', 20, N'0,213,214,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 235, 214, N'其他区', NULL, N'QTQ', 21, N'0,213,214,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (1, 236, NULL, N'江苏省', NULL, N'JSS', 3, N'0,', 1)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 237, 236, N'南京市', NULL, N'NJS', 1, N'0,236,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 238, 237, N'玄武区', NULL, N'XWQ', 1, N'0,236,237,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 239, 237, N'白下区', NULL, N'BXQ', 2, N'0,236,237,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 240, 237, N'秦淮区', NULL, N'QHQ', 3, N'0,236,237,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 241, 237, N'建邱区', NULL, N'JQQ', 4, N'0,236,237,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 242, 237, N'鼓楼区', NULL, N'GLQ', 5, N'0,236,237,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 243, 237, N'下关区', NULL, N'XGQ', 6, N'0,236,237,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 244, 237, N'浦口区', NULL, N'PKQ', 7, N'0,236,237,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 245, 237, N'栖霞区', NULL, N'QXQ', 8, N'0,236,237,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 246, 237, N'雨花台区', NULL, N'YHTQ', 9, N'0,236,237,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 247, 237, N'江宁区', NULL, N'JNQ', 10, N'0,236,237,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 248, 237, N'六合区', NULL, N'LHQ', 11, N'0,236,237,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 249, 237, N'潥水县', NULL, N'SSX', 12, N'0,236,237,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 250, 237, N'高淳县', NULL, N'GCX', 13, N'0,236,237,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 251, 237, N'其他区', NULL, N'QTQ', 14, N'0,236,237,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 252, 236, N'无锡市', NULL, N'WXS', 2, N'0,236,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 253, 252, N'崇安区', NULL, N'CAQ', 1, N'0,236,252,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 254, 252, N'南长区', NULL, N'NCQ', 2, N'0,236,252,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 255, 252, N'北塘区', NULL, N'BTQ', 3, N'0,236,252,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 256, 252, N'锡山区', NULL, N'XSQ', 4, N'0,236,252,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 257, 252, N'惠山区', NULL, N'HSQ', 5, N'0,236,252,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 258, 252, N'滨湖区', NULL, N'BHQ', 6, N'0,236,252,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 259, 252, N'江阴市', NULL, N'JYS', 7, N'0,236,252,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 260, 252, N'宜兴市', NULL, N'YXS', 8, N'0,236,252,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 261, 252, N'新区', NULL, N'XQ', 9, N'0,236,252,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 262, 252, N'其他区', NULL, N'QTQ', 10, N'0,236,252,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 263, 236, N'徐州市', NULL, N'XZS', 3, N'0,236,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 264, 263, N'鼓楼区', NULL, N'GLQ', 1, N'0,236,263,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 265, 263, N'云龙区', NULL, N'YLQ', 2, N'0,236,263,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 266, 263, N'九里区', NULL, N'JLQ', 3, N'0,236,263,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 267, 263, N'贾汪区', NULL, N'JWQ', 4, N'0,236,263,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 268, 263, N'泉山区', NULL, N'QSQ', 5, N'0,236,263,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 269, 263, N'丰县', NULL, N'FX', 6, N'0,236,263,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 270, 263, N'沛县', NULL, N'PX', 7, N'0,236,263,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 271, 263, N'铜山县', NULL, N'TSX', 8, N'0,236,263,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 272, 263, N'睢宁县', NULL, N'SNX', 9, N'0,236,263,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 273, 263, N'新沂市', NULL, N'XYS', 10, N'0,236,263,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 274, 263, N'邳州市', NULL, N'PZS', 11, N'0,236,263,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 275, 263, N'其他区', NULL, N'QTQ', 12, N'0,236,263,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 276, 236, N'常州市', NULL, N'CZS', 4, N'0,236,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 277, 276, N'天宁区', NULL, N'TNQ', 1, N'0,236,276,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 278, 276, N'钟楼区', NULL, N'ZLQ', 2, N'0,236,276,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 279, 276, N'戚墅堰区', NULL, N'QSYQ', 3, N'0,236,276,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 280, 276, N'新北区', NULL, N'XBQ', 4, N'0,236,276,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 281, 276, N'武进区', NULL, N'WJQ', 5, N'0,236,276,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 282, 276, N'潥阳市', NULL, N'SYS', 6, N'0,236,276,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 283, 276, N'金坛市', NULL, N'JTS', 7, N'0,236,276,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 284, 276, N'其他区', NULL, N'QTQ', 8, N'0,236,276,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 285, 236, N'苏州市', NULL, N'SZS', 5, N'0,236,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 286, 285, N'沧浪区', NULL, N'CLQ', 1, N'0,236,285,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 287, 285, N'平江区', NULL, N'PJQ', 2, N'0,236,285,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 288, 285, N'金闾区', NULL, N'JLQ', 3, N'0,236,285,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 289, 285, N'虎丘区', NULL, N'HQQ', 4, N'0,236,285,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 290, 285, N'吴中区', NULL, N'WZQ', 5, N'0,236,285,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 291, 285, N'相城区', NULL, N'XCQ', 6, N'0,236,285,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 292, 285, N'常熟市', NULL, N'CSS', 7, N'0,236,285,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 293, 285, N'张家港市', NULL, N'ZJGS', 8, N'0,236,285,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 294, 285, N'昆山市', NULL, N'KSS', 9, N'0,236,285,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 295, 285, N'吴江市', NULL, N'WJS', 10, N'0,236,285,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 296, 285, N'太仓市', NULL, N'TCS', 11, N'0,236,285,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 297, 285, N'新区', NULL, N'XQ', 12, N'0,236,285,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 298, 285, N'园区', NULL, N'YQ', 13, N'0,236,285,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 299, 285, N'其他区', NULL, N'QTQ', 14, N'0,236,285,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 300, 236, N'南通市', NULL, N'NTS', 6, N'0,236,', 2)
GO
print 'Processed 200 total records'
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 301, 300, N'崇川区', NULL, N'CCQ', 1, N'0,236,300,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 302, 300, N'港闸区', NULL, N'GZQ', 2, N'0,236,300,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 303, 300, N'海安县', NULL, N'HAX', 3, N'0,236,300,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 304, 300, N'如东县', NULL, N'RDX', 4, N'0,236,300,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 305, 300, N'启东市', NULL, N'QDS', 5, N'0,236,300,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 306, 300, N'如皋市', NULL, N'RGS', 6, N'0,236,300,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 307, 300, N'通州市', NULL, N'TZS', 7, N'0,236,300,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 308, 300, N'海门市', NULL, N'HMS', 8, N'0,236,300,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 309, 300, N'开发区', NULL, N'KFQ', 9, N'0,236,300,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 310, 300, N'其他区', NULL, N'QTQ', 10, N'0,236,300,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 311, 236, N'连云港市', NULL, N'LYGS', 7, N'0,236,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 312, 311, N'连云区', NULL, N'LYQ', 1, N'0,236,311,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 313, 311, N'新浦区', NULL, N'XPQ', 2, N'0,236,311,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 314, 311, N'海州区', NULL, N'HZQ', 3, N'0,236,311,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 315, 311, N'赣榆区', NULL, N'GYQ', 4, N'0,236,311,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 316, 311, N'东海县', NULL, N'DHX', 5, N'0,236,311,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 317, 311, N'灌云县', NULL, N'GYX', 6, N'0,236,311,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 318, 311, N'灌南县', NULL, N'GNX', 7, N'0,236,311,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 319, 311, N'其他区', NULL, N'QTQ', 8, N'0,236,311,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 320, 236, N'淮安市', NULL, N'HAS', 8, N'0,236,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 321, 320, N'清河区', NULL, N'QHQ', 1, N'0,236,320,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 322, 320, N'楚州区', NULL, N'CZQ', 2, N'0,236,320,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 323, 320, N'淮阴区', NULL, N'HYQ', 3, N'0,236,320,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 324, 320, N'清浦区', NULL, N'QPQ', 4, N'0,236,320,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 325, 320, N'涟水县', NULL, N'LSX', 5, N'0,236,320,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 326, 320, N'洪泽县', NULL, N'HZX', 6, N'0,236,320,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 327, 320, N'盱眙县', NULL, N'XYX', 7, N'0,236,320,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 328, 320, N'金湖县', NULL, N'JHX', 8, N'0,236,320,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 329, 320, N'其他区', NULL, N'QTQ', 9, N'0,236,320,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 330, 236, N'盐城市', NULL, N'YCS', 9, N'0,236,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 331, 330, N'亭湖区', NULL, N'THQ', 1, N'0,236,330,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 332, 330, N'盐都区', NULL, N'YDQ', 2, N'0,236,330,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 333, 330, N'响水县', NULL, N'XSX', 3, N'0,236,330,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 334, 330, N'滨海县', NULL, N'BHX', 4, N'0,236,330,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 335, 330, N'阜宁县', NULL, N'FNX', 5, N'0,236,330,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 336, 330, N'射阳县', NULL, N'SYX', 6, N'0,236,330,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 337, 330, N'建湖县', NULL, N'JHX', 7, N'0,236,330,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 338, 330, N'东台市', NULL, N'DTS', 8, N'0,236,330,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 339, 330, N'大丰市', NULL, N'DFS', 9, N'0,236,330,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 340, 330, N'其他区', NULL, N'QTQ', 10, N'0,236,330,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 341, 236, N'扬州市', NULL, N'YZS', 10, N'0,236,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 342, 341, N'广陵区', NULL, N'GLQ', 1, N'0,236,341,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 343, 341, N'邗江区', NULL, N'HJQ', 2, N'0,236,341,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 344, 341, N'维扬区', NULL, N'WYQ', 3, N'0,236,341,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 345, 341, N'宝应县', NULL, N'BYX', 4, N'0,236,341,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 346, 341, N'仪征市', NULL, N'YZS', 5, N'0,236,341,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 347, 341, N'高邮市', NULL, N'GYS', 6, N'0,236,341,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 348, 341, N'江都市', NULL, N'JDS', 7, N'0,236,341,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 349, 341, N'经济开发区', NULL, N'JJKFQ', 8, N'0,236,341,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 350, 341, N'其他区', NULL, N'QTQ', 9, N'0,236,341,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 351, 236, N'镇江市', NULL, N'ZJS', 11, N'0,236,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 352, 351, N'京口区', NULL, N'JKQ', 1, N'0,236,351,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 353, 351, N'润州区', NULL, N'RZQ', 2, N'0,236,351,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 354, 351, N'丹徒区', NULL, N'DTQ', 3, N'0,236,351,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 355, 351, N'丹阳市', NULL, N'DYS', 4, N'0,236,351,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 356, 351, N'扬中市', NULL, N'YZS', 5, N'0,236,351,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 357, 351, N'句容市', NULL, N'JRS', 6, N'0,236,351,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 358, 351, N'其他区', NULL, N'QTQ', 7, N'0,236,351,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 359, 236, N'泰州市', NULL, N'TZS', 12, N'0,236,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 360, 359, N'海陵区', NULL, N'HLQ', 1, N'0,236,359,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 361, 359, N'高港区', NULL, N'GGQ', 2, N'0,236,359,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 362, 359, N'兴化市', NULL, N'XHS', 3, N'0,236,359,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 363, 359, N'靖江市', NULL, N'JJS', 4, N'0,236,359,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 364, 359, N'泰兴市', NULL, N'TXS', 5, N'0,236,359,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 365, 359, N'姜堰市', NULL, N'JYS', 6, N'0,236,359,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 366, 359, N'其他区', NULL, N'QTQ', 7, N'0,236,359,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 367, 236, N'宿迁市', NULL, N'SQS', 13, N'0,236,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 368, 367, N'宿城区', NULL, N'SCQ', 1, N'0,236,367,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 369, 367, N'宿豫区', NULL, N'SYQ', 2, N'0,236,367,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 370, 367, N'沭阳县', NULL, N'SYX', 3, N'0,236,367,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 371, 367, N'泗阳县', NULL, N'SYX', 4, N'0,236,367,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 372, 367, N'泗洪县', NULL, N'SHX', 5, N'0,236,367,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 373, 367, N'其他区', NULL, N'QTQ', 6, N'0,236,367,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (1, 374, NULL, N'安徽省', NULL, N'AHS', 4, N'0,', 1)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 375, 374, N'合肥市', NULL, N'HFS', 1, N'0,374,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 376, 375, N'瑶海区', NULL, N'YHQ', 1, N'0,374,375,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 377, 375, N'庐阳区', NULL, N'LYQ', 2, N'0,374,375,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 378, 375, N'蜀山区', NULL, N'SSQ', 3, N'0,374,375,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 379, 375, N'包河区', NULL, N'BHQ', 4, N'0,374,375,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 380, 375, N'长丰县', NULL, N'CFX', 5, N'0,374,375,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 381, 375, N'肥东县', NULL, N'FDX', 6, N'0,374,375,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 382, 375, N'肥西县', NULL, N'FXX', 7, N'0,374,375,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 383, 375, N'高新区', NULL, N'GXQ', 8, N'0,374,375,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 384, 375, N'中区', NULL, N'ZQ', 9, N'0,374,375,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 385, 375, N'其他区', NULL, N'QTQ', 10, N'0,374,375,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 386, 374, N'芜湖市', NULL, N'WHS', 2, N'0,374,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 387, 386, N'镜湖区', NULL, N'JHQ', 1, N'0,374,386,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 388, 386, N'戈江区', NULL, N'GJQ', 2, N'0,374,386,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 389, 386, N'鸠江区', NULL, N'JJQ', 3, N'0,374,386,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 390, 386, N'三山区', NULL, N'SSQ', 4, N'0,374,386,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 391, 386, N'芜湖县', NULL, N'WHX', 5, N'0,374,386,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 392, 386, N'繁昌县', NULL, N'FCX', 6, N'0,374,386,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 393, 386, N'南陵县', NULL, N'NLX', 7, N'0,374,386,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 394, 386, N'其他区', NULL, N'QTQ', 8, N'0,374,386,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 395, 374, N'蚌埠市', NULL, N'BBS', 3, N'0,374,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 396, 395, N'龙子湖区', NULL, N'LZHQ', 1, N'0,374,395,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 397, 395, N'蚌山区', NULL, N'BSQ', 2, N'0,374,395,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 398, 395, N'禹会区', NULL, N'YHQ', 3, N'0,374,395,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 399, 395, N'淮上区', NULL, N'HSQ', 4, N'0,374,395,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 400, 395, N'怀远县', NULL, N'HYX', 5, N'0,374,395,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 401, 395, N'五河县', NULL, N'WHX', 6, N'0,374,395,', 3)
GO
print 'Processed 300 total records'
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 402, 395, N'固镇县', NULL, N'GZX', 7, N'0,374,395,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 403, 395, N'其他区', NULL, N'QTQ', 8, N'0,374,395,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 404, 374, N'淮南市', NULL, N'HNS', 4, N'0,374,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 405, 404, N'大通区', NULL, N'DTQ', 1, N'0,374,404,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 406, 404, N'田家庵区', NULL, N'TJAQ', 2, N'0,374,404,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 407, 404, N'谢家集区', NULL, N'XJJQ', 3, N'0,374,404,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 408, 404, N'八公山区', NULL, N'BGSQ', 4, N'0,374,404,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 409, 404, N'潘集区', NULL, N'PJQ', 5, N'0,374,404,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 410, 404, N'凤台县', NULL, N'FTX', 6, N'0,374,404,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 411, 404, N'其他区', NULL, N'QTQ', 7, N'0,374,404,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 412, 374, N'马鞍山市', NULL, N'MASS', 5, N'0,374,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 413, 412, N'金家庄区', NULL, N'JJZQ', 1, N'0,374,412,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 414, 412, N'花山区', NULL, N'HSQ', 2, N'0,374,412,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 415, 412, N'雨山区', NULL, N'YSQ', 3, N'0,374,412,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 416, 412, N'当涂县', NULL, N'DTX', 4, N'0,374,412,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 417, 412, N'其他区', NULL, N'QTQ', 5, N'0,374,412,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 418, 374, N'淮北市', NULL, N'HBS', 6, N'0,374,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 419, 418, N'杜集区', NULL, N'DJQ', 1, N'0,374,418,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 420, 418, N'相山区', NULL, N'XSQ', 2, N'0,374,418,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 421, 418, N'烈山区', NULL, N'LSQ', 3, N'0,374,418,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 422, 418, N'濉溪县', NULL, N'SXX', 4, N'0,374,418,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 423, 418, N'其他区', NULL, N'QTQ', 5, N'0,374,418,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 424, 374, N'铜陵市', NULL, N'TLS', 7, N'0,374,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 425, 424, N'铜官山区', NULL, N'TGSQ', 1, N'0,374,424,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 426, 424, N'狮子山区', NULL, N'SZSQ', 2, N'0,374,424,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 427, 424, N'郊区', NULL, N'JQ', 3, N'0,374,424,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 428, 424, N'铜陵县', NULL, N'TLX', 4, N'0,374,424,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 429, 424, N'其他区', NULL, N'QTQ', 5, N'0,374,424,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 430, 374, N'安庆市', NULL, N'AQS', 8, N'0,374,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 431, 430, N'迎江区', NULL, N'YJQ', 1, N'0,374,430,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 432, 430, N'大观区', NULL, N'DGQ', 2, N'0,374,430,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 433, 430, N'宜秀区', NULL, N'YXQ', 3, N'0,374,430,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 434, 430, N'怀宁县', NULL, N'HNX', 4, N'0,374,430,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 435, 430, N'枞阳县', NULL, N'CYX', 5, N'0,374,430,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 436, 430, N'潜山县', NULL, N'QSX', 6, N'0,374,430,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 437, 430, N'太湖县', NULL, N'THX', 7, N'0,374,430,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 438, 430, N'宿松县', NULL, N'SSX', 8, N'0,374,430,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 439, 430, N'望江县', NULL, N'WJX', 9, N'0,374,430,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 440, 430, N'岳西县', NULL, N'YXX', 10, N'0,374,430,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 441, 430, N'桐城市', NULL, N'TCS', 11, N'0,374,430,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 442, 430, N'其他区', NULL, N'QTQ', 12, N'0,374,430,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 443, 374, N'黄山市', NULL, N'HSS', 9, N'0,374,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 444, 443, N'屯溪区', NULL, N'TXQ', 1, N'0,374,443,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 445, 443, N'黄山区', NULL, N'HSQ', 2, N'0,374,443,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 446, 443, N'徽州区', NULL, N'HZQ', 3, N'0,374,443,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 447, 443, N'歙县', NULL, N'XX', 4, N'0,374,443,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 448, 443, N'休宁县', NULL, N'XNX', 5, N'0,374,443,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 449, 443, N'黟县', NULL, N'YX', 6, N'0,374,443,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 450, 443, N'祁门县', NULL, N'QMX', 7, N'0,374,443,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 451, 443, N'其他区', NULL, N'QTQ', 8, N'0,374,443,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 452, 374, N'滁州市', NULL, N'CZS', 10, N'0,374,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 453, 452, N'琅琊区', NULL, N'LYQ', 1, N'0,374,452,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 454, 452, N'南谯区', NULL, N'NQQ', 2, N'0,374,452,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 455, 452, N'来安县', NULL, N'LAX', 3, N'0,374,452,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 456, 452, N'全椒县', NULL, N'QJX', 4, N'0,374,452,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 457, 452, N'定远县', NULL, N'DYX', 5, N'0,374,452,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 458, 452, N'凤阳县', NULL, N'FYX', 6, N'0,374,452,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 459, 452, N'天长市', NULL, N'TCS', 7, N'0,374,452,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 460, 452, N'明光市', NULL, N'MGS', 8, N'0,374,452,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 461, 452, N'其他区', NULL, N'QTQ', 9, N'0,374,452,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 462, 374, N'阜阳市', NULL, N'FYS', 11, N'0,374,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 463, 462, N'颍州区', NULL, N'YZQ', 1, N'0,374,462,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 464, 462, N'颍东区', NULL, N'YDQ', 2, N'0,374,462,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 465, 462, N'颍泉区', NULL, N'YQQ', 3, N'0,374,462,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 466, 462, N'临泉县', NULL, N'LQX', 4, N'0,374,462,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 467, 462, N'太和县', NULL, N'THX', 5, N'0,374,462,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 468, 462, N'阜南县', NULL, N'FNX', 6, N'0,374,462,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 469, 462, N'颍上县', NULL, N'YSX', 7, N'0,374,462,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 470, 462, N'界首市', NULL, N'JSS', 8, N'0,374,462,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 471, 462, N'其他区', NULL, N'QTQ', 9, N'0,374,462,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 472, 374, N'宿州市', NULL, N'SZS', 12, N'0,374,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 473, 472, N'埇桥区', NULL, N'YQQ', 1, N'0,374,472,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 474, 472, N'砀山县', NULL, N'DSX', 2, N'0,374,472,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 475, 472, N'萧县', NULL, N'XX', 3, N'0,374,472,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 476, 472, N'灵璧县', NULL, N'LBX', 4, N'0,374,472,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 477, 472, N'泗县', NULL, N'SX', 5, N'0,374,472,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 478, 472, N'其他区', NULL, N'QTQ', 6, N'0,374,472,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 479, 374, N'巢湖市', NULL, N'CHS', 13, N'0,374,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 480, 479, N'居巢区', NULL, N'JCQ', 1, N'0,374,479,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 481, 479, N'庐江县', NULL, N'LJX', 2, N'0,374,479,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 482, 479, N'无为县', NULL, N'WWX', 3, N'0,374,479,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 483, 479, N'含山县', NULL, N'HSX', 4, N'0,374,479,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 484, 479, N'和县', NULL, N'HX', 5, N'0,374,479,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 485, 479, N'其他区', NULL, N'QTQ', 6, N'0,374,479,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 486, 374, N'六安市', NULL, N'LAS', 14, N'0,374,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 487, 486, N'金安区', NULL, N'JAQ', 1, N'0,374,486,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 488, 486, N'裕安区', NULL, N'YAQ', 2, N'0,374,486,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 489, 486, N'寿县', NULL, N'SX', 3, N'0,374,486,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 490, 486, N'霍邱县', NULL, N'HQX', 4, N'0,374,486,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 491, 486, N'舒城县', NULL, N'SCX', 5, N'0,374,486,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 492, 486, N'金寨县', NULL, N'JZX', 6, N'0,374,486,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 493, 486, N'霍山县', NULL, N'HSX', 7, N'0,374,486,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 494, 486, N'其他区', NULL, N'QTQ', 8, N'0,374,486,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 495, 374, N'毫州市', NULL, N'HZS', 15, N'0,374,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 496, 495, N'谯城区', NULL, N'QCQ', 1, N'0,374,495,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 497, 495, N'涡阳县', NULL, N'WYX', 2, N'0,374,495,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 498, 495, N'蒙城县', NULL, N'MCX', 3, N'0,374,495,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 499, 495, N'利辛县', NULL, N'LXX', 4, N'0,374,495,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 500, 495, N'其他区', NULL, N'QTQ', 5, N'0,374,495,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 501, 374, N'池州市', NULL, N'CZS', 16, N'0,374,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 502, 501, N'贵池区', NULL, N'GCQ', 1, N'0,374,501,', 3)
GO
print 'Processed 400 total records'
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 503, 501, N'东至县', NULL, N'DZX', 2, N'0,374,501,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 504, 501, N'石台县', NULL, N'STX', 3, N'0,374,501,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 505, 501, N'青阳县', NULL, N'QYX', 4, N'0,374,501,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 506, 501, N'其他区', NULL, N'QTQ', 5, N'0,374,501,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 507, 374, N'宣城市', NULL, N'XCS', 17, N'0,374,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 508, 507, N'宣州区', NULL, N'XZQ', 1, N'0,374,507,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 509, 507, N'郎溪县', NULL, N'LXX', 2, N'0,374,507,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 510, 507, N'广德县', NULL, N'GDX', 3, N'0,374,507,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 511, 507, N'泾县', NULL, N'JX', 4, N'0,374,507,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 512, 507, N'绩溪县', NULL, N'JXX', 5, N'0,374,507,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 513, 507, N'旌德县', NULL, N'JDX', 6, N'0,374,507,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 514, 507, N'宁国市', NULL, N'NGS', 7, N'0,374,507,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 515, 507, N'其他区', NULL, N'QTQ', 8, N'0,374,507,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (1, 516, NULL, N'江西省', NULL, N'JXS', 5, N'0,', 1)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 517, 516, N'南昌市', NULL, N'NCS', 1, N'0,516,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 518, 517, N'东湖区', NULL, N'DHQ', 1, N'0,516,517,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 519, 517, N'西湖区', NULL, N'XHQ', 2, N'0,516,517,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 520, 517, N'青云谱区', NULL, N'QYPQ', 3, N'0,516,517,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 521, 517, N'湾里区', NULL, N'WLQ', 4, N'0,516,517,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 522, 517, N'青山湖区', NULL, N'QSHQ', 5, N'0,516,517,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 523, 517, N'南昌县', NULL, N'NCX', 6, N'0,516,517,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 524, 517, N'新建县', NULL, N'XJX', 7, N'0,516,517,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 525, 517, N'安义县', NULL, N'AYX', 8, N'0,516,517,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 526, 517, N'进贤县', NULL, N'JXX', 9, N'0,516,517,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 527, 517, N'红谷滩新区', NULL, N'HGTXQ', 10, N'0,516,517,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 528, 517, N'经济技术开发区', NULL, N'JJJSKFQ', 11, N'0,516,517,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 529, 517, N'昌北区', NULL, N'CBQ', 12, N'0,516,517,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 530, 517, N'其他区', NULL, N'QTQ', 13, N'0,516,517,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 531, 516, N'景德镇市', NULL, N'JDZS', 2, N'0,516,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 532, 531, N'昌江区', NULL, N'CJQ', 1, N'0,516,531,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 533, 531, N'珠山区', NULL, N'ZSQ', 2, N'0,516,531,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 534, 531, N'浮梁县', NULL, N'FLX', 3, N'0,516,531,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 535, 531, N'乐平市', NULL, N'LPS', 4, N'0,516,531,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 536, 531, N'其他区', NULL, N'QTQ', 5, N'0,516,531,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 537, 516, N'萍乡市', NULL, N'PXS', 3, N'0,516,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 538, 537, N'安源区', NULL, N'AYQ', 1, N'0,516,537,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 539, 537, N'湘东区', NULL, N'XDQ', 2, N'0,516,537,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 540, 537, N'莲花县', NULL, N'LHX', 3, N'0,516,537,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 541, 537, N'上栗县', NULL, N'SLX', 4, N'0,516,537,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 542, 537, N'芦溪县', NULL, N'LXX', 5, N'0,516,537,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 543, 537, N'其他区', NULL, N'QTQ', 6, N'0,516,537,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 544, 516, N'九江市', NULL, N'JJS', 4, N'0,516,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 545, 544, N'庐山区', NULL, N'LSQ', 1, N'0,516,544,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 546, 544, N'浔阳区', NULL, N'XYQ', 2, N'0,516,544,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 547, 544, N'九江县', NULL, N'JJX', 3, N'0,516,544,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 548, 544, N'武宁县', NULL, N'WNX', 4, N'0,516,544,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 549, 544, N'修水县', NULL, N'XSX', 5, N'0,516,544,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 550, 544, N'永修县', NULL, N'YXX', 6, N'0,516,544,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 551, 544, N'德安县', NULL, N'DAX', 7, N'0,516,544,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 552, 544, N'星子县', NULL, N'XZX', 8, N'0,516,544,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 553, 544, N'都昌县', NULL, N'DCX', 9, N'0,516,544,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 554, 544, N'湖口县', NULL, N'HKX', 10, N'0,516,544,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 555, 544, N'彭泽县', NULL, N'PZX', 11, N'0,516,544,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 556, 544, N'瑞昌市', NULL, N'RCS', 12, N'0,516,544,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 557, 544, N'其他区', NULL, N'QTQ', 13, N'0,516,544,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 558, 516, N'新余市', NULL, N'XYS', 5, N'0,516,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 559, 558, N'渝水区', NULL, N'YSQ', 1, N'0,516,558,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 560, 558, N'分宜县', NULL, N'FYX', 2, N'0,516,558,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 561, 558, N'其他区', NULL, N'QTQ', 3, N'0,516,558,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 562, 516, N'鹰潭市', NULL, N'YTS', 6, N'0,516,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 563, 562, N'月湖区', NULL, N'YHQ', 1, N'0,516,562,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 564, 562, N'余江县', NULL, N'YJX', 2, N'0,516,562,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 565, 562, N'贵溪市', NULL, N'GXS', 3, N'0,516,562,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 566, 562, N'其他区', NULL, N'QTQ', 4, N'0,516,562,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 567, 516, N'赣州市', NULL, N'GZS', 7, N'0,516,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 568, 567, N'章贡区', NULL, N'ZGQ', 1, N'0,516,567,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 569, 567, N'赣县', NULL, N'GX', 2, N'0,516,567,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 570, 567, N'信丰县', NULL, N'XFX', 3, N'0,516,567,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 571, 567, N'大余县', NULL, N'DYX', 4, N'0,516,567,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 572, 567, N'上犹县', NULL, N'SYX', 5, N'0,516,567,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 573, 567, N'崇义县', NULL, N'CYX', 6, N'0,516,567,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 574, 567, N'安远县', NULL, N'AYX', 7, N'0,516,567,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 575, 567, N'龙南县', NULL, N'LNX', 8, N'0,516,567,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 576, 567, N'定南县', NULL, N'DNX', 9, N'0,516,567,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 577, 567, N'全南县', NULL, N'QNX', 10, N'0,516,567,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 578, 567, N'宁都县', NULL, N'NDX', 11, N'0,516,567,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 579, 567, N'于都县', NULL, N'YDX', 12, N'0,516,567,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 580, 567, N'兴国县', NULL, N'XGX', 13, N'0,516,567,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 581, 567, N'会昌县', NULL, N'HCX', 14, N'0,516,567,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 582, 567, N'寻乌县', NULL, N'XWX', 15, N'0,516,567,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 583, 567, N'石城县', NULL, N'SCX', 16, N'0,516,567,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 584, 567, N'黄金区', NULL, N'HJQ', 17, N'0,516,567,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 585, 567, N'瑞金市', NULL, N'RJS', 18, N'0,516,567,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 586, 567, N'南康市', NULL, N'NKS', 19, N'0,516,567,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 587, 567, N'其他区', NULL, N'QTQ', 20, N'0,516,567,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 588, 516, N'吉安市', NULL, N'JAS', 8, N'0,516,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 589, 588, N'吉州区', NULL, N'JZQ', 1, N'0,516,588,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 590, 588, N'青原区', NULL, N'QYQ', 2, N'0,516,588,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 591, 588, N'吉安县', NULL, N'JAX', 3, N'0,516,588,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 592, 588, N'吉水县', NULL, N'JSX', 4, N'0,516,588,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 593, 588, N'峡江县', NULL, N'XJX', 5, N'0,516,588,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 594, 588, N'新干县', NULL, N'XGX', 6, N'0,516,588,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 595, 588, N'永丰县', NULL, N'YFX', 7, N'0,516,588,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 596, 588, N'泰和县', NULL, N'THX', 8, N'0,516,588,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 597, 588, N'遂川县', NULL, N'SCX', 9, N'0,516,588,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 598, 588, N'万安县', NULL, N'WAX', 10, N'0,516,588,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 599, 588, N'安福县', NULL, N'AFX', 11, N'0,516,588,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 600, 588, N'永新县', NULL, N'YXX', 12, N'0,516,588,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 601, 588, N'井冈山市', NULL, N'JGSS', 13, N'0,516,588,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 602, 588, N'其他区', NULL, N'QTQ', 14, N'0,516,588,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 603, 516, N'宜春市', NULL, N'YCS', 9, N'0,516,', 2)
GO
print 'Processed 500 total records'
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 604, 603, N'袁州区', NULL, N'YZQ', 1, N'0,516,603,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 605, 603, N'奉新县', NULL, N'FXX', 2, N'0,516,603,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 606, 603, N'万载县', NULL, N'WZX', 3, N'0,516,603,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 607, 603, N'上高县', NULL, N'SGX', 4, N'0,516,603,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 608, 603, N'宜丰县', NULL, N'YFX', 5, N'0,516,603,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 609, 603, N'靖安县', NULL, N'JAX', 6, N'0,516,603,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 610, 603, N'铜鼓县', NULL, N'TGX', 7, N'0,516,603,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 611, 603, N'丰城市', NULL, N'FCS', 8, N'0,516,603,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 612, 603, N'樟树市', NULL, N'ZSS', 9, N'0,516,603,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 613, 603, N'高安市', NULL, N'GAS', 10, N'0,516,603,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 614, 603, N'其他区', NULL, N'QTQ', 11, N'0,516,603,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 615, 516, N'抚州市', NULL, N'FZS', 10, N'0,516,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 616, 615, N'临川区', NULL, N'LCQ', 1, N'0,516,615,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 617, 615, N'南城县', NULL, N'NCX', 2, N'0,516,615,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 618, 615, N'黎川县', NULL, N'LCX', 3, N'0,516,615,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 619, 615, N'南丰县', NULL, N'NFX', 4, N'0,516,615,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 620, 615, N'崇仁县', NULL, N'CRX', 5, N'0,516,615,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 621, 615, N'乐安县', NULL, N'LAX', 6, N'0,516,615,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 622, 615, N'宜黄县', NULL, N'YHX', 7, N'0,516,615,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 623, 615, N'金溪县', NULL, N'JXX', 8, N'0,516,615,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 624, 615, N'资溪县', NULL, N'ZXX', 9, N'0,516,615,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 625, 615, N'东乡县', NULL, N'DXX', 10, N'0,516,615,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 626, 615, N'广昌县', NULL, N'GCX', 11, N'0,516,615,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 627, 615, N'其他区', NULL, N'QTQ', 12, N'0,516,615,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 628, 516, N'上饶市', NULL, N'SRS', 11, N'0,516,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 629, 628, N'信州区', NULL, N'XZQ', 1, N'0,516,628,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 630, 628, N'上饶县', NULL, N'SRX', 2, N'0,516,628,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 631, 628, N'广丰县', NULL, N'GFX', 3, N'0,516,628,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 632, 628, N'玉山县', NULL, N'YSX', 4, N'0,516,628,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 633, 628, N'铅山县', NULL, N'QSX', 5, N'0,516,628,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 634, 628, N'横峰县', NULL, N'HFX', 6, N'0,516,628,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 635, 628, N'弋阳县', NULL, N'YYX', 7, N'0,516,628,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 636, 628, N'余干县', NULL, N'YGX', 8, N'0,516,628,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 637, 628, N'鄱阳县', NULL, N'PYX', 9, N'0,516,628,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 638, 628, N'万年县', NULL, N'WNX', 10, N'0,516,628,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 639, 628, N'婺源县', NULL, N'WYX', 11, N'0,516,628,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 640, 628, N'德兴市', NULL, N'DXS', 12, N'0,516,628,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 641, 628, N'其他区', NULL, N'QTQ', 13, N'0,516,628,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (2, 642, NULL, N'北京', NULL, N'BJ', 6, N'0,', 1)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 643, 642, N'北京市', NULL, N'BJS', 1, N'0,642,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 644, 643, N'东城区', NULL, N'DCQ', 1, N'0,642,643,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 645, 643, N'西城区', NULL, N'XCQ', 2, N'0,642,643,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 646, 643, N'崇文区', NULL, N'CWQ', 3, N'0,642,643,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 647, 643, N'宣武区', NULL, N'XWQ', 4, N'0,642,643,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 648, 643, N'朝阳区', NULL, N'CYQ', 5, N'0,642,643,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 649, 643, N'丰台区', NULL, N'FTQ', 6, N'0,642,643,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 650, 643, N'石景山区', NULL, N'SJSQ', 7, N'0,642,643,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 651, 643, N'海淀区', NULL, N'HDQ', 8, N'0,642,643,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 652, 643, N'门头沟区', NULL, N'MTGQ', 9, N'0,642,643,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 653, 643, N'房山区', NULL, N'FSQ', 10, N'0,642,643,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 654, 643, N'通州区', NULL, N'TZQ', 11, N'0,642,643,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 655, 643, N'顺义区', NULL, N'SYQ', 12, N'0,642,643,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 656, 643, N'昌平区', NULL, N'CPQ', 13, N'0,642,643,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 657, 643, N'大兴区', NULL, N'DXQ', 14, N'0,642,643,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 658, 643, N'怀柔区', NULL, N'HRQ', 15, N'0,642,643,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 659, 643, N'平谷区', NULL, N'PGQ', 16, N'0,642,643,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 660, 643, N'密云县', NULL, N'MYX', 17, N'0,642,643,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 661, 643, N'延庆县', NULL, N'YQX', 18, N'0,642,643,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 662, 643, N'其他区', NULL, N'QTQ', 19, N'0,642,643,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (2, 663, NULL, N'天津', NULL, N'TJ', 7, N'0,', 1)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 664, 663, N'天津市', NULL, N'TJS', 1, N'0,663,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 665, 664, N'和平区', NULL, N'HPQ', 1, N'0,663,664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 666, 664, N'河东区', NULL, N'HDQ', 2, N'0,663,664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 667, 664, N'河西区', NULL, N'HXQ', 3, N'0,663,664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 668, 664, N'南开区', NULL, N'NKQ', 4, N'0,663,664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 669, 664, N'河北区', NULL, N'HBQ', 5, N'0,663,664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 670, 664, N'红桥区', NULL, N'HQQ', 6, N'0,663,664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 671, 664, N'塘沽区', NULL, N'TGQ', 7, N'0,663,664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 672, 664, N'汉沽区', NULL, N'HGQ', 8, N'0,663,664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 673, 664, N'大港区', NULL, N'DGQ', 9, N'0,663,664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 674, 664, N'东丽区', NULL, N'DLQ', 10, N'0,663,664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 675, 664, N'西青区', NULL, N'XQQ', 11, N'0,663,664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 676, 664, N'津南区', NULL, N'JNQ', 12, N'0,663,664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 677, 664, N'北辰区', NULL, N'BCQ', 13, N'0,663,664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 678, 664, N'武清区', NULL, N'WQQ', 14, N'0,663,664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 679, 664, N'宝坻区', NULL, N'BDQ', 15, N'0,663,664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 680, 664, N'宁河县', NULL, N'NHX', 16, N'0,663,664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 681, 664, N'静海县', NULL, N'JHX', 17, N'0,663,664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 682, 664, N'蓟县', NULL, N'JX', 18, N'0,663,664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 683, 664, N'其他区', NULL, N'QTQ', 19, N'0,663,664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (2, 684, NULL, N'河北省', NULL, N'HBS', 8, N'0,', 1)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 685, 684, N'石家庄市', NULL, N'SJZS', 1, N'0,684,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 686, 685, N'长安区', NULL, N'CAQ', 1, N'0,684,685,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 687, 685, N'桥东区', NULL, N'QDQ', 2, N'0,684,685,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 688, 685, N'桥西区', NULL, N'QXQ', 3, N'0,684,685,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 689, 685, N'新华区', NULL, N'XHQ', 4, N'0,684,685,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 690, 685, N'井陉矿区', NULL, N'JXKQ', 5, N'0,684,685,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 691, 685, N'裕华区', NULL, N'YHQ', 6, N'0,684,685,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 692, 685, N'井陉县', NULL, N'JXX', 7, N'0,684,685,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 693, 685, N'正定县', NULL, N'ZDX', 8, N'0,684,685,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 694, 685, N'栾城县', NULL, N'LCX', 9, N'0,684,685,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 695, 685, N'行唐县', NULL, N'XTX', 10, N'0,684,685,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 696, 685, N'灵寿县', NULL, N'LSX', 11, N'0,684,685,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 697, 685, N'高邑县', NULL, N'GYX', 12, N'0,684,685,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 698, 685, N'深泽县', NULL, N'SZX', 13, N'0,684,685,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 699, 685, N'赞皇县', NULL, N'ZHX', 14, N'0,684,685,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 700, 685, N'无极县', NULL, N'WJX', 15, N'0,684,685,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 701, 685, N'平山县', NULL, N'PSX', 16, N'0,684,685,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 702, 685, N'元氏县', NULL, N'YSX', 17, N'0,684,685,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 703, 685, N'赵县', NULL, N'ZX', 18, N'0,684,685,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 704, 685, N'辛集市', NULL, N'XJS', 19, N'0,684,685,', 3)
GO
print 'Processed 600 total records'
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 705, 685, N'槁城市', NULL, N'GCS', 20, N'0,684,685,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 706, 685, N'晋州市', NULL, N'JZS', 21, N'0,684,685,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 707, 685, N'新乐市', NULL, N'XLS', 22, N'0,684,685,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 708, 685, N'鹿泉市', NULL, N'LQS', 23, N'0,684,685,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 709, 685, N'其他区', NULL, N'QTQ', 24, N'0,684,685,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 710, 684, N'唐山市', NULL, N'TSS', 2, N'0,684,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 711, 710, N'路南区', NULL, N'LNQ', 1, N'0,684,710,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 712, 710, N'路北区', NULL, N'LBQ', 2, N'0,684,710,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 713, 710, N'古冶区', NULL, N'GYQ', 3, N'0,684,710,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 714, 710, N'开平区', NULL, N'KPQ', 4, N'0,684,710,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 715, 710, N'丰南区', NULL, N'FNQ', 5, N'0,684,710,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 716, 710, N'丰润区', NULL, N'FRQ', 6, N'0,684,710,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 717, 710, N'滦县', NULL, N'LX', 7, N'0,684,710,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 718, 710, N'滦南县', NULL, N'LNX', 8, N'0,684,710,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 719, 710, N'乐亭县', NULL, N'LTX', 9, N'0,684,710,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 720, 710, N'迁西县', NULL, N'QXX', 10, N'0,684,710,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 721, 710, N'玉田县', NULL, N'YTX', 11, N'0,684,710,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 722, 710, N'唐海县', NULL, N'THX', 12, N'0,684,710,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 723, 710, N'遵化市', NULL, N'ZHS', 13, N'0,684,710,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 724, 710, N'迁安市', NULL, N'QAS', 14, N'0,684,710,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 725, 710, N'其他区', NULL, N'QTQ', 15, N'0,684,710,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 726, 684, N'秦皇岛市', NULL, N'QHDS', 3, N'0,684,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 727, 726, N'海港区', NULL, N'HGQ', 1, N'0,684,726,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 728, 726, N'山海关区', NULL, N'SHGQ', 2, N'0,684,726,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 729, 726, N'北戴河区', NULL, N'BDHQ', 3, N'0,684,726,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 730, 726, N'青龙满族自治县', NULL, N'QLMZZZX', 4, N'0,684,726,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 731, 726, N'昌黎县', NULL, N'CLX', 5, N'0,684,726,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 732, 726, N'抚宁县', NULL, N'FNX', 6, N'0,684,726,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 733, 726, N'卢龙县', NULL, N'LLX', 7, N'0,684,726,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 734, 726, N'经济技术开发区', NULL, N'JJJSKFQ', 8, N'0,684,726,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 735, 726, N'其他区', NULL, N'QTQ', 9, N'0,684,726,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 736, 684, N'邯郸市', NULL, N'HDS', 4, N'0,684,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 737, 736, N'邯山区', NULL, N'HSQ', 1, N'0,684,736,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 738, 736, N'丛台区', NULL, N'CTQ', 2, N'0,684,736,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 739, 736, N'复兴区', NULL, N'FXQ', 3, N'0,684,736,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 740, 736, N'峰峰矿区', NULL, N'FFKQ', 4, N'0,684,736,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 741, 736, N'邯郸县', NULL, N'HDX', 5, N'0,684,736,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 742, 736, N'临漳县', NULL, N'LZX', 6, N'0,684,736,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 743, 736, N'成安县', NULL, N'CAX', 7, N'0,684,736,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 744, 736, N'大名县', NULL, N'DMX', 8, N'0,684,736,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 745, 736, N'涉县', NULL, N'SX', 9, N'0,684,736,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 746, 736, N'磁县', NULL, N'CX', 10, N'0,684,736,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 747, 736, N'肥乡县', NULL, N'FXX', 11, N'0,684,736,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 748, 736, N'永年县', NULL, N'YNX', 12, N'0,684,736,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 749, 736, N'邱县', NULL, N'QX', 13, N'0,684,736,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 750, 736, N'鸡泽县', NULL, N'JZX', 14, N'0,684,736,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 751, 736, N'广平县', NULL, N'GPX', 15, N'0,684,736,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 752, 736, N'馆陶县', NULL, N'GTX', 16, N'0,684,736,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 753, 736, N'魏县', NULL, N'WX', 17, N'0,684,736,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 754, 736, N'曲周县', NULL, N'QZX', 18, N'0,684,736,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 755, 736, N'武安市', NULL, N'WAS', 19, N'0,684,736,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 756, 736, N'其他区', NULL, N'QTQ', 20, N'0,684,736,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 757, 684, N'邢台市', NULL, N'XTS', 5, N'0,684,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 758, 757, N'桥东区', NULL, N'QDQ', 1, N'0,684,757,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 759, 757, N'桥西区', NULL, N'QXQ', 2, N'0,684,757,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 760, 757, N'邢台县', NULL, N'XTX', 3, N'0,684,757,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 761, 757, N'临城县', NULL, N'LCX', 4, N'0,684,757,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 762, 757, N'内丘县', NULL, N'NQX', 5, N'0,684,757,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 763, 757, N'柏乡县', NULL, N'BXX', 6, N'0,684,757,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 764, 757, N'隆尧县', NULL, N'LYX', 7, N'0,684,757,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 765, 757, N'任县', NULL, N'RX', 8, N'0,684,757,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 766, 757, N'南和县', NULL, N'NHX', 9, N'0,684,757,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 767, 757, N'宁晋县', NULL, N'NJX', 10, N'0,684,757,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 768, 757, N'巨鹿县', NULL, N'JLX', 11, N'0,684,757,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 769, 757, N'新河县', NULL, N'XHX', 12, N'0,684,757,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 770, 757, N'广宗县', NULL, N'GZX', 13, N'0,684,757,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 771, 757, N'平乡县', NULL, N'PXX', 14, N'0,684,757,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 772, 757, N'威县', NULL, N'WX', 15, N'0,684,757,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 773, 757, N'清河县', NULL, N'QHX', 16, N'0,684,757,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 774, 757, N'临西县', NULL, N'LXX', 17, N'0,684,757,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 775, 757, N'南宫市', NULL, N'NGS', 18, N'0,684,757,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 776, 757, N'沙河市', NULL, N'SHS', 19, N'0,684,757,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 777, 757, N'其他区', NULL, N'QTQ', 20, N'0,684,757,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 778, 684, N'保定市', NULL, N'BDS', 6, N'0,684,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 779, 778, N'新市区', NULL, N'XSQ', 1, N'0,684,778,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 780, 778, N'北市区', NULL, N'BSQ', 2, N'0,684,778,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 781, 778, N'南市区', NULL, N'NSQ', 3, N'0,684,778,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 782, 778, N'满城县', NULL, N'MCX', 4, N'0,684,778,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 783, 778, N'清苑县', NULL, N'QYX', 5, N'0,684,778,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 784, 778, N'涞水县', NULL, N'LSX', 6, N'0,684,778,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 785, 778, N'阜平县', NULL, N'FPX', 7, N'0,684,778,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 786, 778, N'徐水县', NULL, N'XSX', 8, N'0,684,778,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 787, 778, N'定兴县', NULL, N'DXX', 9, N'0,684,778,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 788, 778, N'唐县', NULL, N'TX', 10, N'0,684,778,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 789, 778, N'高阳县', NULL, N'GYX', 11, N'0,684,778,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 790, 778, N'容城县', NULL, N'RCX', 12, N'0,684,778,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 791, 778, N'涞源县', NULL, N'LYX', 13, N'0,684,778,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 792, 778, N'望都县', NULL, N'WDX', 14, N'0,684,778,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 793, 778, N'安新县', NULL, N'AXX', 15, N'0,684,778,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 794, 778, N'易县', NULL, N'YX', 16, N'0,684,778,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 795, 778, N'曲阳县', NULL, N'QYX', 17, N'0,684,778,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 796, 778, N'蠡县', NULL, N'LX', 18, N'0,684,778,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 797, 778, N'顺平县', NULL, N'SPX', 19, N'0,684,778,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 798, 778, N'博野县', NULL, N'BYX', 20, N'0,684,778,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 799, 778, N'雄县', NULL, N'XX', 21, N'0,684,778,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 800, 778, N'涿州市', NULL, N'ZZS', 22, N'0,684,778,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 801, 778, N'定州市', NULL, N'DZS', 23, N'0,684,778,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 802, 778, N'安国市', NULL, N'AGS', 24, N'0,684,778,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 803, 778, N'高碑店市', NULL, N'GBDS', 25, N'0,684,778,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 804, 778, N'高开区', NULL, N'GKQ', 26, N'0,684,778,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 805, 778, N'其他区', NULL, N'QTQ', 27, N'0,684,778,', 3)
GO
print 'Processed 700 total records'
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 806, 684, N'张家口市', NULL, N'ZJKS', 7, N'0,684,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 807, 806, N'桥东区', NULL, N'QDQ', 1, N'0,684,806,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 808, 806, N'桥西区', NULL, N'QXQ', 2, N'0,684,806,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 809, 806, N'宣化区', NULL, N'XHQ', 3, N'0,684,806,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 810, 806, N'下花园区', NULL, N'XHYQ', 4, N'0,684,806,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 811, 806, N'宣化县', NULL, N'XHX', 5, N'0,684,806,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 812, 806, N'张北县', NULL, N'ZBX', 6, N'0,684,806,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 813, 806, N'康保县', NULL, N'KBX', 7, N'0,684,806,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 814, 806, N'沽源县', NULL, N'GYX', 8, N'0,684,806,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 815, 806, N'尚义县', NULL, N'SYX', 9, N'0,684,806,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 816, 806, N'蔚县', NULL, N'WX', 10, N'0,684,806,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 817, 806, N'阳原县', NULL, N'YYX', 11, N'0,684,806,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 818, 806, N'怀安县', NULL, N'HAX', 12, N'0,684,806,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 819, 806, N'万全县', NULL, N'WQX', 13, N'0,684,806,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 820, 806, N'怀来县', NULL, N'HLX', 14, N'0,684,806,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 821, 806, N'涿鹿县', NULL, N'ZLX', 15, N'0,684,806,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 822, 806, N'赤城县', NULL, N'CCX', 16, N'0,684,806,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 823, 806, N'崇礼县', NULL, N'CLX', 17, N'0,684,806,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 824, 806, N'其他区', NULL, N'QTQ', 18, N'0,684,806,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 825, 684, N'承德市', NULL, N'CDS', 8, N'0,684,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 826, 825, N'双桥区', NULL, N'SQQ', 1, N'0,684,825,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 827, 825, N'双滦区', NULL, N'SLQ', 2, N'0,684,825,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 828, 825, N'鹰手营子矿区', NULL, N'YSYZKQ', 3, N'0,684,825,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 829, 825, N'承德县', NULL, N'CDX', 4, N'0,684,825,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 830, 825, N'兴隆县', NULL, N'XLX', 5, N'0,684,825,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 831, 825, N'平泉县', NULL, N'PQX', 6, N'0,684,825,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 832, 825, N'滦平县', NULL, N'LPX', 7, N'0,684,825,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 833, 825, N'隆化县', NULL, N'LHX', 8, N'0,684,825,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 834, 825, N'丰宁满族自治县', NULL, N'FNMZZZX', 9, N'0,684,825,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 835, 825, N'宽城满族自治县', NULL, N'KCMZZZX', 10, N'0,684,825,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 836, 825, N'围场满族蒙古族自治县', NULL, N'WCMZMGZZZX', 11, N'0,684,825,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 837, 825, N'其他区', NULL, N'QTQ', 12, N'0,684,825,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 838, 684, N'沧州市', NULL, N'CZS', 9, N'0,684,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 839, 838, N'新华区', NULL, N'XHQ', 1, N'0,684,838,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 840, 838, N'运河区', NULL, N'YHQ', 2, N'0,684,838,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 841, 838, N'沧县', NULL, N'CX', 3, N'0,684,838,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 842, 838, N'青县', NULL, N'QX', 4, N'0,684,838,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 843, 838, N'东光县', NULL, N'DGX', 5, N'0,684,838,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 844, 838, N'海兴县', NULL, N'HXX', 6, N'0,684,838,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 845, 838, N'盐山县', NULL, N'YSX', 7, N'0,684,838,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 846, 838, N'肃宁县', NULL, N'SNX', 8, N'0,684,838,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 847, 838, N'南皮县', NULL, N'NPX', 9, N'0,684,838,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 848, 838, N'吴桥县', NULL, N'WQX', 10, N'0,684,838,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 849, 838, N'献县', NULL, N'XX', 11, N'0,684,838,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 850, 838, N'孟村回族自治县', NULL, N'MCHZZZX', 12, N'0,684,838,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 851, 838, N'泊头市', NULL, N'BTS', 13, N'0,684,838,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 852, 838, N'任丘市', NULL, N'RQS', 14, N'0,684,838,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 853, 838, N'黄骅市', NULL, N'HHS', 15, N'0,684,838,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 854, 838, N'河间市', NULL, N'HJS', 16, N'0,684,838,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 855, 838, N'其他区', NULL, N'QTQ', 17, N'0,684,838,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 856, 684, N'廊坊市', NULL, N'LFS', 10, N'0,684,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 857, 856, N'安次区', NULL, N'ACQ', 1, N'0,684,856,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 858, 856, N'广阳区', NULL, N'GYQ', 2, N'0,684,856,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 859, 856, N'固安县', NULL, N'GAX', 3, N'0,684,856,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 860, 856, N'永清县', NULL, N'YQX', 4, N'0,684,856,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 861, 856, N'香河县', NULL, N'XHX', 5, N'0,684,856,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 862, 856, N'大城县', NULL, N'DCX', 6, N'0,684,856,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 863, 856, N'文安县', NULL, N'WAX', 7, N'0,684,856,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 864, 856, N'大厂回族自治县', NULL, N'DCHZZZX', 8, N'0,684,856,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 865, 856, N'开发区', NULL, N'KFQ', 9, N'0,684,856,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 866, 856, N'燕郊经济技术开发区', NULL, N'YJJJJSKFQ', 10, N'0,684,856,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 867, 856, N'霸州市', NULL, N'BZS', 11, N'0,684,856,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 868, 856, N'三河市', NULL, N'SHS', 12, N'0,684,856,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 869, 856, N'其他区', NULL, N'QTQ', 13, N'0,684,856,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 870, 684, N'衡水市', NULL, N'HSS', 11, N'0,684,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 871, 870, N'桃城区', NULL, N'TCQ', 1, N'0,684,870,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 872, 870, N'枣强县', NULL, N'ZQX', 2, N'0,684,870,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 873, 870, N'武邑县', NULL, N'WYX', 3, N'0,684,870,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 874, 870, N'武强县', NULL, N'WQX', 4, N'0,684,870,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 875, 870, N'饶阳县', NULL, N'RYX', 5, N'0,684,870,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 876, 870, N'安平县', NULL, N'APX', 6, N'0,684,870,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 877, 870, N'故城县', NULL, N'GCX', 7, N'0,684,870,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 878, 870, N'景县', NULL, N'JX', 8, N'0,684,870,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 879, 870, N'阜城县', NULL, N'FCX', 9, N'0,684,870,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 880, 870, N'冀州市', NULL, N'JZS', 10, N'0,684,870,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 881, 870, N'深州市', NULL, N'SZS', 11, N'0,684,870,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 882, 870, N'其他区', NULL, N'QTQ', 12, N'0,684,870,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (2, 883, NULL, N'山西省', NULL, N'SXS', 9, N'0,', 1)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 884, 883, N'太原市', NULL, N'TYS', 1, N'0,883,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 885, 884, N'小店区', NULL, N'XDQ', 1, N'0,883,884,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 886, 884, N'迎泽区', NULL, N'YZQ', 2, N'0,883,884,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 887, 884, N'杏花岭区', NULL, N'XHLQ', 3, N'0,883,884,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 888, 884, N'尖草坪区', NULL, N'JCPQ', 4, N'0,883,884,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 889, 884, N'万柏林区', NULL, N'WBLQ', 5, N'0,883,884,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 890, 884, N'晋源区', NULL, N'JYQ', 6, N'0,883,884,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 891, 884, N'清徐县', NULL, N'QXX', 7, N'0,883,884,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 892, 884, N'阳曲县', NULL, N'YQX', 8, N'0,883,884,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 893, 884, N'娄烦县', NULL, N'LFX', 9, N'0,883,884,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 894, 884, N'古交市', NULL, N'GJS', 10, N'0,883,884,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 895, 884, N'其他区', NULL, N'QTQ', 11, N'0,883,884,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 896, 883, N'大同市', NULL, N'DTS', 2, N'0,883,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 897, 896, N'城区', NULL, N'CQ', 1, N'0,883,896,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 898, 896, N'矿区', NULL, N'KQ', 2, N'0,883,896,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 899, 896, N'南郊区', NULL, N'NJQ', 3, N'0,883,896,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 900, 896, N'新荣区', NULL, N'XRQ', 4, N'0,883,896,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 901, 896, N'阳高县', NULL, N'YGX', 5, N'0,883,896,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 902, 896, N'天镇县', NULL, N'TZX', 6, N'0,883,896,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 903, 896, N'广灵县', NULL, N'GLX', 7, N'0,883,896,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 904, 896, N'灵丘县', NULL, N'LQX', 8, N'0,883,896,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 905, 896, N'浑源县', NULL, N'HYX', 9, N'0,883,896,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 906, 896, N'左云县', NULL, N'ZYX', 10, N'0,883,896,', 3)
GO
print 'Processed 800 total records'
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 907, 896, N'大同县', NULL, N'DTX', 11, N'0,883,896,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 908, 896, N'其他区', NULL, N'QTQ', 12, N'0,883,896,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 909, 883, N'阳泉市', NULL, N'YQS', 3, N'0,883,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 910, 909, N'城区', NULL, N'CQ', 1, N'0,883,909,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 911, 909, N'矿区', NULL, N'KQ', 2, N'0,883,909,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 912, 909, N'郊区', NULL, N'JQ', 3, N'0,883,909,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 913, 909, N'平定县', NULL, N'PDX', 4, N'0,883,909,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 914, 909, N'盂县', NULL, N'YX', 5, N'0,883,909,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 915, 909, N'其他区', NULL, N'QTQ', 6, N'0,883,909,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 916, 883, N'长治市', NULL, N'CZS', 4, N'0,883,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 917, 916, N'长治县', NULL, N'CZX', 1, N'0,883,916,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 918, 916, N'襄垣县', NULL, N'XYX', 2, N'0,883,916,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 919, 916, N'屯留县', NULL, N'TLX', 3, N'0,883,916,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 920, 916, N'平顺县', NULL, N'PSX', 4, N'0,883,916,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 921, 916, N'黎城县', NULL, N'LCX', 5, N'0,883,916,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 922, 916, N'壶关县', NULL, N'HGX', 6, N'0,883,916,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 923, 916, N'长子县', NULL, N'CZX', 7, N'0,883,916,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 924, 916, N'武乡县', NULL, N'WXX', 8, N'0,883,916,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 925, 916, N'沁县', NULL, N'QX', 9, N'0,883,916,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 926, 916, N'沁源县', NULL, N'QYX', 10, N'0,883,916,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 927, 916, N'潞城市', NULL, N'LCS', 11, N'0,883,916,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 928, 916, N'城区', NULL, N'CQ', 12, N'0,883,916,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 929, 916, N'郊区', NULL, N'JQ', 13, N'0,883,916,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 930, 916, N'高新区', NULL, N'GXQ', 14, N'0,883,916,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 931, 916, N'其他区', NULL, N'QTQ', 15, N'0,883,916,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 932, 883, N'晋城市', NULL, N'JCS', 5, N'0,883,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 933, 932, N'城区', NULL, N'CQ', 1, N'0,883,932,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 934, 932, N'沁水县', NULL, N'QSX', 2, N'0,883,932,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 935, 932, N'阳城县', NULL, N'YCX', 3, N'0,883,932,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 936, 932, N'陵川县', NULL, N'LCX', 4, N'0,883,932,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 937, 932, N'泽州县', NULL, N'ZZX', 5, N'0,883,932,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 938, 932, N'高平市', NULL, N'GPS', 6, N'0,883,932,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 939, 932, N'其他区', NULL, N'QTQ', 7, N'0,883,932,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 940, 883, N'朔州市', NULL, N'SZS', 6, N'0,883,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 941, 940, N'朔城区', NULL, N'SCQ', 1, N'0,883,940,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 942, 940, N'平鲁区', NULL, N'PLQ', 2, N'0,883,940,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 943, 940, N'山阴县', NULL, N'SYX', 3, N'0,883,940,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 944, 940, N'应县', NULL, N'YX', 4, N'0,883,940,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 945, 940, N'右玉县', NULL, N'YYX', 5, N'0,883,940,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 946, 940, N'怀仁县', NULL, N'HRX', 6, N'0,883,940,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 947, 940, N'其他区', NULL, N'QTQ', 7, N'0,883,940,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 948, 883, N'晋中市', NULL, N'JZS', 7, N'0,883,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 949, 948, N'榆次区', NULL, N'YCQ', 1, N'0,883,948,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 950, 948, N'榆社县', NULL, N'YSX', 2, N'0,883,948,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 951, 948, N'左权县', NULL, N'ZQX', 3, N'0,883,948,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 952, 948, N'和顺县', NULL, N'HSX', 4, N'0,883,948,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 953, 948, N'昔阳县', NULL, N'XYX', 5, N'0,883,948,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 954, 948, N'寿阳县', NULL, N'SYX', 6, N'0,883,948,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 955, 948, N'太古县', NULL, N'TGX', 7, N'0,883,948,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 956, 948, N'祁县', NULL, N'QX', 8, N'0,883,948,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 957, 948, N'平遥县', NULL, N'PYX', 9, N'0,883,948,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 958, 948, N'灵石县', NULL, N'LSX', 10, N'0,883,948,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 959, 948, N'介休市', NULL, N'JXS', 11, N'0,883,948,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 960, 948, N'其他区', NULL, N'QTQ', 12, N'0,883,948,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 961, 883, N'运城市', NULL, N'YCS', 8, N'0,883,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 962, 961, N'盐湖区', NULL, N'YHQ', 1, N'0,883,961,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 963, 961, N'临猗县', NULL, N'LYX', 2, N'0,883,961,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 964, 961, N'万荣县', NULL, N'WRX', 3, N'0,883,961,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 965, 961, N'闻喜县', NULL, N'WXX', 4, N'0,883,961,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 966, 961, N'稷山县', NULL, N'JSX', 5, N'0,883,961,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 967, 961, N'新绛县', NULL, N'XJX', 6, N'0,883,961,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 968, 961, N'绛县', NULL, N'JX', 7, N'0,883,961,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 969, 961, N'垣曲县', NULL, N'YQX', 8, N'0,883,961,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 970, 961, N'夏县', NULL, N'XX', 9, N'0,883,961,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 971, 961, N'平陆县', NULL, N'PLX', 10, N'0,883,961,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 972, 961, N'芮城县', NULL, N'RCX', 11, N'0,883,961,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 973, 961, N'永济市', NULL, N'YJS', 12, N'0,883,961,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 974, 961, N'河津市', NULL, N'HJS', 13, N'0,883,961,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 975, 961, N'其他区', NULL, N'QTQ', 14, N'0,883,961,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 976, 883, N'忻州市', NULL, N'XZS', 9, N'0,883,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 977, 976, N'忻府区', NULL, N'XFQ', 1, N'0,883,976,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 978, 976, N'定襄县', NULL, N'DXX', 2, N'0,883,976,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 979, 976, N'五台县', NULL, N'WTX', 3, N'0,883,976,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 980, 976, N'代县', NULL, N'DX', 4, N'0,883,976,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 981, 976, N'繁峙县', NULL, N'FZX', 5, N'0,883,976,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 982, 976, N'宁武县', NULL, N'NWX', 6, N'0,883,976,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 983, 976, N'静乐县', NULL, N'JLX', 7, N'0,883,976,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 984, 976, N'神池县', NULL, N'SCX', 8, N'0,883,976,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 985, 976, N'五寨县', NULL, N'WZX', 9, N'0,883,976,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 986, 976, N'岢岚县', NULL, N'KLX', 10, N'0,883,976,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 987, 976, N'河曲县', NULL, N'HQX', 11, N'0,883,976,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 988, 976, N'保德县', NULL, N'BDX', 12, N'0,883,976,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 989, 976, N'偏关县', NULL, N'PGX', 13, N'0,883,976,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 990, 976, N'原平市', NULL, N'YPS', 14, N'0,883,976,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 991, 976, N'其他区', NULL, N'QTQ', 15, N'0,883,976,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 992, 883, N'临汾市', NULL, N'LFS', 10, N'0,883,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 993, 992, N'尧都区', NULL, N'YDQ', 1, N'0,883,992,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 994, 992, N'曲沃县', NULL, N'QWX', 2, N'0,883,992,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 995, 992, N'翼城县', NULL, N'YCX', 3, N'0,883,992,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 996, 992, N'襄汾县', NULL, N'XFX', 4, N'0,883,992,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 997, 992, N'洪洞县', NULL, N'HDX', 5, N'0,883,992,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 998, 992, N'古县', NULL, N'GX', 6, N'0,883,992,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 999, 992, N'安泽县', NULL, N'AZX', 7, N'0,883,992,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1000, 992, N'浮山县', NULL, N'FSX', 8, N'0,883,992,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1001, 992, N'吉县', NULL, N'JX', 9, N'0,883,992,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1002, 992, N'乡宁县', NULL, N'XNX', 10, N'0,883,992,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1003, 992, N'大宁县', NULL, N'DNX', 11, N'0,883,992,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1004, 992, N'隰县', NULL, N'XX', 12, N'0,883,992,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1005, 992, N'永和县', NULL, N'YHX', 13, N'0,883,992,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1006, 992, N'蒲县', NULL, N'PX', 14, N'0,883,992,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1007, 992, N'汾西县', NULL, N'FXX', 15, N'0,883,992,', 3)
GO
print 'Processed 900 total records'
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1008, 992, N'侯马市', NULL, N'HMS', 16, N'0,883,992,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1009, 992, N'霍州市', NULL, N'HZS', 17, N'0,883,992,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1010, 992, N'其他区', NULL, N'QTQ', 18, N'0,883,992,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1011, 883, N'吕梁市', NULL, N'LLS', 11, N'0,883,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1012, 1011, N'离石区', NULL, N'LSQ', 1, N'0,883,1011,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1013, 1011, N'文水县', NULL, N'WSX', 2, N'0,883,1011,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1014, 1011, N'交城县', NULL, N'JCX', 3, N'0,883,1011,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1015, 1011, N'兴县', NULL, N'XX', 4, N'0,883,1011,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1016, 1011, N'临县', NULL, N'LX', 5, N'0,883,1011,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1017, 1011, N'柳林县', NULL, N'LLX', 6, N'0,883,1011,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1018, 1011, N'石楼县', NULL, N'SLX', 7, N'0,883,1011,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1019, 1011, N'岚县', NULL, N'LX', 8, N'0,883,1011,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1020, 1011, N'方山县', NULL, N'FSX', 9, N'0,883,1011,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1021, 1011, N'中阳县', NULL, N'ZYX', 10, N'0,883,1011,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1022, 1011, N'交口县', NULL, N'JKX', 11, N'0,883,1011,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1023, 1011, N'孝义市', NULL, N'XYS', 12, N'0,883,1011,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1024, 1011, N'汾阳市', NULL, N'FYS', 13, N'0,883,1011,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1025, 1011, N'其他区', NULL, N'QTQ', 14, N'0,883,1011,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (2, 1026, NULL, N'内蒙古', NULL, N'NMG', 10, N'0,', 1)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1027, 1026, N'呼和浩特市', NULL, N'HHHTS', 1, N'0,1026,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1028, 1027, N'新城区', NULL, N'XCQ', 1, N'0,1026,1027,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1029, 1027, N'回民区', NULL, N'HMQ', 2, N'0,1026,1027,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1030, 1027, N'玉泉区', NULL, N'YQQ', 3, N'0,1026,1027,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1031, 1027, N'赛罕区', NULL, N'SHQ', 4, N'0,1026,1027,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1032, 1027, N'土默特左旗', NULL, N'TMTZQ', 5, N'0,1026,1027,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1033, 1027, N'托克托县', NULL, N'TKTX', 6, N'0,1026,1027,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1034, 1027, N'和林格尔县', NULL, N'HLGEX', 7, N'0,1026,1027,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1035, 1027, N'清水河县', NULL, N'QSHX', 8, N'0,1026,1027,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1036, 1027, N'武川县', NULL, N'WCX', 9, N'0,1026,1027,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1037, 1027, N'其他区', NULL, N'QTQ', 10, N'0,1026,1027,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1038, 1026, N'包头市', NULL, N'BTS', 2, N'0,1026,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1039, 1038, N'东河区', NULL, N'DHQ', 1, N'0,1026,1038,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1040, 1038, N'昆都仑区', NULL, N'KDLQ', 2, N'0,1026,1038,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1041, 1038, N'青山区', NULL, N'QSQ', 3, N'0,1026,1038,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1042, 1038, N'石拐区', NULL, N'SGQ', 4, N'0,1026,1038,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1043, 1038, N'白云矿区', NULL, N'BYKQ', 5, N'0,1026,1038,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1044, 1038, N'九原区', NULL, N'JYQ', 6, N'0,1026,1038,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1045, 1038, N'土默特右旗', NULL, N'TMTYQ', 7, N'0,1026,1038,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1046, 1038, N'固阳县', NULL, N'GYX', 8, N'0,1026,1038,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1047, 1038, N'达尔罕茂明安联合旗', NULL, N'DEHMMALHQ', 9, N'0,1026,1038,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1048, 1038, N'其他区', NULL, N'QTQ', 10, N'0,1026,1038,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1049, 1026, N'乌海市', NULL, N'WHS', 3, N'0,1026,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1050, 1049, N'海渤湾区', NULL, N'HBWQ', 1, N'0,1026,1049,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1051, 1049, N'海南区', NULL, N'HNQ', 2, N'0,1026,1049,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1052, 1049, N'乌达区', NULL, N'WDQ', 3, N'0,1026,1049,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1053, 1049, N'其他区', NULL, N'QTQ', 4, N'0,1026,1049,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1054, 1026, N'赤峰市', NULL, N'CFS', 4, N'0,1026,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1055, 1054, N'红山区', NULL, N'HSQ', 1, N'0,1026,1054,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1056, 1054, N'元宝山区', NULL, N'YBSQ', 2, N'0,1026,1054,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1057, 1054, N'松山区', NULL, N'SSQ', 3, N'0,1026,1054,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1058, 1054, N'阿鲁科尔沁旗', NULL, N'ALKEQQ', 4, N'0,1026,1054,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1059, 1054, N'巴林左旗', NULL, N'BLZQ', 5, N'0,1026,1054,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1060, 1054, N'巴林右旗', NULL, N'BLYQ', 6, N'0,1026,1054,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1061, 1054, N'林西县', NULL, N'LXX', 7, N'0,1026,1054,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1062, 1054, N'克什克腾旗', NULL, N'KSKTQ', 8, N'0,1026,1054,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1063, 1054, N'瓮牛特旗', NULL, N'WNTQ', 9, N'0,1026,1054,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1064, 1054, N'喀喇沁旗', NULL, N'KLQQ', 10, N'0,1026,1054,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1065, 1054, N'宁城县', NULL, N'NCX', 11, N'0,1026,1054,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1066, 1054, N'敖汉旗', NULL, N'AHQ', 12, N'0,1026,1054,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1067, 1054, N'其他区', NULL, N'QTQ', 13, N'0,1026,1054,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1068, 1026, N'通辽市', NULL, N'TLS', 5, N'0,1026,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1069, 1068, N'科尔沁区', NULL, N'KEQQ', 1, N'0,1026,1068,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1070, 1068, N'科尔沁左翼中旗', NULL, N'KEQZYZQ', 2, N'0,1026,1068,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1071, 1068, N'科尔沁左翼后旗', NULL, N'KEQZYHQ', 3, N'0,1026,1068,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1072, 1068, N'开鲁县', NULL, N'KLX', 4, N'0,1026,1068,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1073, 1068, N'库伦旗', NULL, N'KLQ', 5, N'0,1026,1068,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1074, 1068, N'奈曼旗', NULL, N'NMQ', 6, N'0,1026,1068,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1075, 1068, N'扎鲁特旗', NULL, N'ZLTQ', 7, N'0,1026,1068,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1076, 1068, N'霍林郭勒市', NULL, N'HLGLS', 8, N'0,1026,1068,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1077, 1068, N'其他区', NULL, N'QTQ', 9, N'0,1026,1068,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1078, 1026, N'鄂尔多斯市', NULL, N'EEDSS', 6, N'0,1026,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1079, 1078, N'东胜区', NULL, N'DSQ', 1, N'0,1026,1078,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1080, 1078, N'达拉特旗', NULL, N'DLTQ', 2, N'0,1026,1078,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1081, 1078, N'准格尔旗', NULL, N'ZGEQ', 3, N'0,1026,1078,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1082, 1078, N'鄂托克前旗', NULL, N'ETKQQ', 4, N'0,1026,1078,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1083, 1078, N'鄂托克旗', NULL, N'ETKQ', 5, N'0,1026,1078,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1084, 1078, N'杭锦旗', NULL, N'HJQ', 6, N'0,1026,1078,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1085, 1078, N'乌审旗', NULL, N'WSQ', 7, N'0,1026,1078,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1086, 1078, N'伊金霍洛旗', NULL, N'YJHLQ', 8, N'0,1026,1078,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1087, 1078, N'其他区', NULL, N'QTQ', 9, N'0,1026,1078,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1088, 1026, N'呼伦贝尔市', NULL, N'HLBES', 7, N'0,1026,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1089, 1088, N'海拉尔区', NULL, N'HLEQ', 1, N'0,1026,1088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1090, 1088, N'阿荣旗', NULL, N'ARQ', 2, N'0,1026,1088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1091, 1088, N'莫力达瓦达斡尔族自治旗', NULL, N'MLDWDWEZZZQ', 3, N'0,1026,1088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1092, 1088, N'鄂伦春自治旗', NULL, N'ELCZZQ', 4, N'0,1026,1088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1093, 1088, N'鄂温克族自治旗', NULL, N'EWKZZZQ', 5, N'0,1026,1088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1094, 1088, N'陈巴尔虎旗', NULL, N'CBEHQ', 6, N'0,1026,1088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1095, 1088, N'新巴尔虎左旗', NULL, N'XBEHZQ', 7, N'0,1026,1088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1096, 1088, N'新巴尔虎右旗', NULL, N'XBEHYQ', 8, N'0,1026,1088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1097, 1088, N'满洲里市', NULL, N'MZLS', 9, N'0,1026,1088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1098, 1088, N'牙克石市', NULL, N'YKSS', 10, N'0,1026,1088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1099, 1088, N'扎兰屯市', NULL, N'ZLTS', 11, N'0,1026,1088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1100, 1088, N'额尔古纳市', NULL, N'EEGNS', 12, N'0,1026,1088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1101, 1088, N'根河市', NULL, N'GHS', 13, N'0,1026,1088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1102, 1088, N'其他区', NULL, N'QTQ', 14, N'0,1026,1088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1103, 1026, N'巴彦淖尔市', NULL, N'BYNES', 8, N'0,1026,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1104, 1103, N'临河区', NULL, N'LHQ', 1, N'0,1026,1103,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1105, 1103, N'五原县', NULL, N'WYX', 2, N'0,1026,1103,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1106, 1103, N'磴口县', NULL, N'DKX', 3, N'0,1026,1103,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1107, 1103, N'乌拉特前旗', NULL, N'WLTQQ', 4, N'0,1026,1103,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1108, 1103, N'乌拉特中旗', NULL, N'WLTZQ', 5, N'0,1026,1103,', 3)
GO
print 'Processed 1000 total records'
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1109, 1103, N'乌拉特后旗', NULL, N'WLTHQ', 6, N'0,1026,1103,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1110, 1103, N'杭锦后旗', NULL, N'HJHQ', 7, N'0,1026,1103,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1111, 1103, N'其他区', NULL, N'QTQ', 8, N'0,1026,1103,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1112, 1026, N'乌兰察布市', NULL, N'WLCBS', 9, N'0,1026,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1113, 1112, N'集宁区', NULL, N'JNQ', 1, N'0,1026,1112,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1114, 1112, N'卓资县', NULL, N'ZZX', 2, N'0,1026,1112,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1115, 1112, N'化德县', NULL, N'HDX', 3, N'0,1026,1112,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1116, 1112, N'商都县', NULL, N'SDX', 4, N'0,1026,1112,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1117, 1112, N'兴和县', NULL, N'XHX', 5, N'0,1026,1112,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1118, 1112, N'凉城县', NULL, N'LCX', 6, N'0,1026,1112,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1119, 1112, N'察哈尔右翼前旗', NULL, N'CHEYYQQ', 7, N'0,1026,1112,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1120, 1112, N'察哈尔右翼中旗', NULL, N'CHEYYZQ', 8, N'0,1026,1112,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1121, 1112, N'察哈尔右翼后旗', NULL, N'CHEYYHQ', 9, N'0,1026,1112,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1122, 1112, N'四子王旗', NULL, N'SZWQ', 10, N'0,1026,1112,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1123, 1112, N'丰镇市', NULL, N'FZS', 11, N'0,1026,1112,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1124, 1112, N'其他区', NULL, N'QTQ', 12, N'0,1026,1112,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1125, 1026, N'兴安盟', NULL, N'XAM', 10, N'0,1026,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1126, 1125, N'乌兰浩特市', NULL, N'WLHTS', 1, N'0,1026,1125,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1127, 1125, N'阿尔山市', NULL, N'AESS', 2, N'0,1026,1125,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1128, 1125, N'科尔沁右翼前旗', NULL, N'KEQYYQQ', 3, N'0,1026,1125,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1129, 1125, N'科尔沁右翼中旗', NULL, N'KEQYYZQ', 4, N'0,1026,1125,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1130, 1125, N'扎赉特旗', NULL, N'ZLTQ', 5, N'0,1026,1125,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1131, 1125, N'突泉县', NULL, N'TQX', 6, N'0,1026,1125,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1132, 1125, N'其他区', NULL, N'QTQ', 7, N'0,1026,1125,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1133, 1026, N'锡林郭勒盟', NULL, N'XLGLM', 11, N'0,1026,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1134, 1133, N'二连浩特市', NULL, N'ELHTS', 1, N'0,1026,1133,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1135, 1133, N'锡林浩特市', NULL, N'XLHTS', 2, N'0,1026,1133,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1136, 1133, N'阿巴嘎旗', NULL, N'ABGQ', 3, N'0,1026,1133,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1137, 1133, N'苏尼特左旗', NULL, N'SNTZQ', 4, N'0,1026,1133,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1138, 1133, N'苏尼特右旗', NULL, N'SNTYQ', 5, N'0,1026,1133,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1139, 1133, N'东乌珠穆沁旗', NULL, N'DWZMQQ', 6, N'0,1026,1133,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1140, 1133, N'西乌珠穆沁旗', NULL, N'XWZMQQ', 7, N'0,1026,1133,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1141, 1133, N'太仆寺旗', NULL, N'TPSQ', 8, N'0,1026,1133,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1142, 1133, N'镶黄旗', NULL, N'XHQ', 9, N'0,1026,1133,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1143, 1133, N'正镶白旗', NULL, N'ZXBQ', 10, N'0,1026,1133,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1144, 1133, N'正蓝旗', NULL, N'ZLQ', 11, N'0,1026,1133,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1145, 1133, N'多伦县', NULL, N'DLX', 12, N'0,1026,1133,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1146, 1133, N'其他区', NULL, N'QTQ', 13, N'0,1026,1133,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1147, 1026, N'阿拉善盟', NULL, N'ALSM', 12, N'0,1026,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1148, 1147, N'阿拉善左旗', NULL, N'ALSZQ', 1, N'0,1026,1147,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1149, 1147, N'阿拉善右旗', NULL, N'ALSYQ', 2, N'0,1026,1147,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1150, 1147, N'额济纳旗', NULL, N'EJNQ', 3, N'0,1026,1147,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1151, 1147, N'其他区', NULL, N'QTQ', 4, N'0,1026,1147,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (2, 1152, NULL, N'山东省', NULL, N'SDS', 11, N'0,', 1)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1153, 1152, N'济南市', NULL, N'JNS', 1, N'0,1152,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1154, 1153, N'历下区', NULL, N'LXQ', 1, N'0,1152,1153,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1155, 1153, N'市中区', NULL, N'SZQ', 2, N'0,1152,1153,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1156, 1153, N'槐荫区', NULL, N'HYQ', 3, N'0,1152,1153,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1157, 1153, N'天桥区', NULL, N'TQQ', 4, N'0,1152,1153,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1158, 1153, N'历城区', NULL, N'LCQ', 5, N'0,1152,1153,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1159, 1153, N'长清区', NULL, N'CQQ', 6, N'0,1152,1153,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1160, 1153, N'平阴县', NULL, N'PYX', 7, N'0,1152,1153,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1161, 1153, N'济阳县', NULL, N'JYX', 8, N'0,1152,1153,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1162, 1153, N'商河县', NULL, N'SHX', 9, N'0,1152,1153,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1163, 1153, N'章丘市', NULL, N'ZQS', 10, N'0,1152,1153,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1164, 1153, N'其他区', NULL, N'QTQ', 11, N'0,1152,1153,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1165, 1152, N'青岛市', NULL, N'QDS', 2, N'0,1152,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1166, 1165, N'市南区', NULL, N'SNQ', 1, N'0,1152,1165,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1167, 1165, N'市北区', NULL, N'SBQ', 2, N'0,1152,1165,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1168, 1165, N'四方区', NULL, N'SFQ', 3, N'0,1152,1165,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1169, 1165, N'黄岛区', NULL, N'HDQ', 4, N'0,1152,1165,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1170, 1165, N'崂山区', NULL, N'LSQ', 5, N'0,1152,1165,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1171, 1165, N'李沧区', NULL, N'LCQ', 6, N'0,1152,1165,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1172, 1165, N'城阳区', NULL, N'CYQ', 7, N'0,1152,1165,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1173, 1165, N'开发区', NULL, N'KFQ', 8, N'0,1152,1165,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1174, 1165, N'胶州市', NULL, N'JZS', 9, N'0,1152,1165,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1175, 1165, N'即墨市', NULL, N'JMS', 10, N'0,1152,1165,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1176, 1165, N'平度市', NULL, N'PDS', 11, N'0,1152,1165,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1177, 1165, N'胶南市', NULL, N'JNS', 12, N'0,1152,1165,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1178, 1165, N'莱西市', NULL, N'LXS', 13, N'0,1152,1165,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1179, 1165, N'其他区', NULL, N'QTQ', 14, N'0,1152,1165,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1180, 1152, N'淄博市', NULL, N'ZBS', 3, N'0,1152,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1181, 1180, N'淄川区', NULL, N'ZCQ', 1, N'0,1152,1180,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1182, 1180, N'张店区', NULL, N'ZDQ', 2, N'0,1152,1180,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1183, 1180, N'博山区', NULL, N'BSQ', 3, N'0,1152,1180,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1184, 1180, N'临淄区', NULL, N'LZQ', 4, N'0,1152,1180,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1185, 1180, N'周村区', NULL, N'ZCQ', 5, N'0,1152,1180,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1186, 1180, N'桓台县', NULL, N'HTX', 6, N'0,1152,1180,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1187, 1180, N'高青县', NULL, N'GQX', 7, N'0,1152,1180,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1188, 1180, N'沂源县', NULL, N'YYX', 8, N'0,1152,1180,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1189, 1180, N'其他区', NULL, N'QTQ', 9, N'0,1152,1180,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1190, 1152, N'枣庄市', NULL, N'ZZS', 4, N'0,1152,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1191, 1190, N'市中区', NULL, N'SZQ', 1, N'0,1152,1190,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1192, 1190, N'薛城区', NULL, N'XCQ', 2, N'0,1152,1190,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1193, 1190, N'峄城区', NULL, N'YCQ', 3, N'0,1152,1190,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1194, 1190, N'台儿庄区', NULL, N'TEZQ', 4, N'0,1152,1190,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1195, 1190, N'山亭区', NULL, N'STQ', 5, N'0,1152,1190,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1196, 1190, N'滕州市', NULL, N'TZS', 6, N'0,1152,1190,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1197, 1190, N'其他区', NULL, N'QTQ', 7, N'0,1152,1190,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1198, 1152, N'东营市', NULL, N'DYS', 5, N'0,1152,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1199, 1198, N'东营区', NULL, N'DYQ', 1, N'0,1152,1198,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1200, 1198, N'河口区', NULL, N'HKQ', 2, N'0,1152,1198,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1201, 1198, N'垦利县', NULL, N'KLX', 3, N'0,1152,1198,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1202, 1198, N'利津县', NULL, N'LJX', 4, N'0,1152,1198,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1203, 1198, N'广饶县', NULL, N'GRX', 5, N'0,1152,1198,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1204, 1198, N'西城区', NULL, N'XCQ', 6, N'0,1152,1198,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1205, 1198, N'东城区', NULL, N'DCQ', 7, N'0,1152,1198,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1206, 1198, N'其他区', NULL, N'QTQ', 8, N'0,1152,1198,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1207, 1152, N'烟台市', NULL, N'YTS', 6, N'0,1152,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1208, 1207, N'芝罘区', NULL, N'ZFQ', 1, N'0,1152,1207,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1209, 1207, N'福山区', NULL, N'FSQ', 2, N'0,1152,1207,', 3)
GO
print 'Processed 1100 total records'
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1210, 1207, N'牟平区', NULL, N'MPQ', 3, N'0,1152,1207,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1211, 1207, N'莱山区', NULL, N'LSQ', 4, N'0,1152,1207,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1212, 1207, N'长岛县', NULL, N'CDX', 5, N'0,1152,1207,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1213, 1207, N'龙口市', NULL, N'LKS', 6, N'0,1152,1207,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1214, 1207, N'莱阳市', NULL, N'LYS', 7, N'0,1152,1207,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1215, 1207, N'莱州市', NULL, N'LZS', 8, N'0,1152,1207,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1216, 1207, N'蓬莱市', NULL, N'PLS', 9, N'0,1152,1207,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1217, 1207, N'招远市', NULL, N'ZYS', 10, N'0,1152,1207,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1218, 1207, N'栖霞市', NULL, N'QXS', 11, N'0,1152,1207,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1219, 1207, N'海阳市', NULL, N'HYS', 12, N'0,1152,1207,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1220, 1207, N'其他区', NULL, N'QTQ', 13, N'0,1152,1207,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1221, 1152, N'潍坊市', NULL, N'WFS', 7, N'0,1152,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1222, 1221, N'潍城区', NULL, N'WCQ', 1, N'0,1152,1221,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1223, 1221, N'寒亭区', NULL, N'HTQ', 2, N'0,1152,1221,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1224, 1221, N'坊子区', NULL, N'FZQ', 3, N'0,1152,1221,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1225, 1221, N'奎文区', NULL, N'KWQ', 4, N'0,1152,1221,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1226, 1221, N'临朐县', NULL, N'LQX', 5, N'0,1152,1221,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1227, 1221, N'昌乐县', NULL, N'CLX', 6, N'0,1152,1221,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1228, 1221, N'开发区', NULL, N'KFQ', 7, N'0,1152,1221,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1229, 1221, N'青州市', NULL, N'QZS', 8, N'0,1152,1221,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1230, 1221, N'诸城市', NULL, N'ZCS', 9, N'0,1152,1221,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1231, 1221, N'寿光市', NULL, N'SGS', 10, N'0,1152,1221,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1232, 1221, N'安丘市', NULL, N'AQS', 11, N'0,1152,1221,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1233, 1221, N'高密市', NULL, N'GMS', 12, N'0,1152,1221,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1234, 1221, N'昌邑市', NULL, N'CYS', 13, N'0,1152,1221,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1235, 1221, N'其他区', NULL, N'QTQ', 14, N'0,1152,1221,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1236, 1152, N'济宁市', NULL, N'JNS', 8, N'0,1152,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1237, 1236, N'市中区', NULL, N'SZQ', 1, N'0,1152,1236,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1238, 1236, N'任城区', NULL, N'RCQ', 2, N'0,1152,1236,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1239, 1236, N'微山县', NULL, N'WSX', 3, N'0,1152,1236,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1240, 1236, N'鱼台县', NULL, N'YTX', 4, N'0,1152,1236,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1241, 1236, N'金乡县', NULL, N'JXX', 5, N'0,1152,1236,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1242, 1236, N'嘉祥县', NULL, N'JXX', 6, N'0,1152,1236,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1243, 1236, N'汶上县', NULL, N'WSX', 7, N'0,1152,1236,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1244, 1236, N'泗水县', NULL, N'SSX', 8, N'0,1152,1236,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1245, 1236, N'梁山县', NULL, N'LSX', 9, N'0,1152,1236,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1246, 1236, N'曲阜市', NULL, N'QFS', 10, N'0,1152,1236,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1247, 1236, N'兖州市', NULL, N'YZS', 11, N'0,1152,1236,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1248, 1236, N'邹城市', NULL, N'ZCS', 12, N'0,1152,1236,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1249, 1236, N'其他区', NULL, N'QTQ', 13, N'0,1152,1236,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1250, 1152, N'泰安市', NULL, N'TAS', 9, N'0,1152,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1251, 1250, N'泰山区', NULL, N'TSQ', 1, N'0,1152,1250,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1252, 1250, N'岱岳区', NULL, N'DYQ', 2, N'0,1152,1250,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1253, 1250, N'宁阳县', NULL, N'NYX', 3, N'0,1152,1250,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1254, 1250, N'东平县', NULL, N'DPX', 4, N'0,1152,1250,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1255, 1250, N'新泰市', NULL, N'XTS', 5, N'0,1152,1250,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1256, 1250, N'肥城市', NULL, N'FCS', 6, N'0,1152,1250,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1257, 1250, N'其他区', NULL, N'QTQ', 7, N'0,1152,1250,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1258, 1152, N'威海市', NULL, N'WHS', 10, N'0,1152,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1259, 1258, N'环翠区', NULL, N'HCQ', 1, N'0,1152,1258,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1260, 1258, N'文登市', NULL, N'WDS', 2, N'0,1152,1258,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1261, 1258, N'荣成市', NULL, N'RCS', 3, N'0,1152,1258,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1262, 1258, N'乳山市', NULL, N'RSS', 4, N'0,1152,1258,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1263, 1258, N'其他区', NULL, N'QTQ', 5, N'0,1152,1258,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1264, 1152, N'日照市', NULL, N'RZS', 11, N'0,1152,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1265, 1264, N'东港区', NULL, N'DGQ', 1, N'0,1152,1264,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1266, 1264, N'岚山区', NULL, N'LSQ', 2, N'0,1152,1264,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1267, 1264, N'五莲县', NULL, N'WLX', 3, N'0,1152,1264,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1268, 1264, N'莒县', NULL, N'JX', 4, N'0,1152,1264,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1269, 1264, N'其他区', NULL, N'QTQ', 5, N'0,1152,1264,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1270, 1152, N'莱芜市', NULL, N'LWS', 12, N'0,1152,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1271, 1270, N'莱城区', NULL, N'LCQ', 1, N'0,1152,1270,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1272, 1270, N'钢城区', NULL, N'GCQ', 2, N'0,1152,1270,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1273, 1270, N'其他区', NULL, N'QTQ', 3, N'0,1152,1270,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1274, 1152, N'临沂市', NULL, N'LYS', 13, N'0,1152,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1275, 1274, N'兰山区', NULL, N'LSQ', 1, N'0,1152,1274,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1276, 1274, N'罗庄区', NULL, N'LZQ', 2, N'0,1152,1274,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1277, 1274, N'河东区', NULL, N'HDQ', 3, N'0,1152,1274,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1278, 1274, N'沂南县', NULL, N'YNX', 4, N'0,1152,1274,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1279, 1274, N'郯城县', NULL, N'TCX', 5, N'0,1152,1274,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1280, 1274, N'沂水县', NULL, N'YSX', 6, N'0,1152,1274,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1281, 1274, N'苍山县', NULL, N'CSX', 7, N'0,1152,1274,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1282, 1274, N'费县', NULL, N'FX', 8, N'0,1152,1274,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1283, 1274, N'平邑县', NULL, N'PYX', 9, N'0,1152,1274,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1284, 1274, N'莒南县', NULL, N'JNX', 10, N'0,1152,1274,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1285, 1274, N'蒙阴县', NULL, N'MYX', 11, N'0,1152,1274,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1286, 1274, N'临沭县', NULL, N'LSX', 12, N'0,1152,1274,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1287, 1274, N'其他区', NULL, N'QTQ', 13, N'0,1152,1274,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1288, 1152, N'德州市', NULL, N'DZS', 14, N'0,1152,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1289, 1288, N'德城区', NULL, N'DCQ', 1, N'0,1152,1288,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1290, 1288, N'陵县', NULL, N'LX', 2, N'0,1152,1288,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1291, 1288, N'宁津县', NULL, N'NJX', 3, N'0,1152,1288,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1292, 1288, N'庆云县', NULL, N'QYX', 4, N'0,1152,1288,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1293, 1288, N'临邑县', NULL, N'LYX', 5, N'0,1152,1288,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1294, 1288, N'齐河县', NULL, N'QHX', 6, N'0,1152,1288,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1295, 1288, N'平原县', NULL, N'PYX', 7, N'0,1152,1288,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1296, 1288, N'夏津县', NULL, N'XJX', 8, N'0,1152,1288,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1297, 1288, N'武城县', NULL, N'WCX', 9, N'0,1152,1288,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1298, 1288, N'开发区', NULL, N'KFQ', 10, N'0,1152,1288,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1299, 1288, N'乐陵市', NULL, N'LLS', 11, N'0,1152,1288,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1300, 1288, N'禹城市', NULL, N'YCS', 12, N'0,1152,1288,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1301, 1288, N'其他区', NULL, N'QTQ', 13, N'0,1152,1288,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1302, 1152, N'聊城市', NULL, N'LCS', 15, N'0,1152,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1303, 1302, N'东昌府区', NULL, N'DCFQ', 1, N'0,1152,1302,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1304, 1302, N'阳谷县', NULL, N'YGX', 2, N'0,1152,1302,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1305, 1302, N'莘县', NULL, N'XX', 3, N'0,1152,1302,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1306, 1302, N'茌平县', NULL, N'CPX', 4, N'0,1152,1302,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1307, 1302, N'东阿县', NULL, N'DAX', 5, N'0,1152,1302,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1308, 1302, N'冠县', NULL, N'GX', 6, N'0,1152,1302,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1309, 1302, N'高唐县', NULL, N'GTX', 7, N'0,1152,1302,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1310, 1302, N'临清市', NULL, N'LQS', 8, N'0,1152,1302,', 3)
GO
print 'Processed 1200 total records'
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1311, 1302, N'其他区', NULL, N'QTQ', 9, N'0,1152,1302,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1312, 1152, N'滨州市', NULL, N'BZS', 16, N'0,1152,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1313, 1312, N'滨城区', NULL, N'BCQ', 1, N'0,1152,1312,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1314, 1312, N'惠民县', NULL, N'HMX', 2, N'0,1152,1312,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1315, 1312, N'阳信县', NULL, N'YXX', 3, N'0,1152,1312,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1316, 1312, N'无棣县', NULL, N'WDX', 4, N'0,1152,1312,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1317, 1312, N'沾化县', NULL, N'ZHX', 5, N'0,1152,1312,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1318, 1312, N'博兴县', NULL, N'BXX', 6, N'0,1152,1312,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1319, 1312, N'邹平县', NULL, N'ZPX', 7, N'0,1152,1312,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1320, 1312, N'其他区', NULL, N'QTQ', 8, N'0,1152,1312,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1321, 1152, N'菏泽市', NULL, N'HZS', 17, N'0,1152,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1322, 1321, N'牡丹区', NULL, N'MDQ', 1, N'0,1152,1321,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1323, 1321, N'曹县', NULL, N'CX', 2, N'0,1152,1321,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1324, 1321, N'单县', NULL, N'DX', 3, N'0,1152,1321,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1325, 1321, N'成武县', NULL, N'CWX', 4, N'0,1152,1321,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1326, 1321, N'巨野县', NULL, N'JYX', 5, N'0,1152,1321,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1327, 1321, N'郓城县', NULL, N'YCX', 6, N'0,1152,1321,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1328, 1321, N'鄄城县', NULL, N'JCX', 7, N'0,1152,1321,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1329, 1321, N'定陶县', NULL, N'DTX', 8, N'0,1152,1321,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1330, 1321, N'东明县', NULL, N'DMX', 9, N'0,1152,1321,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1331, 1321, N'其他区', NULL, N'QTQ', 10, N'0,1152,1321,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (3, 1332, NULL, N'河南省', NULL, N'HNS', 12, N'0,', 1)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1333, 1332, N'郑州市', NULL, N'ZZS', 1, N'0,1332,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1334, 1333, N'中原区', NULL, N'ZYQ', 1, N'0,1332,1333,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1335, 1333, N'二七区', NULL, N'EQQ', 2, N'0,1332,1333,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1336, 1333, N'管城回族区', NULL, N'GCHZQ', 3, N'0,1332,1333,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1337, 1333, N'金水区', NULL, N'JSQ', 4, N'0,1332,1333,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1338, 1333, N'上街区', NULL, N'SJQ', 5, N'0,1332,1333,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1339, 1333, N'惠济区', NULL, N'HJQ', 6, N'0,1332,1333,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1340, 1333, N'中牟县', NULL, N'ZMX', 7, N'0,1332,1333,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1341, 1333, N'巩义市', NULL, N'GYS', 8, N'0,1332,1333,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1342, 1333, N'荥阳市', NULL, N'YYS', 9, N'0,1332,1333,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1343, 1333, N'新密市', NULL, N'XMS', 10, N'0,1332,1333,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1344, 1333, N'新郑市', NULL, N'XZS', 11, N'0,1332,1333,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1345, 1333, N'登封市', NULL, N'DFS', 12, N'0,1332,1333,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1346, 1333, N'郑东新区', NULL, N'ZDXQ', 13, N'0,1332,1333,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1347, 1333, N'高新区', NULL, N'GXQ', 14, N'0,1332,1333,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1348, 1333, N'其他区', NULL, N'QTQ', 15, N'0,1332,1333,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1349, 1332, N'开封市', NULL, N'KFS', 2, N'0,1332,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1350, 1349, N'龙亭区', NULL, N'LTQ', 1, N'0,1332,1349,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1351, 1349, N'顺河回族区', NULL, N'SHHZQ', 2, N'0,1332,1349,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1352, 1349, N'鼓楼区', NULL, N'GLQ', 3, N'0,1332,1349,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1353, 1349, N'禹王台区', NULL, N'YWTQ', 4, N'0,1332,1349,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1354, 1349, N'金明区', NULL, N'JMQ', 5, N'0,1332,1349,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1355, 1349, N'杞县', NULL, N'QX', 6, N'0,1332,1349,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1356, 1349, N'通许县', NULL, N'TXX', 7, N'0,1332,1349,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1357, 1349, N'尉氏县', NULL, N'WSX', 8, N'0,1332,1349,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1358, 1349, N'开封县', NULL, N'KFX', 9, N'0,1332,1349,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1359, 1349, N'兰考县', NULL, N'LKX', 10, N'0,1332,1349,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1360, 1349, N'其他区', NULL, N'QTQ', 11, N'0,1332,1349,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1361, 1332, N'洛阳市', NULL, N'LYS', 3, N'0,1332,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1362, 1361, N'老城区', NULL, N'LCQ', 1, N'0,1332,1361,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1363, 1361, N'西工区', NULL, N'XGQ', 2, N'0,1332,1361,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1364, 1361, N'瀍河回族区', NULL, N'CHHZQ', 3, N'0,1332,1361,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1365, 1361, N'涧西区', NULL, N'JXQ', 4, N'0,1332,1361,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1366, 1361, N'洛龙区', NULL, N'LLQ', 5, N'0,1332,1361,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1367, 1361, N'孟津县', NULL, N'MJX', 6, N'0,1332,1361,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1368, 1361, N'新安县', NULL, N'XAX', 7, N'0,1332,1361,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1369, 1361, N'栾川县', NULL, N'LCX', 8, N'0,1332,1361,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1370, 1361, N'嵩县', NULL, N'SX', 9, N'0,1332,1361,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1371, 1361, N'汝阳县', NULL, N'RYX', 10, N'0,1332,1361,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1372, 1361, N'宜阳县', NULL, N'YYX', 11, N'0,1332,1361,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1373, 1361, N'洛宁县', NULL, N'LNX', 12, N'0,1332,1361,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1374, 1361, N'伊川县', NULL, N'YCX', 13, N'0,1332,1361,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1375, 1361, N'偃师市', NULL, N'YSS', 14, N'0,1332,1361,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1376, 1361, N'高新区', NULL, N'GXQ', 15, N'0,1332,1361,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1377, 1361, N'吉利区', NULL, N'JLQ', 16, N'0,1332,1361,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1378, 1361, N'其他区', NULL, N'QTQ', 17, N'0,1332,1361,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1379, 1332, N'平顶山市', NULL, N'PDSS', 4, N'0,1332,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1380, 1379, N'新华区', NULL, N'XHQ', 1, N'0,1332,1379,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1381, 1379, N'卫东区', NULL, N'WDQ', 2, N'0,1332,1379,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1382, 1379, N'石龙区', NULL, N'SLQ', 3, N'0,1332,1379,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1383, 1379, N'湛河区', NULL, N'ZHQ', 4, N'0,1332,1379,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1384, 1379, N'宝丰县', NULL, N'BFX', 5, N'0,1332,1379,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1385, 1379, N'叶县', NULL, N'YX', 6, N'0,1332,1379,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1386, 1379, N'鲁山县', NULL, N'LSX', 7, N'0,1332,1379,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1387, 1379, N'郏县', NULL, N'JX', 8, N'0,1332,1379,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1388, 1379, N'舞钢市', NULL, N'WGS', 9, N'0,1332,1379,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1389, 1379, N'汝州市', NULL, N'RZS', 10, N'0,1332,1379,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1390, 1379, N'其他区', NULL, N'QTQ', 11, N'0,1332,1379,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1391, 1332, N'安阳市', NULL, N'AYS', 5, N'0,1332,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1392, 1391, N'文峰区', NULL, N'WFQ', 1, N'0,1332,1391,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1393, 1391, N'北关区', NULL, N'BGQ', 2, N'0,1332,1391,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1394, 1391, N'殷都区', NULL, N'YDQ', 3, N'0,1332,1391,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1395, 1391, N'龙安区', NULL, N'LAQ', 4, N'0,1332,1391,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1396, 1391, N'安阳县', NULL, N'AYX', 5, N'0,1332,1391,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1397, 1391, N'汤阴县', NULL, N'TYX', 6, N'0,1332,1391,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1398, 1391, N'滑县', NULL, N'HX', 7, N'0,1332,1391,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1399, 1391, N'内黄县', NULL, N'NHX', 8, N'0,1332,1391,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1400, 1391, N'林州市', NULL, N'LZS', 9, N'0,1332,1391,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1401, 1391, N'其他区', NULL, N'QTQ', 10, N'0,1332,1391,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1402, 1332, N'鹤壁市', NULL, N'HBS', 6, N'0,1332,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1403, 1402, N'鹤山区', NULL, N'HSQ', 1, N'0,1332,1402,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1404, 1402, N'山城区', NULL, N'SCQ', 2, N'0,1332,1402,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1405, 1402, N'淇滨区', NULL, N'QBQ', 3, N'0,1332,1402,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1406, 1402, N'浚县', NULL, N'JX', 4, N'0,1332,1402,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1407, 1402, N'淇县', NULL, N'QX', 5, N'0,1332,1402,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1408, 1402, N'其他区', NULL, N'QTQ', 6, N'0,1332,1402,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1409, 1332, N'新乡市', NULL, N'XXS', 7, N'0,1332,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1410, 1409, N'红旗区', NULL, N'HQQ', 1, N'0,1332,1409,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1411, 1409, N'卫滨区', NULL, N'WBQ', 2, N'0,1332,1409,', 3)
GO
print 'Processed 1300 total records'
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1412, 1409, N'凤泉区', NULL, N'FQQ', 3, N'0,1332,1409,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1413, 1409, N'牧野区', NULL, N'MYQ', 4, N'0,1332,1409,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1414, 1409, N'新乡县', NULL, N'XXX', 5, N'0,1332,1409,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1415, 1409, N'获嘉县', NULL, N'HJX', 6, N'0,1332,1409,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1416, 1409, N'原阳县', NULL, N'YYX', 7, N'0,1332,1409,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1417, 1409, N'延津县', NULL, N'YJX', 8, N'0,1332,1409,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1418, 1409, N'封丘县', NULL, N'FQX', 9, N'0,1332,1409,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1419, 1409, N'长垣县', NULL, N'CYX', 10, N'0,1332,1409,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1420, 1409, N'卫辉市', NULL, N'WHS', 11, N'0,1332,1409,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1421, 1409, N'辉县市', NULL, N'HXS', 12, N'0,1332,1409,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1422, 1409, N'其他区', NULL, N'QTQ', 13, N'0,1332,1409,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1423, 1332, N'焦作市', NULL, N'JZS', 8, N'0,1332,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1424, 1423, N'解放区', NULL, N'JFQ', 1, N'0,1332,1423,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1425, 1423, N'中站区', NULL, N'ZZQ', 2, N'0,1332,1423,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1426, 1423, N'马村区', NULL, N'MCQ', 3, N'0,1332,1423,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1427, 1423, N'山阳区', NULL, N'SYQ', 4, N'0,1332,1423,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1428, 1423, N'修武县', NULL, N'XWX', 5, N'0,1332,1423,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1429, 1423, N'博爱县', NULL, N'BAX', 6, N'0,1332,1423,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1430, 1423, N'武陵县', NULL, N'WLX', 7, N'0,1332,1423,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1431, 1423, N'温县', NULL, N'WX', 8, N'0,1332,1423,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1432, 1423, N'沁阳市', NULL, N'QYS', 9, N'0,1332,1423,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1433, 1423, N'孟州市', NULL, N'MZS', 10, N'0,1332,1423,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1434, 1423, N'其他区', NULL, N'QTQ', 11, N'0,1332,1423,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1435, 1332, N'济源市', NULL, N'JYS', 9, N'0,1332,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1436, 1332, N'濮阳市', NULL, N'PYS', 10, N'0,1332,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1437, 1436, N'华龙区', NULL, N'HLQ', 1, N'0,1332,1436,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1438, 1436, N'清丰县', NULL, N'QFX', 2, N'0,1332,1436,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1439, 1436, N'南乐县', NULL, N'NLX', 3, N'0,1332,1436,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1440, 1436, N'范县', NULL, N'FX', 4, N'0,1332,1436,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1441, 1436, N'台前县', NULL, N'TQX', 5, N'0,1332,1436,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1442, 1436, N'濮阳县', NULL, N'PYX', 6, N'0,1332,1436,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1443, 1436, N'其他区', NULL, N'QTQ', 7, N'0,1332,1436,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1444, 1332, N'许昌市', NULL, N'XCS', 11, N'0,1332,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1445, 1444, N'魏都区', NULL, N'WDQ', 1, N'0,1332,1444,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1446, 1444, N'许昌县', NULL, N'XCX', 2, N'0,1332,1444,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1447, 1444, N'鄢陵县', NULL, N'YLX', 3, N'0,1332,1444,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1448, 1444, N'襄城县', NULL, N'XCX', 4, N'0,1332,1444,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1449, 1444, N'禹州市', NULL, N'YZS', 5, N'0,1332,1444,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1450, 1444, N'长葛市', NULL, N'CGS', 6, N'0,1332,1444,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1451, 1444, N'其他区', NULL, N'QTQ', 7, N'0,1332,1444,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1452, 1332, N'漯河市', NULL, N'LHS', 12, N'0,1332,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1453, 1452, N'源汇区', NULL, N'YHQ', 1, N'0,1332,1452,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1454, 1452, N'郾城区', NULL, N'YCQ', 2, N'0,1332,1452,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1455, 1452, N'召陵区', NULL, N'ZLQ', 3, N'0,1332,1452,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1456, 1452, N'舞阳县', NULL, N'WYX', 4, N'0,1332,1452,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1457, 1452, N'临颍县', NULL, N'LYX', 5, N'0,1332,1452,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1458, 1452, N'其他区', NULL, N'QTQ', 6, N'0,1332,1452,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1459, 1332, N'三门峡市', NULL, N'SMXS', 13, N'0,1332,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1460, 1459, N'湖滨区', NULL, N'HBQ', 1, N'0,1332,1459,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1461, 1459, N'渑池县', NULL, N'SCX', 2, N'0,1332,1459,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1462, 1459, N'陕县', NULL, N'SX', 3, N'0,1332,1459,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1463, 1459, N'卢氏县', NULL, N'LSX', 4, N'0,1332,1459,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1464, 1459, N'义马市', NULL, N'YMS', 5, N'0,1332,1459,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1465, 1459, N'灵宝市', NULL, N'LBS', 6, N'0,1332,1459,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1466, 1459, N'其他区', NULL, N'QTQ', 7, N'0,1332,1459,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1467, 1332, N'南阳市', NULL, N'NYS', 14, N'0,1332,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1468, 1467, N'宛城区', NULL, N'WCQ', 1, N'0,1332,1467,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1469, 1467, N'卧龙区', NULL, N'WLQ', 2, N'0,1332,1467,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1470, 1467, N'南召县', NULL, N'NZX', 3, N'0,1332,1467,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1471, 1467, N'方城县', NULL, N'FCX', 4, N'0,1332,1467,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1472, 1467, N'西峡县', NULL, N'XXX', 5, N'0,1332,1467,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1473, 1467, N'镇平县', NULL, N'ZPX', 6, N'0,1332,1467,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1474, 1467, N'内乡县', NULL, N'NXX', 7, N'0,1332,1467,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1475, 1467, N'淅川县', NULL, N'XCX', 8, N'0,1332,1467,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1476, 1467, N'社旗县', NULL, N'SQX', 9, N'0,1332,1467,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1477, 1467, N'唐河县', NULL, N'THX', 10, N'0,1332,1467,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1478, 1467, N'新野县', NULL, N'XYX', 11, N'0,1332,1467,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1479, 1467, N'桐柏县', NULL, N'TBX', 12, N'0,1332,1467,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1480, 1467, N'邓州市', NULL, N'DZS', 13, N'0,1332,1467,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1481, 1467, N'其他区', NULL, N'QTQ', 14, N'0,1332,1467,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1482, 1332, N'商丘市', NULL, N'SQS', 15, N'0,1332,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1483, 1482, N'梁园区', NULL, N'LYQ', 1, N'0,1332,1482,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1484, 1482, N'睢阳区', NULL, N'SYQ', 2, N'0,1332,1482,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1485, 1482, N'民权县', NULL, N'MQX', 3, N'0,1332,1482,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1486, 1482, N'睢县', NULL, N'SX', 4, N'0,1332,1482,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1487, 1482, N'宁陵县', NULL, N'NLX', 5, N'0,1332,1482,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1488, 1482, N'柘城县', NULL, N'ZCX', 6, N'0,1332,1482,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1489, 1482, N'虞城县', NULL, N'YCX', 7, N'0,1332,1482,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1490, 1482, N'夏邑县', NULL, N'XYX', 8, N'0,1332,1482,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1491, 1482, N'永城市', NULL, N'YCS', 9, N'0,1332,1482,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1492, 1482, N'其他区', NULL, N'QTQ', 10, N'0,1332,1482,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1493, 1332, N'信阳市', NULL, N'XYS', 16, N'0,1332,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1494, 1493, N'浉河区', NULL, N'SHQ', 1, N'0,1332,1493,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1495, 1493, N'平桥区', NULL, N'PQQ', 2, N'0,1332,1493,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1496, 1493, N'罗山县', NULL, N'LSX', 3, N'0,1332,1493,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1497, 1493, N'光山县', NULL, N'GSX', 4, N'0,1332,1493,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1498, 1493, N'新县', NULL, N'XX', 5, N'0,1332,1493,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1499, 1493, N'商城县', NULL, N'SCX', 6, N'0,1332,1493,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1500, 1493, N'固始县', NULL, N'GSX', 7, N'0,1332,1493,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1501, 1493, N'潢川县', NULL, N'HCX', 8, N'0,1332,1493,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1502, 1493, N'淮滨县', NULL, N'HBX', 9, N'0,1332,1493,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1503, 1493, N'息县', NULL, N'XX', 10, N'0,1332,1493,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1504, 1493, N'其他区', NULL, N'QTQ', 11, N'0,1332,1493,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1505, 1332, N'周口市', NULL, N'ZKS', 17, N'0,1332,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1506, 1505, N'川汇区', NULL, N'CHQ', 1, N'0,1332,1505,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1507, 1505, N'扶沟县', NULL, N'FGX', 2, N'0,1332,1505,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1508, 1505, N'西华县', NULL, N'XHX', 3, N'0,1332,1505,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1509, 1505, N'商水县', NULL, N'SSX', 4, N'0,1332,1505,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1510, 1505, N'沈丘县', NULL, N'SQX', 5, N'0,1332,1505,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1511, 1505, N'郸城县', NULL, N'DCX', 6, N'0,1332,1505,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1512, 1505, N'淮阳县', NULL, N'HYX', 7, N'0,1332,1505,', 3)
GO
print 'Processed 1400 total records'
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1513, 1505, N'太康县', NULL, N'TKX', 8, N'0,1332,1505,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1514, 1505, N'鹿邑县', NULL, N'LYX', 9, N'0,1332,1505,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1515, 1505, N'项城市', NULL, N'XCS', 10, N'0,1332,1505,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1516, 1505, N'其他区', NULL, N'QTQ', 11, N'0,1332,1505,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1517, 1332, N'驻马店市', NULL, N'ZMDS', 18, N'0,1332,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1518, 1517, N'译城区', NULL, N'YCQ', 1, N'0,1332,1517,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1519, 1517, N'西平县', NULL, N'XPX', 2, N'0,1332,1517,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1520, 1517, N'上蔡县', NULL, N'SCX', 3, N'0,1332,1517,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1521, 1517, N'平舆县', NULL, N'PYX', 4, N'0,1332,1517,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1522, 1517, N'正阳县', NULL, N'ZYX', 5, N'0,1332,1517,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1523, 1517, N'确山县', NULL, N'QSX', 6, N'0,1332,1517,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1524, 1517, N'泌阳县', NULL, N'MYX', 7, N'0,1332,1517,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1525, 1517, N'汝南县', NULL, N'RNX', 8, N'0,1332,1517,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1526, 1517, N'遂平县', NULL, N'SPX', 9, N'0,1332,1517,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1527, 1517, N'新蔡县', NULL, N'XCX', 10, N'0,1332,1517,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1528, 1517, N'其他区', NULL, N'QTQ', 11, N'0,1332,1517,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (3, 1529, NULL, N'湖北省', NULL, N'HBS', 13, N'0,', 1)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1530, 1529, N'武汉市', NULL, N'WHS', 1, N'0,1529,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1531, 1530, N'江岸区', NULL, N'JAQ', 1, N'0,1529,1530,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1532, 1530, N'江汉区', NULL, N'JHQ', 2, N'0,1529,1530,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1533, 1530, N'硚口区', NULL, N'QKQ', 3, N'0,1529,1530,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1534, 1530, N'汉阳区', NULL, N'HYQ', 4, N'0,1529,1530,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1535, 1530, N'武昌区', NULL, N'WCQ', 5, N'0,1529,1530,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1536, 1530, N'青山区', NULL, N'QSQ', 6, N'0,1529,1530,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1537, 1530, N'洪山区', NULL, N'HSQ', 7, N'0,1529,1530,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1538, 1530, N'东西湖区', NULL, N'DXHQ', 8, N'0,1529,1530,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1539, 1530, N'汉南区', NULL, N'HNQ', 9, N'0,1529,1530,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1540, 1530, N'蔡甸区', NULL, N'CDQ', 10, N'0,1529,1530,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1541, 1530, N'江夏区', NULL, N'JXQ', 11, N'0,1529,1530,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1542, 1530, N'黄陂区', NULL, N'HBQ', 12, N'0,1529,1530,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1543, 1530, N'新洲区', NULL, N'XZQ', 13, N'0,1529,1530,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1544, 1530, N'其他区', NULL, N'QTQ', 14, N'0,1529,1530,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1545, 1529, N'黄石市', NULL, N'HSS', 2, N'0,1529,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1546, 1545, N'黄石港区', NULL, N'HSGQ', 1, N'0,1529,1545,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1547, 1545, N'西塞山区', NULL, N'XSSQ', 2, N'0,1529,1545,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1548, 1545, N'下陆区', NULL, N'XLQ', 3, N'0,1529,1545,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1549, 1545, N'铁山区', NULL, N'TSQ', 4, N'0,1529,1545,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1550, 1545, N'阳新县', NULL, N'YXX', 5, N'0,1529,1545,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1551, 1545, N'大冶市', NULL, N'DYS', 6, N'0,1529,1545,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1552, 1545, N'其他区', NULL, N'QTQ', 7, N'0,1529,1545,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1553, 1529, N'十堰市', NULL, N'SYS', 3, N'0,1529,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1554, 1553, N'茅箭区', NULL, N'MJQ', 1, N'0,1529,1553,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1555, 1553, N'张湾区', NULL, N'ZWQ', 2, N'0,1529,1553,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1556, 1553, N'郧县', NULL, N'YX', 3, N'0,1529,1553,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1557, 1553, N'郧西县', NULL, N'YXX', 4, N'0,1529,1553,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1558, 1553, N'竹山县', NULL, N'ZSX', 5, N'0,1529,1553,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1559, 1553, N'竹溪县', NULL, N'ZXX', 6, N'0,1529,1553,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1560, 1553, N'房县', NULL, N'FX', 7, N'0,1529,1553,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1561, 1553, N'丹江口市', NULL, N'DJKS', 8, N'0,1529,1553,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1562, 1553, N'城区', NULL, N'CQ', 9, N'0,1529,1553,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1563, 1553, N'其他区', NULL, N'QTQ', 10, N'0,1529,1553,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1564, 1529, N'宜昌市', NULL, N'YCS', 4, N'0,1529,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1565, 1564, N'西陵区', NULL, N'XLQ', 1, N'0,1529,1564,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1566, 1564, N'伍家岗区', NULL, N'WJGQ', 2, N'0,1529,1564,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1567, 1564, N'点军区', NULL, N'DJQ', 3, N'0,1529,1564,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1568, 1564, N'猇亭区', NULL, N'XTQ', 4, N'0,1529,1564,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1569, 1564, N'夷陵区', NULL, N'YLQ', 5, N'0,1529,1564,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1570, 1564, N'远安县', NULL, N'YAX', 6, N'0,1529,1564,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1571, 1564, N'兴山县', NULL, N'XSX', 7, N'0,1529,1564,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1572, 1564, N'秭归县', NULL, N'ZGX', 8, N'0,1529,1564,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1573, 1564, N'长阳土家族自治县', NULL, N'CYTJZZZX', 9, N'0,1529,1564,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1574, 1564, N'五峰土家族自治县', NULL, N'WFTJZZZX', 10, N'0,1529,1564,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1575, 1564, N'葛洲坝区', NULL, N'GZBQ', 11, N'0,1529,1564,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1576, 1564, N'开发区', NULL, N'KFQ', 12, N'0,1529,1564,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1577, 1564, N'宜都区', NULL, N'YDQ', 13, N'0,1529,1564,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1578, 1564, N'当阳市', NULL, N'DYS', 14, N'0,1529,1564,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1579, 1564, N'枝江市', NULL, N'ZJS', 15, N'0,1529,1564,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1580, 1564, N'其他区', NULL, N'QTQ', 16, N'0,1529,1564,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1581, 1529, N'襄樊市', NULL, N'XFS', 5, N'0,1529,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1582, 1581, N'襄城区', NULL, N'XCQ', 1, N'0,1529,1581,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1583, 1581, N'樊城区', NULL, N'FCQ', 2, N'0,1529,1581,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1584, 1581, N'襄阳区', NULL, N'XYQ', 3, N'0,1529,1581,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1585, 1581, N'南漳县', NULL, N'NZX', 4, N'0,1529,1581,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1586, 1581, N'谷城县', NULL, N'GCX', 5, N'0,1529,1581,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1587, 1581, N'保康县', NULL, N'BKX', 6, N'0,1529,1581,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1588, 1581, N'老河口市', NULL, N'LHKS', 7, N'0,1529,1581,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1589, 1581, N'枣阳市', NULL, N'ZYS', 8, N'0,1529,1581,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1590, 1581, N'宜城市', NULL, N'YCS', 9, N'0,1529,1581,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1591, 1581, N'其他区', NULL, N'QTQ', 10, N'0,1529,1581,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1592, 1529, N'鄂州市', NULL, N'EZS', 6, N'0,1529,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1593, 1592, N'梁子湖区', NULL, N'LZHQ', 1, N'0,1529,1592,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1594, 1592, N'华容区', NULL, N'HRQ', 2, N'0,1529,1592,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1595, 1592, N'鄂城区', NULL, N'ECQ', 3, N'0,1529,1592,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1596, 1592, N'其他区', NULL, N'QTQ', 4, N'0,1529,1592,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1597, 1529, N'荆门市', NULL, N'JMS', 7, N'0,1529,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1598, 1597, N'东宝区', NULL, N'DBQ', 1, N'0,1529,1597,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1599, 1597, N'掇刀区', NULL, N'DDQ', 2, N'0,1529,1597,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1600, 1597, N'京山县', NULL, N'JSX', 3, N'0,1529,1597,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1601, 1597, N'沙洋县', NULL, N'SYX', 4, N'0,1529,1597,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1602, 1597, N'钟祥市', NULL, N'ZXS', 5, N'0,1529,1597,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1603, 1597, N'其他区', NULL, N'QTQ', 6, N'0,1529,1597,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1604, 1529, N'孝感市', NULL, N'XGS', 8, N'0,1529,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1605, 1604, N'孝南区', NULL, N'XNQ', 1, N'0,1529,1604,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1606, 1604, N'孝昌县', NULL, N'XCX', 2, N'0,1529,1604,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1607, 1604, N'大悟县', NULL, N'DWX', 3, N'0,1529,1604,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1608, 1604, N'云梦县', NULL, N'YMX', 4, N'0,1529,1604,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1609, 1604, N'应城市', NULL, N'YCS', 5, N'0,1529,1604,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1610, 1604, N'安陆市', NULL, N'ALS', 6, N'0,1529,1604,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1611, 1604, N'汉川市', NULL, N'HCS', 7, N'0,1529,1604,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1612, 1604, N'其他区', NULL, N'QTQ', 8, N'0,1529,1604,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1613, 1529, N'荆州市', NULL, N'JZS', 9, N'0,1529,', 2)
GO
print 'Processed 1500 total records'
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1614, 1613, N'沙市区', NULL, N'SSQ', 1, N'0,1529,1613,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1615, 1613, N'荆州区', NULL, N'JZQ', 2, N'0,1529,1613,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1616, 1613, N'公安县', NULL, N'GAX', 3, N'0,1529,1613,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1617, 1613, N'监利县', NULL, N'JLX', 4, N'0,1529,1613,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1618, 1613, N'江陵县', NULL, N'JLX', 5, N'0,1529,1613,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1619, 1613, N'石首市', NULL, N'SSS', 6, N'0,1529,1613,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1620, 1613, N'洪湖市', NULL, N'HHS', 7, N'0,1529,1613,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1621, 1613, N'松滋市', NULL, N'SZS', 8, N'0,1529,1613,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1622, 1613, N'其他区', NULL, N'QTQ', 9, N'0,1529,1613,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1623, 1529, N'黄冈市', NULL, N'HGS', 10, N'0,1529,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1624, 1623, N'黄州区', NULL, N'HZQ', 1, N'0,1529,1623,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1625, 1623, N'团风县', NULL, N'TFX', 2, N'0,1529,1623,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1626, 1623, N'红安县', NULL, N'HAX', 3, N'0,1529,1623,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1627, 1623, N'罗田县', NULL, N'LTX', 4, N'0,1529,1623,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1628, 1623, N'英山县', NULL, N'YSX', 5, N'0,1529,1623,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1629, 1623, N'浠水县', NULL, N'XSX', 6, N'0,1529,1623,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1630, 1623, N'蕲春县', NULL, N'QCX', 7, N'0,1529,1623,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1631, 1623, N'黄梅县', NULL, N'HMX', 8, N'0,1529,1623,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1632, 1623, N'麻城市', NULL, N'MCS', 9, N'0,1529,1623,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1633, 1623, N'武穴市', NULL, N'WXS', 10, N'0,1529,1623,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1634, 1623, N'其他区', NULL, N'QTQ', 11, N'0,1529,1623,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1635, 1529, N'咸宁市', NULL, N'XNS', 11, N'0,1529,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1636, 1635, N'咸安区', NULL, N'XAQ', 1, N'0,1529,1635,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1637, 1635, N'嘉鱼县', NULL, N'JYX', 2, N'0,1529,1635,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1638, 1635, N'通城县', NULL, N'TCX', 3, N'0,1529,1635,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1639, 1635, N'崇阳县', NULL, N'CYX', 4, N'0,1529,1635,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1640, 1635, N'通山县', NULL, N'TSX', 5, N'0,1529,1635,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1641, 1635, N'赤壁市', NULL, N'CBS', 6, N'0,1529,1635,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1642, 1635, N'温泉城区', NULL, N'WQCQ', 7, N'0,1529,1635,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1643, 1635, N'其他区', NULL, N'QTQ', 8, N'0,1529,1635,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1644, 1529, N'随州市', NULL, N'SZS', 12, N'0,1529,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1645, 1644, N'曾都区', NULL, N'ZDQ', 1, N'0,1529,1644,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1646, 1644, N'广水市', NULL, N'GSS', 2, N'0,1529,1644,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1647, 1644, N'其他区', NULL, N'QTQ', 3, N'0,1529,1644,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1648, 1529, N'恩施土家族苗族自治州', NULL, N'ESTJZMZZZZ', 13, N'0,1529,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1649, 1648, N'恩施市', NULL, N'ESS', 1, N'0,1529,1648,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1650, 1648, N'利川市', NULL, N'LCS', 2, N'0,1529,1648,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1651, 1648, N'建始县', NULL, N'JSX', 3, N'0,1529,1648,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1652, 1648, N'巴东县', NULL, N'BDX', 4, N'0,1529,1648,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1653, 1648, N'宣恩县', NULL, N'XEX', 5, N'0,1529,1648,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1654, 1648, N'咸丰县', NULL, N'XFX', 6, N'0,1529,1648,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1655, 1648, N'来凤县', NULL, N'LFX', 7, N'0,1529,1648,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1656, 1648, N'鹤峰县', NULL, N'HFX', 8, N'0,1529,1648,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1657, 1648, N'其他区', NULL, N'QTQ', 9, N'0,1529,1648,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1658, 1529, N'仙桃市', NULL, N'XTS', 14, N'0,1529,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1659, 1529, N'潜江市', NULL, N'QJS', 15, N'0,1529,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1660, 1529, N'大门市', NULL, N'DMS', 16, N'0,1529,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1661, 1529, N'神农架林区', NULL, N'SNJLQ', 17, N'0,1529,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (3, 1662, NULL, N'湖南省', NULL, N'HNS', 14, N'0,', 1)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1663, 1662, N'长沙市', NULL, N'CSS', 1, N'0,1662,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1664, 1663, N'芙蓉区', NULL, N'FRQ', 1, N'0,1662,1663,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1665, 1663, N'天心区', NULL, N'TXQ', 2, N'0,1662,1663,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1666, 1663, N'岳麓区', NULL, N'YLQ', 3, N'0,1662,1663,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1667, 1663, N'开福区', NULL, N'KFQ', 4, N'0,1662,1663,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1668, 1663, N'雨花区', NULL, N'YHQ', 5, N'0,1662,1663,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1669, 1663, N'长沙县', NULL, N'CSX', 6, N'0,1662,1663,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1670, 1663, N'望城县', NULL, N'WCX', 7, N'0,1662,1663,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1671, 1663, N'宁乡县', NULL, N'NXX', 8, N'0,1662,1663,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1672, 1663, N'浏阳市', NULL, N'LYS', 9, N'0,1662,1663,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1673, 1663, N'其他区', NULL, N'QTQ', 10, N'0,1662,1663,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1674, 1662, N'株洲市', NULL, N'ZZS', 2, N'0,1662,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1675, 1674, N'荷塘区', NULL, N'HTQ', 1, N'0,1662,1674,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1676, 1674, N'芦淞区', NULL, N'LSQ', 2, N'0,1662,1674,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1677, 1674, N'石峰区', NULL, N'SFQ', 3, N'0,1662,1674,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1678, 1674, N'天元区', NULL, N'TYQ', 4, N'0,1662,1674,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1679, 1674, N'株洲县', NULL, N'ZZX', 5, N'0,1662,1674,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1680, 1674, N'攸县', NULL, N'YX', 6, N'0,1662,1674,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1681, 1674, N'茶陵县', NULL, N'CLX', 7, N'0,1662,1674,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1682, 1674, N'炎陵县', NULL, N'YLX', 8, N'0,1662,1674,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1683, 1674, N'醴陵市', NULL, N'LLS', 9, N'0,1662,1674,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1684, 1674, N'其他区', NULL, N'QTQ', 10, N'0,1662,1674,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1685, 1662, N'湘潭市', NULL, N'XTS', 3, N'0,1662,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1686, 1685, N'雨湖区', NULL, N'YHQ', 1, N'0,1662,1685,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1687, 1685, N'岳塘区', NULL, N'YTQ', 2, N'0,1662,1685,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1688, 1685, N'湘潭县', NULL, N'XTX', 3, N'0,1662,1685,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1689, 1685, N'湘乡市', NULL, N'XXS', 4, N'0,1662,1685,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1690, 1685, N'韶山市', NULL, N'SSS', 5, N'0,1662,1685,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1691, 1685, N'其他区', NULL, N'QTQ', 6, N'0,1662,1685,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1692, 1662, N'衡阳市', NULL, N'HYS', 4, N'0,1662,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1693, 1692, N'珠晖区', NULL, N'ZHQ', 1, N'0,1662,1692,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1694, 1692, N'雁峰区', NULL, N'YFQ', 2, N'0,1662,1692,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1695, 1692, N'石鼓区', NULL, N'SGQ', 3, N'0,1662,1692,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1696, 1692, N'蒸湘区', NULL, N'ZXQ', 4, N'0,1662,1692,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1697, 1692, N'南岳区', NULL, N'NYQ', 5, N'0,1662,1692,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1698, 1692, N'衡阳县', NULL, N'HYX', 6, N'0,1662,1692,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1699, 1692, N'衡南县', NULL, N'HNX', 7, N'0,1662,1692,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1700, 1692, N'衡山县', NULL, N'HSX', 8, N'0,1662,1692,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1701, 1692, N'衡东县', NULL, N'HDX', 9, N'0,1662,1692,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1702, 1692, N'祁东县', NULL, N'QDX', 10, N'0,1662,1692,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1703, 1692, N'耒阳市', NULL, N'LYS', 11, N'0,1662,1692,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1704, 1692, N'常宁市', NULL, N'CNS', 12, N'0,1662,1692,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1705, 1692, N'其他区', NULL, N'QTQ', 13, N'0,1662,1692,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1706, 1662, N'邵阳市', NULL, N'SYS', 5, N'0,1662,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1707, 1706, N'双清区', NULL, N'SQQ', 1, N'0,1662,1706,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1708, 1706, N'大祥区', NULL, N'DXQ', 2, N'0,1662,1706,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1709, 1706, N'北塔区', NULL, N'BTQ', 3, N'0,1662,1706,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1710, 1706, N'邵东县', NULL, N'SDX', 4, N'0,1662,1706,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1711, 1706, N'新邵县', NULL, N'XSX', 5, N'0,1662,1706,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1712, 1706, N'邵阳县', NULL, N'SYX', 6, N'0,1662,1706,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1713, 1706, N'隆回县', NULL, N'LHX', 7, N'0,1662,1706,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1714, 1706, N'洞口县', NULL, N'DKX', 8, N'0,1662,1706,', 3)
GO
print 'Processed 1600 total records'
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1715, 1706, N'绥宁县', NULL, N'SNX', 9, N'0,1662,1706,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1716, 1706, N'新宁县', NULL, N'XNX', 10, N'0,1662,1706,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1717, 1706, N'城步苗族自治县', NULL, N'CBMZZZX', 11, N'0,1662,1706,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1718, 1706, N'武冈市', NULL, N'WGS', 12, N'0,1662,1706,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1719, 1706, N'其他区', NULL, N'QTQ', 13, N'0,1662,1706,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1720, 1662, N'岳阳市', NULL, N'YYS', 6, N'0,1662,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1721, 1720, N'岳阳楼区', NULL, N'YYLQ', 1, N'0,1662,1720,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1722, 1720, N'云溪区', NULL, N'YXQ', 2, N'0,1662,1720,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1723, 1720, N'君山区', NULL, N'JSQ', 3, N'0,1662,1720,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1724, 1720, N'岳阳县', NULL, N'YYX', 4, N'0,1662,1720,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1725, 1720, N'华容县', NULL, N'HRX', 5, N'0,1662,1720,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1726, 1720, N'湘阴县', NULL, N'XYX', 6, N'0,1662,1720,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1727, 1720, N'平江县', NULL, N'PJX', 7, N'0,1662,1720,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1728, 1720, N'汩罗市', NULL, N'GLS', 8, N'0,1662,1720,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1729, 1720, N'临湘市', NULL, N'LXS', 9, N'0,1662,1720,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1730, 1720, N'其他区', NULL, N'QTQ', 10, N'0,1662,1720,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1731, 1662, N'常德市', NULL, N'CDS', 7, N'0,1662,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1732, 1731, N'武陵区', NULL, N'WLQ', 1, N'0,1662,1731,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1733, 1731, N'鼎城区', NULL, N'DCQ', 2, N'0,1662,1731,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1734, 1731, N'安乡县', NULL, N'AXX', 3, N'0,1662,1731,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1735, 1731, N'汉寿县', NULL, N'HSX', 4, N'0,1662,1731,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1736, 1731, N'澧县', NULL, N'LX', 5, N'0,1662,1731,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1737, 1731, N'临澧县', NULL, N'LLX', 6, N'0,1662,1731,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1738, 1731, N'桃源县', NULL, N'TYX', 7, N'0,1662,1731,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1739, 1731, N'石门县', NULL, N'SMX', 8, N'0,1662,1731,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1740, 1731, N'津市市', NULL, N'JSS', 9, N'0,1662,1731,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1741, 1731, N'其他区', NULL, N'QTQ', 10, N'0,1662,1731,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1742, 1662, N'张家界市', NULL, N'ZJJS', 8, N'0,1662,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1743, 1742, N'永定区', NULL, N'YDQ', 1, N'0,1662,1742,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1744, 1742, N'武陵源区', NULL, N'WLYQ', 2, N'0,1662,1742,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1745, 1742, N'桑植县', NULL, N'SZX', 3, N'0,1662,1742,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1746, 1742, N'慈利县', NULL, N'CLX', 4, N'0,1662,1742,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1747, 1742, N'其他区', NULL, N'QTQ', 5, N'0,1662,1742,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1748, 1662, N'益阳市', NULL, N'YYS', 9, N'0,1662,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1749, 1748, N'资阳区', NULL, N'ZYQ', 1, N'0,1662,1748,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1750, 1748, N'赫山区', NULL, N'HSQ', 2, N'0,1662,1748,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1751, 1748, N'南县', NULL, N'NX', 3, N'0,1662,1748,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1752, 1748, N'桃江县', NULL, N'TJX', 4, N'0,1662,1748,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1753, 1748, N'安化县', NULL, N'AHX', 5, N'0,1662,1748,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1754, 1748, N'沅江市', NULL, N'YJS', 6, N'0,1662,1748,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1755, 1748, N'其他区', NULL, N'QTQ', 7, N'0,1662,1748,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1756, 1662, N'郴州市', NULL, N'CZS', 10, N'0,1662,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1757, 1756, N'北湖区', NULL, N'BHQ', 1, N'0,1662,1756,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1758, 1756, N'苏仙区', NULL, N'SXQ', 2, N'0,1662,1756,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1759, 1756, N'桂阳县', NULL, N'GYX', 3, N'0,1662,1756,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1760, 1756, N'宜章县', NULL, N'YZX', 4, N'0,1662,1756,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1761, 1756, N'永兴县', NULL, N'YXX', 5, N'0,1662,1756,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1762, 1756, N'嘉禾县', NULL, N'JHX', 6, N'0,1662,1756,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1763, 1756, N'临武县', NULL, N'LWX', 7, N'0,1662,1756,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1764, 1756, N'汝城县', NULL, N'RCX', 8, N'0,1662,1756,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1765, 1756, N'桂东县', NULL, N'GDX', 9, N'0,1662,1756,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1766, 1756, N'安仁县', NULL, N'ARX', 10, N'0,1662,1756,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1767, 1756, N'资兴市', NULL, N'ZXS', 11, N'0,1662,1756,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1768, 1756, N'其他区', NULL, N'QTQ', 12, N'0,1662,1756,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1769, 1662, N'永州市', NULL, N'YZS', 11, N'0,1662,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1770, 1769, N'零陵区', NULL, N'LLQ', 1, N'0,1662,1769,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1771, 1769, N'冷水滩区', NULL, N'LSTQ', 2, N'0,1662,1769,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1772, 1769, N'祁阳县', NULL, N'QYX', 3, N'0,1662,1769,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1773, 1769, N'东安县', NULL, N'DAX', 4, N'0,1662,1769,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1774, 1769, N'双牌县', NULL, N'SPX', 5, N'0,1662,1769,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1775, 1769, N'道县', NULL, N'DX', 6, N'0,1662,1769,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1776, 1769, N'江永县', NULL, N'JYX', 7, N'0,1662,1769,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1777, 1769, N'宁远县', NULL, N'NYX', 8, N'0,1662,1769,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1778, 1769, N'蓝山县', NULL, N'LSX', 9, N'0,1662,1769,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1779, 1769, N'新田县', NULL, N'XTX', 10, N'0,1662,1769,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1780, 1769, N'江华瑶族自治县', NULL, N'JHYZZZX', 11, N'0,1662,1769,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1781, 1769, N'其他区', NULL, N'QTQ', 12, N'0,1662,1769,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1782, 1662, N'怀化市', NULL, N'HHS', 12, N'0,1662,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1783, 1782, N'鹤城区', NULL, N'HCQ', 1, N'0,1662,1782,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1784, 1782, N'中方县', NULL, N'ZFX', 2, N'0,1662,1782,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1785, 1782, N'沅陵县', NULL, N'YLX', 3, N'0,1662,1782,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1786, 1782, N'辰溪县', NULL, N'CXX', 4, N'0,1662,1782,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1787, 1782, N'溆浦县', NULL, N'XPX', 5, N'0,1662,1782,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1788, 1782, N'会同县', NULL, N'HTX', 6, N'0,1662,1782,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1789, 1782, N'麻阳苗族自治县', NULL, N'MYMZZZX', 7, N'0,1662,1782,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1790, 1782, N'新晃侗族自治县', NULL, N'XHDZZZX', 8, N'0,1662,1782,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1791, 1782, N'芷江侗族自治县', NULL, N'ZJDZZZX', 9, N'0,1662,1782,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1792, 1782, N'靖州苗族侗族自治县', NULL, N'JZMZDZZZX', 10, N'0,1662,1782,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1793, 1782, N'通道侗族自治县', NULL, N'TDDZZZX', 11, N'0,1662,1782,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1794, 1782, N'洪江市', NULL, N'HJS', 12, N'0,1662,1782,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1795, 1782, N'其他区', NULL, N'QTQ', 13, N'0,1662,1782,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1796, 1662, N'娄底市', NULL, N'LDS', 13, N'0,1662,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1797, 1796, N'娄星区', NULL, N'LXQ', 1, N'0,1662,1796,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1798, 1796, N'双峰县', NULL, N'SFX', 2, N'0,1662,1796,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1799, 1796, N'新化县', NULL, N'XHX', 3, N'0,1662,1796,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1800, 1796, N'冷水江市', NULL, N'LSJS', 4, N'0,1662,1796,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1801, 1796, N'涟源市', NULL, N'LYS', 5, N'0,1662,1796,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1802, 1796, N'其他区', NULL, N'QTQ', 6, N'0,1662,1796,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1803, 1662, N'湘西土家族苗族自治州', NULL, N'XXTJZMZZZZ', 14, N'0,1662,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1804, 1803, N'吉首市', NULL, N'JSS', 1, N'0,1662,1803,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1805, 1803, N'泸溪县', NULL, N'LXX', 2, N'0,1662,1803,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1806, 1803, N'凤凰县', NULL, N'FHX', 3, N'0,1662,1803,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1807, 1803, N'花垣县', NULL, N'HYX', 4, N'0,1662,1803,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1808, 1803, N'保靖县', NULL, N'BJX', 5, N'0,1662,1803,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1809, 1803, N'古丈县', NULL, N'GZX', 6, N'0,1662,1803,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1810, 1803, N'永顺县', NULL, N'YSX', 7, N'0,1662,1803,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1811, 1803, N'龙山县', NULL, N'LSX', 8, N'0,1662,1803,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1812, 1803, N'其他区', NULL, N'QTQ', 9, N'0,1662,1803,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (4, 1813, NULL, N'海南省', NULL, N'HNS', 15, N'0,', 1)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1814, 1813, N'海口市', NULL, N'HKS', 1, N'0,1813,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1815, 1814, N'秀英区', NULL, N'XYQ', 1, N'0,1813,1814,', 3)
GO
print 'Processed 1700 total records'
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1816, 1814, N'龙华区', NULL, N'LHQ', 2, N'0,1813,1814,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1817, 1814, N'琼山区', NULL, N'QSQ', 3, N'0,1813,1814,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1818, 1814, N'美兰区', NULL, N'MLQ', 4, N'0,1813,1814,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1819, 1814, N'其他区', NULL, N'QTQ', 5, N'0,1813,1814,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1820, 1813, N'三亚市', NULL, N'SYS', 2, N'0,1813,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1821, 1813, N'五指山市', NULL, N'WZSS', 3, N'0,1813,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1822, 1813, N'琼海市', NULL, N'QHS', 4, N'0,1813,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1823, 1813, N'儋州市', NULL, N'DZS', 5, N'0,1813,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1824, 1813, N'文昌市', NULL, N'WCS', 6, N'0,1813,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1825, 1813, N'万宁市', NULL, N'WNS', 7, N'0,1813,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1826, 1813, N'东方市', NULL, N'DFS', 8, N'0,1813,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1827, 1813, N'定安县', NULL, N'DAX', 9, N'0,1813,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1828, 1813, N'屯昌县', NULL, N'TCX', 10, N'0,1813,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1829, 1813, N'澄迈县', NULL, N'CMX', 11, N'0,1813,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1830, 1813, N'临高县', NULL, N'LGX', 12, N'0,1813,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1831, 1813, N'白沙黎族自治县', NULL, N'BSLZZZX', 13, N'0,1813,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1832, 1813, N'昌江黎族自治县', NULL, N'CJLZZZX', 14, N'0,1813,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1833, 1813, N'乐东黎族自治县', NULL, N'LDLZZZX', 15, N'0,1813,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1834, 1813, N'陵水黎族自治县', NULL, N'LSLZZZX', 16, N'0,1813,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1835, 1813, N'保亭黎族苗族自治县', NULL, N'BTLZMZZZX', 17, N'0,1813,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1836, 1813, N'琼中黎族苗族自治县', NULL, N'QZLZMZZZX', 18, N'0,1813,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1837, 1813, N'西沙群岛', NULL, N'XSQD', 19, N'0,1813,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1838, 1813, N'南沙群岛', NULL, N'NSQD', 20, N'0,1813,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1839, 1813, N'中沙群岛', NULL, N'ZSQD', 21, N'0,1813,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (4, 1840, NULL, N'福建省', NULL, N'FJS', 16, N'0,', 1)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1841, 1840, N'福州市', NULL, N'FZS', 1, N'0,1840,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1842, 1841, N'鼓楼区', NULL, N'GLQ', 1, N'0,1840,1841,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1843, 1841, N'台江区', NULL, N'TJQ', 2, N'0,1840,1841,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1844, 1841, N'仓山区', NULL, N'CSQ', 3, N'0,1840,1841,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1845, 1841, N'马尾区', NULL, N'MWQ', 4, N'0,1840,1841,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1846, 1841, N'晋安区', NULL, N'JAQ', 5, N'0,1840,1841,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1847, 1841, N'闽侯县', NULL, N'MHX', 6, N'0,1840,1841,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1848, 1841, N'连江县', NULL, N'LJX', 7, N'0,1840,1841,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1849, 1841, N'罗源县', NULL, N'LYX', 8, N'0,1840,1841,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1850, 1841, N'闽清县', NULL, N'MQX', 9, N'0,1840,1841,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1851, 1841, N'永泰县', NULL, N'YTX', 10, N'0,1840,1841,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1852, 1841, N'平潭县', NULL, N'PTX', 12, N'0,1840,1841,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1853, 1841, N'福清市', NULL, N'FQS', 13, N'0,1840,1841,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1854, 1841, N'长乐市', NULL, N'CLS', 14, N'0,1840,1841,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1855, 1841, N'其他区', NULL, N'QTQ', 15, N'0,1840,1841,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1856, 1840, N'厦门市', NULL, N'XMS', 2, N'0,1840,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1857, 1856, N'思明区', NULL, N'SMQ', 1, N'0,1840,1856,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1858, 1856, N'海沧区', NULL, N'HCQ', 2, N'0,1840,1856,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1859, 1856, N'湖里区', NULL, N'HLQ', 3, N'0,1840,1856,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1860, 1856, N'集美区', NULL, N'JMQ', 4, N'0,1840,1856,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1861, 1856, N'同安区', NULL, N'TAQ', 5, N'0,1840,1856,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1862, 1856, N'翔安区', NULL, N'XAQ', 6, N'0,1840,1856,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1863, 1856, N'其他区', NULL, N'QTQ', 7, N'0,1840,1856,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1864, 1840, N'莆田市', NULL, N'PTS', 3, N'0,1840,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1865, 1864, N'城厢区', NULL, N'CXQ', 1, N'0,1840,1864,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1866, 1864, N'涵江区', NULL, N'HJQ', 2, N'0,1840,1864,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1867, 1864, N'荔城区', NULL, N'LCQ', 3, N'0,1840,1864,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1868, 1864, N'秀屿区', NULL, N'XYQ', 4, N'0,1840,1864,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1869, 1864, N'仙游县', NULL, N'XYX', 5, N'0,1840,1864,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1870, 1864, N'其他区', NULL, N'QTQ', 6, N'0,1840,1864,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1871, 1840, N'三明市', NULL, N'SMS', 4, N'0,1840,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1872, 1871, N'梅列区', NULL, N'MLQ', 1, N'0,1840,1871,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1873, 1871, N'三元区', NULL, N'SYQ', 2, N'0,1840,1871,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1874, 1871, N'明溪县', NULL, N'MXX', 3, N'0,1840,1871,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1875, 1871, N'清流县', NULL, N'QLX', 4, N'0,1840,1871,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1876, 1871, N'宁化县', NULL, N'NHX', 5, N'0,1840,1871,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1877, 1871, N'大田县', NULL, N'DTX', 6, N'0,1840,1871,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1878, 1871, N'尤溪县', NULL, N'YXX', 7, N'0,1840,1871,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1879, 1871, N'沙县', NULL, N'SX', 8, N'0,1840,1871,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1880, 1871, N'将乐县', NULL, N'JLX', 9, N'0,1840,1871,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1881, 1871, N'泰宁县', NULL, N'TNX', 10, N'0,1840,1871,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1882, 1871, N'建宁县', NULL, N'JNX', 11, N'0,1840,1871,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1883, 1871, N'永安市', NULL, N'YAS', 12, N'0,1840,1871,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1884, 1871, N'其他区', NULL, N'QTQ', 13, N'0,1840,1871,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1885, 1840, N'泉州市', NULL, N'QZS', 5, N'0,1840,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1886, 1885, N'鲤城区', NULL, N'LCQ', 1, N'0,1840,1885,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1887, 1885, N'丰泽区', NULL, N'FZQ', 2, N'0,1840,1885,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1888, 1885, N'洛江区', NULL, N'LJQ', 3, N'0,1840,1885,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1889, 1885, N'泉港区', NULL, N'QGQ', 4, N'0,1840,1885,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1890, 1885, N'惠安县', NULL, N'HAX', 5, N'0,1840,1885,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1891, 1885, N'安溪县', NULL, N'AXX', 6, N'0,1840,1885,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1892, 1885, N'永春县', NULL, N'YCX', 7, N'0,1840,1885,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1893, 1885, N'德化县', NULL, N'DHX', 8, N'0,1840,1885,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1894, 1885, N'金门县', NULL, N'JMX', 9, N'0,1840,1885,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1895, 1885, N'石狮市', NULL, N'SSS', 10, N'0,1840,1885,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1896, 1885, N'晋江市', NULL, N'JJS', 11, N'0,1840,1885,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1897, 1885, N'南安市', NULL, N'NAS', 12, N'0,1840,1885,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1898, 1885, N'其他区', NULL, N'QTQ', 13, N'0,1840,1885,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1899, 1840, N'漳州市', NULL, N'ZZS', 6, N'0,1840,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1900, 1899, N'芗城区', NULL, N'XCQ', 1, N'0,1840,1899,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1901, 1899, N'龙文区', NULL, N'LWQ', 1, N'0,1840,1899,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1902, 1899, N'云霄县', NULL, N'YXX', 1, N'0,1840,1899,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1903, 1899, N'漳浦县', NULL, N'ZPX', 1, N'0,1840,1899,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1904, 1899, N'诏安县', NULL, N'ZAX', 1, N'0,1840,1899,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1905, 1899, N'长泰县', NULL, N'CTX', 1, N'0,1840,1899,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1906, 1899, N'东山县', NULL, N'DSX', 1, N'0,1840,1899,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1907, 1899, N'南靖县', NULL, N'NJX', 1, N'0,1840,1899,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1908, 1899, N'平和县', NULL, N'PHX', 1, N'0,1840,1899,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1909, 1899, N'华安县', NULL, N'HAX', 1, N'0,1840,1899,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1910, 1899, N'龙海市', NULL, N'LHS', 1, N'0,1840,1899,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1911, 1899, N'其他区', NULL, N'QTQ', 1, N'0,1840,1899,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1912, 1840, N'南平市', NULL, N'NPS', 7, N'0,1840,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1913, 1912, N'延平区', NULL, N'YPQ', 1, N'0,1840,1912,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1914, 1912, N'顺昌县', NULL, N'SCX', 2, N'0,1840,1912,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1915, 1912, N'浦城县 ', NULL, N'PX', 3, N'0,1840,1912,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1916, 1912, N'光泽县', NULL, N'GZX', 4, N'0,1840,1912,', 3)
GO
print 'Processed 1800 total records'
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1917, 1912, N'松溪县', NULL, N'SXX', 5, N'0,1840,1912,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1918, 1912, N'政和县', NULL, N'ZHX', 6, N'0,1840,1912,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1919, 1912, N'邵武市', NULL, N'SWS', 7, N'0,1840,1912,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1920, 1912, N'武夷山市', NULL, N'WYSS', 8, N'0,1840,1912,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1921, 1912, N'建瓯市', NULL, N'JOS', 9, N'0,1840,1912,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1922, 1912, N'建阳市', NULL, N'JYS', 10, N'0,1840,1912,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1923, 1912, N'其他区', NULL, N'QTQ', 11, N'0,1840,1912,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1924, 1840, N'龙岩市', NULL, N'LYS', 8, N'0,1840,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1925, 1924, N'新罗区', NULL, N'XLQ', 1, N'0,1840,1924,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1926, 1924, N'长汀县', NULL, N'CTX', 2, N'0,1840,1924,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1927, 1924, N'永定县', NULL, N'YDX', 3, N'0,1840,1924,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1928, 1924, N'上杭县', NULL, N'SHX', 4, N'0,1840,1924,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1929, 1924, N'武平县', NULL, N'WPX', 5, N'0,1840,1924,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1930, 1924, N'连城县', NULL, N'LCX', 6, N'0,1840,1924,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1931, 1924, N'漳平市', NULL, N'ZPS', 7, N'0,1840,1924,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1932, 1924, N'其他区', NULL, N'QTQ', 8, N'0,1840,1924,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1933, 1840, N'宁德市', NULL, N'NDS', 9, N'0,1840,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1934, 1933, N'蕉城区', NULL, N'JCQ', 1, N'0,1840,1933,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1935, 1933, N'霞浦县', NULL, N'XPX', 2, N'0,1840,1933,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1936, 1933, N'古田县', NULL, N'GTX', 3, N'0,1840,1933,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1937, 1933, N'屏南县', NULL, N'PNX', 4, N'0,1840,1933,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1938, 1933, N'寿宁县', NULL, N'SNX', 5, N'0,1840,1933,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1939, 1933, N'周宁县', NULL, N'ZNX', 6, N'0,1840,1933,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1940, 1933, N'柘荣县', NULL, N'ZRX', 7, N'0,1840,1933,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1941, 1933, N'福安市', NULL, N'FAS', 8, N'0,1840,1933,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1942, 1933, N'福鼎市', NULL, N'FDS', 9, N'0,1840,1933,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1943, 1933, N'其他区', NULL, N'QTQ', 10, N'0,1840,1933,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (4, 1944, NULL, N'广东省', NULL, N'GDS', 17, N'0,', 1)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1945, 1944, N'广州市', NULL, N'GZS', 1, N'0,1944,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1946, 1945, N'荔湾区', NULL, N'LWQ', 1, N'0,1944,1945,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1947, 1945, N'越秀区', NULL, N'YXQ', 2, N'0,1944,1945,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1948, 1945, N'海珠区', NULL, N'HZQ', 3, N'0,1944,1945,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1949, 1945, N'天河区', NULL, N'THQ', 4, N'0,1944,1945,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1950, 1945, N'白云区', NULL, N'BYQ', 5, N'0,1944,1945,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1951, 1945, N'黄埔区', NULL, N'HPQ', 6, N'0,1944,1945,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1952, 1945, N'番禺区', NULL, N'FYQ', 7, N'0,1944,1945,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1953, 1945, N'花都区', NULL, N'HDQ', 8, N'0,1944,1945,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1954, 1945, N'南沙区', NULL, N'NSQ', 9, N'0,1944,1945,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1955, 1945, N'萝岗区', NULL, N'LGQ', 10, N'0,1944,1945,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1956, 1945, N'增城市', NULL, N'ZCS', 11, N'0,1944,1945,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1957, 1945, N'从化市', NULL, N'CHS', 12, N'0,1944,1945,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1958, 1945, N'东山区', NULL, N'DSQ', 13, N'0,1944,1945,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1959, 1945, N'其他区', NULL, N'QTQ', 14, N'0,1944,1945,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1960, 1944, N'韶关市', NULL, N'SGS', 2, N'0,1944,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1961, 1960, N'武江区', NULL, N'WJQ', 1, N'0,1944,1960,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1962, 1960, N'浈江区', NULL, N'ZJQ', 2, N'0,1944,1960,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1963, 1960, N'曲江区', NULL, N'QJQ', 3, N'0,1944,1960,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1964, 1960, N'始兴县', NULL, N'SXX', 4, N'0,1944,1960,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1965, 1960, N'仁化县', NULL, N'RHX', 5, N'0,1944,1960,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1966, 1960, N'翁源县', NULL, N'WYX', 6, N'0,1944,1960,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1967, 1960, N'乳源瑶族自治县', NULL, N'RYYZZZX', 7, N'0,1944,1960,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1968, 1960, N'新丰县', NULL, N'XFX', 8, N'0,1944,1960,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1969, 1960, N'乐昌市', NULL, N'LCS', 9, N'0,1944,1960,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1970, 1960, N'南雄市', NULL, N'NXS', 10, N'0,1944,1960,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1971, 1960, N'其他区', NULL, N'QTQ', 11, N'0,1944,1960,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1972, 1944, N'深圳市', NULL, N'SZS', 3, N'0,1944,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1973, 1972, N'罗湖区', NULL, N'LHQ', 1, N'0,1944,1972,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1974, 1972, N'福田区', NULL, N'FTQ', 2, N'0,1944,1972,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1975, 1972, N'南山区', NULL, N'NSQ', 3, N'0,1944,1972,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1976, 1972, N'宝安区', NULL, N'BAQ', 4, N'0,1944,1972,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1977, 1972, N'龙岗区', NULL, N'LGQ', 5, N'0,1944,1972,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1978, 1972, N'盐田区', NULL, N'YTQ', 6, N'0,1944,1972,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1979, 1972, N'其他区', NULL, N'QTQ', 7, N'0,1944,1972,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1980, 1944, N'珠海市', NULL, N'ZHS', 4, N'0,1944,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1981, 1980, N'香洲区', NULL, N'XZQ', 1, N'0,1944,1980,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1982, 1980, N'斗门区', NULL, N'DMQ', 2, N'0,1944,1980,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1983, 1980, N'金湾区', NULL, N'JWQ', 3, N'0,1944,1980,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1984, 1980, N'金唐区', NULL, N'JTQ', 4, N'0,1944,1980,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1985, 1980, N'南湾区', NULL, N'NWQ', 5, N'0,1944,1980,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1986, 1980, N'其他区', NULL, N'QTQ', 6, N'0,1944,1980,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1987, 1944, N'汕头市', NULL, N'STS', 5, N'0,1944,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1988, 1987, N'龙湖区', NULL, N'LHQ', 1, N'0,1944,1987,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1989, 1987, N'金平区', NULL, N'JPQ', 2, N'0,1944,1987,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1990, 1987, N'濠江区', NULL, N'HJQ', 3, N'0,1944,1987,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1991, 1987, N'潮阳区', NULL, N'CYQ', 4, N'0,1944,1987,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1992, 1987, N'潮南区', NULL, N'CNQ', 5, N'0,1944,1987,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1993, 1987, N'澄海区', NULL, N'CHQ', 6, N'0,1944,1987,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1994, 1987, N'南澳县', NULL, N'NAX', 7, N'0,1944,1987,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1995, 1987, N'其他区', NULL, N'QTQ', 8, N'0,1944,1987,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1996, 1944, N'佛山市', NULL, N'FSS', 6, N'0,1944,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1997, 1996, N'禅城区', NULL, N'CCQ', 1, N'0,1944,1996,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1998, 1996, N'南海区', NULL, N'NHQ', 2, N'0,1944,1996,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 1999, 1996, N'顺德区', NULL, N'SDQ', 3, N'0,1944,1996,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2000, 1996, N'三水区', NULL, N'SSQ', 4, N'0,1944,1996,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2001, 1996, N'高明区', NULL, N'GMQ', 5, N'0,1944,1996,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2002, 1996, N'其他区', NULL, N'QTQ', 6, N'0,1944,1996,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2003, 1944, N'江门市', NULL, N'JMS', 7, N'0,1944,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2004, 2003, N'蓬江区', NULL, N'PJQ', 1, N'0,1944,2003,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2005, 2003, N'江海区', NULL, N'JHQ', 2, N'0,1944,2003,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2006, 2003, N'新会区', NULL, N'XHQ', 3, N'0,1944,2003,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2007, 2003, N'台山市', NULL, N'TSS', 4, N'0,1944,2003,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2008, 2003, N'开平市', NULL, N'KPS', 5, N'0,1944,2003,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2009, 2003, N'鹤山市', NULL, N'HSS', 6, N'0,1944,2003,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2010, 2003, N'恩平市', NULL, N'EPS', 7, N'0,1944,2003,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2011, 2003, N'其他区', NULL, N'QTQ', 8, N'0,1944,2003,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2012, 1944, N'湛江市', NULL, N'ZJS', 8, N'0,1944,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2013, 2012, N'赤坎区', NULL, N'CKQ', 1, N'0,1944,2012,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2014, 2012, N'霞山区', NULL, N'XSQ', 2, N'0,1944,2012,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2015, 2012, N'坡头区', NULL, N'PTQ', 3, N'0,1944,2012,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2016, 2012, N'麻章区', NULL, N'MZQ', 4, N'0,1944,2012,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2017, 2012, N'遂溪县', NULL, N'SXX', 5, N'0,1944,2012,', 3)
GO
print 'Processed 1900 total records'
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2018, 2012, N'徐闻县', NULL, N'XWX', 6, N'0,1944,2012,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2019, 2012, N'廉江市', NULL, N'LJS', 7, N'0,1944,2012,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2020, 2012, N'雷州市', NULL, N'LZS', 8, N'0,1944,2012,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2021, 2012, N'吴川市', NULL, N'WCS', 9, N'0,1944,2012,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2022, 2012, N'其他区', NULL, N'QTQ', 10, N'0,1944,2012,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2023, 1944, N'茂名市', NULL, N'MMS', 9, N'0,1944,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2024, 2023, N'茂南区', NULL, N'MNQ', 1, N'0,1944,2023,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2025, 2023, N'茂港区', NULL, N'MGQ', 2, N'0,1944,2023,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2026, 2023, N'电白县', NULL, N'DBX', 3, N'0,1944,2023,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2027, 2023, N'高州市', NULL, N'GZS', 4, N'0,1944,2023,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2028, 2023, N'化州市', NULL, N'HZS', 5, N'0,1944,2023,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2029, 2023, N'信宜市', NULL, N'XYS', 6, N'0,1944,2023,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2030, 2023, N'其他区', NULL, N'QTQ', 7, N'0,1944,2023,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2031, 1944, N'肇庆市', NULL, N'ZQS', 10, N'0,1944,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2032, 2031, N'端州区', NULL, N'DZQ', 1, N'0,1944,2031,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2033, 2031, N'鼎湖区', NULL, N'DHQ', 2, N'0,1944,2031,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2034, 2031, N'广宁县', NULL, N'GNX', 3, N'0,1944,2031,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2035, 2031, N'怀集县', NULL, N'HJX', 4, N'0,1944,2031,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2036, 2031, N'封开县', NULL, N'FKX', 5, N'0,1944,2031,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2037, 2031, N'德庆县', NULL, N'DQX', 6, N'0,1944,2031,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2038, 2031, N'高要市', NULL, N'GYS', 7, N'0,1944,2031,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2039, 2031, N'四会市', NULL, N'SHS', 8, N'0,1944,2031,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2040, 2031, N'其他区', NULL, N'QTQ', 9, N'0,1944,2031,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2041, 1944, N'惠州市', NULL, N'HZS', 11, N'0,1944,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2042, 2041, N'惠城区', NULL, N'HCQ', 1, N'0,1944,2041,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2043, 2041, N'惠阳区', NULL, N'HYQ', 2, N'0,1944,2041,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2044, 2041, N'博罗县', NULL, N'BLX', 3, N'0,1944,2041,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2045, 2041, N'惠东县', NULL, N'HDX', 4, N'0,1944,2041,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2046, 2041, N'龙门县', NULL, N'LMX', 5, N'0,1944,2041,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2047, 2041, N'其他区', NULL, N'QTQ', 6, N'0,1944,2041,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2048, 1944, N'梅州市', NULL, N'MZS', 12, N'0,1944,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2049, 2048, N'梅江区', NULL, N'MJQ', 1, N'0,1944,2048,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2050, 2048, N'梅县', NULL, N'MX', 2, N'0,1944,2048,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2051, 2048, N'大埔县', NULL, N'DPX', 3, N'0,1944,2048,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2052, 2048, N'丰顺县', NULL, N'FSX', 4, N'0,1944,2048,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2053, 2048, N'五华县', NULL, N'WHX', 5, N'0,1944,2048,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2054, 2048, N'平远县', NULL, N'PYX', 6, N'0,1944,2048,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2055, 2048, N'蕉岭县', NULL, N'JLX', 7, N'0,1944,2048,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2056, 2048, N'兴宁市', NULL, N'XNS', 8, N'0,1944,2048,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2057, 2048, N'其他区', NULL, N'QTQ', 9, N'0,1944,2048,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2058, 1944, N'汕尾市', NULL, N'SWS', 13, N'0,1944,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2059, 2058, N'城区', NULL, N'CQ', 1, N'0,1944,2058,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2060, 2058, N'海丰县', NULL, N'HFX', 2, N'0,1944,2058,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2061, 2058, N'陆河县', NULL, N'LHX', 3, N'0,1944,2058,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2062, 2058, N'陆丰市', NULL, N'LFS', 4, N'0,1944,2058,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2063, 2058, N'其他区', NULL, N'QTQ', 5, N'0,1944,2058,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2064, 1944, N'河源市', NULL, N'HYS', 14, N'0,1944,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2065, 2064, N'源城区', NULL, N'YCQ', 1, N'0,1944,2064,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2066, 2064, N'紫金县', NULL, N'ZJX', 2, N'0,1944,2064,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2067, 2064, N'龙川县', NULL, N'LCX', 3, N'0,1944,2064,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2068, 2064, N'连平县', NULL, N'LPX', 4, N'0,1944,2064,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2069, 2064, N'和平县', NULL, N'HPX', 5, N'0,1944,2064,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2070, 2064, N'东源县', NULL, N'DYX', 6, N'0,1944,2064,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2071, 2064, N'其他区', NULL, N'QTQ', 7, N'0,1944,2064,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2072, 1944, N'阳江市', NULL, N'YJS', 15, N'0,1944,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2073, 2072, N'江城区', NULL, N'JCQ', 1, N'0,1944,2072,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2074, 2072, N'阳西县', NULL, N'YXX', 2, N'0,1944,2072,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2075, 2072, N'阳东县', NULL, N'YDX', 3, N'0,1944,2072,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2076, 2072, N'阳春市', NULL, N'YCS', 4, N'0,1944,2072,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2077, 2072, N'其他区', NULL, N'QTQ', 5, N'0,1944,2072,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2078, 1944, N'清远市', NULL, N'QYS', 16, N'0,1944,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2079, 2078, N'清城区', NULL, N'QCQ', 1, N'0,1944,2078,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2080, 2078, N'佛冈县', NULL, N'FGX', 2, N'0,1944,2078,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2081, 2078, N'阳山县', NULL, N'YSX', 3, N'0,1944,2078,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2082, 2078, N'连山壮族瑶族自治县', NULL, N'LSZZYZZZX', 4, N'0,1944,2078,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2083, 2078, N'连南瑶族自治县', NULL, N'LNYZZZX', 5, N'0,1944,2078,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2084, 2078, N'清新县', NULL, N'QXX', 6, N'0,1944,2078,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2085, 2078, N'英德市', NULL, N'YDS', 7, N'0,1944,2078,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2086, 2078, N'连州市', NULL, N'LZS', 8, N'0,1944,2078,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2087, 2078, N'其他区', NULL, N'QTQ', 9, N'0,1944,2078,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2088, 1944, N'东莞市', NULL, N'DWS', 17, N'0,1944,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2089, 1944, N'中山市', NULL, N'ZSS', 18, N'0,1944,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2090, 1944, N'潮州市', NULL, N'CZS', 19, N'0,1944,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2091, 2090, N'湘桥区', NULL, N'XQQ', 1, N'0,1944,2090,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2092, 2090, N'潮安县', NULL, N'CAX', 2, N'0,1944,2090,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2093, 2090, N'饶平县', NULL, N'RPX', 3, N'0,1944,2090,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2094, 2090, N'枫溪区', NULL, N'FXQ', 4, N'0,1944,2090,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2095, 2090, N'其他区', NULL, N'QTQ', 5, N'0,1944,2090,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2096, 1944, N'揭阳市', NULL, N'JYS', 20, N'0,1944,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2097, 2096, N'榕城区', NULL, N'RCQ', 1, N'0,1944,2096,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2098, 2096, N'揭东县', NULL, N'JDX', 2, N'0,1944,2096,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2099, 2096, N'揭西县', NULL, N'JXX', 3, N'0,1944,2096,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2100, 2096, N'惠来县', NULL, N'HLX', 4, N'0,1944,2096,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2101, 2096, N'普宁市', NULL, N'PNS', 5, N'0,1944,2096,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2102, 2096, N'东山区', NULL, N'DSQ', 6, N'0,1944,2096,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2103, 2096, N'其他区', NULL, N'QTQ', 7, N'0,1944,2096,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2104, 1944, N'云浮市', NULL, N'YFS', 21, N'0,1944,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2105, 2104, N'云城区', NULL, N'YCQ', 1, N'0,1944,2104,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2106, 2104, N'新兴县', NULL, N'XXX', 2, N'0,1944,2104,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2107, 2104, N'郁南县', NULL, N'YNX', 3, N'0,1944,2104,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2108, 2104, N'云安县', NULL, N'YAX', 4, N'0,1944,2104,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2109, 2104, N'罗定市', NULL, N'LDS', 5, N'0,1944,2104,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2110, 2104, N'其他区', NULL, N'QTQ', 6, N'0,1944,2104,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (4, 2111, NULL, N'广西', NULL, N'GX', 18, N'0,', 1)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2112, 2111, N'南宁市', NULL, N'NNS', 1, N'0,2111,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2113, 2112, N'兴宁区', NULL, N'XNQ', 1, N'0,2111,2112,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2114, 2112, N'青秀区', NULL, N'QXQ', 2, N'0,2111,2112,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2115, 2112, N'西乡塘区', NULL, N'XXTQ', 3, N'0,2111,2112,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2116, 2112, N'良庆区', NULL, N'LQQ', 4, N'0,2111,2112,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2117, 2112, N'邕宁区', NULL, N'YNQ', 5, N'0,2111,2112,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2118, 2112, N'武鸣县', NULL, N'WMX', 6, N'0,2111,2112,', 3)
GO
print 'Processed 2000 total records'
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2119, 2112, N'隆安县', NULL, N'LAX', 7, N'0,2111,2112,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2120, 2112, N'马山县', NULL, N'MSX', 8, N'0,2111,2112,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2121, 2112, N'上林县', NULL, N'SLX', 9, N'0,2111,2112,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2122, 2112, N'宾阳县', NULL, N'BYX', 10, N'0,2111,2112,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2123, 2112, N'横县', NULL, N'HX', 11, N'0,2111,2112,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2124, 2112, N'江南区', NULL, N'JNQ', 12, N'0,2111,2112,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2125, 2112, N'其他区', NULL, N'QTQ', 13, N'0,2111,2112,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2126, 2111, N'柳州市', NULL, N'LZS', 2, N'0,2111,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2127, 2126, N'城中区', NULL, N'CZQ', 1, N'0,2111,2126,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2128, 2126, N'鱼峰区', NULL, N'YFQ', 2, N'0,2111,2126,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2129, 2126, N'柳南区', NULL, N'LNQ', 3, N'0,2111,2126,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2130, 2126, N'柳北区', NULL, N'LBQ', 4, N'0,2111,2126,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2131, 2126, N'柳江县', NULL, N'LJX', 5, N'0,2111,2126,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2132, 2126, N'柳城县', NULL, N'LCX', 6, N'0,2111,2126,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2133, 2126, N'鹿寨县', NULL, N'LZX', 7, N'0,2111,2126,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2134, 2126, N'融安县', NULL, N'RAX', 8, N'0,2111,2126,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2135, 2126, N'融水苗族自治县', NULL, N'RSMZZZX', 9, N'0,2111,2126,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2136, 2126, N'三江侗族自治县', NULL, N'SJDZZZX', 10, N'0,2111,2126,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2137, 2126, N'其他区', NULL, N'QTQ', 11, N'0,2111,2126,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2138, 2111, N'桂林市', NULL, N'GLS', 3, N'0,2111,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2139, 2138, N'秀峰区', NULL, N'XFQ', 1, N'0,2111,2138,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2140, 2138, N'迭彩区', NULL, N'DCQ', 2, N'0,2111,2138,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2141, 2138, N'象山区', NULL, N'XSQ', 3, N'0,2111,2138,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2142, 2138, N'七星区', NULL, N'QXQ', 4, N'0,2111,2138,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2143, 2138, N'雁山区', NULL, N'YSQ', 5, N'0,2111,2138,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2144, 2138, N'阳朔县', NULL, N'YSX', 6, N'0,2111,2138,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2145, 2138, N'临桂县', NULL, N'LGX', 7, N'0,2111,2138,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2146, 2138, N'灵川县', NULL, N'LCX', 8, N'0,2111,2138,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2147, 2138, N'全州县', NULL, N'QZX', 9, N'0,2111,2138,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2148, 2138, N'兴安县', NULL, N'XAX', 10, N'0,2111,2138,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2149, 2138, N'永福县', NULL, N'YFX', 11, N'0,2111,2138,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2150, 2138, N'灌阳县', NULL, N'GYX', 12, N'0,2111,2138,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2151, 2138, N'龙胜各族自治县', NULL, N'LSGZZZX', 13, N'0,2111,2138,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2152, 2138, N'资源县', NULL, N'ZYX', 14, N'0,2111,2138,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2153, 2138, N'平乐县', NULL, N'PLX', 15, N'0,2111,2138,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2154, 2138, N'荔蒲县', NULL, N'LPX', 16, N'0,2111,2138,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2155, 2138, N'恭城瑶族自治县', NULL, N'GCYZZZX', 17, N'0,2111,2138,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2156, 2138, N'其他区', NULL, N'QTQ', 18, N'0,2111,2138,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2157, 2111, N'梧州市', NULL, N'WZS', 4, N'0,2111,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2158, 2157, N'万秀区', NULL, N'WXQ', 1, N'0,2111,2157,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2159, 2157, N'蝶山区', NULL, N'DSQ', 2, N'0,2111,2157,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2160, 2157, N'长洲区', NULL, N'CZQ', 3, N'0,2111,2157,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2161, 2157, N'苍梧县', NULL, N'CWX', 4, N'0,2111,2157,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2162, 2157, N'藤县', NULL, N'TX', 5, N'0,2111,2157,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2163, 2157, N'蒙山县', NULL, N'MSX', 6, N'0,2111,2157,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2164, 2157, N'岑溪市', NULL, N'CXS', 7, N'0,2111,2157,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2165, 2157, N'其他区', NULL, N'QTQ', 8, N'0,2111,2157,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2166, 2111, N'北海市', NULL, N'BHS', 5, N'0,2111,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2167, 2166, N'海城区', NULL, N'HCQ', 1, N'0,2111,2166,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2168, 2166, N'银海区', NULL, N'YHQ', 2, N'0,2111,2166,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2169, 2166, N'铁山港区', NULL, N'TSGQ', 3, N'0,2111,2166,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2170, 2166, N'合浦县', NULL, N'HPX', 4, N'0,2111,2166,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2171, 2166, N'其他区', NULL, N'QTQ', 5, N'0,2111,2166,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2172, 2111, N'防城港市', NULL, N'FCGS', 6, N'0,2111,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2173, 2172, N'港口区', NULL, N'GKQ', 1, N'0,2111,2172,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2174, 2172, N'防城区', NULL, N'FCQ', 2, N'0,2111,2172,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2175, 2172, N'上思县', NULL, N'SSX', 3, N'0,2111,2172,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2176, 2172, N'东兴市', NULL, N'DXS', 4, N'0,2111,2172,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2177, 2172, N'其他区', NULL, N'QTQ', 5, N'0,2111,2172,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2178, 2111, N'钦州市', NULL, N'QZS', 7, N'0,2111,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2179, 2178, N'钦南区', NULL, N'QNQ', 1, N'0,2111,2178,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2180, 2178, N'钦北区', NULL, N'QBQ', 2, N'0,2111,2178,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2181, 2178, N'灵山县', NULL, N'LSX', 3, N'0,2111,2178,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2182, 2178, N'浦北县', NULL, N'PBX', 4, N'0,2111,2178,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2183, 2178, N'其他区', NULL, N'QTQ', 5, N'0,2111,2178,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2184, 2111, N'贵港市', NULL, N'GGS', 8, N'0,2111,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2185, 2184, N'港北区', NULL, N'GBQ', 1, N'0,2111,2184,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2186, 2184, N'港南区', NULL, N'GNQ', 2, N'0,2111,2184,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2187, 2184, N'覃塘区', NULL, N'TTQ', 3, N'0,2111,2184,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2188, 2184, N'平南县', NULL, N'PNX', 4, N'0,2111,2184,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2189, 2184, N'桂平市', NULL, N'GPS', 5, N'0,2111,2184,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2190, 2184, N'其他区', NULL, N'QTQ', 6, N'0,2111,2184,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2191, 2111, N'玉林市', NULL, N'YLS', 9, N'0,2111,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2192, 2191, N'玉州区', NULL, N'YZQ', 1, N'0,2111,2191,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2193, 2191, N'容县', NULL, N'RX', 2, N'0,2111,2191,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2194, 2191, N'陆川县', NULL, N'LCX', 3, N'0,2111,2191,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2195, 2191, N'博白县', NULL, N'BBX', 4, N'0,2111,2191,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2196, 2191, N'兴业县', NULL, N'XYX', 5, N'0,2111,2191,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2197, 2191, N'北流市', NULL, N'BLS', 6, N'0,2111,2191,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2198, 2191, N'其他区', NULL, N'QTQ', 7, N'0,2111,2191,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2199, 2111, N'百色市', NULL, N'BSS', 10, N'0,2111,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2200, 2199, N'右江区', NULL, N'YJQ', 1, N'0,2111,2199,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2201, 2199, N'田阳县', NULL, N'TYX', 2, N'0,2111,2199,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2202, 2199, N'田东县', NULL, N'TDX', 3, N'0,2111,2199,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2203, 2199, N'平果县', NULL, N'PGX', 4, N'0,2111,2199,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2204, 2199, N'德保县', NULL, N'DBX', 5, N'0,2111,2199,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2205, 2199, N'靖西县', NULL, N'JXX', 6, N'0,2111,2199,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2206, 2199, N'那坡县', NULL, N'NPX', 7, N'0,2111,2199,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2207, 2199, N'凌云县', NULL, N'LYX', 8, N'0,2111,2199,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2208, 2199, N'乐业县', NULL, N'LYX', 9, N'0,2111,2199,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2209, 2199, N'田林县', NULL, N'TLX', 10, N'0,2111,2199,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2210, 2199, N'西林县', NULL, N'XLX', 11, N'0,2111,2199,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2211, 2199, N'隆林各族自治县', NULL, N'LLGZZZX', 12, N'0,2111,2199,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2212, 2199, N'其他区', NULL, N'QTQ', 13, N'0,2111,2199,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2213, 2111, N'贺州市', NULL, N'HZS', 11, N'0,2111,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2214, 2213, N'八步区', NULL, N'BBQ', 1, N'0,2111,2213,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2215, 2213, N'昭平县', NULL, N'ZPX', 2, N'0,2111,2213,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2216, 2213, N'钟山县', NULL, N'ZSX', 3, N'0,2111,2213,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2217, 2213, N'富川瑶族自治县', NULL, N'FCYZZZX', 4, N'0,2111,2213,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2218, 2213, N'其他区', NULL, N'QTQ', 5, N'0,2111,2213,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2219, 2111, N'河池市', NULL, N'HCS', 12, N'0,2111,', 2)
GO
print 'Processed 2100 total records'
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2220, 2219, N'金城江区', NULL, N'JCJQ', 1, N'0,2111,2219,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2221, 2219, N'南丹县', NULL, N'NDX', 2, N'0,2111,2219,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2222, 2219, N'天峨县', NULL, N'TEX', 3, N'0,2111,2219,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2223, 2219, N'凤山县', NULL, N'FSX', 4, N'0,2111,2219,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2224, 2219, N'东兰县', NULL, N'DLX', 5, N'0,2111,2219,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2225, 2219, N'罗城仫佬族自治县', NULL, N'LCMLZZZX', 6, N'0,2111,2219,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2226, 2219, N'环江毛南族自治县', NULL, N'HJMNZZZX', 7, N'0,2111,2219,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2227, 2219, N'巴马瑶族自治县', NULL, N'BMYZZZX', 8, N'0,2111,2219,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2228, 2219, N'都安瑶族自治县', NULL, N'DAYZZZX', 9, N'0,2111,2219,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2229, 2219, N'大化瑶族自治县', NULL, N'DHYZZZX', 10, N'0,2111,2219,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2230, 2219, N'宜州市', NULL, N'YZS', 11, N'0,2111,2219,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2231, 2219, N'其他区', NULL, N'QTQ', 12, N'0,2111,2219,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2232, 2111, N'来宾市', NULL, N'LBS', 13, N'0,2111,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2233, 2232, N'兴宾区', NULL, N'XBQ', 1, N'0,2111,2232,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2234, 2232, N'忻城县', NULL, N'XCX', 2, N'0,2111,2232,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2235, 2232, N'象州县', NULL, N'XZX', 3, N'0,2111,2232,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2236, 2232, N'武宣县', NULL, N'WXX', 4, N'0,2111,2232,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2237, 2232, N'金秀瑶族自治县', NULL, N'JXYZZZX', 5, N'0,2111,2232,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2238, 2232, N'合山市', NULL, N'HSS', 6, N'0,2111,2232,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2239, 2232, N'其他区', NULL, N'QTQ', 7, N'0,2111,2232,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2240, 2111, N'崇左市', NULL, N'CZS', 14, N'0,2111,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2241, 2240, N'江洲区', NULL, N'JZQ', 1, N'0,2111,2240,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2242, 2240, N'扶绥县', NULL, N'FSX', 2, N'0,2111,2240,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2243, 2240, N'宁明县', NULL, N'NMX', 3, N'0,2111,2240,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2244, 2240, N'龙州县', NULL, N'LZX', 4, N'0,2111,2240,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2245, 2240, N'大新县', NULL, N'DXX', 5, N'0,2111,2240,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2246, 2240, N'天等县', NULL, N'TDX', 6, N'0,2111,2240,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2247, 2240, N'凭祥市', NULL, N'PXS', 7, N'0,2111,2240,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2248, 2240, N'其他区', NULL, N'QTQ', 8, N'0,2111,2240,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (5, 2249, NULL, N'辽宁省', NULL, N'LNS', 19, N'0,', 1)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2250, 2249, N'沈阳市', NULL, N'SYS', 1, N'0,2249,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2251, 2250, N'和平区', NULL, N'HPQ', 1, N'0,2249,2250,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2252, 2250, N'沈河区', NULL, N'SHQ', 2, N'0,2249,2250,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2253, 2250, N'大东区', NULL, N'DDQ', 3, N'0,2249,2250,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2254, 2250, N'皇姑区', NULL, N'HGQ', 4, N'0,2249,2250,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2255, 2250, N'铁西区', NULL, N'TXQ', 5, N'0,2249,2250,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2256, 2250, N'苏家屯区', NULL, N'SJTQ', 6, N'0,2249,2250,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2257, 2250, N'东陵区', NULL, N'DLQ', 7, N'0,2249,2250,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2258, 2250, N'新城子区', NULL, N'XCZQ', 8, N'0,2249,2250,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2259, 2250, N'于洪区', NULL, N'YHQ', 9, N'0,2249,2250,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2260, 2250, N'辽中县', NULL, N'LZX', 10, N'0,2249,2250,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2261, 2250, N'康平县', NULL, N'KPX', 11, N'0,2249,2250,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2262, 2250, N'法库县', NULL, N'FKX', 12, N'0,2249,2250,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2263, 2250, N'新民市', NULL, N'XMS', 13, N'0,2249,2250,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2264, 2250, N'浑南新区', NULL, N'HNXQ', 14, N'0,2249,2250,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2265, 2250, N'张士开发区', NULL, N'ZSKFQ', 15, N'0,2249,2250,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2266, 2250, N'沈北新区', NULL, N'SBXQ', 16, N'0,2249,2250,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2267, 2250, N'其他区', NULL, N'QTQ', 17, N'0,2249,2250,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2268, 2249, N'大连市', NULL, N'DLS', 2, N'0,2249,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2269, 2268, N'中山区', NULL, N'ZSQ', 1, N'0,2249,2268,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2270, 2268, N'西岗区', NULL, N'XGQ', 2, N'0,2249,2268,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2271, 2268, N'沙河口区', NULL, N'SHKQ', 3, N'0,2249,2268,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2272, 2268, N'甘井子区', NULL, N'GJZQ', 4, N'0,2249,2268,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2273, 2268, N'旅顺口区', NULL, N'LSKQ', 5, N'0,2249,2268,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2274, 2268, N'金州区', NULL, N'JZQ', 6, N'0,2249,2268,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2275, 2268, N'长海县', NULL, N'CHX', 7, N'0,2249,2268,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2276, 2268, N'开发区', NULL, N'KFQ', 8, N'0,2249,2268,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2277, 2268, N'瓦房店市', NULL, N'WFDS', 9, N'0,2249,2268,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2278, 2268, N'普兰店市', NULL, N'PLDS', 10, N'0,2249,2268,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2279, 2268, N'庄河市', NULL, N'ZHS', 11, N'0,2249,2268,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2280, 2268, N'岭前区', NULL, N'LQQ', 12, N'0,2249,2268,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2281, 2268, N'其他区', NULL, N'QTQ', 13, N'0,2249,2268,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2282, 2249, N'鞍山市', NULL, N'ASS', 3, N'0,2249,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2283, 2282, N'铁东区', NULL, N'TDQ', 1, N'0,2249,2282,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2284, 2282, N'铁西区', NULL, N'TXQ', 2, N'0,2249,2282,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2285, 2282, N'立山区', NULL, N'LSQ', 3, N'0,2249,2282,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2286, 2282, N'千山区', NULL, N'QSQ', 4, N'0,2249,2282,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2287, 2282, N'台安县', NULL, N'TAX', 5, N'0,2249,2282,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2288, 2282, N'岫岩满族自治县', NULL, N'XYMZZZX', 6, N'0,2249,2282,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2289, 2282, N'高新区', NULL, N'GXQ', 7, N'0,2249,2282,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2290, 2282, N'海城市', NULL, N'HCS', 8, N'0,2249,2282,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2291, 2282, N'其他区', NULL, N'QTQ', 9, N'0,2249,2282,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2292, 2249, N'抚顺市', NULL, N'FSS', 4, N'0,2249,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2293, 2292, N'新抚区', NULL, N'XFQ', 1, N'0,2249,2292,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2294, 2292, N'东洲区', NULL, N'DZQ', 2, N'0,2249,2292,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2295, 2292, N'望花区', NULL, N'WHQ', 3, N'0,2249,2292,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2296, 2292, N'顺城区', NULL, N'SCQ', 4, N'0,2249,2292,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2297, 2292, N'抚顺县', NULL, N'FSX', 5, N'0,2249,2292,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2298, 2292, N'新宾满族自治县', NULL, N'XBMZZZX', 6, N'0,2249,2292,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2299, 2292, N'清原满族自治县', NULL, N'QYMZZZX', 7, N'0,2249,2292,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2300, 2292, N'其他区', NULL, N'QTQ', 8, N'0,2249,2292,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2301, 2249, N'本溪市', NULL, N'BXS', 5, N'0,2249,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2302, 2301, N'平山区', NULL, N'PSQ', 1, N'0,2249,2301,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2303, 2301, N'溪湖区', NULL, N'XHQ', 2, N'0,2249,2301,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2304, 2301, N'明山区', NULL, N'MSQ', 3, N'0,2249,2301,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2305, 2301, N'南芬区', NULL, N'NFQ', 4, N'0,2249,2301,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2306, 2301, N'本溪满族自治县', NULL, N'BXMZZZX', 5, N'0,2249,2301,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2307, 2301, N'桓仁满族自治县', NULL, N'HRMZZZX', 6, N'0,2249,2301,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2308, 2301, N'其他区', NULL, N'QTQ', 7, N'0,2249,2301,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2309, 2249, N'丹东市', NULL, N'DDS', 6, N'0,2249,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2310, 2309, N'元宝区', NULL, N'YBQ', 1, N'0,2249,2309,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2311, 2309, N'振兴区', NULL, N'ZXQ', 2, N'0,2249,2309,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2312, 2309, N'振安区', NULL, N'ZAQ', 3, N'0,2249,2309,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2313, 2309, N'宽甸满族自治县', NULL, N'KDMZZZX', 4, N'0,2249,2309,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2314, 2309, N'东港市', NULL, N'DGS', 5, N'0,2249,2309,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2315, 2309, N'凤城市', NULL, N'FCS', 6, N'0,2249,2309,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2316, 2309, N'其他区', NULL, N'QTQ', 7, N'0,2249,2309,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2317, 2249, N'锦州市', NULL, N'JZS', 7, N'0,2249,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2318, 2317, N'古塔区', NULL, N'GTQ', 1, N'0,2249,2317,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2319, 2317, N'凌河区', NULL, N'LHQ', 2, N'0,2249,2317,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2320, 2317, N'太和区', NULL, N'THQ', 3, N'0,2249,2317,', 3)
GO
print 'Processed 2200 total records'
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2321, 2317, N'黑山县', NULL, N'HSX', 4, N'0,2249,2317,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2322, 2317, N'义县', NULL, N'YX', 5, N'0,2249,2317,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2323, 2317, N'凌海市', NULL, N'LHS', 6, N'0,2249,2317,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2324, 2317, N'北镇市', NULL, N'BZS', 7, N'0,2249,2317,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2325, 2317, N'其他区', NULL, N'QTQ', 8, N'0,2249,2317,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2326, 2249, N'营口市', NULL, N'YKS', 8, N'0,2249,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2327, 2326, N'站前区', NULL, N'ZQQ', 1, N'0,2249,2326,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2328, 2326, N'西市区', NULL, N'XSQ', 2, N'0,2249,2326,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2329, 2326, N'鲅鱼圈区', NULL, N'BYQQ', 3, N'0,2249,2326,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2330, 2326, N'老边区', NULL, N'LBQ', 4, N'0,2249,2326,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2331, 2326, N'盖州市', NULL, N'GZS', 5, N'0,2249,2326,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2332, 2326, N'大石桥市', NULL, N'DSQS', 6, N'0,2249,2326,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2333, 2326, N'其他区', NULL, N'QTQ', 7, N'0,2249,2326,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2334, 2249, N'阜新市', NULL, N'FXS', 9, N'0,2249,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2335, 2334, N'海州区', NULL, N'HZQ', 1, N'0,2249,2334,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2336, 2334, N'新邱区', NULL, N'XQQ', 2, N'0,2249,2334,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2337, 2334, N'太平区', NULL, N'TPQ', 3, N'0,2249,2334,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2338, 2334, N'清河门区', NULL, N'QHMQ', 4, N'0,2249,2334,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2339, 2334, N'细河区', NULL, N'XHQ', 5, N'0,2249,2334,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2340, 2334, N'阜新蒙古族自治县', NULL, N'FXMGZZZX', 6, N'0,2249,2334,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2341, 2334, N'彰武县', NULL, N'ZWX', 7, N'0,2249,2334,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2342, 2334, N'其他区', NULL, N'QTQ', 8, N'0,2249,2334,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2343, 2249, N'辽阳市', NULL, N'LYS', 10, N'0,2249,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2344, 2343, N'白塔区', NULL, N'BTQ', 1, N'0,2249,2343,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2345, 2343, N'文圣区', NULL, N'WSQ', 2, N'0,2249,2343,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2346, 2343, N'宏伟区', NULL, N'HWQ', 3, N'0,2249,2343,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2347, 2343, N'弓长岭区', NULL, N'GCLQ', 4, N'0,2249,2343,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2348, 2343, N'太子河区', NULL, N'TZHQ', 5, N'0,2249,2343,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2349, 2343, N'辽阳县', NULL, N'LYX', 6, N'0,2249,2343,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2350, 2343, N'灯塔市', NULL, N'DTS', 7, N'0,2249,2343,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2351, 2343, N'其他区', NULL, N'QTQ', 8, N'0,2249,2343,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2352, 2249, N'盘锦市', NULL, N'PJS', 11, N'0,2249,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2353, 2352, N'双台子区', NULL, N'STZQ', 1, N'0,2249,2352,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2354, 2352, N'兴隆台区', NULL, N'XLTQ', 2, N'0,2249,2352,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2355, 2352, N'大洼县', NULL, N'DWX', 3, N'0,2249,2352,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2356, 2352, N'盘山县', NULL, N'PSX', 4, N'0,2249,2352,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2357, 2352, N'其他区', NULL, N'QTQ', 5, N'0,2249,2352,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2358, 2249, N'铁岭市', NULL, N'TLS', 12, N'0,2249,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2359, 2358, N'银州区', NULL, N'YZQ', 1, N'0,2249,2358,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2360, 2358, N'清河区', NULL, N'QHQ', 2, N'0,2249,2358,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2361, 2358, N'铁岭县', NULL, N'TLX', 3, N'0,2249,2358,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2362, 2358, N'西丰县', NULL, N'XFX', 4, N'0,2249,2358,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2363, 2358, N'昌图县', NULL, N'CTX', 5, N'0,2249,2358,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2364, 2358, N'调兵山市', NULL, N'DBSS', 6, N'0,2249,2358,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2365, 2358, N'开原市', NULL, N'KYS', 7, N'0,2249,2358,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2366, 2358, N'其他区', NULL, N'QTQ', 8, N'0,2249,2358,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2367, 2249, N'朝阳市', NULL, N'CYS', 13, N'0,2249,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2368, 2367, N'双塔区', NULL, N'STQ', 1, N'0,2249,2367,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2369, 2367, N'龙城区', NULL, N'LCQ', 2, N'0,2249,2367,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2370, 2367, N'朝阳县', NULL, N'CYX', 3, N'0,2249,2367,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2371, 2367, N'建平县', NULL, N'JPX', 4, N'0,2249,2367,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2372, 2367, N'喀喇沁左翼蒙古族自治县', NULL, N'KLQZYMGZZZX', 5, N'0,2249,2367,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2373, 2367, N'北票市', NULL, N'BPS', 6, N'0,2249,2367,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2374, 2367, N'凌源市', NULL, N'LYS', 7, N'0,2249,2367,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2375, 2367, N'其他区', NULL, N'QTQ', 8, N'0,2249,2367,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2376, 2249, N'葫芦岛市', NULL, N'HLDS', 14, N'0,2249,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2377, 2376, N'连山区', NULL, N'LSQ', 1, N'0,2249,2376,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2378, 2376, N'龙港区', NULL, N'LGQ', 2, N'0,2249,2376,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2379, 2376, N'南票区', NULL, N'NPQ', 3, N'0,2249,2376,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2380, 2376, N'绥中县', NULL, N'SZX', 4, N'0,2249,2376,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2381, 2376, N'建昌县', NULL, N'JCX', 5, N'0,2249,2376,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2382, 2376, N'兴城市', NULL, N'XCS', 6, N'0,2249,2376,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2383, 2376, N'其他区', NULL, N'QTQ', 7, N'0,2249,2376,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (5, 2384, NULL, N'吉林省', NULL, N'JLS', 20, N'0,', 1)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2385, 2384, N'长春市', NULL, N'CCS', 1, N'0,2384,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2386, 2385, N'南关区', NULL, N'NGQ', 1, N'0,2384,2385,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2387, 2385, N'宽城区', NULL, N'KCQ', 2, N'0,2384,2385,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2388, 2385, N'朝阳区', NULL, N'CYQ', 3, N'0,2384,2385,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2389, 2385, N'二道区', NULL, N'EDQ', 4, N'0,2384,2385,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2390, 2385, N'绿园区', NULL, N'LYQ', 5, N'0,2384,2385,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2391, 2385, N'双阳区', NULL, N'SYQ', 6, N'0,2384,2385,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2392, 2385, N'农安县', NULL, N'NAX', 7, N'0,2384,2385,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2393, 2385, N'九台市', NULL, N'JTS', 8, N'0,2384,2385,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2394, 2385, N'榆树市', NULL, N'YSS', 9, N'0,2384,2385,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2395, 2385, N'德惠市', NULL, N'DHS', 10, N'0,2384,2385,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2396, 2385, N'高新技术产业开发区', NULL, N'GXJSCYKFQ', 11, N'0,2384,2385,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2397, 2385, N'汽车产业开发区', NULL, N'QCCYKFQ', 12, N'0,2384,2385,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2398, 2385, N'经济技术开发区', NULL, N'JJJSKFQ', 13, N'0,2384,2385,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2399, 2385, N'净月旅游开发区', NULL, N'JYLYKFQ', 14, N'0,2384,2385,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2400, 2385, N'其他区', NULL, N'QTQ', 15, N'0,2384,2385,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2401, 2384, N'吉林市', NULL, N'JLS', 2, N'0,2384,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2402, 2401, N'昌邑区', NULL, N'CYQ', 1, N'0,2384,2401,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2403, 2401, N'龙潭区', NULL, N'LTQ', 2, N'0,2384,2401,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2404, 2401, N'船营区', NULL, N'CYQ', 3, N'0,2384,2401,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2405, 2401, N'丰满区', NULL, N'FMQ', 4, N'0,2384,2401,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2406, 2401, N'永吉县', NULL, N'YJX', 5, N'0,2384,2401,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2407, 2401, N'蛟河市', NULL, N'JHS', 6, N'0,2384,2401,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2408, 2401, N'桦甸市', NULL, N'HDS', 7, N'0,2384,2401,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2409, 2401, N'舒兰市', NULL, N'SLS', 8, N'0,2384,2401,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2410, 2401, N'盘石市', NULL, N'PSS', 9, N'0,2384,2401,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2411, 2401, N'其他区', NULL, N'QTQ', 10, N'0,2384,2401,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2412, 2384, N'四平市', NULL, N'SPS', 3, N'0,2384,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2413, 2412, N'铁西区', NULL, N'TXQ', 1, N'0,2384,2412,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2414, 2412, N'铁东区', NULL, N'TDQ', 2, N'0,2384,2412,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2415, 2412, N'梨树县', NULL, N'LSX', 3, N'0,2384,2412,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2416, 2412, N'伊通满族自治县', NULL, N'YTMZZZX', 4, N'0,2384,2412,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2417, 2412, N'公主岭市', NULL, N'GZLS', 5, N'0,2384,2412,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2418, 2412, N'双辽市', NULL, N'SLS', 6, N'0,2384,2412,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2419, 2412, N'其他区', NULL, N'QTQ', 7, N'0,2384,2412,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2420, 2384, N'辽源市', NULL, N'LYS', 4, N'0,2384,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2421, 2420, N'龙山区', NULL, N'LSQ', 1, N'0,2384,2420,', 3)
GO
print 'Processed 2300 total records'
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2422, 2420, N'西安区', NULL, N'XAQ', 2, N'0,2384,2420,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2423, 2420, N'东丰县', NULL, N'DFX', 3, N'0,2384,2420,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2424, 2420, N'东辽县', NULL, N'DLX', 4, N'0,2384,2420,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2425, 2420, N'其他区', NULL, N'QTQ', 5, N'0,2384,2420,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2426, 2384, N'通化市', NULL, N'THS', 5, N'0,2384,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2427, 2426, N'东昌区', NULL, N'DCQ', 1, N'0,2384,2426,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2428, 2426, N'二道江区', NULL, N'EDJQ', 2, N'0,2384,2426,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2429, 2426, N'通化县', NULL, N'THX', 3, N'0,2384,2426,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2430, 2426, N'辉南县', NULL, N'HNX', 4, N'0,2384,2426,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2431, 2426, N'柳河县', NULL, N'LHX', 5, N'0,2384,2426,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2432, 2426, N'梅河口市', NULL, N'MHKS', 6, N'0,2384,2426,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2433, 2426, N'集安市', NULL, N'JAS', 7, N'0,2384,2426,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2434, 2426, N'其他区', NULL, N'QTQ', 8, N'0,2384,2426,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2435, 2384, N'白山市', NULL, N'BSS', 6, N'0,2384,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2436, 2435, N'八道江区', NULL, N'BDJQ', 1, N'0,2384,2435,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2437, 2435, N'抚松县', NULL, N'FSX', 2, N'0,2384,2435,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2438, 2435, N'靖宇县', NULL, N'JYX', 3, N'0,2384,2435,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2439, 2435, N'长白朝鲜族自治县', NULL, N'CBCXZZZX', 4, N'0,2384,2435,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2440, 2435, N'江源县', NULL, N'JYX', 5, N'0,2384,2435,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2441, 2435, N'临江市', NULL, N'LJS', 6, N'0,2384,2435,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2442, 2435, N'其他区', NULL, N'QTQ', 7, N'0,2384,2435,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2443, 2384, N'松原市', NULL, N'SYS', 7, N'0,2384,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2444, 2443, N'宁江区', NULL, N'NJQ', 1, N'0,2384,2443,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2445, 2443, N'前郭尔罗斯蒙古族自治县', NULL, N'QGELSMGZZZX', 2, N'0,2384,2443,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2446, 2443, N'长岭县', NULL, N'CLX', 3, N'0,2384,2443,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2447, 2443, N'干安县', NULL, N'GAX', 4, N'0,2384,2443,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2448, 2443, N'扶余县', NULL, N'FYX', 5, N'0,2384,2443,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2449, 2443, N'其他区', NULL, N'QTQ', 6, N'0,2384,2443,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2450, 2384, N'白城市', NULL, N'BCS', 8, N'0,2384,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2451, 2450, N'洮北区', NULL, N'TBQ', 1, N'0,2384,2450,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2452, 2450, N'镇赉县', NULL, N'ZLX', 2, N'0,2384,2450,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2453, 2450, N'通榆县', NULL, N'TYX', 3, N'0,2384,2450,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2454, 2450, N'洮南市', NULL, N'TNS', 4, N'0,2384,2450,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2455, 2450, N'大安市', NULL, N'DAS', 5, N'0,2384,2450,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2456, 2450, N'其他区', NULL, N'QTQ', 6, N'0,2384,2450,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2457, 2384, N'延边朝鲜族自治州', NULL, N'YBCXZZZZ', 9, N'0,2384,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2458, 2457, N'延吉市', NULL, N'YJS', 1, N'0,2384,2457,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2459, 2457, N'图们市', NULL, N'TMS', 2, N'0,2384,2457,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2460, 2457, N'敦化市', NULL, N'DHS', 3, N'0,2384,2457,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2461, 2457, N'珲春市', NULL, N'HCS', 4, N'0,2384,2457,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2462, 2457, N'龙井市', NULL, N'LJS', 5, N'0,2384,2457,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2463, 2457, N'和龙市', NULL, N'HLS', 6, N'0,2384,2457,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2464, 2457, N'汪清县', NULL, N'WQX', 7, N'0,2384,2457,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2465, 2457, N'安图县', NULL, N'ATX', 8, N'0,2384,2457,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2466, 2457, N'其他区', NULL, N'QTQ', 9, N'0,2384,2457,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (5, 2467, NULL, N'黑龙江省', NULL, N'HLJS', 21, N'0,', 1)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2468, 2467, N'哈尔滨市', NULL, N'HEBS', 1, N'0,2467,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2469, 2468, N'道里区', NULL, N'DLQ', 1, N'0,2467,2468,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2470, 2468, N'南岗区', NULL, N'NGQ', 2, N'0,2467,2468,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2471, 2468, N'道外区', NULL, N'DWQ', 3, N'0,2467,2468,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2472, 2468, N'香坊区', NULL, N'XFQ', 4, N'0,2467,2468,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2473, 2468, N'动力区', NULL, N'DLQ', 5, N'0,2467,2468,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2474, 2468, N'平房区', NULL, N'PFQ', 6, N'0,2467,2468,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2475, 2468, N'松北区', NULL, N'SBQ', 7, N'0,2467,2468,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2476, 2468, N'呼兰区', NULL, N'HLQ', 8, N'0,2467,2468,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2477, 2468, N'依兰县', NULL, N'YLX', 9, N'0,2467,2468,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2478, 2468, N'方正县', NULL, N'FZX', 10, N'0,2467,2468,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2479, 2468, N'宾县', NULL, N'BX', 11, N'0,2467,2468,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2480, 2468, N'巴彦县', NULL, N'BYX', 12, N'0,2467,2468,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2481, 2468, N'木兰县', NULL, N'MLX', 13, N'0,2467,2468,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2482, 2468, N'通河县', NULL, N'THX', 14, N'0,2467,2468,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2483, 2468, N'延寿县', NULL, N'YSX', 15, N'0,2467,2468,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2484, 2468, N'阿城市', NULL, N'ACS', 16, N'0,2467,2468,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2485, 2468, N'双城市', NULL, N'SCS', 17, N'0,2467,2468,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2486, 2468, N'尚志市', NULL, N'SZS', 18, N'0,2467,2468,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2487, 2468, N'五常市', NULL, N'WCS', 19, N'0,2467,2468,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2488, 2468, N'其他区', NULL, N'QTQ', 20, N'0,2467,2468,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2489, 2467, N'齐齐哈尔市', NULL, N'QQHES', 2, N'0,2467,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2490, 2489, N'龙沙区', NULL, N'LSQ', 1, N'0,2467,2489,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2491, 2489, N'建华区', NULL, N'JHQ', 2, N'0,2467,2489,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2492, 2489, N'铁锋区', NULL, N'TFQ', 3, N'0,2467,2489,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2493, 2489, N'昂昂溪区', NULL, N'AAXQ', 4, N'0,2467,2489,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2494, 2489, N'富拉尔基区', NULL, N'FLEJQ', 5, N'0,2467,2489,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2495, 2489, N'碾子山区', NULL, N'NZSQ', 6, N'0,2467,2489,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2496, 2489, N'梅里斯达翰尔族区', NULL, N'MLSDHEZQ', 7, N'0,2467,2489,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2497, 2489, N'龙江县', NULL, N'LJX', 8, N'0,2467,2489,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2498, 2489, N'依安县', NULL, N'YAX', 9, N'0,2467,2489,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2499, 2489, N'泰来县', NULL, N'TLX', 10, N'0,2467,2489,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2500, 2489, N'甘南县', NULL, N'GNX', 11, N'0,2467,2489,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2501, 2489, N'富裕县', NULL, N'FYX', 12, N'0,2467,2489,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2502, 2489, N'克山县', NULL, N'KSX', 13, N'0,2467,2489,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2503, 2489, N'克东县', NULL, N'KDX', 14, N'0,2467,2489,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2504, 2489, N'拜泉县', NULL, N'BQX', 15, N'0,2467,2489,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2505, 2489, N'讷河市', NULL, N'NHS', 16, N'0,2467,2489,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2506, 2489, N'其他区', NULL, N'QTQ', 17, N'0,2467,2489,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2507, 2467, N'鸡西市', NULL, N'JXS', 3, N'0,2467,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2508, 2507, N'鸡冠区', NULL, N'JGQ', 1, N'0,2467,2507,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2509, 2507, N'恒山区', NULL, N'HSQ', 2, N'0,2467,2507,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2510, 2507, N'滴道区', NULL, N'DDQ', 3, N'0,2467,2507,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2511, 2507, N'梨树区', NULL, N'LSQ', 4, N'0,2467,2507,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2512, 2507, N'城子河区', NULL, N'CZHQ', 5, N'0,2467,2507,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2513, 2507, N'麻山区', NULL, N'MSQ', 6, N'0,2467,2507,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2514, 2507, N'鸡东县', NULL, N'JDX', 7, N'0,2467,2507,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2515, 2507, N'虎林市', NULL, N'HLS', 8, N'0,2467,2507,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2516, 2507, N'密山市', NULL, N'MSS', 9, N'0,2467,2507,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2517, 2507, N'其他区', NULL, N'QTQ', 10, N'0,2467,2507,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2518, 2467, N'鹤岗市', NULL, N'HGS', 4, N'0,2467,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2519, 2518, N'向阳区', NULL, N'XYQ', 1, N'0,2467,2518,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2520, 2518, N'工农区', NULL, N'GNQ', 2, N'0,2467,2518,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2521, 2518, N'南山区', NULL, N'NSQ', 3, N'0,2467,2518,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2522, 2518, N'兴安区', NULL, N'XAQ', 4, N'0,2467,2518,', 3)
GO
print 'Processed 2400 total records'
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2523, 2518, N'东山区', NULL, N'DSQ', 5, N'0,2467,2518,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2524, 2518, N'兴山区', NULL, N'XSQ', 6, N'0,2467,2518,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2525, 2518, N'萝北县', NULL, N'LBX', 7, N'0,2467,2518,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2526, 2518, N'绥滨县', NULL, N'SBX', 8, N'0,2467,2518,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2527, 2518, N'其他区', NULL, N'QTQ', 9, N'0,2467,2518,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2528, 2467, N'双鸭山市', NULL, N'SYSS', 5, N'0,2467,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2529, 2528, N'尖山区', NULL, N'JSQ', 1, N'0,2467,2528,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2530, 2528, N'岭东区', NULL, N'LDQ', 2, N'0,2467,2528,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2531, 2528, N'四方台区', NULL, N'SFTQ', 3, N'0,2467,2528,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2532, 2528, N'宝山区', NULL, N'BSQ', 4, N'0,2467,2528,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2533, 2528, N'集贤县', NULL, N'JXX', 5, N'0,2467,2528,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2534, 2528, N'友谊县', NULL, N'YYX', 6, N'0,2467,2528,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2535, 2528, N'宝清县', NULL, N'BQX', 7, N'0,2467,2528,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2536, 2528, N'饶河县', NULL, N'RHX', 8, N'0,2467,2528,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2537, 2528, N'其他区', NULL, N'QTQ', 9, N'0,2467,2528,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2538, 2467, N'大庆市', NULL, N'DQS', 6, N'0,2467,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2539, 2538, N'萨尔图区', NULL, N'SETQ', 1, N'0,2467,2538,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2540, 2538, N'龙凤区', NULL, N'LFQ', 2, N'0,2467,2538,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2541, 2538, N'让胡路区', NULL, N'RHLQ', 3, N'0,2467,2538,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2542, 2538, N'红岗区', NULL, N'HGQ', 4, N'0,2467,2538,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2543, 2538, N'大同区', NULL, N'DTQ', 5, N'0,2467,2538,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2544, 2538, N'肇州县', NULL, N'ZZX', 6, N'0,2467,2538,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2545, 2538, N'肇源县', NULL, N'ZYX', 7, N'0,2467,2538,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2546, 2538, N'林甸县', NULL, N'LDX', 8, N'0,2467,2538,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2547, 2538, N'杜尔伯特蒙古族自治县', NULL, N'DEBTMGZZZX', 9, N'0,2467,2538,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2548, 2538, N'其他区', NULL, N'QTQ', 10, N'0,2467,2538,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2549, 2467, N'伊春市', NULL, N'YCS', 7, N'0,2467,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2550, 2549, N'伊春区', NULL, N'YCQ', 1, N'0,2467,2549,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2551, 2549, N'南岔区', NULL, N'NCQ', 2, N'0,2467,2549,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2552, 2549, N'友好区', NULL, N'YHQ', 3, N'0,2467,2549,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2553, 2549, N'西林区', NULL, N'XLQ', 4, N'0,2467,2549,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2554, 2549, N'翠峦区', NULL, N'CLQ', 5, N'0,2467,2549,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2555, 2549, N'新青区', NULL, N'XQQ', 6, N'0,2467,2549,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2556, 2549, N'美溪区', NULL, N'MXQ', 7, N'0,2467,2549,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2557, 2549, N'金山屯区', NULL, N'JSTQ', 8, N'0,2467,2549,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2558, 2549, N'五营区', NULL, N'WYQ', 9, N'0,2467,2549,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2559, 2549, N'乌马河区', NULL, N'WMHQ', 10, N'0,2467,2549,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2560, 2549, N'汤旺河区', NULL, N'TWHQ', 11, N'0,2467,2549,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2561, 2549, N'带岭区', NULL, N'DLQ', 12, N'0,2467,2549,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2562, 2549, N'乌伊岭区', NULL, N'WYLQ', 13, N'0,2467,2549,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2563, 2549, N'红星区', NULL, N'HXQ', 14, N'0,2467,2549,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2564, 2549, N'上甘岭区', NULL, N'SGLQ', 15, N'0,2467,2549,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2565, 2549, N'嘉荫县', NULL, N'JYX', 16, N'0,2467,2549,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2566, 2549, N'铁力市', NULL, N'TLS', 17, N'0,2467,2549,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2567, 2549, N'其他区', NULL, N'QTQ', 18, N'0,2467,2549,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2568, 2467, N'佳木斯市', NULL, N'JMSS', 8, N'0,2467,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2569, 2568, N'永红区', NULL, N'YHQ', 1, N'0,2467,2568,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2570, 2568, N'向阳区', NULL, N'XYQ', 2, N'0,2467,2568,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2571, 2568, N'前进区', NULL, N'QJQ', 3, N'0,2467,2568,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2572, 2568, N'东风区', NULL, N'DFQ', 4, N'0,2467,2568,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2573, 2568, N'郊区', NULL, N'JQ', 5, N'0,2467,2568,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2574, 2568, N'桦南县', NULL, N'HNX', 6, N'0,2467,2568,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2575, 2568, N'桦川县', NULL, N'HCX', 7, N'0,2467,2568,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2576, 2568, N'汤原县', NULL, N'TYX', 8, N'0,2467,2568,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2577, 2568, N'抚远县', NULL, N'FYX', 9, N'0,2467,2568,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2578, 2568, N'同江市', NULL, N'TJS', 10, N'0,2467,2568,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2579, 2568, N'富锦市', NULL, N'FJS', 11, N'0,2467,2568,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2580, 2568, N'其他区', NULL, N'QTQ', 12, N'0,2467,2568,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2581, 2467, N'七台河市', NULL, N'QTHS', 9, N'0,2467,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2582, 2581, N'新兴区', NULL, N'XXQ', 1, N'0,2467,2581,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2583, 2581, N'桃山区', NULL, N'TSQ', 2, N'0,2467,2581,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2584, 2581, N'茄子河区', NULL, N'QZHQ', 3, N'0,2467,2581,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2585, 2581, N'勃利县', NULL, N'BLX', 4, N'0,2467,2581,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2586, 2581, N'其他区', NULL, N'QTQ', 5, N'0,2467,2581,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2587, 2467, N'牡丹江市', NULL, N'MDJS', 10, N'0,2467,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2588, 2587, N'东安区', NULL, N'DAQ', 1, N'0,2467,2587,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2589, 2587, N'阳明区', NULL, N'YMQ', 2, N'0,2467,2587,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2590, 2587, N'爱民区', NULL, N'AMQ', 3, N'0,2467,2587,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2591, 2587, N'西安区', NULL, N'XAQ', 4, N'0,2467,2587,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2592, 2587, N'东宁县', NULL, N'DNX', 5, N'0,2467,2587,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2593, 2587, N'林口县', NULL, N'LKX', 6, N'0,2467,2587,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2594, 2587, N'绥芬河市', NULL, N'SFHS', 7, N'0,2467,2587,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2595, 2587, N'海林市', NULL, N'HLS', 8, N'0,2467,2587,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2596, 2587, N'宁安市', NULL, N'NAS', 9, N'0,2467,2587,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2597, 2587, N'穆棱市', NULL, N'MLS', 10, N'0,2467,2587,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2598, 2587, N'其他区', NULL, N'QTQ', 12, N'0,2467,2587,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2599, 2467, N'黑河市', NULL, N'HHS', 11, N'0,2467,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2600, 2599, N'爱辉区', NULL, N'AHQ', 1, N'0,2467,2599,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2601, 2599, N'嫩江县', NULL, N'NJX', 2, N'0,2467,2599,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2602, 2599, N'逊克县', NULL, N'XKX', 3, N'0,2467,2599,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2603, 2599, N'孙吴县', NULL, N'SWX', 4, N'0,2467,2599,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2604, 2599, N'北安市', NULL, N'BAS', 5, N'0,2467,2599,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2605, 2599, N'五大连池市', NULL, N'WDLCS', 6, N'0,2467,2599,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2606, 2599, N'其他区', NULL, N'QTQ', 7, N'0,2467,2599,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2607, 2467, N'绥化市', NULL, N'SHS', 12, N'0,2467,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2608, 2607, N'北林区', NULL, N'BLQ', 1, N'0,2467,2607,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2609, 2607, N'望奎县', NULL, N'WKX', 2, N'0,2467,2607,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2610, 2607, N'兰西县', NULL, N'LXX', 3, N'0,2467,2607,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2611, 2607, N'青冈县', NULL, N'QGX', 4, N'0,2467,2607,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2612, 2607, N'庆安县', NULL, N'QAX', 5, N'0,2467,2607,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2613, 2607, N'明水县', NULL, N'MSX', 6, N'0,2467,2607,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2614, 2607, N'绥棱县', NULL, N'SLX', 7, N'0,2467,2607,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2615, 2607, N'安达市', NULL, N'ADS', 8, N'0,2467,2607,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2616, 2607, N'肇东市', NULL, N'ZDS', 9, N'0,2467,2607,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2617, 2607, N'海伦市', NULL, N'HLS', 10, N'0,2467,2607,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2618, 2607, N'其他区', NULL, N'QTQ', 11, N'0,2467,2607,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2619, 2467, N'大兴安岭地区', NULL, N'DXALDQ', 13, N'0,2467,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2620, 2619, N'呼玛县', NULL, N'HMX', 1, N'0,2467,2619,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2621, 2619, N'塔河县', NULL, N'THX', 2, N'0,2467,2619,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2622, 2619, N'漠河县', NULL, N'MHX', 3, N'0,2467,2619,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2623, 2619, N'加格达奇区', NULL, N'JGDQQ', 4, N'0,2467,2619,', 3)
GO
print 'Processed 2500 total records'
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2624, 2619, N'其他区', NULL, N'QTQ', 5, N'0,2467,2619,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (6, 2625, NULL, N'新疆', NULL, N'XJ', 22, N'0,', 1)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2626, 2625, N'乌鲁木齐市', NULL, N'WLMQS', 1, N'0,2625,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2627, 2626, N'天山区', NULL, N'TSQ', 1, N'0,2625,2626,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2628, 2626, N'沙依巴克区', NULL, N'SYBKQ', 2, N'0,2625,2626,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2629, 2626, N'新市区', NULL, N'XSQ', 3, N'0,2625,2626,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2630, 2626, N'水磨沟区', NULL, N'SMGQ', 4, N'0,2625,2626,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2631, 2626, N'头屯河区', NULL, N'TTHQ', 5, N'0,2625,2626,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2632, 2626, N'达阪城区', NULL, N'DBCQ', 6, N'0,2625,2626,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2633, 2626, N'东山区', NULL, N'DSQ', 7, N'0,2625,2626,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2634, 2626, N'乌鲁木齐县', NULL, N'WLMQX', 8, N'0,2625,2626,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2635, 2626, N'其他区', NULL, N'QTQ', 9, N'0,2625,2626,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2636, 2625, N'克拉玛依市', NULL, N'KLMYS', 2, N'0,2625,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2637, 2636, N'独山子区', NULL, N'DSZQ', 1, N'0,2625,2636,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2638, 2636, N'克拉玛依区', NULL, N'KLMYQ', 2, N'0,2625,2636,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2639, 2636, N'白碱滩区', NULL, N'BJTQ', 3, N'0,2625,2636,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2640, 2636, N'乌尔禾区', NULL, N'WEHQ', 4, N'0,2625,2636,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2641, 2636, N'其他区', NULL, N'QTQ', 5, N'0,2625,2636,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2642, 2625, N'吐鲁番地区', NULL, N'TLFDQ', 3, N'0,2625,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2643, 2642, N'吐鲁番市', NULL, N'TLFS', 1, N'0,2625,2642,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2644, 2642, N'鄯善县', NULL, N'SSX', 2, N'0,2625,2642,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2645, 2642, N'托克逊县', NULL, N'TKXX', 3, N'0,2625,2642,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2646, 2642, N'其他区', NULL, N'QTQ', 4, N'0,2625,2642,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2647, 2625, N'哈密地区', NULL, N'HMDQ', 4, N'0,2625,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2648, 2647, N'哈密市', NULL, N'HMS', 1, N'0,2625,2647,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2649, 2647, N'巴里坤哈萨克自治县', NULL, N'BLKHSKZZX', 2, N'0,2625,2647,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2650, 2647, N'伊吾县', NULL, N'YWX', 3, N'0,2625,2647,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2651, 2647, N'其他区', NULL, N'QTQ', 4, N'0,2625,2647,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2652, 2625, N'昌吉回族自治州', NULL, N'CJHZZZZ', 5, N'0,2625,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2653, 2652, N'昌吉市', NULL, N'CJS', 1, N'0,2625,2652,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2654, 2652, N'阜康市', NULL, N'FKS', 2, N'0,2625,2652,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2655, 2652, N'米泉市', NULL, N'MQS', 3, N'0,2625,2652,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2656, 2652, N'呼图壁县', NULL, N'HTBX', 4, N'0,2625,2652,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2657, 2652, N'玛纳斯县', NULL, N'MNSX', 5, N'0,2625,2652,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2658, 2652, N'吉木萨尔县', NULL, N'JMSEX', 6, N'0,2625,2652,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2659, 2652, N'木垒哈萨克自治县', NULL, N'MLHSKZZX', 7, N'0,2625,2652,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2660, 2652, N'奇台县', NULL, N'QTX', 8, N'0,2625,2652,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2661, 2652, N'其他区', NULL, N'QTQ', 9, N'0,2625,2652,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2662, 2625, N'博尔塔拉蒙古自治州', NULL, N'BETLMGZZZ', 6, N'0,2625,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2663, 2662, N'博乐市', NULL, N'BLS', 1, N'0,2625,2662,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2664, 2662, N'精河县', NULL, N'JHX', 2, N'0,2625,2662,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2665, 2662, N'温泉县', NULL, N'WQX', 3, N'0,2625,2662,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2666, 2662, N'其他区', NULL, N'QTQ', 4, N'0,2625,2662,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2667, 2625, N'巴音郭楞蒙古自治州', NULL, N'BYGLMGZZZ', 7, N'0,2625,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2668, 2667, N'库尔勒市', NULL, N'KELS', 1, N'0,2625,2667,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2669, 2667, N'轮台县', NULL, N'LTX', 2, N'0,2625,2667,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2670, 2667, N'尉犁县', NULL, N'WLX', 3, N'0,2625,2667,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2671, 2667, N'若羌县', NULL, N'RQX', 4, N'0,2625,2667,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2672, 2667, N'且末县', NULL, N'QMX', 5, N'0,2625,2667,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2673, 2667, N'焉耆回族自治县', NULL, N'YQHZZZX', 6, N'0,2625,2667,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2674, 2667, N'和静县', NULL, N'HJX', 7, N'0,2625,2667,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2675, 2667, N'和硕县', NULL, N'HSX', 8, N'0,2625,2667,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2676, 2667, N'博湖县', NULL, N'BHX', 9, N'0,2625,2667,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2677, 2667, N'其他区', NULL, N'QTQ', 10, N'0,2625,2667,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2678, 2625, N'阿克苏地区', NULL, N'AKSDQ', 8, N'0,2625,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2679, 2678, N'阿克苏市', NULL, N'AKSS', 1, N'0,2625,2678,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2680, 2678, N'温宿县', NULL, N'WSX', 2, N'0,2625,2678,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2681, 2678, N'库车县', NULL, N'KCX', 3, N'0,2625,2678,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2682, 2678, N'沙雅县', NULL, N'SYX', 4, N'0,2625,2678,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2683, 2678, N'新和县', NULL, N'XHX', 5, N'0,2625,2678,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2684, 2678, N'拜城县', NULL, N'BCX', 6, N'0,2625,2678,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2685, 2678, N'乌什县', NULL, N'WSX', 7, N'0,2625,2678,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2686, 2678, N'阿瓦提县', NULL, N'AWTX', 8, N'0,2625,2678,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2687, 2678, N'柯坪县', NULL, N'KPX', 9, N'0,2625,2678,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2688, 2678, N'其他区', NULL, N'QTQ', 10, N'0,2625,2678,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2689, 2625, N'克孜勒苏柯尔克孜自治州', NULL, N'KZLSKEKZZZZ', 9, N'0,2625,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2690, 2689, N'阿图什市', NULL, N'ATSS', 1, N'0,2625,2689,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2691, 2689, N'阿克陶县', NULL, N'AKTX', 2, N'0,2625,2689,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2692, 2689, N'阿合奇县', NULL, N'AHQX', 3, N'0,2625,2689,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2693, 2689, N'乌恰县', NULL, N'WQX', 4, N'0,2625,2689,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2694, 2689, N'其他区', NULL, N'QTQ', 5, N'0,2625,2689,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2695, 2625, N'喀什地区', NULL, N'KSDQ', 10, N'0,2625,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2696, 2695, N'喀什市', NULL, N'KSS', 1, N'0,2625,2695,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2697, 2695, N'疏附县', NULL, N'SFX', 2, N'0,2625,2695,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2698, 2695, N'疏勒县', NULL, N'SLX', 3, N'0,2625,2695,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2699, 2695, N'英吉沙县', NULL, N'YJSX', 4, N'0,2625,2695,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2700, 2695, N'泽普县', NULL, N'ZPX', 5, N'0,2625,2695,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2701, 2695, N'莎车县', NULL, N'SCX', 6, N'0,2625,2695,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2702, 2695, N'叶城县', NULL, N'YCX', 7, N'0,2625,2695,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2703, 2695, N'麦盖提县', NULL, N'MGTX', 8, N'0,2625,2695,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2704, 2695, N'岳普湖县', NULL, N'YPHX', 9, N'0,2625,2695,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2705, 2695, N'伽师县', NULL, N'GSX', 10, N'0,2625,2695,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2706, 2695, N'巴楚县', NULL, N'BCX', 11, N'0,2625,2695,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2707, 2695, N'塔什库尔干塔吉克自治县', NULL, N'TSKEGTJKZZX', 12, N'0,2625,2695,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2708, 2695, N'其他区', NULL, N'QTQ', 13, N'0,2625,2695,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2709, 2625, N'和田地区', NULL, N'HTDQ', 11, N'0,2625,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2710, 2709, N'和田市', NULL, N'HTS', 1, N'0,2625,2709,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2711, 2709, N'和田县', NULL, N'HTX', 2, N'0,2625,2709,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2712, 2709, N'墨玉县', NULL, N'MYX', 3, N'0,2625,2709,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2713, 2709, N'皮山县', NULL, N'PSX', 4, N'0,2625,2709,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2714, 2709, N'洛浦县', NULL, N'LPX', 5, N'0,2625,2709,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2715, 2709, N'策勒县', NULL, N'CLX', 6, N'0,2625,2709,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2716, 2709, N'于田县', NULL, N'YTX', 7, N'0,2625,2709,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2717, 2709, N'民丰县', NULL, N'MFX', 8, N'0,2625,2709,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2718, 2709, N'其他区', NULL, N'QTQ', 9, N'0,2625,2709,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2719, 2625, N'伊犁哈萨克自治州', NULL, N'YLHSKZZZ', 12, N'0,2625,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2720, 2719, N'伊宁市', NULL, N'YNS', 1, N'0,2625,2719,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2721, 2719, N'奎屯市', NULL, N'KTS', 2, N'0,2625,2719,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2722, 2719, N'伊宁县', NULL, N'YNX', 3, N'0,2625,2719,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2723, 2719, N'察布查尔锡伯自治县', NULL, N'CBCEXBZZX', 4, N'0,2625,2719,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2724, 2719, N'霍城县', NULL, N'HCX', 5, N'0,2625,2719,', 3)
GO
print 'Processed 2600 total records'
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2725, 2719, N'巩留县', NULL, N'GLX', 6, N'0,2625,2719,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2726, 2719, N'新源县', NULL, N'XYX', 7, N'0,2625,2719,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2727, 2719, N'昭苏县', NULL, N'ZSX', 8, N'0,2625,2719,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2728, 2719, N'特克斯县', NULL, N'TKSX', 9, N'0,2625,2719,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2729, 2719, N'尼勒克县', NULL, N'NLKX', 10, N'0,2625,2719,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2730, 2719, N'其他区', NULL, N'QTQ', 11, N'0,2625,2719,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2731, 2625, N'塔城地区', NULL, N'TCDQ', 13, N'0,2625,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2732, 2731, N'塔城市', NULL, N'TCS', 1, N'0,2625,2731,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2733, 2731, N'乌苏市', NULL, N'WSS', 2, N'0,2625,2731,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2734, 2731, N'额敏县', NULL, N'EMX', 3, N'0,2625,2731,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2735, 2731, N'沙湾县', NULL, N'SWX', 4, N'0,2625,2731,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2736, 2731, N'托里县', NULL, N'TLX', 5, N'0,2625,2731,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2737, 2731, N'裕民县', NULL, N'YMX', 6, N'0,2625,2731,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2738, 2731, N'和布克赛尔蒙古自治县', NULL, N'HBKSEMGZZX', 7, N'0,2625,2731,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2739, 2731, N'其他区', NULL, N'QTQ', 8, N'0,2625,2731,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2740, 2625, N'阿尔泰地区', NULL, N'AETDQ', 14, N'0,2625,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2741, 2740, N'阿尔泰市', NULL, N'AETS', 1, N'0,2625,2740,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2742, 2740, N'布尔津县', NULL, N'BEJX', 2, N'0,2625,2740,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2743, 2740, N'富蕴县', NULL, N'FYX', 3, N'0,2625,2740,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2744, 2740, N'福海县', NULL, N'FHX', 4, N'0,2625,2740,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2745, 2740, N'哈巴河县', NULL, N'HBHX', 5, N'0,2625,2740,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2746, 2740, N'青河县', NULL, N'QHX', 6, N'0,2625,2740,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2747, 2740, N'吉木乃县', NULL, N'JMNX', 7, N'0,2625,2740,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2748, 2740, N'其他区', NULL, N'QTQ', 8, N'0,2625,2740,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2749, 2625, N'石河子市', NULL, N'SHZS', 15, N'0,2625,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2750, 2625, N'阿拉尔市', NULL, N'ALES', 16, N'0,2625,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2751, 2625, N'图木舒克市', NULL, N'TMSKS', 17, N'0,2625,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2752, 2625, N'五家渠市', NULL, N'WJQS', 18, N'0,2625,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (6, 2753, NULL, N'陕西省', NULL, N'SXS', 23, N'0,', 1)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2754, 2753, N'西安市', NULL, N'XAS', 1, N'0,2753,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2755, 2754, N'新城区', NULL, N'XCQ', 1, N'0,2753,2754,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2756, 2754, N'碑林区', NULL, N'BLQ', 2, N'0,2753,2754,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2757, 2754, N'莲湖区', NULL, N'LHQ', 3, N'0,2753,2754,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2758, 2754, N'灞桥区', NULL, N'BQQ', 4, N'0,2753,2754,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2759, 2754, N'未央区', NULL, N'WYQ', 5, N'0,2753,2754,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2760, 2754, N'雁塔区', NULL, N'YTQ', 6, N'0,2753,2754,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2761, 2754, N'阎良区', NULL, N'YLQ', 7, N'0,2753,2754,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2762, 2754, N'临潼区', NULL, N'LTQ', 8, N'0,2753,2754,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2763, 2754, N'长安区', NULL, N'CAQ', 9, N'0,2753,2754,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2764, 2754, N'蓝田县', NULL, N'LTX', 10, N'0,2753,2754,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2765, 2754, N'周至县', NULL, N'ZZX', 11, N'0,2753,2754,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2766, 2754, N'户县', NULL, N'HX', 12, N'0,2753,2754,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2767, 2754, N'高陵县', NULL, N'GLX', 13, N'0,2753,2754,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2768, 2754, N'其他区', NULL, N'QTQ', 14, N'0,2753,2754,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2769, 2753, N'铜川市', NULL, N'TCS', 2, N'0,2753,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2770, 2769, N'王益区', NULL, N'WYQ', 1, N'0,2753,2769,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2771, 2769, N'印台区', NULL, N'YTQ', 2, N'0,2753,2769,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2772, 2769, N'耀州区', NULL, N'YZQ', 3, N'0,2753,2769,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2773, 2769, N'宜君县', NULL, N'YJX', 4, N'0,2753,2769,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2774, 2769, N'其他区', NULL, N'QTQ', 5, N'0,2753,2769,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2775, 2753, N'宝鸡市', NULL, N'BJS', 3, N'0,2753,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2776, 2775, N'渭滨区', NULL, N'WBQ', 1, N'0,2753,2775,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2777, 2775, N'金台区', NULL, N'JTQ', 2, N'0,2753,2775,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2778, 2775, N'陈仓区', NULL, N'CCQ', 3, N'0,2753,2775,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2779, 2775, N'凤翔县', NULL, N'FXX', 4, N'0,2753,2775,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2780, 2775, N'岐山县', NULL, N'QSX', 5, N'0,2753,2775,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2781, 2775, N'扶风县', NULL, N'FFX', 6, N'0,2753,2775,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2782, 2775, N'眉县', NULL, N'MX', 7, N'0,2753,2775,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2783, 2775, N'陇县', NULL, N'LX', 8, N'0,2753,2775,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2784, 2775, N'千阳县', NULL, N'QYX', 9, N'0,2753,2775,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2785, 2775, N'麟游县', NULL, N'LYX', 10, N'0,2753,2775,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2786, 2775, N'凤县', NULL, N'FX', 11, N'0,2753,2775,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2787, 2775, N'太白县', NULL, N'TBX', 12, N'0,2753,2775,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2788, 2775, N'其他区', NULL, N'QTQ', 13, N'0,2753,2775,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2789, 2753, N'咸阳市', NULL, N'XYS', 4, N'0,2753,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2790, 2789, N'秦都区', NULL, N'QDQ', 1, N'0,2753,2789,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2791, 2789, N'杨凌区', NULL, N'YLQ', 2, N'0,2753,2789,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2792, 2789, N'渭城区', NULL, N'WCQ', 3, N'0,2753,2789,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2793, 2789, N'三原县', NULL, N'SYX', 4, N'0,2753,2789,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2794, 2789, N'泾阳县', NULL, N'JYX', 5, N'0,2753,2789,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2795, 2789, N'干县', NULL, N'GX', 6, N'0,2753,2789,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2796, 2789, N'礼泉县', NULL, N'LQX', 7, N'0,2753,2789,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2797, 2789, N'永寿县', NULL, N'YSX', 8, N'0,2753,2789,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2798, 2789, N'彬县', NULL, N'BX', 9, N'0,2753,2789,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2799, 2789, N'长武县', NULL, N'CWX', 10, N'0,2753,2789,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2800, 2789, N'旬邑县', NULL, N'XYX', 11, N'0,2753,2789,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2801, 2789, N'淳化县', NULL, N'CHX', 12, N'0,2753,2789,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2802, 2789, N'武功县', NULL, N'WGX', 13, N'0,2753,2789,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2803, 2789, N'兴平市', NULL, N'XPS', 14, N'0,2753,2789,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2804, 2789, N'其他区', NULL, N'QTQ', 15, N'0,2753,2789,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2805, 2753, N'渭南市', NULL, N'WNS', 5, N'0,2753,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2806, 2805, N'临渭区', NULL, N'LWQ', 1, N'0,2753,2805,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2807, 2805, N'华县', NULL, N'HX', 2, N'0,2753,2805,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2808, 2805, N'潼关县', NULL, N'TGX', 3, N'0,2753,2805,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2809, 2805, N'大荔县', NULL, N'DLX', 4, N'0,2753,2805,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2810, 2805, N'合阳县', NULL, N'HYX', 5, N'0,2753,2805,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2811, 2805, N'澄城县', NULL, N'CCX', 6, N'0,2753,2805,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2812, 2805, N'蒲城县', NULL, N'PCX', 7, N'0,2753,2805,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2813, 2805, N'白水县', NULL, N'BSX', 8, N'0,2753,2805,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2814, 2805, N'富平县', NULL, N'FPX', 9, N'0,2753,2805,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2815, 2805, N'韩城市', NULL, N'HCS', 10, N'0,2753,2805,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2816, 2805, N'华阴市', NULL, N'HYS', 11, N'0,2753,2805,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2817, 2805, N'其他区', NULL, N'QTQ', 12, N'0,2753,2805,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2818, 2753, N'延安市', NULL, N'YAS', 6, N'0,2753,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2819, 2818, N'宝塔区', NULL, N'BTQ', 1, N'0,2753,2818,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2820, 2818, N'延长县', NULL, N'YCX', 2, N'0,2753,2818,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2821, 2818, N'延川县', NULL, N'YCX', 3, N'0,2753,2818,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2822, 2818, N'子长县', NULL, N'ZCX', 4, N'0,2753,2818,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2823, 2818, N'安塞县', NULL, N'ASX', 5, N'0,2753,2818,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2824, 2818, N'志丹县', NULL, N'ZDX', 6, N'0,2753,2818,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2825, 2818, N'吴起县', NULL, N'WQX', 7, N'0,2753,2818,', 3)
GO
print 'Processed 2700 total records'
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2826, 2818, N'甘泉县', NULL, N'GQX', 8, N'0,2753,2818,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2827, 2818, N'富县', NULL, N'FX', 9, N'0,2753,2818,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2828, 2818, N'洛川县', NULL, N'LCX', 10, N'0,2753,2818,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2829, 2818, N'宜川县', NULL, N'YCX', 11, N'0,2753,2818,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2830, 2818, N'黄龙县', NULL, N'HLX', 12, N'0,2753,2818,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2831, 2818, N'黄陵县', NULL, N'HLX', 13, N'0,2753,2818,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2832, 2818, N'其他区', NULL, N'QTQ', 14, N'0,2753,2818,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2833, 2753, N'汉中市', NULL, N'HZS', 7, N'0,2753,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2834, 2833, N'汉台区', NULL, N'HTQ', 1, N'0,2753,2833,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2835, 2833, N'南郑县', NULL, N'NZX', 2, N'0,2753,2833,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2836, 2833, N'城固县', NULL, N'CGX', 3, N'0,2753,2833,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2837, 2833, N'洋县', NULL, N'YX', 4, N'0,2753,2833,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2838, 2833, N'西乡县', NULL, N'XXX', 5, N'0,2753,2833,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2839, 2833, N'勉县', NULL, N'MX', 6, N'0,2753,2833,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2840, 2833, N'宁强县', NULL, N'NQX', 7, N'0,2753,2833,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2841, 2833, N'略阳县', NULL, N'LYX', 8, N'0,2753,2833,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2842, 2833, N'镇巴县', NULL, N'ZBX', 9, N'0,2753,2833,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2843, 2833, N'留坝县', NULL, N'LBX', 10, N'0,2753,2833,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2844, 2833, N'佛坪县', NULL, N'FPX', 11, N'0,2753,2833,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2845, 2833, N'其他区', NULL, N'QTQ', 12, N'0,2753,2833,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2846, 2753, N'榆林市', NULL, N'YLS', 8, N'0,2753,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2847, 2846, N'榆阳区', NULL, N'YYQ', 1, N'0,2753,2846,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2848, 2846, N'神木县', NULL, N'SMX', 2, N'0,2753,2846,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2849, 2846, N'府谷县', NULL, N'FGX', 3, N'0,2753,2846,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2850, 2846, N'横山县', NULL, N'HSX', 4, N'0,2753,2846,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2851, 2846, N'靖边县', NULL, N'JBX', 5, N'0,2753,2846,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2852, 2846, N'定边县', NULL, N'DBX', 6, N'0,2753,2846,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2853, 2846, N'绥德县', NULL, N'SDX', 7, N'0,2753,2846,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2854, 2846, N'米脂县', NULL, N'MZX', 8, N'0,2753,2846,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2855, 2846, N'佳县', NULL, N'JX', 9, N'0,2753,2846,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2856, 2846, N'吴堡县', NULL, N'WBX', 10, N'0,2753,2846,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2857, 2846, N'清涧县', NULL, N'QJX', 11, N'0,2753,2846,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2858, 2846, N'子洲县', NULL, N'ZZX', 12, N'0,2753,2846,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2859, 2846, N'其他区', NULL, N'QTQ', 13, N'0,2753,2846,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2860, 2753, N'安康市', NULL, N'AKS', 9, N'0,2753,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2861, 2860, N'汉滨区', NULL, N'HBQ', 1, N'0,2753,2860,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2862, 2860, N'汉阴县', NULL, N'HYX', 2, N'0,2753,2860,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2863, 2860, N'石泉县', NULL, N'SQX', 3, N'0,2753,2860,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2864, 2860, N'宁陕县', NULL, N'NSX', 4, N'0,2753,2860,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2865, 2860, N'紫阳县', NULL, N'ZYX', 5, N'0,2753,2860,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2866, 2860, N'岚皋县', NULL, N'LGX', 6, N'0,2753,2860,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2867, 2860, N'平利县', NULL, N'PLX', 7, N'0,2753,2860,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2868, 2860, N'镇坪县', NULL, N'ZPX', 8, N'0,2753,2860,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2869, 2860, N'旬阳县', NULL, N'XYX', 9, N'0,2753,2860,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2870, 2860, N'白河县', NULL, N'BHX', 10, N'0,2753,2860,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2871, 2860, N'其他区', NULL, N'QTQ', 11, N'0,2753,2860,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2872, 2753, N'商洛市', NULL, N'SLS', 10, N'0,2753,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2873, 2872, N'商州区', NULL, N'SZQ', 1, N'0,2753,2872,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2874, 2872, N'洛南县', NULL, N'LNX', 2, N'0,2753,2872,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2875, 2872, N'丹凤县', NULL, N'DFX', 3, N'0,2753,2872,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2876, 2872, N'商南县', NULL, N'SNX', 4, N'0,2753,2872,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2877, 2872, N'山阳县', NULL, N'SYX', 5, N'0,2753,2872,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2878, 2872, N'镇安县', NULL, N'ZAX', 6, N'0,2753,2872,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2879, 2872, N'柞水县', NULL, N'ZSX', 7, N'0,2753,2872,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2880, 2872, N'其他区', NULL, N'QTQ', 8, N'0,2753,2872,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (6, 2881, NULL, N'甘肃省', NULL, N'GSS', 24, N'0,', 1)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2882, 2881, N'兰州市', NULL, N'LZS', 1, N'0,2881,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2883, 2882, N'城关区', NULL, N'CGQ', 1, N'0,2881,2882,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2884, 2882, N'七里河区', NULL, N'QLHQ', 2, N'0,2881,2882,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2885, 2882, N'西固区', NULL, N'XGQ', 3, N'0,2881,2882,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2886, 2882, N'安宁区', NULL, N'ANQ', 4, N'0,2881,2882,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2887, 2882, N'红古区', NULL, N'HGQ', 5, N'0,2881,2882,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2888, 2882, N'永登县', NULL, N'YDX', 6, N'0,2881,2882,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2890, 2882, N'榆中县', NULL, N'YZX', 8, N'0,2881,2882,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2891, 2882, N'其他区', NULL, N'QTQ', 9, N'0,2881,2882,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2892, 2881, N'嘉峪关市', NULL, N'JYGS', 2, N'0,2881,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2893, 2881, N'金昌市', NULL, N'JCS', 3, N'0,2881,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2894, 2893, N'金川区', NULL, N'JCQ', 1, N'0,2881,2893,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2895, 2893, N'永昌县', NULL, N'YCX', 2, N'0,2881,2893,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2896, 2893, N'其他区', NULL, N'QTQ', 3, N'0,2881,2893,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2897, 2881, N'白银市', NULL, N'BYS', 4, N'0,2881,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2898, 2897, N'白银区', NULL, N'BYQ', 1, N'0,2881,2897,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2899, 2897, N'平川区', NULL, N'PCQ', 2, N'0,2881,2897,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2900, 2897, N'靖远县', NULL, N'JYX', 3, N'0,2881,2897,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2901, 2897, N'会宁县', NULL, N'HNX', 4, N'0,2881,2897,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2902, 2897, N'景泰县', NULL, N'JTX', 5, N'0,2881,2897,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2903, 2897, N'其他区', NULL, N'QTQ', 6, N'0,2881,2897,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2904, 2881, N'天水市', NULL, N'TSS', 5, N'0,2881,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2905, 2904, N'秦州区', NULL, N'QZQ', 1, N'0,2881,2904,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2906, 2904, N'麦积区', NULL, N'MJQ', 2, N'0,2881,2904,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2907, 2904, N'清水县', NULL, N'QSX', 3, N'0,2881,2904,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2908, 2904, N'秦安县', NULL, N'QAX', 4, N'0,2881,2904,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2909, 2904, N'甘谷县', NULL, N'GGX', 5, N'0,2881,2904,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2910, 2904, N'武山县', NULL, N'WSX', 6, N'0,2881,2904,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2911, 2904, N'张家川回族自治县', NULL, N'ZJCHZZZX', 7, N'0,2881,2904,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2912, 2904, N'其他区', NULL, N'QTQ', 8, N'0,2881,2904,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2913, 2881, N'武威市', NULL, N'WWS', 6, N'0,2881,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2914, 2913, N'凉州区', NULL, N'LZQ', 1, N'0,2881,2913,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2915, 2913, N'民勤县', NULL, N'MQX', 2, N'0,2881,2913,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2916, 2913, N'古浪县', NULL, N'GLX', 3, N'0,2881,2913,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2917, 2913, N'天祝藏族自治县', NULL, N'TZCZZZX', 4, N'0,2881,2913,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2918, 2913, N'其他区', NULL, N'QTQ', 5, N'0,2881,2913,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2919, 2881, N'张掖市', NULL, N'ZYS', 7, N'0,2881,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2920, 2919, N'甘州区', NULL, N'GZQ', 1, N'0,2881,2919,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2921, 2919, N'肃南裕固族自治县', NULL, N'SNYGZZZX', 2, N'0,2881,2919,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2922, 2919, N'民乐县', NULL, N'MLX', 3, N'0,2881,2919,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2923, 2919, N'临泽县', NULL, N'LZX', 4, N'0,2881,2919,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2924, 2919, N'高台县', NULL, N'GTX', 5, N'0,2881,2919,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2925, 2919, N'山丹县', NULL, N'SDX', 6, N'0,2881,2919,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2926, 2919, N'其他区', NULL, N'QTQ', 7, N'0,2881,2919,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2927, 2881, N'平凉市', NULL, N'PLS', 8, N'0,2881,', 2)
GO
print 'Processed 2800 total records'
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2928, 2927, N'崆峒区', NULL, N'KDQ', 1, N'0,2881,2927,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2929, 2927, N'泾川县', NULL, N'JCX', 2, N'0,2881,2927,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2930, 2927, N'灵台县', NULL, N'LTX', 3, N'0,2881,2927,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2931, 2927, N'崇信县', NULL, N'CXX', 4, N'0,2881,2927,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2932, 2927, N'华亭县', NULL, N'HTX', 5, N'0,2881,2927,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2933, 2927, N'庄浪县', NULL, N'ZLX', 6, N'0,2881,2927,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2934, 2927, N'静宁县', NULL, N'JNX', 7, N'0,2881,2927,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2935, 2927, N'其他区', NULL, N'QTQ', 8, N'0,2881,2927,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2936, 2881, N'酒泉市', NULL, N'JQS', 9, N'0,2881,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2937, 2936, N'肃州区', NULL, N'SZQ', 1, N'0,2881,2936,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2938, 2936, N'金塔县', NULL, N'JTX', 2, N'0,2881,2936,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2939, 2936, N'安西县', NULL, N'AXX', 3, N'0,2881,2936,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2940, 2936, N'苏北蒙古族自治县', NULL, N'SBMGZZZX', 4, N'0,2881,2936,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2941, 2936, N'阿克塞哈萨克族自治县', NULL, N'AKSHSKZZZX', 5, N'0,2881,2936,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2942, 2936, N'玉门市', NULL, N'YMS', 6, N'0,2881,2936,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2943, 2936, N'敦煌市', NULL, N'DHS', 7, N'0,2881,2936,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2944, 2936, N'其他区', NULL, N'QTQ', 8, N'0,2881,2936,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2945, 2881, N'庆阳市', NULL, N'QYS', 10, N'0,2881,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2946, 2945, N'西峰区', NULL, N'XFQ', 1, N'0,2881,2945,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2947, 2945, N'庆城县', NULL, N'QCX', 2, N'0,2881,2945,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2948, 2945, N'环县', NULL, N'HX', 3, N'0,2881,2945,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2949, 2945, N'华池县', NULL, N'HCX', 4, N'0,2881,2945,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2950, 2945, N'合水县', NULL, N'HSX', 5, N'0,2881,2945,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2951, 2945, N'正宁县', NULL, N'ZNX', 6, N'0,2881,2945,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2952, 2945, N'宁县', NULL, N'NX', 7, N'0,2881,2945,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2953, 2945, N'镇原县', NULL, N'ZYX', 8, N'0,2881,2945,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2954, 2945, N'其他区', NULL, N'QTQ', 9, N'0,2881,2945,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2955, 2881, N'定西市', NULL, N'DXS', 11, N'0,2881,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2956, 2955, N'安定区', NULL, N'ADQ', 1, N'0,2881,2955,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2957, 2955, N'通渭县', NULL, N'TWX', 2, N'0,2881,2955,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2958, 2955, N'陇西县', NULL, N'LXX', 3, N'0,2881,2955,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2959, 2955, N'渭源县', NULL, N'WYX', 4, N'0,2881,2955,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2960, 2955, N'临洮县', NULL, N'LTX', 5, N'0,2881,2955,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2961, 2955, N'漳县', NULL, N'ZX', 6, N'0,2881,2955,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2962, 2955, N'岷县', NULL, N'MX', 7, N'0,2881,2955,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2963, 2955, N'其他区', NULL, N'QTQ', 8, N'0,2881,2955,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2964, 2881, N'陇南市', NULL, N'LNS', 12, N'0,2881,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2965, 2964, N'武都区', NULL, N'WDQ', 1, N'0,2881,2964,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2966, 2964, N'成县', NULL, N'CX', 2, N'0,2881,2964,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2967, 2964, N'文县', NULL, N'WX', 3, N'0,2881,2964,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2968, 2964, N'宕昌县', NULL, N'DCX', 4, N'0,2881,2964,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2969, 2964, N'康县', NULL, N'KX', 5, N'0,2881,2964,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2970, 2964, N'西和县', NULL, N'XHX', 6, N'0,2881,2964,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2971, 2964, N'礼县', NULL, N'LX', 7, N'0,2881,2964,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2972, 2964, N'徽县', NULL, N'HX', 8, N'0,2881,2964,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2973, 2964, N'两当县', NULL, N'LDX', 9, N'0,2881,2964,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2974, 2964, N'其他区', NULL, N'QTQ', 10, N'0,2881,2964,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2975, 2881, N'临夏回族自治州', NULL, N'LXHZZZZ', 13, N'0,2881,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2976, 2975, N'临夏市', NULL, N'LXS', 1, N'0,2881,2975,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2977, 2975, N'临夏县', NULL, N'LXX', 2, N'0,2881,2975,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2978, 2975, N'康乐县', NULL, N'KLX', 3, N'0,2881,2975,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2979, 2975, N'永靖县', NULL, N'YJX', 4, N'0,2881,2975,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2980, 2975, N'广河县', NULL, N'GHX', 5, N'0,2881,2975,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2981, 2975, N'和政县', NULL, N'HZX', 6, N'0,2881,2975,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2982, 2975, N'东乡族自治县', NULL, N'DXZZZX', 7, N'0,2881,2975,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2983, 2975, N'积石山保安族东乡族撒拉族自治县', NULL, N'JSSBAZDXZSLZZZX', 8, N'0,2881,2975,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2984, 2975, N'其他区', NULL, N'QTQ', 9, N'0,2881,2975,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2985, 2881, N'甘南藏族自治州', NULL, N'GNCZZZZ', 14, N'0,2881,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2986, 2985, N'合作市', NULL, N'HZS', 1, N'0,2881,2985,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2987, 2985, N'临潭县', NULL, N'LTX', 2, N'0,2881,2985,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2988, 2985, N'卓尼县', NULL, N'ZNX', 3, N'0,2881,2985,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2989, 2985, N'舟曲县', NULL, N'ZQX', 4, N'0,2881,2985,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2990, 2985, N'迭部县', NULL, N'DBX', 5, N'0,2881,2985,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2991, 2985, N'玛曲县', NULL, N'MQX', 6, N'0,2881,2985,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2992, 2985, N'碌曲县', NULL, N'LQX', 7, N'0,2881,2985,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2993, 2985, N'夏河县', NULL, N'XHX', 8, N'0,2881,2985,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2994, 2985, N'其他区', NULL, N'QTQ', 9, N'0,2881,2985,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (6, 2995, NULL, N'青海省', NULL, N'QHS', 25, N'0,', 1)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2996, 2995, N'西宁市', NULL, N'XNS', 1, N'0,2995,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2997, 2996, N'城东区', NULL, N'CDQ', 1, N'0,2995,2996,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2998, 2996, N'城中区', NULL, N'CZQ', 2, N'0,2995,2996,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 2999, 2996, N'城西区', NULL, N'CXQ', 3, N'0,2995,2996,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3000, 2996, N'城北区', NULL, N'CBQ', 4, N'0,2995,2996,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3001, 2996, N'大通回族土族自治县', NULL, N'DTHZTZZZX', 5, N'0,2995,2996,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3002, 2996, N'湟中县', NULL, N'HZX', 6, N'0,2995,2996,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3003, 2996, N'湟源县', NULL, N'HYX', 7, N'0,2995,2996,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3004, 2996, N'其他区', NULL, N'QTQ', 8, N'0,2995,2996,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3005, 2995, N'海东地区', NULL, N'HDDQ', 2, N'0,2995,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3006, 3005, N'平安县', NULL, N'PAX', 1, N'0,2995,3005,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3007, 3005, N'民和回族土族自治县', NULL, N'MHHZTZZZX', 2, N'0,2995,3005,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3008, 3005, N'乐都县', NULL, N'LDX', 3, N'0,2995,3005,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3009, 3005, N'互助土族自治县', NULL, N'HZTZZZX', 4, N'0,2995,3005,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3010, 3005, N'化隆回族自治县', NULL, N'HLHZZZX', 5, N'0,2995,3005,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3011, 3005, N'循化撒拉族自治县', NULL, N'XHSLZZZX', 6, N'0,2995,3005,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3012, 3005, N'其他区', NULL, N'QTQ', 7, N'0,2995,3005,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3013, 2995, N'海北藏族自治州', NULL, N'HBCZZZZ', 3, N'0,2995,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3014, 3013, N'门源回族自治县', NULL, N'MYHZZZX', 1, N'0,2995,3013,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3015, 3013, N'祁连县', NULL, N'QLX', 2, N'0,2995,3013,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3016, 3013, N'海晏县', NULL, N'HYX', 3, N'0,2995,3013,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3017, 3013, N'刚察险', NULL, N'GCX', 4, N'0,2995,3013,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3018, 3013, N'其他区', NULL, N'QTQ', 5, N'0,2995,3013,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3019, 2995, N'黄南藏族自治州', NULL, N'HNCZZZZ', 4, N'0,2995,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3020, 3019, N'同仁县', NULL, N'TRX', 1, N'0,2995,3019,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3021, 3019, N'尖扎县', NULL, N'JZX', 2, N'0,2995,3019,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3022, 3019, N'泽库县', NULL, N'ZKX', 3, N'0,2995,3019,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3023, 3019, N'河南蒙古族自治县', NULL, N'HNMGZZZX', 4, N'0,2995,3019,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3024, 3019, N'其他区', NULL, N'QTQ', 5, N'0,2995,3019,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3025, 2995, N'海南藏族自治州', NULL, N'HNCZZZZ', 5, N'0,2995,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3026, 3025, N'共和县', NULL, N'GHX', 1, N'0,2995,3025,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3027, 3025, N'同德县', NULL, N'TDX', 2, N'0,2995,3025,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3028, 3025, N'贵德县', NULL, N'GDX', 3, N'0,2995,3025,', 3)
GO
print 'Processed 2900 total records'
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3029, 3025, N'兴海县', NULL, N'XHX', 4, N'0,2995,3025,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3030, 3025, N'贵南县', NULL, N'GNX', 5, N'0,2995,3025,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3031, 3025, N'其他区', NULL, N'QTQ', 6, N'0,2995,3025,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3032, 2995, N'果洛藏族自治州', NULL, N'GLCZZZZ', 6, N'0,2995,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3033, 3032, N'玛沁县', NULL, N'MQX', 1, N'0,2995,3032,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3034, 3032, N'班玛县', NULL, N'BMX', 2, N'0,2995,3032,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3035, 3032, N'甘德县', NULL, N'GDX', 3, N'0,2995,3032,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3036, 3032, N'达日县', NULL, N'DRX', 4, N'0,2995,3032,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3037, 3032, N'久治县', NULL, N'JZX', 5, N'0,2995,3032,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3038, 3032, N'玛多县', NULL, N'MDX', 6, N'0,2995,3032,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3039, 3032, N'其他区', NULL, N'QTQ', 7, N'0,2995,3032,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3040, 2995, N'玉树藏族自治州', NULL, N'YSCZZZZ', 7, N'0,2995,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3041, 3040, N'玉树县', NULL, N'YSX', 1, N'0,2995,3040,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3042, 3040, N'杂多县', NULL, N'ZDX', 2, N'0,2995,3040,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3043, 3040, N'称多县', NULL, N'CDX', 3, N'0,2995,3040,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3044, 3040, N'治多县', NULL, N'ZDX', 4, N'0,2995,3040,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3045, 3040, N'囊谦县', NULL, N'NQX', 5, N'0,2995,3040,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3046, 3040, N'曲麻莱县', NULL, N'QMLX', 6, N'0,2995,3040,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3047, 3040, N'其他区', NULL, N'QTQ', 7, N'0,2995,3040,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3048, 2995, N'海西蒙古族藏族自治州', NULL, N'HXMGZCZZZZ', 8, N'0,2995,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3049, 3048, N'格尔木市', NULL, N'GEMS', 1, N'0,2995,3048,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3050, 3048, N'德令哈市', NULL, N'DLHS', 2, N'0,2995,3048,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3051, 3048, N'乌兰县', NULL, N'WLX', 3, N'0,2995,3048,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3052, 3048, N'都兰县', NULL, N'DLX', 4, N'0,2995,3048,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3053, 3048, N'天峻县', NULL, N'TJX', 5, N'0,2995,3048,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3054, 3048, N'其他区', NULL, N'QTQ', 6, N'0,2995,3048,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (6, 3055, NULL, N'宁夏', NULL, N'NX', 26, N'0,', 1)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3056, 3055, N'银川市', NULL, N'YCS', 1, N'0,3055,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3057, 3056, N'兴庆区', NULL, N'XQQ', 1, N'0,3055,3056,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3058, 3056, N'西夏区', NULL, N'XXQ', 2, N'0,3055,3056,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3059, 3056, N'金凤区', NULL, N'JFQ', 3, N'0,3055,3056,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3060, 3056, N'永宁县', NULL, N'YNX', 4, N'0,3055,3056,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3061, 3056, N'贺兰县', NULL, N'HLX', 5, N'0,3055,3056,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3062, 3056, N'灵武市', NULL, N'LWS', 6, N'0,3055,3056,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3063, 3056, N'其他区', NULL, N'QTQ', 7, N'0,3055,3056,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3064, 3055, N'石嘴山市', NULL, N'SZSS', 2, N'0,3055,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3065, 3064, N'大武口区', NULL, N'DWKQ', 1, N'0,3055,3064,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3066, 3064, N'惠农区', NULL, N'HNQ', 2, N'0,3055,3064,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3067, 3064, N'平罗县', NULL, N'PLX', 3, N'0,3055,3064,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3068, 3064, N'其他区', NULL, N'QTQ', 4, N'0,3055,3064,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3069, 3055, N'吴忠市', NULL, N'WZS', 3, N'0,3055,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3070, 3069, N'利通区', NULL, N'LTQ', 1, N'0,3055,3069,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3071, 3069, N'盐池县', NULL, N'YCX', 2, N'0,3055,3069,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3072, 3069, N'同心县', NULL, N'TXX', 3, N'0,3055,3069,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3073, 3069, N'青铜峡市', NULL, N'QTXS', 4, N'0,3055,3069,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3074, 3069, N'其他区', NULL, N'QTQ', 5, N'0,3055,3069,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3075, 3055, N'固原市', NULL, N'GYS', 4, N'0,3055,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3076, 3075, N'原州区', NULL, N'YZQ', 1, N'0,3055,3075,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3077, 3075, N'西吉县', NULL, N'XJX', 2, N'0,3055,3075,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3078, 3075, N'隆德县', NULL, N'LDX', 3, N'0,3055,3075,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3079, 3075, N'泾源县', NULL, N'JYX', 4, N'0,3055,3075,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3080, 3075, N'彭阳县', NULL, N'PYX', 5, N'0,3055,3075,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3081, 3075, N'其他区', NULL, N'QTQ', 6, N'0,3055,3075,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3082, 3055, N'中卫市', NULL, N'ZWS', 5, N'0,3055,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3083, 3082, N'沙坡头区', NULL, N'SPTQ', 1, N'0,3055,3082,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3084, 3082, N'中宁县', NULL, N'ZNX', 2, N'0,3055,3082', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3085, 3082, N'海原县', NULL, N'HYX', 3, N'0,3055,3082,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3086, 3082, N'其他区', NULL, N'QTQ', 4, N'0,3055,3082,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (7, 3087, NULL, N'重庆', NULL, N'ZQ', 27, N'0,', 1)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3088, 3087, N'重庆市', NULL, N'ZQS', 1, N'0,3087,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3089, 3088, N'万州区', NULL, N'WZQ', 1, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3090, 3088, N'涪陵区', NULL, N'FLQ', 2, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3091, 3088, N'渝中区', NULL, N'YZQ', 3, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3092, 3088, N'大渡口区', NULL, N'DDKQ', 4, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3093, 3088, N'江北区', NULL, N'JBQ', 5, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3094, 3088, N'沙坪坝区', NULL, N'SPBQ', 6, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3095, 3088, N'九龙坡区', NULL, N'JLPQ', 7, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3096, 3088, N'南岸区', NULL, N'NAQ', 8, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3097, 3088, N'北碚区', NULL, N'BBQ', 9, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3098, 3088, N'万盛区', NULL, N'WSQ', 10, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3099, 3088, N'双桥区', NULL, N'SQQ', 11, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3100, 3088, N'渝北区', NULL, N'YBQ', 12, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3101, 3088, N'巴南区', NULL, N'BNQ', 13, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3102, 3088, N'黔江区', NULL, N'QJQ', 14, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3103, 3088, N'长寿区', NULL, N'CSQ', 15, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3104, 3088, N'綦江县', NULL, N'QJX', 16, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3105, 3088, N'潼南县', NULL, N'TNX', 17, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3106, 3088, N'铜梁县', NULL, N'TLX', 18, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3107, 3088, N'大足县', NULL, N'DZX', 19, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3108, 3088, N'荣昌县', NULL, N'RCX', 20, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3109, 3088, N'璧山县', NULL, N'BSX', 21, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3110, 3088, N'梁平县', NULL, N'LPX', 22, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3111, 3088, N'城口县', NULL, N'CKX', 23, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3112, 3088, N'丰都县', NULL, N'FDX', 24, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3113, 3088, N'垫江县', NULL, N'DJX', 25, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3114, 3088, N'武隆县', NULL, N'WLX', 26, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3115, 3088, N'忠县', NULL, N'ZX', 27, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3116, 3088, N'开县', NULL, N'KX', 28, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3117, 3088, N'云阳县', NULL, N'YYX', 29, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3118, 3088, N'奉节县', NULL, N'FJX', 30, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3119, 3088, N'巫山县', NULL, N'WSX', 31, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3120, 3088, N'巫溪县', NULL, N'WXX', 32, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3121, 3088, N'石柱土家族自治县', NULL, N'SZTJZZZX', 33, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3122, 3088, N'秀山土家族苗族自治县', NULL, N'XSTJZMZZZX', 34, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3123, 3088, N'酉阳土家族苗族自治县', NULL, N'YYTJZMZZZX', 35, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3124, 3088, N'彭水苗族土家族自治县', NULL, N'PSMZTJZZZX', 36, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3125, 3088, N'江津市', NULL, N'JJS', 37, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3126, 3088, N'合川区', NULL, N'HCQ', 38, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3127, 3088, N'永川市', NULL, N'YCS', 39, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3128, 3088, N'南川市', NULL, N'NCS', 40, N'0,3087,3088,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3129, 3088, N'其他区', NULL, N'QTQ', 41, N'0,3087,3088,', 3)
GO
print 'Processed 3000 total records'
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (7, 3130, NULL, N'四川省', NULL, N'SCS', 28, N'0,', 1)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3131, 3130, N'成都市', NULL, N'CDS', 1, N'0,3130,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3132, 3131, N'锦江区', NULL, N'JJQ', 1, N'0,3130,3131,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3133, 3131, N'青羊区', NULL, N'QYQ', 2, N'0,3130,3131,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3134, 3131, N'金牛区', NULL, N'JNQ', 3, N'0,3130,3131,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3135, 3131, N'武侯区', NULL, N'WHQ', 4, N'0,3130,3131,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3136, 3131, N'成华区', NULL, N'CHQ', 5, N'0,3130,3131,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3137, 3131, N'龙泉驿区', NULL, N'LQYQ', 6, N'0,3130,3131,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3138, 3131, N'青白江区', NULL, N'QBJQ', 7, N'0,3130,3131,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3139, 3131, N'新都区', NULL, N'XDQ', 8, N'0,3130,3131,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3140, 3131, N'温江区', NULL, N'WJQ', 9, N'0,3130,3131,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3141, 3131, N'金堂县', NULL, N'JTX', 10, N'0,3130,3131,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3142, 3131, N'双流县', NULL, N'SLX', 11, N'0,3130,3131,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3143, 3131, N'郫县', NULL, N'PX', 12, N'0,3130,3131,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3144, 3131, N'大邑县', NULL, N'DYX', 13, N'0,3130,3131,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3145, 3131, N'蒲江县', NULL, N'PJX', 14, N'0,3130,3131,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3146, 3131, N'新津县', NULL, N'XJX', 15, N'0,3130,3131,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3147, 3131, N'都江堰市', NULL, N'DJYS', 16, N'0,3130,3131,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3148, 3131, N'彭州市', NULL, N'PZS', 17, N'0,3130,3131,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3149, 3131, N'邛崃市', NULL, N'QLS', 18, N'0,3130,3131,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3150, 3131, N'崇州市', NULL, N'CZS', 19, N'0,3130,3131,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3151, 3131, N'其他区', NULL, N'QTQ', 20, N'0,3130,3131,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3152, 3130, N'自贡市', NULL, N'ZGS', 2, N'0,3130,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3153, 3152, N'自流井区', NULL, N'ZLJQ', 1, N'0,3130,3152,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3154, 3152, N'贡井区', NULL, N'GJQ', 2, N'0,3130,3152,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3155, 3152, N'大安区', NULL, N'DAQ', 3, N'0,3130,3152,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3156, 3152, N'沿滩区', NULL, N'YTQ', 4, N'0,3130,3152,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3157, 3152, N'荣县', NULL, N'RX', 5, N'0,3130,3152,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3158, 3152, N'富顺县', NULL, N'FSX', 6, N'0,3130,3152,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3159, 3152, N'其他区', NULL, N'QTQ', 7, N'0,3130,3152,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3160, 3130, N'攀枝花市', NULL, N'PZHS', 3, N'0,3130,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3161, 3160, N'东区', NULL, N'DQ', 1, N'0,3130,3160,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3162, 3160, N'西区', NULL, N'XQ', 2, N'0,3130,3160,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3163, 3160, N'仁和区', NULL, N'RHQ', 3, N'0,3130,3160,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3164, 3160, N'米易县', NULL, N'MYX', 4, N'0,3130,3160,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3165, 3160, N'盐边县', NULL, N'YBX', 5, N'0,3130,3160,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3166, 3160, N'其他区', NULL, N'QTQ', 6, N'0,3130,3160,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3167, 3130, N'泸州市', NULL, N'LZS', 4, N'0,3130,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3168, 3167, N'江阳区', NULL, N'JYQ', 1, N'0,3130,3167,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3169, 3167, N'纳溪区', NULL, N'NXQ', 2, N'0,3130,3167,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3170, 3167, N'龙马潭区', NULL, N'LMTQ', 3, N'0,3130,3167,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3171, 3167, N'泸县', NULL, N'LX', 4, N'0,3130,3167,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3172, 3167, N'合江县', NULL, N'HJX', 5, N'0,3130,3167,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3173, 3167, N'叙永县', NULL, N'XYX', 6, N'0,3130,3167,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3174, 3167, N'古蔺县', NULL, N'GLX', 7, N'0,3130,3167,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3175, 3167, N'其他区', NULL, N'QTQ', 8, N'0,3130,3167,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3176, 3130, N'德阳市', NULL, N'DYS', 5, N'0,3130,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3177, 3176, N'旌阳区', NULL, N'JYQ', 1, N'0,3130,3176,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3178, 3176, N'中江县', NULL, N'ZJX', 2, N'0,3130,3176,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3179, 3176, N'罗江县', NULL, N'LJX', 3, N'0,3130,3176,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3180, 3176, N'广汉市', NULL, N'GHS', 4, N'0,3130,3176,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3181, 3176, N'什邡市', NULL, N'SFS', 5, N'0,3130,3176,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3182, 3176, N'绵竹市', NULL, N'MZS', 6, N'0,3130,3176,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3183, 3176, N'其他区', NULL, N'QTQ', 7, N'0,3130,3176,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3184, 3130, N'绵阳市', NULL, N'MYS', 6, N'0,3130,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3185, 3184, N'涪城区', NULL, N'FCQ', 1, N'0,3130,3184,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3186, 3184, N'游仙区', NULL, N'YXQ', 2, N'0,3130,3184,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3187, 3184, N'三台县', NULL, N'STX', 3, N'0,3130,3184,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3188, 3184, N'盐亭县', NULL, N'YTX', 4, N'0,3130,3184,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3189, 3184, N'安县', NULL, N'AX', 5, N'0,3130,3184,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3190, 3184, N'梓潼县', NULL, N'ZTX', 6, N'0,3130,3184,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3191, 3184, N'北川羌族自治县', NULL, N'BCQZZZX', 7, N'0,3130,3184,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3192, 3184, N'平武县', NULL, N'PWX', 8, N'0,3130,3184,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3193, 3184, N'高新区', NULL, N'GXQ', 9, N'0,3130,3184,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3194, 3184, N'江油市', NULL, N'JYS', 10, N'0,3130,3184,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3195, 3184, N'其他区', NULL, N'QTQ', 11, N'0,3130,3184,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3196, 3130, N'广元市', NULL, N'GYS', 7, N'0,3130,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3197, 3196, N'市中区', NULL, N'SZQ', 1, N'0,3130,3196,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3198, 3196, N'元坝区', NULL, N'YBQ', 2, N'0,3130,3196,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3199, 3196, N'朝天区', NULL, N'CTQ', 3, N'0,3130,3196,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3200, 3196, N'旺苍县', NULL, N'WCX', 4, N'0,3130,3196,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3201, 3196, N'青川县', NULL, N'QCX', 5, N'0,3130,3196,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3202, 3196, N'剑阁县', NULL, N'JGX', 6, N'0,3130,3196,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3203, 3196, N'苍溪县', NULL, N'CXX', 7, N'0,3130,3196,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3204, 3196, N'其他区', NULL, N'QTQ', 8, N'0,3130,3196,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3205, 3130, N'遂宁市', NULL, N'SNS', 8, N'0,3130,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3206, 3205, N'船山区', NULL, N'CSQ', 1, N'0,3130,3205,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3207, 3205, N'安居区', NULL, N'AJQ', 2, N'0,3130,3205,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3208, 3205, N'蓬溪县', NULL, N'PXX', 3, N'0,3130,3205,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3209, 3205, N'射洪县', NULL, N'SHX', 4, N'0,3130,3205,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3210, 3205, N'大英县', NULL, N'DYX', 5, N'0,3130,3205,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3211, 3205, N'其他区', NULL, N'QTQ', 6, N'0,3130,3205,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3212, 3130, N'内江市', NULL, N'NJS', 9, N'0,3130,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3213, 3212, N'市中区', NULL, N'SZQ', 1, N'0,3130,3212,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3214, 3212, N'东兴区', NULL, N'DXQ', 2, N'0,3130,3212,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3215, 3212, N'威远县', NULL, N'WYX', 3, N'0,3130,3212,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3216, 3212, N'资中县', NULL, N'ZZX', 4, N'0,3130,3212,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3217, 3212, N'隆昌县', NULL, N'LCX', 5, N'0,3130,3212,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3218, 3212, N'其他区', NULL, N'QTQ', 6, N'0,3130,3212,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3219, 3130, N'乐山市', NULL, N'LSS', 10, N'0,3130,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3220, 3219, N'市中区', NULL, N'SZQ', 1, N'0,3130,3219,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3221, 3219, N'沙湾区', NULL, N'SWQ', 2, N'0,3130,3219,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3222, 3219, N'五通桥区', NULL, N'WTQQ', 3, N'0,3130,3219,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3223, 3219, N'金口河区', NULL, N'JKHQ', 4, N'0,3130,3219,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3224, 3219, N'犍为县', NULL, N'JWX', 5, N'0,3130,3219,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3225, 3219, N'井研县', NULL, N'JYX', 6, N'0,3130,3219,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3226, 3219, N'夹江县', NULL, N'JJX', 7, N'0,3130,3219,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3227, 3219, N'沐川县', NULL, N'MCX', 8, N'0,3130,3219,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3228, 3219, N'峨边彝族自治县', NULL, N'EBYZZZX', 9, N'0,3130,3219,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3229, 3219, N'马边彝族自治县', NULL, N'MBYZZZX', 10, N'0,3130,3219,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3230, 3219, N'峨眉山市', NULL, N'EMSS', 11, N'0,3130,3219,', 3)
GO
print 'Processed 3100 total records'
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3231, 3219, N'其他区', NULL, N'QTQ', 12, N'0,3130,3219,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3232, 3130, N'南充市', NULL, N'NCS', 11, N'0,3130,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3233, 3232, N'顺庆区', NULL, N'SQQ', 1, N'0,3130,3232,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3234, 3232, N'高坪区', NULL, N'GPQ', 2, N'0,3130,3232,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3235, 3232, N'嘉陵区', NULL, N'JLQ', 3, N'0,3130,3232,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3236, 3232, N'南部县', NULL, N'NBX', 4, N'0,3130,3232,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3237, 3232, N'营山县', NULL, N'YSX', 5, N'0,3130,3232,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3238, 3232, N'蓬安县', NULL, N'PAX', 6, N'0,3130,3232,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3239, 3232, N'仪陇县', NULL, N'YLX', 7, N'0,3130,3232,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3240, 3232, N'西充县', NULL, N'XCX', 8, N'0,3130,3232,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3241, 3232, N'阆中市', NULL, N'LZS', 9, N'0,3130,3232,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3242, 3232, N'其他区', NULL, N'QTQ', 10, N'0,3130,3232,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3243, 3130, N'眉山市', NULL, N'MSS', 12, N'0,3130,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3244, 3243, N'东坡区', NULL, N'DPQ', 1, N'0,3130,3243,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3245, 3243, N'仁寿县', NULL, N'RSX', 2, N'0,3130,3243,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3246, 3243, N'彭山县', NULL, N'PSX', 3, N'0,3130,3243,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3247, 3243, N'洪雅县', NULL, N'HYX', 4, N'0,3130,3243,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3248, 3243, N'丹棱县', NULL, N'DLX', 5, N'0,3130,3243,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3249, 3243, N'青神县', NULL, N'QSX', 6, N'0,3130,3243,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3250, 3243, N'其他区', NULL, N'QTQ', 7, N'0,3130,3243,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3251, 3130, N'宜宾市', NULL, N'YBS', 13, N'0,3130,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3252, 3251, N'翠屏区', NULL, N'CPQ', 1, N'0,3130,3251,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3253, 3251, N'宜宾县', NULL, N'YBX', 2, N'0,3130,3251,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3254, 3251, N'南溪县', NULL, N'NXX', 3, N'0,3130,3251,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3255, 3251, N'江安县', NULL, N'JAX', 4, N'0,3130,3251,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3256, 3251, N'长宁县', NULL, N'CNX', 5, N'0,3130,3251,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3257, 3251, N'高县', NULL, N'GX', 6, N'0,3130,3251,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3258, 3251, N'珙县', NULL, N'GX', 7, N'0,3130,3251,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3259, 3251, N'筠连县', NULL, N'JLX', 8, N'0,3130,3251,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3260, 3251, N'兴文县', NULL, N'XWX', 9, N'0,3130,3251,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3261, 3251, N'屏山县', NULL, N'PSX', 10, N'0,3130,3251,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3262, 3251, N'其他区', NULL, N'QTQ', 11, N'0,3130,3251,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3263, 3130, N'广安市', NULL, N'GAS', 14, N'0,3130,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3264, 3263, N'广安区', NULL, N'GAQ', 1, N'0,3130,3263,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3265, 3263, N'岳池县', NULL, N'YCX', 2, N'0,3130,3263,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3266, 3263, N'武胜县', NULL, N'WSX', 3, N'0,3130,3263,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3267, 3263, N'邻水县', NULL, N'LSX', 4, N'0,3130,3263,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3268, 3263, N'华蓥市', NULL, N'HYS', 5, N'0,3130,3263,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3269, 3263, N'市辖区', NULL, N'SXQ', 6, N'0,3130,3263,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3270, 3263, N'其他区', NULL, N'QTQ', 7, N'0,3130,3263,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3271, 3130, N'达州市', NULL, N'DZS', 15, N'0,3130,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3272, 3271, N'通川区', NULL, N'TCQ', 1, N'0,3130,3271,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3273, 3271, N'达县', NULL, N'DX', 2, N'0,3130,3271,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3274, 3271, N'宣汉县', NULL, N'XHX', 3, N'0,3130,3271,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3275, 3271, N'开江县', NULL, N'KJX', 4, N'0,3130,3271,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3276, 3271, N'大竹县', NULL, N'DZX', 5, N'0,3130,3271,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3277, 3271, N'渠县', NULL, N'QX', 6, N'0,3130,3271,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3278, 3271, N'万源市', NULL, N'WYS', 7, N'0,3130,3271,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3279, 3271, N'其他区', NULL, N'QTQ', 8, N'0,3130,3271,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3280, 3130, N'雅安市', NULL, N'YAS', 16, N'0,3130,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3281, 3280, N'雨城区', NULL, N'YCQ', 1, N'0,3130,3280,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3282, 3280, N'名山县', NULL, N'MSX', 2, N'0,3130,3280,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3283, 3280, N'荥经县', NULL, N'YJX', 3, N'0,3130,3280,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3284, 3280, N'汉源县', NULL, N'HYX', 4, N'0,3130,3280,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3285, 3280, N'石棉县', NULL, N'SMX', 5, N'0,3130,3280,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3286, 3280, N'天全县', NULL, N'TQX', 6, N'0,3130,3280,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3287, 3280, N'芦山县', NULL, N'LSX', 7, N'0,3130,3280,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3288, 3280, N'宝兴县', NULL, N'BXX', 8, N'0,3130,3280,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3289, 3280, N'其他区', NULL, N'QTQ', 9, N'0,3130,3280,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3290, 3130, N'巴中市', NULL, N'BZS', 17, N'0,3130,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3291, 3290, N'巴州区', NULL, N'BZQ', 1, N'0,3130,3290,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3292, 3290, N'通江县', NULL, N'TJX', 2, N'0,3130,3290,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3293, 3290, N'南江县', NULL, N'NJX', 3, N'0,3130,3290,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3294, 3290, N'平昌县', NULL, N'PCX', 4, N'0,3130,3290,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3295, 3290, N'其他区', NULL, N'QTQ', 5, N'0,3130,3290,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3296, 3130, N'资阳市', NULL, N'ZYS', 18, N'0,3130,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3297, 3296, N'雁江区', NULL, N'YJQ', 1, N'0,3130,3296,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3298, 3296, N'安岳县', NULL, N'AYX', 2, N'0,3130,3296,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3299, 3296, N'乐至县', NULL, N'LZX', 3, N'0,3130,3296,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3300, 3296, N'简阳市', NULL, N'JYS', 4, N'0,3130,3296,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3301, 3296, N'其他区', NULL, N'QTQ', 5, N'0,3130,3296,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3302, 3130, N'阿坝藏族羌族自治州', NULL, N'ABCZQZZZZ', 19, N'0,3130,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3303, 3302, N'汶川县', NULL, N'WCX', 1, N'0,3130,3302,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3304, 3302, N'理县', NULL, N'LX', 2, N'0,3130,3302,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3305, 3302, N'茂县', NULL, N'MX', 3, N'0,3130,3302,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3306, 3302, N'松潘县', NULL, N'SPX', 4, N'0,3130,3302,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3307, 3302, N'九寨沟县', NULL, N'JZGX', 5, N'0,3130,3302,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3308, 3302, N'金川县', NULL, N'JCX', 6, N'0,3130,3302,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3309, 3302, N'小金县', NULL, N'XJX', 7, N'0,3130,3302,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3310, 3302, N'黑水县', NULL, N'HSX', 8, N'0,3130,3302,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3311, 3302, N'马尔康县', NULL, N'MEKX', 9, N'0,3130,3302,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3312, 3302, N'壤塘县', NULL, N'RTX', 10, N'0,3130,3302,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3313, 3302, N'阿坝县', NULL, N'ABX', 11, N'0,3130,3302,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3314, 3302, N'若尔盖县', NULL, N'REGX', 12, N'0,3130,3302,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3315, 3302, N'红原县', NULL, N'HYX', 13, N'0,3130,3302,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3316, 3302, N'其他区', NULL, N'QTQ', 14, N'0,3130,3302,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3317, 3130, N'甘孜藏族自治州', NULL, N'GZCZZZZ', 20, N'0,3130,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3318, 3317, N'康定县', NULL, N'KDX', 1, N'0,3130,3317,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3319, 3317, N'泸定县', NULL, N'LDX', 2, N'0,3130,3317,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3320, 3317, N'丹巴县', NULL, N'DBX', 3, N'0,3130,3317,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3321, 3317, N'九龙县', NULL, N'JLX', 4, N'0,3130,3317,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3322, 3317, N'雅江县', NULL, N'YJX', 5, N'0,3130,3317,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3323, 3317, N'道孚县', NULL, N'DFX', 6, N'0,3130,3317,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3324, 3317, N'炉霍县', NULL, N'LHX', 7, N'0,3130,3317,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3325, 3317, N'甘孜县', NULL, N'GZX', 8, N'0,3130,3317,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3326, 3317, N'新龙县', NULL, N'XLX', 9, N'0,3130,3317,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3327, 3317, N'德格县', NULL, N'DGX', 10, N'0,3130,3317,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3328, 3317, N'白玉县', NULL, N'BYX', 11, N'0,3130,3317,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3329, 3317, N'石渠县', NULL, N'SQX', 12, N'0,3130,3317,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3330, 3317, N'色达县', NULL, N'SDX', 13, N'0,3130,3317,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3331, 3317, N'理塘县', NULL, N'LTX', 14, N'0,3130,3317,', 3)
GO
print 'Processed 3200 total records'
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3332, 3317, N'巴塘县', NULL, N'BTX', 15, N'0,3130,3317,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3333, 3317, N'乡城县', NULL, N'XCX', 16, N'0,3130,3317,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3334, 3317, N'稻城县', NULL, N'DCX', 17, N'0,3130,3317,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3335, 3317, N'得荣县', NULL, N'DRX', 18, N'0,3130,3317,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3336, 3317, N'其他区', NULL, N'QTQ', 19, N'0,3130,3317,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3337, 3130, N'凉山彝族自治州', NULL, N'LSYZZZZ', 21, N'0,3130,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3338, 3337, N'西昌市', NULL, N'XCS', 1, N'0,3130,3337,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3339, 3337, N'木里藏族自治县', NULL, N'MLCZZZX', 2, N'0,3130,3337,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3340, 3337, N'盐源县', NULL, N'YYX', 3, N'0,3130,3337,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3341, 3337, N'德昌县', NULL, N'DCX', 4, N'0,3130,3337,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3342, 3337, N'会理县', NULL, N'HLX', 5, N'0,3130,3337,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3343, 3337, N'会东县', NULL, N'HDX', 6, N'0,3130,3337,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3344, 3337, N'宁南县', NULL, N'NNX', 7, N'0,3130,3337,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3345, 3337, N'普格县', NULL, N'PGX', 8, N'0,3130,3337,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3346, 3337, N'布拖县', NULL, N'BTX', 9, N'0,3130,3337,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3347, 3337, N'金阳县', NULL, N'JYX', 10, N'0,3130,3337,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3348, 3337, N'昭觉县', NULL, N'ZJX', 11, N'0,3130,3337,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3349, 3337, N'喜德县', NULL, N'XDX', 12, N'0,3130,3337,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3350, 3337, N'冕宁县', NULL, N'MNX', 13, N'0,3130,3337,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3351, 3337, N'越西县', NULL, N'YXX', 14, N'0,3130,3337,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3352, 3337, N'甘洛县', NULL, N'GLX', 15, N'0,3130,3337,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3353, 3337, N'美姑县', NULL, N'MGX', 16, N'0,3130,3337,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3354, 3337, N'雷波县', NULL, N'LBX', 17, N'0,3130,3337,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3355, 3337, N'其他', NULL, N'QT', 18, N'0,3130,3337,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (7, 3356, NULL, N'贵州省', NULL, N'GZS', 29, N'0,', 1)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3357, 3356, N'贵阳市', NULL, N'GYS', 1, N'0,3356,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3358, 3357, N'南明区', NULL, N'NMQ', 1, N'0,3356,3357,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3359, 3357, N'云岩区', NULL, N'YYQ', 2, N'0,3356,3357,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3360, 3357, N'花溪区', NULL, N'HXQ', 3, N'0,3356,3357,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3361, 3357, N'乌当区', NULL, N'WDQ', 4, N'0,3356,3357,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3362, 3357, N'白云区', NULL, N'BYQ', 5, N'0,3356,3357,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3363, 3357, N'小河区', NULL, N'XHQ', 6, N'0,3356,3357,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3364, 3357, N'开阳县', NULL, N'KYX', 7, N'0,3356,3357,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3365, 3357, N'息烽县', NULL, N'XFX', 8, N'0,3356,3357,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3366, 3357, N'修文县', NULL, N'XWX', 9, N'0,3356,3357,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3367, 3357, N'金阳开发区', NULL, N'JYKFQ', 10, N'0,3356,3357,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3368, 3357, N'清镇市', NULL, N'QZS', 11, N'0,3356,3357,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3369, 3357, N'其他区', NULL, N'QTQ', 12, N'0,3356,3357,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3370, 3356, N'六盘水市', NULL, N'LPSS', 2, N'0,3356,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3371, 3370, N'钟山区', NULL, N'ZSQ', 1, N'0,3356,3370,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3372, 3370, N'六枝特区', NULL, N'LZTQ', 2, N'0,3356,3370,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3373, 3370, N'水城县', NULL, N'SCX', 3, N'0,3356,3370,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3374, 3370, N'盘县', NULL, N'PX', 4, N'0,3356,3370,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3375, 3370, N'其他区', NULL, N'QTQ', 5, N'0,3356,3370,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3376, 3356, N'遵义市', NULL, N'ZYS', 3, N'0,3356,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3377, 3376, N'红花岗区', NULL, N'HHGQ', 1, N'0,3356,3376,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3378, 3376, N'汇川区', NULL, N'HCQ', 2, N'0,3356,3376,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3379, 3376, N'遵义县', NULL, N'ZYX', 3, N'0,3356,3376,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3380, 3376, N'桐梓县', NULL, N'TZX', 4, N'0,3356,3376,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3381, 3376, N'绥阳县', NULL, N'SYX', 5, N'0,3356,3376,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3382, 3376, N'正安县', NULL, N'ZAX', 6, N'0,3356,3376,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3383, 3376, N'道真仡佬族苗族自治县', NULL, N'DZYLZMZZZX', 7, N'0,3356,3376,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3384, 3376, N'务川仡佬族苗族自治县', NULL, N'WCYLZMZZZX', 8, N'0,3356,3376,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3385, 3376, N'凤冈县', NULL, N'FGX', 9, N'0,3356,3376,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3386, 3376, N'湄潭县', NULL, N'MTX', 10, N'0,3356,3376,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3387, 3376, N'余庆县', NULL, N'YQX', 11, N'0,3356,3376,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3388, 3376, N'习水县', NULL, N'XSX', 12, N'0,3356,3376,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3389, 3376, N'赤水市', NULL, N'CSS', 13, N'0,3356,3376,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3390, 3376, N'仁怀市', NULL, N'RHS', 14, N'0,3356,3376,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3391, 3376, N'其他区', NULL, N'QTQ', 15, N'0,3356,3376,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3392, 3356, N'安顺市', NULL, N'ASS', 4, N'0,3356,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3393, 3392, N'西秀区', NULL, N'XXQ', 1, N'0,3356,3392,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3394, 3392, N'平坝县', NULL, N'PBX', 2, N'0,3356,3392,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3395, 3392, N'普定县', NULL, N'PDX', 3, N'0,3356,3392,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3396, 3392, N'镇宁布依族苗族自治县', NULL, N'ZNBYZMZZZX', 4, N'0,3356,3392,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3397, 3392, N'关岭布依族苗族自治县', NULL, N'GLBYZMZZZX', 5, N'0,3356,3392,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3398, 3392, N'紫云苗族布依族自治县', NULL, N'ZYMZBYZZZX', 6, N'0,3356,3392,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3399, 3392, N'其他区', NULL, N'QTQ', 7, N'0,3356,3392,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3400, 3356, N'铜仁地区', NULL, N'TRDQ', 5, N'0,3356,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3401, 3400, N'铜仁市', NULL, N'TRS', 1, N'0,3356,3400,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3402, 3400, N'江口县', NULL, N'JKX', 2, N'0,3356,3400,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3403, 3400, N'玉屏侗族自治县', NULL, N'YPDZZZX', 3, N'0,3356,3400,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3404, 3400, N'石阡县', NULL, N'SQX', 4, N'0,3356,3400,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3405, 3400, N'思南县', NULL, N'SNX', 5, N'0,3356,3400,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3406, 3400, N'印江土家族苗族自治县', NULL, N'YJTJZMZZZX', 6, N'0,3356,3400,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3407, 3400, N'德江县', NULL, N'DJX', 7, N'0,3356,3400,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3408, 3400, N'沿河土家族自治县', NULL, N'YHTJZZZX', 8, N'0,3356,3400,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3409, 3400, N'松桃苗族自治县', NULL, N'STMZZZX', 9, N'0,3356,3400,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3410, 3400, N'万山特区', NULL, N'WSTQ', 10, N'0,3356,3400,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3411, 3400, N'其他区', NULL, N'QTQ', 11, N'0,3356,3400,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3412, 3356, N'黔西南布依族苗族自治州', NULL, N'QXNBYZMZZZZ', 6, N'0,3356,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3413, 3412, N'兴义市', NULL, N'XYS', 1, N'0,3356,3412,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3414, 3412, N'兴仁县', NULL, N'XRX', 2, N'0,3356,3412,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3415, 3412, N'普安县', NULL, N'PAX', 3, N'0,3356,3412,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3416, 3412, N'晴隆县', NULL, N'QLX', 4, N'0,3356,3412,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3417, 3412, N'贞丰县', NULL, N'ZFX', 5, N'0,3356,3412,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3418, 3412, N'望谟县', NULL, N'WMX', 6, N'0,3356,3412,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3419, 3412, N'册亨县', NULL, N'CHX', 7, N'0,3356,3412,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3420, 3412, N'安龙县', NULL, N'ALX', 8, N'0,3356,3412,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3421, 3412, N'其他区', NULL, N'QTQ', 9, N'0,3356,3412,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3422, 3356, N'毕节地区', NULL, N'BJDQ', 7, N'0,3356,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3423, 3422, N'毕节市', NULL, N'BJS', 1, N'0,3356,3422,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3424, 3422, N'大方县', NULL, N'DFX', 2, N'0,3356,3422,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3425, 3422, N'黔西县', NULL, N'QXX', 3, N'0,3356,3422,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3426, 3422, N'金沙县', NULL, N'JSX', 4, N'0,3356,3422,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3427, 3422, N'织金县', NULL, N'ZJX', 5, N'0,3356,3422,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3428, 3422, N'纳雍县', NULL, N'NYX', 6, N'0,3356,3422,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3429, 3422, N'威宁彝族回族苗族自治县', NULL, N'WNYZHZMZZZX', 7, N'0,3356,3422,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3430, 3422, N'赫章县', NULL, N'HZX', 8, N'0,3356,3422,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3431, 3422, N'其他区', NULL, N'QTQ', 9, N'0,3356,3422,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3432, 3356, N'黔东南苗族侗族自治州', NULL, N'QDNMZDZZZZ', 8, N'0,3356,', 2)
GO
print 'Processed 3300 total records'
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3433, 3432, N'凯里市', NULL, N'KLS', 1, N'0,3356,3432,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3434, 3432, N'黄平县', NULL, N'HPX', 2, N'0,3356,3432,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3435, 3432, N'施秉县', NULL, N'SBX', 3, N'0,3356,3432,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3436, 3432, N'三穗县', NULL, N'SSX', 4, N'0,3356,3432,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3437, 3432, N'镇远县', NULL, N'ZYX', 5, N'0,3356,3432,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3438, 3432, N'岑巩县', NULL, N'CGX', 6, N'0,3356,3432,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3439, 3432, N'天柱县', NULL, N'TZX', 7, N'0,3356,3432,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3440, 3432, N'锦屏县', NULL, N'JPX', 8, N'0,3356,3432,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3441, 3432, N'剑河县', NULL, N'JHX', 9, N'0,3356,3432,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3442, 3432, N'台江县', NULL, N'TJX', 10, N'0,3356,3432,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3443, 3432, N'黎平县', NULL, N'LPX', 11, N'0,3356,3432,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3444, 3432, N'榕江县', NULL, N'RJX', 12, N'0,3356,3432,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3445, 3432, N'从江县', NULL, N'CJX', 13, N'0,3356,3432,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3446, 3432, N'雷山县', NULL, N'LSX', 14, N'0,3356,3432,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3447, 3432, N'麻江县', NULL, N'MJX', 15, N'0,3356,3432,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3448, 3432, N'丹寨县', NULL, N'DZX', 16, N'0,3356,3432,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3449, 3432, N'其他区', NULL, N'QTQ', 17, N'0,3356,3432,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3450, 3356, N'黔南布依族苗族自治州', NULL, N'QNBYZMZZZZ', 9, N'0,3356,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3451, 3450, N'都匀市', NULL, N'DYS', 1, N'0,3356,3450,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3452, 3450, N'福泉市', NULL, N'FQS', 2, N'0,3356,3450,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3453, 3450, N'荔波县', NULL, N'LBX', 3, N'0,3356,3450,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3454, 3450, N'贵定县', NULL, N'GDX', 4, N'0,3356,3450,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3455, 3450, N'瓮安县', NULL, N'WAX', 5, N'0,3356,3450,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3456, 3450, N'独山县', NULL, N'DSX', 6, N'0,3356,3450,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3457, 3450, N'平塘县', NULL, N'PTX', 7, N'0,3356,3450,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3458, 3450, N'罗甸县', NULL, N'LDX', 8, N'0,3356,3450,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3459, 3450, N'长顺县', NULL, N'CSX', 9, N'0,3356,3450,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3460, 3450, N'龙里县', NULL, N'LLX', 10, N'0,3356,3450,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3461, 3450, N'惠水县', NULL, N'HSX', 11, N'0,3356,3450,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3462, 3450, N'三都水族自治县', NULL, N'SDSZZZX', 12, N'0,3356,3450,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3463, 3450, N'其他区', NULL, N'QTQ', 13, N'0,3356,3450,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (7, 3464, NULL, N'云南省', NULL, N'YNS', 30, N'0,', 1)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3465, 3464, N'昆明市', NULL, N'KMS', 1, N'0,3464,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3466, 3465, N'五华区', NULL, N'WHQ', 1, N'0,3464,3465,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3467, 3465, N'盘龙区', NULL, N'PLQ', 2, N'0,3464,3465,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3468, 3465, N'官渡区', NULL, N'GDQ', 3, N'0,3464,3465,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3469, 3465, N'西山区', NULL, N'XSQ', 4, N'0,3464,3465,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3470, 3465, N'东川区', NULL, N'DCQ', 5, N'0,3464,3465,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3471, 3465, N'呈贡县', NULL, N'CGX', 6, N'0,3464,3465,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3472, 3465, N'晋宁县', NULL, N'JNX', 7, N'0,3464,3465,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3473, 3465, N'富民县', NULL, N'FMX', 8, N'0,3464,3465,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3474, 3465, N'宜良县', NULL, N'YLX', 9, N'0,3464,3465,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3475, 3465, N'石林彝族自治县', NULL, N'SLYZZZX', 10, N'0,3464,3465,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3476, 3465, N'嵩明县', NULL, N'SMX', 11, N'0,3464,3465,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3477, 3465, N'禄劝彝族苗族自治县', NULL, N'LQYZMZZZX', 12, N'0,3464,3465,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3478, 3465, N'昆明市寻甸回族自治县', NULL, N'KMSXDHZZZX', 13, N'0,3464,3465,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3479, 3465, N'安宁市', NULL, N'ANS', 14, N'0,3464,3465,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3480, 3465, N'其他区', NULL, N'QTQ', 15, N'0,3464,3465,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3481, 3464, N'曲靖市', NULL, N'QJS', 2, N'0,3464,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3482, 3481, N'麒麟区', NULL, N'QLQ', 1, N'0,3464,3481,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3483, 3481, N'马龙县', NULL, N'MLX', 2, N'0,3464,3481,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3484, 3481, N'陆良县', NULL, N'LLX', 3, N'0,3464,3481,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3485, 3481, N'师宗县', NULL, N'SZX', 4, N'0,3464,3481,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3486, 3481, N'罗平县', NULL, N'LPX', 5, N'0,3464,3481,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3487, 3481, N'富源县', NULL, N'FYX', 6, N'0,3464,3481,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3488, 3481, N'会泽县', NULL, N'HZX', 7, N'0,3464,3481,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3489, 3481, N'沾益县', NULL, N'ZYX', 8, N'0,3464,3481,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3490, 3481, N'宣威市', NULL, N'XWS', 9, N'0,3464,3481,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3491, 3481, N'其他区', NULL, N'QTQ', 10, N'0,3464,3481,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3492, 3464, N'玉溪市', NULL, N'YXS', 3, N'0,3464,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3493, 3492, N'红塔区', NULL, N'HTQ', 1, N'0,3464,3492,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3494, 3492, N'江川县', NULL, N'JCX', 2, N'0,3464,3492,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3495, 3492, N'澄江县', NULL, N'CJX', 3, N'0,3464,3492,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3496, 3492, N'通海县', NULL, N'THX', 4, N'0,3464,3492,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3497, 3492, N'华宁县', NULL, N'HNX', 5, N'0,3464,3492,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3498, 3492, N'易门县', NULL, N'YMX', 6, N'0,3464,3492,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3499, 3492, N'峨山彝族自治县', NULL, N'ESYZZZX', 7, N'0,3464,3492,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3500, 3492, N'新平彝族傣族自治县', NULL, N'XPYZDZZZX', 8, N'0,3464,3492,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3501, 3492, N'元江哈尼族彝族傣族自治县', NULL, N'YJHNZYZDZZZX', 9, N'0,3464,3492,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3502, 3492, N'其他区', NULL, N'QTQ', 10, N'0,3464,3492,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3503, 3464, N'保山市', NULL, N'BSS', 4, N'0,3464,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3504, 3503, N'隆阳区', NULL, N'LYQ', 1, N'0,3464,3503,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3505, 3503, N'施甸县', NULL, N'SDX', 2, N'0,3464,3503,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3506, 3503, N'腾冲县', NULL, N'TCX', 3, N'0,3464,3503,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3507, 3503, N'龙陵县', NULL, N'LLX', 4, N'0,3464,3503,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3508, 3503, N'昌宁县', NULL, N'CNX', 5, N'0,3464,3503,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3509, 3503, N'其他区', NULL, N'QTQ', 6, N'0,3464,3503,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3510, 3464, N'昭通市', NULL, N'ZTS', 5, N'0,3464,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3511, 3510, N'昭阳区', NULL, N'ZYQ', 1, N'0,3464,3510,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3512, 3510, N'鲁甸县', NULL, N'LDX', 2, N'0,3464,3510,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3513, 3510, N'巧家县', NULL, N'QJX', 3, N'0,3464,3510,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3514, 3510, N'盐津县', NULL, N'YJX', 4, N'0,3464,3510,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3515, 3510, N'大关县', NULL, N'DGX', 5, N'0,3464,3510,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3516, 3510, N'永善县', NULL, N'YSX', 6, N'0,3464,3510,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3517, 3510, N'绥江县', NULL, N'SJX', 7, N'0,3464,3510,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3518, 3510, N'镇雄县', NULL, N'ZXX', 8, N'0,3464,3510,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3519, 3510, N'彝良县', NULL, N'YLX', 9, N'0,3464,3510,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3520, 3510, N'威信县', NULL, N'WXX', 10, N'0,3464,3510,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3521, 3510, N'水富县', NULL, N'SFX', 11, N'0,3464,3510,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3522, 3510, N'其他区', NULL, N'QTQ', 12, N'0,3464,3510,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3523, 3464, N'丽江市', NULL, N'LJS', 6, N'0,3464,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3524, 3523, N'古城区', NULL, N'GCQ', 1, N'0,3464,3523,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3525, 3523, N'玉龙纳西族自治县', NULL, N'YLNXZZZX', 2, N'0,3464,3523,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3526, 3523, N'永胜县', NULL, N'YSX', 3, N'0,3464,3523,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3527, 3523, N'华坪县', NULL, N'HPX', 4, N'0,3464,3523,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3528, 3523, N'宁蒗彝族自治县', NULL, N'NLYZZZX', 5, N'0,3464,3523,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3529, 3523, N'其他区', NULL, N'QTQ', 6, N'0,3464,3523,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3530, 3464, N'思茅市', NULL, N'SMS', 7, N'0,3464,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3531, 3530, N'翠云区', NULL, N'CYQ', 1, N'0,3464,3530,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3532, 3530, N'普尔哈尼族彝族自治县', NULL, N'PEHNZYZZZX', 2, N'0,3464,3530,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3533, 3530, N'墨江哈尼族自治县', NULL, N'MJHNZZZX', 3, N'0,3464,3530,', 3)
GO
print 'Processed 3400 total records'
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3534, 3530, N'景东彝族自治县', NULL, N'JDYZZZX', 4, N'0,3464,3530,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3535, 3530, N'景谷傣族彝族自治县', NULL, N'JGDZYZZZX', 5, N'0,3464,3530,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3536, 3530, N'镇沅彝族哈尼族拉祜族自治县', NULL, N'ZYYZHNZLHZZZX', 6, N'0,3464,3530,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3537, 3530, N'江城哈尼族族彝族自治县', NULL, N'JCHNZZYZZZX', 7, N'0,3464,3530,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3538, 3530, N'孟连傣族拉祜族佤族自治县', NULL, N'MLDZLHZWZZZX', 8, N'0,3464,3530,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3539, 3530, N'澜沧拉祜族自治县', NULL, N'LCLHZZZX', 9, N'0,3464,3530,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3540, 3530, N'西盟佤族自治县', NULL, N'XMWZZZX', 10, N'0,3464,3530,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3541, 3530, N'其他区', NULL, N'QTQ', 11, N'0,3464,3530,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3542, 3464, N'临沧市', NULL, N'LCS', 8, N'0,3464,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3543, 3542, N'临翔区', NULL, N'LXQ', 1, N'0,3464,3542,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3544, 3542, N'凤庆县', NULL, N'FQX', 2, N'0,3464,3542,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3545, 3542, N'云县', NULL, N'YX', 3, N'0,3464,3542,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3546, 3542, N'永德县', NULL, N'YDX', 4, N'0,3464,3542,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3547, 3542, N'镇康县', NULL, N'ZKX', 5, N'0,3464,3542,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3548, 3542, N'双江拉祜族佤族布朗族傣族自治县', NULL, N'SJLHZWZBLZDZZZX', 6, N'0,3464,3542,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3549, 3542, N'耿马傣族佤族自治县', NULL, N'GMDZWZZZX', 7, N'0,3464,3542,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3550, 3542, N'沧源佤族自治县', NULL, N'CYWZZZX', 8, N'0,3464,3542,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3551, 3542, N'其他区', NULL, N'QTQ', 9, N'0,3464,3542,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3552, 3464, N'楚雄彝族自治州', NULL, N'CXYZZZZ', 9, N'0,3464,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3553, 3552, N'楚雄市', NULL, N'CXS', 1, N'0,3464,3552,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3554, 3552, N'双柏县', NULL, N'SBX', 2, N'0,3464,3552,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3555, 3552, N'牟定县', NULL, N'MDX', 3, N'0,3464,3552,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3556, 3552, N'南华县', NULL, N'NHX', 4, N'0,3464,3552,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3557, 3552, N'姚安县', NULL, N'YAX', 5, N'0,3464,3552,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3558, 3552, N'大姚县', NULL, N'DYX', 6, N'0,3464,3552,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3559, 3552, N'永仁县', NULL, N'YRX', 7, N'0,3464,3552,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3560, 3552, N'元谋县', NULL, N'YMX', 8, N'0,3464,3552,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3561, 3552, N'武定县', NULL, N'WDX', 9, N'0,3464,3552,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3562, 3552, N'禄丰县', NULL, N'LFX', 10, N'0,3464,3552,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3563, 3552, N'其他区', NULL, N'QTQ', 11, N'0,3464,3552,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3564, 3464, N'红河哈尼族彝族自治州', NULL, N'HHHNZYZZZZ', 10, N'0,3464,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3565, 3564, N'个旧市', NULL, N'GJS', 1, N'0,3464,3564,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3566, 3564, N'开远市', NULL, N'KYS', 2, N'0,3464,3564,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3567, 3564, N'蒙自县', NULL, N'MZX', 3, N'0,3464,3564,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3568, 3564, N'屏边苗族自治县', NULL, N'PBMZZZX', 4, N'0,3464,3564,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3569, 3564, N'建水县', NULL, N'JSX', 5, N'0,3464,3564,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3570, 3564, N'石屏县', NULL, N'SPX', 6, N'0,3464,3564,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3571, 3564, N'弥勒县', NULL, N'MLX', 7, N'0,3464,3564,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3572, 3564, N'泸西县', NULL, N'LXX', 8, N'0,3464,3564,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3573, 3564, N'元阳县', NULL, N'YYX', 9, N'0,3464,3564,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3574, 3564, N'红河县', NULL, N'HHX', 10, N'0,3464,3564,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3575, 3564, N'金平苗族瑶族傣族自治县', NULL, N'JPMZYZDZZZX', 11, N'0,3464,3564,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3576, 3564, N'绿春县', NULL, N'LCX', 12, N'0,3464,3564,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3577, 3564, N'河口瑶族自治县', NULL, N'HKYZZZX', 13, N'0,3464,3564,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3578, 3564, N'其他区', NULL, N'QTQ', 14, N'0,3464,3564,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3579, 3464, N'文山壮族苗族自治州', NULL, N'WSZZMZZZZ', 11, N'0,3464,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3580, 3579, N'文山县', NULL, N'WSX', 1, N'0,3464,3579,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3581, 3579, N'砚山县', NULL, N'YSX', 2, N'0,3464,3579,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3582, 3579, N'西畴县', NULL, N'XCX', 3, N'0,3464,3579,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3583, 3579, N'麻栗坡县', NULL, N'MLPX', 4, N'0,3464,3579,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3584, 3579, N'马关县', NULL, N'MGX', 5, N'0,3464,3579,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3585, 3579, N'丘北县', NULL, N'QBX', 6, N'0,3464,3579,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3586, 3579, N'广南县', NULL, N'GNX', 7, N'0,3464,3579,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3587, 3579, N'富宁县', NULL, N'FNX', 8, N'0,3464,3579,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3588, 3579, N'其他区', NULL, N'QTQ', 9, N'0,3464,3579,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3589, 3464, N'西双版纳傣族自治州', NULL, N'XSBNDZZZZ', 12, N'0,3464,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3590, 3589, N'景洪市', NULL, N'JHS', 1, N'0,3464,3589,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3591, 3589, N'猛海县', NULL, N'MHX', 2, N'0,3464,3589,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3592, 3589, N'猛腊县', NULL, N'MLX', 3, N'0,3464,3589,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3593, 3589, N'其他区', NULL, N'QTQ', 4, N'0,3464,3589,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3594, 3464, N'大理白族自治州', NULL, N'DLBZZZZ', 13, N'0,3464,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3595, 3594, N'大理市', NULL, N'DLS', 1, N'0,3464,3594,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3596, 3594, N'漾濞彝族自治县', NULL, N'YBYZZZX', 2, N'0,3464,3594,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3597, 3594, N'祥云县', NULL, N'XYX', 3, N'0,3464,3594,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3598, 3594, N'宾川县', NULL, N'BCX', 4, N'0,3464,3594,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3599, 3594, N'弥渡县', NULL, N'MDX', 5, N'0,3464,3594,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3600, 3594, N'南涧彝族自治县', NULL, N'NJYZZZX', 6, N'0,3464,3594,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3601, 3594, N'巍山彝族回族自治县', NULL, N'WSYZHZZZX', 7, N'0,3464,3594,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3602, 3594, N'永平县', NULL, N'YPX', 8, N'0,3464,3594,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3603, 3594, N'云龙县', NULL, N'YLX', 9, N'0,3464,3594,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3604, 3594, N'洱源县', NULL, N'EYX', 10, N'0,3464,3594,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3605, 3594, N'剑川县', NULL, N'JCX', 11, N'0,3464,3594,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3606, 3594, N'鹤庆县', NULL, N'HQX', 12, N'0,3464,3594,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3607, 3594, N'其他区', NULL, N'QTQ', 13, N'0,3464,3594,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3608, 3464, N'德宏傣族景颇族自治州', NULL, N'DHDZJPZZZZ', 14, N'0,3464,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3609, 3608, N'瑞丽市', NULL, N'RLS', 1, N'0,3464,3608,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3610, 3608, N'潞西市', NULL, N'LXS', 2, N'0,3464,3608,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3611, 3608, N'梁河县', NULL, N'LHX', 3, N'0,3464,3608,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3612, 3608, N'盈江县', NULL, N'YJX', 4, N'0,3464,3608,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3613, 3608, N'陇川县', NULL, N'LCX', 5, N'0,3464,3608,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3614, 3608, N'其他区', NULL, N'QTQ', 6, N'0,3464,3608,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3615, 3464, N'怒江傈僳族自治州', NULL, N'NJLSZZZZ', 15, N'0,3464,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3616, 3615, N'泸水县', NULL, N'LSX', 1, N'0,3464,3615,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3617, 3615, N'福贡县', NULL, N'FGX', 2, N'0,3464,3615,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3618, 3615, N'贡山独龙族怒族自治县', NULL, N'GSDLZNZZZX', 3, N'0,3464,3615,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3619, 3615, N'兰坪白族普米族自治县', NULL, N'LPBZPMZZZX', 4, N'0,3464,3615,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3620, 3615, N'其他区', NULL, N'QTQ', 5, N'0,3464,3615,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3621, 3464, N'迪庆藏族自治州', NULL, N'DQCZZZZ', 16, N'0,3464,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3622, 3621, N'香格里拉县', NULL, N'XGLLX', 1, N'0,3464,3621,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3623, 3621, N'德钦县', NULL, N'DQX', 2, N'0,3464,3621,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3624, 3621, N'维西傈僳族自治县', NULL, N'WXLSZZZX', 3, N'0,3464,3621,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3625, 3621, N'其他区', NULL, N'QTQ', 4, N'0,3464,3621,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (7, 3626, NULL, N'西藏', NULL, N'XC', 31, N'0,', 1)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3627, 3626, N'拉萨市', NULL, N'LSS', 1, N'0,3626,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3628, 3627, N'城关区', NULL, N'CGQ', 1, N'0,3626,3627,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3629, 3627, N'林周县', NULL, N'LZX', 2, N'0,3626,3627,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3630, 3627, N'当雄县', NULL, N'DXX', 3, N'0,3626,3627,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3631, 3627, N'尼木县', NULL, N'NMX', 4, N'0,3626,3627,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3632, 3627, N'曲水县', NULL, N'QSX', 5, N'0,3626,3627,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3633, 3627, N'堆龙德庆县', NULL, N'DLDQX', 6, N'0,3626,3627,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3634, 3627, N'达孜县', NULL, N'DZX', 7, N'0,3626,3627,', 3)
GO
print 'Processed 3500 total records'
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3635, 3627, N'墨竹工卡县', NULL, N'MZGKX', 8, N'0,3626,3627,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3636, 3627, N'其他区', NULL, N'QTQ', 9, N'0,3626,3627,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3637, 3626, N'昌都地区', NULL, N'CDDQ', 2, N'0,3626,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3638, 3637, N'昌都县', NULL, N'CDX', 1, N'0,3626,3637,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3639, 3637, N'江达县', NULL, N'JDX', 2, N'0,3626,3637,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3640, 3637, N'贡觉县', NULL, N'GJX', 3, N'0,3626,3637,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3641, 3637, N'类乌齐县', NULL, N'LWQX', 4, N'0,3626,3637,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3642, 3637, N'丁青县', NULL, N'DQX', 5, N'0,3626,3637,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3643, 3637, N'察雅县', NULL, N'CYX', 6, N'0,3626,3637,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3644, 3637, N'八宿县', NULL, N'BSX', 7, N'0,3626,3637,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3645, 3637, N'左贡县', NULL, N'ZGX', 8, N'0,3626,3637,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3646, 3637, N'芒康县', NULL, N'MKX', 9, N'0,3626,3637,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3647, 3637, N'洛隆县', NULL, N'LLX', 10, N'0,3626,3637,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3648, 3637, N'边坝县', NULL, N'BBX', 11, N'0,3626,3637,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3649, 3637, N'其他区', NULL, N'QTQ', 12, N'0,3626,3637,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3650, 3626, N'山南地区', NULL, N'SNDQ', 3, N'0,3626,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3651, 3650, N'乃东县', NULL, N'NDX', 1, N'0,3626,3650,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3652, 3650, N'扎囊县', NULL, N'ZNX', 2, N'0,3626,3650,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3653, 3650, N'贡嘎县', NULL, N'GGX', 3, N'0,3626,3650,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3654, 3650, N'桑日县', NULL, N'SRX', 4, N'0,3626,3650,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3655, 3650, N'琼结县', NULL, N'QJX', 5, N'0,3626,3650,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3656, 3650, N'曲松县', NULL, N'QSX', 6, N'0,3626,3650,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3657, 3650, N'措美县', NULL, N'CMX', 7, N'0,3626,3650,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3658, 3650, N'洛扎县', NULL, N'LZX', 8, N'0,3626,3650,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3659, 3650, N'加查县', NULL, N'JCX', 9, N'0,3626,3650,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3660, 3650, N'隆子县', NULL, N'LZX', 10, N'0,3626,3650,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3661, 3650, N'错那县', NULL, N'CNX', 11, N'0,3626,3650,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3662, 3650, N'浪卡子县', NULL, N'LKZX', 12, N'0,3626,3650,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3663, 3650, N'其他区', NULL, N'QTQ', 13, N'0,3626,3650,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3664, 3626, N'日喀则地区', NULL, N'RKZDQ', 4, N'0,3626,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3665, 3664, N'日喀则市', NULL, N'RKZS', 1, N'0,3626,3664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3666, 3664, N'南木林县', NULL, N'NMLX', 2, N'0,3626,3664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3667, 3664, N'江孜县', NULL, N'JZX', 3, N'0,3626,3664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3668, 3664, N'定日县', NULL, N'DRX', 4, N'0,3626,3664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3669, 3664, N'萨迦县', NULL, N'SJX', 5, N'0,3626,3664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3670, 3664, N'拉孜县', NULL, N'LZX', 6, N'0,3626,3664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3671, 3664, N'昂仁县', NULL, N'ARX', 7, N'0,3626,3664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3672, 3664, N'谢通门县', NULL, N'XTMX', 8, N'0,3626,3664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3673, 3664, N'白朗县', NULL, N'BLX', 9, N'0,3626,3664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3674, 3664, N'仁布县', NULL, N'RBX', 10, N'0,3626,3664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3675, 3664, N'康马县', NULL, N'KMX', 11, N'0,3626,3664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3676, 3664, N'定结县', NULL, N'DJX', 12, N'0,3626,3664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3677, 3664, N'仲巴县', NULL, N'ZBX', 13, N'0,3626,3664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3678, 3664, N'亚东县', NULL, N'YDX', 14, N'0,3626,3664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3679, 3664, N'吉隆县', NULL, N'JLX', 15, N'0,3626,3664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3680, 3664, N'聂拉木县', NULL, N'NLMX', 16, N'0,3626,3664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3681, 3664, N'萨嘎县', NULL, N'SGX', 17, N'0,3626,3664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3682, 3664, N'岗巴县', NULL, N'GBX', 18, N'0,3626,3664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3683, 3664, N'其他区', NULL, N'QTQ', 19, N'0,3626,3664,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3684, 3626, N'那曲地区', NULL, N'NQDQ', 5, N'0,3626,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3685, 3684, N'那曲县', NULL, N'NQX', 1, N'0,3626,3684,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3686, 3684, N'嘉黎县', NULL, N'JLX', 2, N'0,3626,3684,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3687, 3684, N'比如县', NULL, N'BRX', 3, N'0,3626,3684,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3688, 3684, N'聂荣县', NULL, N'NRX', 4, N'0,3626,3684,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3689, 3684, N'安多县', NULL, N'ADX', 5, N'0,3626,3684,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3690, 3684, N'申扎县', NULL, N'SZX', 6, N'0,3626,3684,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3691, 3684, N'索县', NULL, N'SX', 7, N'0,3626,3684,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3692, 3684, N'班戈县', NULL, N'BGX', 8, N'0,3626,3684,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3693, 3684, N'巴青县', NULL, N'BQX', 9, N'0,3626,3684,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3694, 3684, N'尼玛县', NULL, N'NMX', 10, N'0,3626,3684,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3695, 3684, N'其他区', NULL, N'QTQ', 11, N'0,3626,3684,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3696, 3626, N'阿里地区', NULL, N'ALDQ', 6, N'0,3626,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3697, 3696, N'普兰县', NULL, N'PLX', 1, N'0,3626,3696,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3698, 3696, N'札达县', NULL, N'ZDX', 2, N'0,3626,3696,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3699, 3696, N'噶尔县', NULL, N'GEX', 3, N'0,3626,3696,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3700, 3696, N'日土县', NULL, N'RTX', 4, N'0,3626,3696,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3701, 3696, N'革吉县', NULL, N'GJX', 5, N'0,3626,3696,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3702, 3696, N'改则县', NULL, N'GZX', 6, N'0,3626,3696,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3703, 3696, N'措勤县', NULL, N'CQX', 7, N'0,3626,3696,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3704, 3696, N'其他区', NULL, N'QTQ', 8, N'0,3626,3696,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3705, 3626, N'林芝地区', NULL, N'LZDQ', 7, N'0,3626,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3706, 3705, N'林芝县', NULL, N'LZX', 1, N'0,3626,3705,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3707, 3705, N'工布江达县', NULL, N'GBJDX', 2, N'0,3626,3705,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3708, 3705, N'米林县', NULL, N'MLX', 3, N'0,3626,3705,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3709, 3705, N'墨脱县', NULL, N'MTX', 4, N'0,3626,3705,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3710, 3705, N'波密县', NULL, N'BMX', 5, N'0,3626,3705,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3711, 3705, N'察隅县', NULL, N'CYX', 6, N'0,3626,3705,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3712, 3705, N'朗县', NULL, N'LX', 7, N'0,3626,3705,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3713, 3705, N'其他区', NULL, N'QTQ', 8, N'0,3626,3705,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (8, 3714, NULL, N'台湾省', NULL, N'TWS', 32, N'0,', 1)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3715, 3714, N'台北市', NULL, N'TBS', 1, N'0,3714,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3716, 3715, N'中正区', NULL, N'ZZQ', 1, N'0,3714,3715,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3717, 3715, N'大同区', NULL, N'DTQ', 2, N'0,3714,3715,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3718, 3715, N'中山区', NULL, N'ZSQ', 3, N'0,3714,3715,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3719, 3715, N'松山区', NULL, N'SSQ', 4, N'0,3714,3715,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3720, 3715, N'大安区', NULL, N'DAQ', 5, N'0,3714,3715,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3721, 3715, N'万华区', NULL, N'WHQ', 6, N'0,3714,3715,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3722, 3715, N'信义区', NULL, N'XYQ', 7, N'0,3714,3715,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3723, 3715, N'士林区', NULL, N'SLQ', 8, N'0,3714,3715,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3724, 3715, N'北投区', NULL, N'BTQ', 9, N'0,3714,3715,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3725, 3715, N'内湖区', NULL, N'NHQ', 10, N'0,3714,3715,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3726, 3715, N'南港区', NULL, N'NGQ', 11, N'0,3714,3715,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3727, 3715, N'文山区', NULL, N'WSQ', 12, N'0,3714,3715,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3728, 3715, N'其他区', NULL, N'QTQ', 13, N'0,3714,3715,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3729, 3714, N'高雄市', NULL, N'GXS', 2, N'0,3714,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3730, 3729, N'新兴区', NULL, N'XXQ', 1, N'0,3714,3729,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3731, 3729, N'前金区', NULL, N'QJQ', 2, N'0,3714,3729,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3732, 3729, N'芩雅区', NULL, N'QYQ', 3, N'0,3714,3729,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3733, 3729, N'盐埕区', NULL, N'YCQ', 4, N'0,3714,3729,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3734, 3729, N'鼓山区', NULL, N'GSQ', 5, N'0,3714,3729,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3735, 3729, N'旗津区', NULL, N'QJQ', 6, N'0,3714,3729,', 3)
GO
print 'Processed 3600 total records'
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3736, 3729, N'前镇区', NULL, N'QZQ', 7, N'0,3714,3729,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3737, 3729, N'三民区', NULL, N'SMQ', 8, N'0,3714,3729,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3738, 3729, N'左营区', NULL, N'ZYQ', 9, N'0,3714,3729,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3739, 3729, N'楠梓区', NULL, N'NZQ', 10, N'0,3714,3729,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3740, 3729, N'小港区', NULL, N'XGQ', 11, N'0,3714,3729,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3741, 3729, N'其他区', NULL, N'QTQ', 12, N'0,3714,3729,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3742, 3714, N'台南市', NULL, N'TNS', 3, N'0,3714,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3743, 3742, N'中西区', NULL, N'ZXQ', 1, N'0,3714,3742,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3744, 3742, N'东区', NULL, N'DQ', 2, N'0,3714,3742,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3745, 3742, N'南区', NULL, N'NQ', 3, N'0,3714,3742,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3746, 3742, N'北区', NULL, N'BQ', 4, N'0,3714,3742,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3747, 3742, N'安平区', NULL, N'APQ', 5, N'0,3714,3742,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3748, 3742, N'安南区', NULL, N'ANQ', 6, N'0,3714,3742,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3749, 3742, N'其他区', NULL, N'QTQ', 7, N'0,3714,3742,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3750, 3714, N'台中市', NULL, N'TZS', 4, N'0,3714,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3751, 3750, N'中区', NULL, N'ZQ', 1, N'0,3714,3750,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3752, 3750, N'东区', NULL, N'DQ', 2, N'0,3714,3750,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3753, 3750, N'南区', NULL, N'NQ', 3, N'0,3714,3750,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3754, 3750, N'西区', NULL, N'XQ', 4, N'0,3714,3750,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3755, 3750, N'北区', NULL, N'BQ', 5, N'0,3714,3750,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3756, 3750, N'北屯区', NULL, N'BTQ', 6, N'0,3714,3750,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3757, 3750, N'西屯区', NULL, N'XTQ', 7, N'0,3714,3750,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3759, 3750, N'其他区', NULL, N'QTQ', 9, N'0,3714,3750,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3760, 3714, N'金门县', NULL, N'JMX', 5, N'0,3714,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3761, 3714, N'南投县', NULL, N'NTX', 6, N'0,3714,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3762, 3714, N'基隆市', NULL, N'JLS', 7, N'0,3714,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3763, 3762, N'仁爱区', NULL, N'RAQ', 1, N'0,3714,3762,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3764, 3762, N'信义区', NULL, N'XYQ', 2, N'0,3714,3762,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3765, 3762, N'中正区', NULL, N'ZZQ', 3, N'0,3714,3762,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3766, 3762, N'中山区', NULL, N'ZSQ', 4, N'0,3714,3762,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3767, 3762, N'安乐区', NULL, N'ALQ', 5, N'0,3714,3762,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3768, 3762, N'暖暖区', NULL, N'NNQ', 6, N'0,3714,3762,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3769, 3762, N'七堵区', NULL, N'QDQ', 7, N'0,3714,3762,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3770, 3762, N'其他区', NULL, N'QTQ', 8, N'0,3714,3762,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3771, 3714, N'新竹市', NULL, N'XZS', 8, N'0,3714,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3772, 3771, N'东区', NULL, N'DQ', 1, N'0,3714,3771,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3773, 3771, N'北区', NULL, N'BQ', 2, N'0,3714,3771,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3774, 3771, N'香山区', NULL, N'XSQ', 3, N'0,3714,3771,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3775, 3771, N'其他区', NULL, N'QTQ', 4, N'0,3714,3771,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3776, 3714, N'嘉义市', NULL, N'JYS', 9, N'0,3714,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3777, 3776, N'东区', NULL, N'DQ', 1, N'0,3714,3776,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3778, 3776, N'西区', NULL, N'XQ', 2, N'0,3714,3776,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3779, 3776, N'其他区', NULL, N'QTQ', 3, N'0,3714,3776,', 3)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3780, 3714, N'台北县', NULL, N'TBX', 10, N'0,3714,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3781, 3714, N'宜兰县', NULL, N'YLX', 11, N'0,3714,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3782, 3714, N'新竹县', NULL, N'XZX', 12, N'0,3714,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3783, 3714, N'桃园县', NULL, N'TYX', 13, N'0,3714,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3784, 3714, N'苗粟县', NULL, N'MSX', 14, N'0,3714,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3785, 3714, N'台中县', NULL, N'TZX', 15, N'0,3714,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3786, 3714, N'彰化县', NULL, N'ZHX', 16, N'0,3714,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3787, 3714, N'嘉义县', NULL, N'JYX', 17, N'0,3714,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3788, 3714, N'云林县', NULL, N'YLX', 18, N'0,3714,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3789, 3714, N'台南县', NULL, N'TNX', 19, N'0,3714,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3790, 3714, N'高雄县', NULL, N'GXX', 20, N'0,3714,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3791, 3714, N'屏东县', NULL, N'PDX', 21, N'0,3714,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3792, 3714, N'台东县', NULL, N'TDX', 22, N'0,3714,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3793, 3714, N'花莲县', NULL, N'HLX', 23, N'0,3714,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3794, 3714, N'澎湖县', NULL, N'PHX', 24, N'0,3714,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (8, 3795, NULL, N'香港', NULL, N'XG', 33, N'0,', 1)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3796, 3795, N'香港岛', NULL, N'XGD', 1, N'0,3795,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3797, 3795, N'九龙', NULL, N'JL', 2, N'0,3795,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3798, 3795, N'新界', NULL, N'XJ', 3, N'0,3795,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (8, 3799, NULL, N'澳门', NULL, N'AM', 34, N'0,', 1)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3800, 3799, N'澳门半岛', NULL, N'AMBD', 1, N'0,3799,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3801, 3799, N'离岛', NULL, N'LD', 2, N'0,3799,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3803, 3802, N'海外', NULL, N'HW', 1, N'0,3802,', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3805, 3804, N'江东市', NULL, N'jds', 1, N'0,3804', 2)
INSERT [Ms_Regions] ([AreaId], [RegionId], [ParentId], [RegionName], [Spell], [SpellShort], [DisplaySequence], [Path], [Depth]) VALUES (NULL, 3806, 3805, N'江东区', NULL, N'jdq', 1, N'0,3804,3805', 3)
SET IDENTITY_INSERT [Ms_Regions] OFF
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_RegionRec]') AND type in (N'U'))
BEGIN
CREATE TABLE [Ms_RegionRec](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[RegionId] [int] NOT NULL,
	[RegionName] [nvarchar](100) NOT NULL,
	[DisplaySequence] [int] NOT NULL,
	[Type] [smallint] NOT NULL,
 CONSTRAINT [PK_Ms_RegionRec] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_RegionAreas]') AND type in (N'U'))
BEGIN
CREATE TABLE [Ms_RegionAreas](
	[AreaId] [int] IDENTITY(1,1) NOT NULL,
	[Name] [nvarchar](200) NOT NULL,
 CONSTRAINT [PK_Ms_Area] PRIMARY KEY CLUSTERED 
(
	[AreaId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_Maps]') AND type in (N'U'))
BEGIN
CREATE TABLE [Ms_Maps](
	[MapId] [int] IDENTITY(1,1) NOT NULL,
	[UserId] [int] NOT NULL,
	[DepartmentId] [int] NOT NULL,
	[PointerLongitude] [nvarchar](100) NULL,
	[PointDimension] [nvarchar](100) NULL,
	[PointClass] [nvarchar](100) NULL,
	[PointerType] [nvarchar](100) NULL,
	[PointerTitle] [nvarchar](100) NULL,
	[PointImg] [nvarchar](100) NULL,
	[PointerContent] [nvarchar](300) NULL,
	[SearchCity] [nvarchar](50) NULL,
	[searchArea] [nvarchar](50) NULL,
	[Level] [int] NULL,
	[enableKeyboard] [bit] NULL,
	[enableScrollWheelZoom] [bit] NULL,
	[NavigationControl] [bit] NULL,
	[ScaleControl] [bit] NULL,
	[MapTypeControl] [bit] NULL,
	[MarkersLongitude] [nvarchar](100) NULL,
	[MarkersDimension] [nvarchar](100) NULL,
	[setAnimation] [nvarchar](100) NULL,
	[LoadEvent] [nvarchar](50) NULL,
	[MenuItemzoomIn] [bit] NULL,
	[MenuItemzoomOut] [bit] NULL,
	[MenuItemsetZoomTop] [bit] NULL,
	[MenuItemsetPoint] [bit] NULL,
	[MapType] [smallint] NOT NULL CONSTRAINT [DF_Ms_Maps_MapType]  DEFAULT ((0)),
	[Other1] [nvarchar](100) NULL,
	[Other2] [nvarchar](100) NULL,
	[Other3] [nvarchar](50) NULL,
 CONSTRAINT [PK_BaiduMap] PRIMARY KEY CLUSTERED 
(
	[MapId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_EntryForm]') AND type in (N'U'))
BEGIN
CREATE TABLE [Ms_EntryForm](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[UserName] [nvarchar](50) NOT NULL,
	[Age] [int] NULL,
	[Email] [nvarchar](100) NULL,
	[TelPhone] [nvarchar](50) NULL,
	[Phone] [nvarchar](50) NULL,
	[QQ] [nvarchar](50) NULL,
	[MSN] [nvarchar](100) NULL,
	[HouseAddress] [nvarchar](200) NULL,
	[CompanyAddress] [nvarchar](200) NULL,
	[RegionId] [int] NULL,
	[Sex] [char](10) NULL,
	[Description] [text] NULL,
	[Remark] [nvarchar](300) NULL,
	[State] [smallint] NULL,
 CONSTRAINT [PK_EntryForm] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_Enterprise]') AND type in (N'U'))
BEGIN
CREATE TABLE [Ms_Enterprise](
	[EnterpriseID] [int] IDENTITY(1,1) NOT NULL,
	[Name] [nvarchar](100) NOT NULL,
	[Introduction] [nvarchar](max) NULL,
	[RegisteredCapital] [int] NULL,
	[TelPhone] [nvarchar](50) NULL,
	[CellPhone] [nvarchar](50) NULL,
	[ContactMail] [nvarchar](50) NULL,
	[RegionID] [int] NULL,
	[Address] [nvarchar](500) NULL,
	[Remark] [nvarchar](1000) NULL,
	[Contact] [nvarchar](50) NULL,
	[UserName] [nvarchar](50) NULL,
	[EstablishedDate] [datetime] NULL,
	[EstablishedCity] [int] NULL,
	[LOGO] [nvarchar](300) NULL,
	[Fax] [nvarchar](50) NULL,
	[PostCode] [nvarchar](50) NULL,
	[HomePage] [nvarchar](50) NULL,
	[ArtiPerson] [nvarchar](50) NULL,
	[EnteRank] [int] NULL,
	[EnteClassID] [int] NULL,
	[CompanyType] [smallint] NULL,
	[BusinessLicense] [nvarchar](300) NULL,
	[TaxNumber] [nvarchar](300) NULL,
	[AccountBank] [nvarchar](300) NULL,
	[AccountInfo] [nvarchar](300) NULL,
	[ServicePhone] [nvarchar](300) NULL,
	[QQ] [nvarchar](50) NULL,
	[MSN] [nvarchar](50) NULL,
	[Status] [smallint] NULL,
	[CreatedDate] [datetime] NULL,
	[CreatedUserID] [int] NULL,
	[UpdatedDate] [datetime] NULL,
	[UpdatedUserID] [int] NULL,
	[Balance] [money] NULL CONSTRAINT [DF_Ms_Enterprise_Balance_1]  DEFAULT ((0)),
	[AgentID] [int] NOT NULL,
 CONSTRAINT [PK_Maticsoft_SupplierId] PRIMARY KEY CLUSTERED 
(
	[EnterpriseID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_EmailTemplet]') AND type in (N'U'))
BEGIN
CREATE TABLE [Ms_EmailTemplet](
	[TempletId] [int] IDENTITY(1,1) NOT NULL,
	[EmailType] [nvarchar](100) NOT NULL,
	[EmailPriority] [int] NOT NULL,
	[TagDescription] [nvarchar](500) NULL,
	[EmailDescription] [nvarchar](500) NULL,
	[EmailSubject] [nvarchar](1024) NULL,
	[EmailBody] [ntext] NULL,
 CONSTRAINT [PK_Ms_EmailTemplet] PRIMARY KEY CLUSTERED 
(
	[TempletId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO
SET IDENTITY_INSERT [Ms_EmailTemplet] ON
INSERT [Ms_EmailTemplet] ([TempletId], [EmailType], [EmailPriority], [TagDescription], [EmailDescription], [EmailSubject], [EmailBody]) VALUES (1, N'FindPwd', -1, NULL, N'找回密码', N'找回密码', N'<div style="width:680px"><div style="text-align:left;line-height:1.5em;color:#039;clear:both;padding:15px;margin-left:auto;margin-right:auto;">亲爱的用户：<div style="padding:15px 0px 0px;"><p>欢迎使用会员中心找回密码功能。请点击以下链接验证您的用户（链接24小时内有效）&nbsp;：<br /><a title="点击验证您的用户" href="http://{Domain}/Account/VerifyPassword?SecretKey={SecretKey}" target="_blank"><strong>http://{Domain}/Account/VerifyPassword?SecretKey={SecretKey}</strong></a>&nbsp;</p><p style="padding-top:15px;">如果您没有使用找回密码功能，请忽略此邮件。</p><p style="text-align:left;width:100%;padding-top:15px;">会员中心<br />{CreatedDate}</p><p style="color:#696969">（本邮件由系统自动发出，请勿回复。）</p></div></div></div><script language="javascript">try{parent.JS.modules[window.name].content.setHeight();}catch(e){}</script>')
INSERT [Ms_EmailTemplet] ([TempletId], [EmailType], [EmailPriority], [TagDescription], [EmailDescription], [EmailSubject], [EmailBody]) VALUES (2, N'Register', -1, N'', N'注册验证', N'注册验证', N'<p><strong>亲爱的用户：</strong></p><p>为了您的账户安全，我们建议您点击以下链接验证邮箱。请点击以下链接验证您的用户（链接24小时内有效） ：</p><p><br /><em> <a  href="http://{Domain}/Account/ValidateEmail?SecretKey={SecretKey}"> <span style="text-decoration:underline;color:#548dd4">http://{Domain}/Account/ValidateEmail?SecretKey={SecretKey}</span></a></em> </p><p><br /></p><p><br /></p><p><br /></p><p>如果您没有注册我们的系统，请忽略此邮件。会员中心</p><p><br /></p><p>{CreatedDate}</p><p><br /></p><p>（本邮件由系统自动发出，请勿回复。）</p><p><br /></p>')
INSERT [Ms_EmailTemplet] ([TempletId], [EmailType], [EmailPriority], [TagDescription], [EmailDescription], [EmailSubject], [EmailBody]) VALUES (3, N'Order', -1, NULL, N'订单成功邮件', N'您的订单已确认收到', N'<table cellspacing="0" cellpadding="0" width="570"><tbody><tr class="firstRow"><td style="padding: 15px 10px 8px; border: 1px solid rgb(221, 221, 221); font-family: &quot;lucida Grande&quot;, Verdana, &quot;Microsoft YaHei&quot;; font-size: 14px; font-weight: bold; -webkit-font-smoothing: subpixel-antialiased;" align="left">尊敬的{UserName}您好：</td></tr><tr><td style="padding: 5px 10px; border: 1px solid rgb(221, 221, 221); line-height: 24px; font-family: &quot;lucida Grande&quot;, Verdana, &quot;Microsoft YaHei&quot;; -webkit-font-smoothing: subpixel-antialiased;" align="left">感谢您在动软商城( {Domain}) 购物!&nbsp;<br/>您的订单【{OrderCode}】已确认收到，您选择的是{PaymentType}的支付配送方式，订单信息以“我的订单”页面显示为准，您也可以随时进入页面对订单进行修改等操作。</td></tr></tbody></table><p><br class="Apple-interchange-newline"/></p><p>&nbsp;</p>')
SET IDENTITY_INSERT [Ms_EmailTemplet] OFF
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_EmailRoleAction]') AND type in (N'U'))
BEGIN
CREATE TABLE [Ms_EmailRoleAction](
	[RoleId] [int] NOT NULL,
	[ActionId] [int] NOT NULL,
 CONSTRAINT [PK_Ms_EmailRoleAction] PRIMARY KEY CLUSTERED 
(
	[RoleId] ASC,
	[ActionId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_Agents]') AND type in (N'U'))
BEGIN
CREATE TABLE [Ms_Agents](
	[AgentId] [int] IDENTITY(1,1) NOT NULL,
	[Name] [nvarchar](100) NOT NULL,
	[StoreName] [nvarchar](100) NULL,
	[StoreStatus] [smallint] NOT NULL CONSTRAINT [DF_Ms_Agents_StoreStatus]  DEFAULT ((0)),
	[CategoryId] [int] NOT NULL CONSTRAINT [DF_Ms_Agents_CategoryId]  DEFAULT ((-1)),
	[Rank] [int] NOT NULL CONSTRAINT [DF_Ms_Agents_EnteRank]  DEFAULT ((0)),
	[UserId] [int] NOT NULL,
	[UserName] [nvarchar](50) NULL,
	[TelPhone] [nvarchar](50) NULL,
	[CellPhone] [nvarchar](50) NULL,
	[ContactMail] [nvarchar](50) NULL,
	[Introduction] [nvarchar](max) NULL,
	[RegisteredCapital] [int] NULL,
	[RegionId] [int] NULL,
	[Address] [nvarchar](500) NULL,
	[Contact] [nvarchar](50) NULL,
	[EstablishedDate] [datetime] NULL,
	[EstablishedCity] [int] NULL,
	[LOGO] [nvarchar](300) NULL,
	[Fax] [nvarchar](30) NULL,
	[PostCode] [nvarchar](10) NULL,
	[HomePage] [nvarchar](50) NULL,
	[ArtiPerson] [nvarchar](50) NULL,
	[CompanyType] [smallint] NULL,
	[BusinessLicense] [nvarchar](300) NULL,
	[TaxNumber] [nvarchar](300) NULL,
	[AccountBank] [nvarchar](300) NULL,
	[AccountInfo] [nvarchar](300) NULL,
	[ServicePhone] [nvarchar](300) NULL,
	[QQ] [nvarchar](30) NULL,
	[MSN] [nvarchar](30) NULL,
	[Status] [smallint] NOT NULL,
	[CreatedDate] [datetime] NOT NULL CONSTRAINT [DF_Ms_Agents_CreatedDate]  DEFAULT (getdate()),
	[CreatedUserId] [int] NOT NULL,
	[UpdatedDate] [datetime] NULL,
	[UpdatedUserId] [int] NULL,
	[ExpirationDate] [datetime] NULL,
	[Balance] [money] NOT NULL CONSTRAINT [DF_Ms_Agents_Balance_1]  DEFAULT ((0)),
	[IsUserApprove] [bit] NOT NULL CONSTRAINT [DF_Ms_Agents_IsUserApprove]  DEFAULT ((0)),
	[IsAgenApprove] [bit] NOT NULL CONSTRAINT [DF_Ms_Agents_IsUserApprove1]  DEFAULT ((0)),
	[Recomend] [smallint] NOT NULL CONSTRAINT [DF_Ms_Agents_IsRecomend]  DEFAULT ((0)),
	[Sequence] [int] NOT NULL CONSTRAINT [DF_Ms_Agents_Sequence]  DEFAULT ((0)),
	[ThemeName] [nvarchar](100) NOT NULL CONSTRAINT [DF_Ms_Agents_ImageCount1]  DEFAULT ((0)),
	[ParentId] [int] NOT NULL,
	[Remark] [nvarchar](1000) NULL,
	[DiscountRatio] [money] NOT NULL CONSTRAINT [DF_Ms_Agents_Discount]  DEFAULT ((1)),
 CONSTRAINT [PK_Maticsoft_Ms_AgentId] PRIMARY KEY CLUSTERED 
(
	[AgentId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_AgentRank]') AND type in (N'U'))
BEGIN
CREATE TABLE [Ms_AgentRank](
	[RankId] [int] IDENTITY(1,1) NOT NULL,
	[Name] [nvarchar](50) NOT NULL,
	[ProductCount] [int] NOT NULL CONSTRAINT [DF_Ms_AgentRank_ProductCount]  DEFAULT ((-1)),
	[ImageCount] [int] NOT NULL CONSTRAINT [DF_Ms_AgentRank_ImageCount]  DEFAULT ((-1)),
	[Price] [money] NOT NULL CONSTRAINT [DF_Ms_AgentRank_Amount]  DEFAULT ((0)),
	[IsDefault] [bit] NOT NULL,
	[IsApproval] [bit] NOT NULL,
	[Description] [text] NULL,
	[RankMin] [money] NOT NULL CONSTRAINT [DF_Ms_AgentRank_LevelValue]  DEFAULT ((-1)),
	[RankMax] [money] NOT NULL CONSTRAINT [DF_Ms_AgentRank_LevelMax]  DEFAULT ((-1)),
 CONSTRAINT [PK_Ms_AgentRank] PRIMARY KEY CLUSTERED 
(
	[RankId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_AgentMenus]') AND type in (N'U'))
BEGIN
CREATE TABLE [Ms_AgentMenus](
	[MenuId] [int] IDENTITY(1,1) NOT NULL,
	[MenuName] [nvarchar](50) NOT NULL,
	[NavURL] [nvarchar](max) NULL,
	[MenuTitle] [nvarchar](50) NULL,
	[MenuType] [int] NULL,
	[Target] [int] NULL,
	[IsUsed] [bit] NULL,
	[Sequence] [int] NOT NULL CONSTRAINT [DF_Ms_AgentMenu_Sequence]  DEFAULT ((0)),
	[Visible] [int] NOT NULL CONSTRAINT [DF_Ms_AgentMenu_Visible]  DEFAULT ((1)),
	[URLType] [int] NOT NULL CONSTRAINT [DF_Ms_AgentMenu_URLType]  DEFAULT ((0)),
	[NavTheme] [nvarchar](100) NULL CONSTRAINT [DF_Ms_AgentMenu_NavTheme]  DEFAULT (N''),
	[AgentId] [int] NOT NULL,
 CONSTRAINT [PK_Ms_AgentMenu] PRIMARY KEY CLUSTERED 
(
	[MenuId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_AgentConfig]') AND type in (N'U'))
BEGIN
CREATE TABLE [Ms_AgentConfig](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[KeyName] [nvarchar](50) NULL,
	[Value] [nvarchar](max) NULL,
	[KeyType] [int] NULL,
	[Description] [nvarchar](200) NULL,
	[AgentId] [int] NOT NULL,
 CONSTRAINT [PK_Ms_AgentConfig] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Ms_AgentAD]') AND type in (N'U'))
BEGIN
CREATE TABLE [Ms_AgentAD](
	[AdvertisementId] [int] IDENTITY(1,1) NOT NULL,
	[Name] [nvarchar](100) NULL,
	[PositionId] [int] NOT NULL,
	[ContentType] [int] NOT NULL,
	[FileUrl] [nvarchar](500) NULL,
	[AlternateText] [nvarchar](200) NULL,
	[NavigateUrl] [nvarchar](500) NULL,
	[AdvHtml] [nvarchar](max) NULL,
	[CreatedDate] [datetime] NOT NULL CONSTRAINT [DF_Ms_AgentAD_CreatedDate]  DEFAULT (getdate()),
	[CreatedUserID] [int] NOT NULL,
	[Status] [smallint] NOT NULL,
	[Sequence] [int] NOT NULL,
	[AgentId] [int] NOT NULL,
 CONSTRAINT [PK_Ms_AgentAD] PRIMARY KEY CLUSTERED 
(
	[AdvertisementId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[JLT_UserAttendance]') AND type in (N'U'))
BEGIN
CREATE TABLE [JLT_UserAttendance](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[EnterpriseID] [int] NULL,
	[UserID] [int] NOT NULL,
	[UserName] [nvarchar](50) NULL,
	[TrueName] [nvarchar](50) NULL,
	[Latitude] [nvarchar](50) NOT NULL,
	[Longitude] [nvarchar](50) NOT NULL,
	[Address] [nvarchar](200) NULL,
	[Kilometers] [int] NULL,
	[TypeID] [int] NOT NULL,
	[CreatedDate] [datetime] NOT NULL CONSTRAINT [DF_JLT_UserAttendance_CreatedDate]  DEFAULT (getdate()),
	[AttendanceDate] [smalldatetime] NOT NULL,
	[Description] [nvarchar](200) NULL,
	[ImagePath] [nvarchar](500) NULL,
	[Score] [int] NOT NULL CONSTRAINT [DF_JLT_UserAttendance_Score]  DEFAULT ((0)),
	[Status] [int] NOT NULL CONSTRAINT [DF_JLT_UserAttendance_Status]  DEFAULT ((1)),
	[ReviewedUserID] [int] NULL,
	[ReviewedDescription] [nvarchar](300) NULL,
	[ReviewedDate] [datetime] NULL,
	[ReviewedStatus] [int] NULL,
	[Remark] [nvarchar](200) NULL,
 CONSTRAINT [PK_UserAttendance] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[JLT_ToDoInfo]') AND type in (N'U'))
BEGIN
CREATE TABLE [JLT_ToDoInfo](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[EnterpriseID] [int] NULL,
	[UserId] [int] NOT NULL,
	[UserName] [nvarchar](50) NULL,
	[Title] [nvarchar](200) NULL,
	[Content] [text] NULL,
	[ToUserId] [nvarchar](500) NULL,
	[ToType] [smallint] NOT NULL,
	[Status] [smallint] NOT NULL,
	[ParentId] [int] NULL,
	[CreatedUserId] [int] NOT NULL,
	[CreatedDate] [datetime] NOT NULL CONSTRAINT [DF_JLT_ToDoInfo_CreatedDate]  DEFAULT (getdate()),
	[ToDoDate] [smalldatetime] NOT NULL CONSTRAINT [DF_JLT_ToDoInfo_ToDoDate]  DEFAULT (getdate()),
	[ReviewedUserID] [int] NULL,
	[ReviewedContent] [nvarchar](300) NULL,
	[ReviewedDate] [datetime] NULL,
	[FileNames] [nvarchar](500) NULL,
	[FileDataPath] [nvarchar](2000) NULL,
	[Remark] [nvarchar](200) NULL,
 CONSTRAINT [PK_JLT_ToDo] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[JLT_Reports]') AND type in (N'U'))
BEGIN
CREATE TABLE [JLT_Reports](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[EnterpriseID] [int] NULL,
	[UserId] [int] NOT NULL,
	[Title] [nvarchar](200) NULL,
	[Content] [text] NULL,
	[Type] [smallint] NOT NULL,
	[Status] [smallint] NOT NULL CONSTRAINT [DF_JLT_Reports_Status]  DEFAULT ((1)),
	[FileNames] [nvarchar](500) NULL,
	[FileDataPath] [nvarchar](500) NULL,
	[CreatedDate] [datetime] NOT NULL CONSTRAINT [DF_JLT_Reports_CreatedDate]  DEFAULT (getdate()),
	[ReportDate] [smalldatetime] NOT NULL CONSTRAINT [DF_JLT_Reports_ToDoDate]  DEFAULT (getdate()),
	[Remark] [nvarchar](200) NULL,
 CONSTRAINT [PK_JLT_Reports] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[JLT_AttendanceType]') AND type in (N'U'))
BEGIN
CREATE TABLE [JLT_AttendanceType](
	[TypeID] [int] IDENTITY(1,1) NOT NULL,
	[TypeName] [nvarchar](50) NOT NULL,
	[CreatedDate] [datetime] NOT NULL CONSTRAINT [DF_JLT_AttendanceType_CreatedDate]  DEFAULT (getdate()),
	[Status] [smallint] NOT NULL CONSTRAINT [DF_JLT_AttendanceType_IsActive]  DEFAULT ((1)),
	[Sequence] [int] NOT NULL CONSTRAINT [DF_JLT_AttendanceType_Sequence]  DEFAULT ((0)),
	[Remark] [nvarchar](200) NULL,
 CONSTRAINT [PK_JLT_AttendanceType] PRIMARY KEY CLUSTERED 
(
	[TypeID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[GET_GeneratedYear]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
BEGIN
execute sp_executesql @statement = N'-- =============================================
-- Author:		Ben
-- Create date: 2012-03-02
-- Description:	根据日期范围按年为单位 生成年份数据
-- =============================================
CREATE FUNCTION [GET_GeneratedYear]
(
	-- Add the parameters for the function here
	@StartDate DATETIME, 
	@EndDate DATETIME
)
RETURNS 
@TmpDayTable TABLE 
(
	-- Add the column definitions for the TABLE variable here
	GeneratedDate DATETIME
)
AS
BEGIN
	-- Fill the table variable with the rows for your result set
	DECLARE @day INT
	SET @day = DATEDIFF(YEAR,@StartDate, @EndDate)
	DECLARE @i INT 
	SET @i = 0
	
	WHILE  @i<=@day
	BEGIN 
    INSERT @TmpDayTable ( GeneratedDate ) VALUES (DATEADD(YEAR,@i,@StartDate))
    SET @i=@i+1
	END
	RETURN 
END
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[GET_GeneratedMonthEx]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
BEGIN
execute sp_executesql @statement = N'
-- =============================================
-- Author:		Ben
-- Create date: 2012-01-15
-- Description:	根据日期范围按月为单位 生成月份数据
-- =============================================
CREATE FUNCTION [GET_GeneratedMonthEx] ( )
RETURNS @TmpDayTable TABLE
    (
      -- Add the column definitions for the TABLE variable here
      [Month] INT
    , [Count] INT
    )
AS 
    BEGIN
	-- Fill the table variable with the rows for your result set
	
	DECLARE @i INT 
	SET @i = 1
	
        WHILE @i <= 12 
            BEGIN 
                INSERT  @TmpDayTable
                        ( [Month], [Count] )
                VALUES  ( @i, 0 )
                SET @i = @i + 1
            END
        RETURN 
    END

' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[GET_GeneratedMonth]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
BEGIN
execute sp_executesql @statement = N'-- =============================================
-- Author:		Ben
-- Create date: 2012-01-15
-- Description:	根据日期范围按月为单位 生成月份数据
-- =============================================
CREATE FUNCTION [GET_GeneratedMonth]
(
	-- Add the parameters for the function here
	@StartDate DATETIME, 
	@EndDate DATETIME
)
RETURNS 
@TmpDayTable TABLE 
(
	-- Add the column definitions for the TABLE variable here
	GeneratedDate DATETIME
)
AS
BEGIN
	-- Fill the table variable with the rows for your result set
	DECLARE @day INT
	SET @day = DATEDIFF(MONTH,@StartDate, @EndDate)
	DECLARE @i INT
	SET @i = 0
	
	WHILE  @i<=@day
	BEGIN 
    INSERT @TmpDayTable ( GeneratedDate ) VALUES (DATEADD(MONTH,@i,@StartDate))
    SET @i=@i+1
	END
	RETURN 
END
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[GET_GeneratedDayEx]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
BEGIN
execute sp_executesql @statement = N'
-- =============================================
-- Author:		Ben
-- Create date: 2012-01-15
-- Description:	根据日期范围按月为单位 生成月份数据
-- =============================================
CREATE FUNCTION [GET_GeneratedDayEx] ( )
RETURNS @TmpDayTable TABLE ( -- Add the column definitions for the TABLE variable here
                             [Day] INT, [Count] INT )
AS 
    BEGIN
	-- Fill the table variable with the rows for your result set
	
	DECLARE @i INT 
	SET @i = 1
	
        WHILE @i <= 31 
            BEGIN 
                INSERT  @TmpDayTable
                        ( [Day], [Count] )
                VALUES  ( @i, 0 )
                SET @i = @i + 1
            END
        RETURN 
    END

' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[GET_GeneratedDay]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
BEGIN
execute sp_executesql @statement = N'-- =============================================
-- Author:		Ben
-- Create date: 2012-01-15
-- Description:	根据日期范围按天为单位 生成日期数据
-- =============================================
CREATE FUNCTION [GET_GeneratedDay]
(
	-- Add the parameters for the function here
	@StartDate DATETIME, 
	@EndDate DATETIME
)
RETURNS 
@TmpDayTable TABLE 
(
	-- Add the column definitions for the TABLE variable here
	GeneratedDate DATETIME
)
AS
BEGIN
	-- Fill the table variable with the rows for your result set
	DECLARE @day INT
	SET @day = DATEDIFF(DAY,@StartDate, @EndDate)
	DECLARE @i INT
	SET @i = 0
	
	WHILE  @i<=@day
	BEGIN 
    INSERT @TmpDayTable ( GeneratedDate ) VALUES (DATEADD(DAY,@i,@StartDate))
    SET @i=@i+1
	END
	RETURN 
END
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[GET_BookingDay]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
BEGIN
execute sp_executesql @statement = N'
-- =============================================
-- Author:		Ben
-- Create date: 2012-03-09
-- Description:	根据日期范围按天为单位 生成日期数据
-- Warning: 默认减少一天, 如 2012-01-01 ~ 2012-01-02 = 1天
-- =============================================
CREATE FUNCTION [GET_BookingDay]
(
	-- Add the parameters for the function here
	@StartDate DATETIME, 
	@EndDate DATETIME
)
RETURNS 
@TmpDayTable TABLE 
(
	-- Add the column definitions for the TABLE variable here
	GeneratedDate DATETIME
)
AS
BEGIN
	-- Fill the table variable with the rows for your result set
	DECLARE @day INT 
	SET @day = DATEDIFF(DAY,@StartDate, @EndDate) -1
	DECLARE @i INT
	SET @i = 0
	
	IF @day >= 0
	BEGIN
		WHILE  @i<=@day
		BEGIN 
		INSERT @TmpDayTable ( GeneratedDate ) VALUES (DATEADD(DAY,@i,@StartDate))
		SET @i=@i+1
		END
	END
	RETURN 
END
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[GET_BookingDate]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
BEGIN
execute sp_executesql @statement = N'-- =============================================
-- Author:		Ben
-- Create date: 2012-01-15
-- Description:	根据日期范围按天为单位 生成日期数据
-- =============================================
CREATE FUNCTION [GET_BookingDate]
(
	-- Add the parameters for the function here
	@StartDate DATETIME, 
	@EndDate DATETIME
)
RETURNS 
@TmpDayTable TABLE 
(
	-- Add the column definitions for the TABLE variable here
	BookingDate DATETIME
)
AS
BEGIN
	-- Fill the table variable with the rows for your result set
	DECLARE @day INT
	SET @day = DATEDIFF(DAY,@StartDate, @EndDate)
	DECLARE @i INT
	SET @i = 0
	
	WHILE  @i<=@day
	BEGIN 
    INSERT @TmpDayTable ( BookingDate ) VALUES (DATEADD(DAY,@i,@StartDate))
    SET @i=@i+1
	END
	RETURN 
END
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[F_SplitToString]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
BEGIN
execute sp_executesql @statement = N'
CREATE FUNCTION [F_SplitToString]
(
	@str nvarchar(4000), 
	@spliter nvarchar(2)
)
RETURNS @returntable TABLE (UnitString nvarchar(50))
AS
BEGIN
	WHILE(CHARINDEX(@spliter,@str)<>0)  
	BEGIN  
		INSERT INTO @returntable(UnitString) VALUES (SUBSTRING(@str,1,CHARINDEX(@spliter,@str)-1))  
		SET @str = STUFF(@str,1,CHARINDEX(@spliter,@str),'''')  
	END
	
	INSERT INTO @returntable(UnitString) VALUES (@str) 
      
	RETURN 
END

' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[F_SplitToInt]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
BEGIN
execute sp_executesql @statement = N'
CREATE FUNCTION [F_SplitToInt]
(
	@str nvarchar(4000), 
	@spliter nvarchar(2)
)
RETURNS @returntable TABLE (UnitInt INT)
AS
BEGIN
	WHILE(CHARINDEX(@spliter,@str)<>0)  
	BEGIN  
		INSERT INTO @returntable(UnitInt) SELECT CAST (SUBSTRING(@str,1,CHARINDEX(@spliter,@str)-1) AS INT)
		SET @str = STUFF(@str,1,CHARINDEX(@spliter,@str),'''')  
	END
	
	INSERT INTO @returntable(UnitInt) SELECT CAST (@str AS INT) 
      
	RETURN 
END

' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[F_GetFirstPY]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
BEGIN
execute sp_executesql @statement = N'
-- =============================================
-- Author:		Ben
-- Create date: 2011-12-14
-- Description:	获取首字符的首拼音字母 - 用于首字母查询
-- =============================================
CREATE function [F_GetFirstPY](@str nvarchar(200))
returns nvarchar(200)
as
begin
declare @word nchar(1),@PY nvarchar(200)
set @PY=''''
while len(@str)>0
begin
set @word=left(@str,1)
--如果非汉字字符，返回原字符
set @PY=@PY+(case when unicode(@word) between 19968 and 19968+20901
then (select top 1 PY from (
select ''A'' as PY,N''驁'' as word
union all select ''B'',N''簿''
union all select ''C'',N''錯''
union all select ''D'',N''鵽''
union all select ''E'',N''樲''
union all select ''F'',N''鰒''
union all select ''G'',N''腂''
union all select ''H'',N''夻''
union all select ''J'',N''攈''
union all select ''K'',N''穒''
union all select ''L'',N''鱳''
union all select ''M'',N''旀''
union all select ''N'',N''桛''
union all select ''O'',N''漚''
union all select ''P'',N''曝''
union all select ''Q'',N''囕''
union all select ''R'',N''鶸''
union all select ''S'',N''蜶''
union all select ''T'',N''籜''
union all select ''W'',N''鶩''
union all select ''X'',N''鑂''
union all select ''Y'',N''韻''
union all select ''Z'',N''咗''
) T 
where word>=@word collate Chinese_PRC_CS_AS_KS_WS 
order by PY ASC) else @word end)
set @str=right(@str,len(@str)-1)
end
return @PY
end

' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[F_GetALLPY]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
BEGIN
execute sp_executesql @statement = N'
-- =============================================
-- Author:		Ben
-- Create date: 2011-12-14
-- Description:	获取全部字符的全部拼音字母 - 用于全部字母查询
-- =============================================
CREATE function [F_GetALLPY](@str nvarchar(200))
returns nvarchar(200)
as
begin
declare @word nchar(1),@PY nvarchar(200)
set @PY=''''
while len(@str)>0
begin
set @word=left(@str,1)
--如果非汉字字符，返回原字符
set @PY=@PY+(case when unicode(@word) between 19968 and 19968+20901
then (select top 1 PY from (
select ''A'' as PY,N''驁'' as word
union all select ''B'',N''簿''
union all select ''C'',N''錯''
union all select ''D'',N''鵽''
union all select ''E'',N''樲''
union all select ''F'',N''鰒''
union all select ''G'',N''腂''
union all select ''H'',N''夻''
union all select ''J'',N''攈''
union all select ''K'',N''穒''
union all select ''L'',N''鱳''
union all select ''M'',N''旀''
union all select ''N'',N''桛''
union all select ''O'',N''漚''
union all select ''P'',N''曝''
union all select ''Q'',N''囕''
union all select ''R'',N''鶸''
union all select ''S'',N''蜶''
union all select ''T'',N''籜''
union all select ''W'',N''鶩''
union all select ''X'',N''鑂''
union all select ''Y'',N''韻''
union all select ''Z'',N''咗''
) T 
where word>=@word collate Chinese_PRC_CS_AS_KS_WS 
order by PY ASC) else @word end)
set @str=right(@str,len(@str)-1)
end
return @PY
end

' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Examples_Of_High_Performance_Traversal]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'-- =============================================
-- Author:		Ben
-- Create date: 2012-04-12
-- Description:	高性能遍历示例 - 性能比游标高很多
-- =============================================
CREATE PROCEDURE [Examples_Of_High_Performance_Traversal]
AS 
    BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
        SET NOCOUNT ON ;

        DECLARE @intErrorCode INT

    -- Insert statements for procedure here
        DECLARE @idrecord TABLE /*定义ID的表变量 用于遍历ID*/
            (
              id INT ,
              itemId INT ,
              startDate DATETIME ,
              endDate DATETIME ,
              flagID TINYINT /*快速遍历,比游标遍历效率高很多*/
			)
        DECLARE @totalcount INT
        DECLARE @rownum INT
			
			--向表变量插入处理数据
			--INSERT INTO @idrecord  SELECT ID,ItemId,StartDate,EndDate, 0
			--FROM X_OrderItems WHERE OrderID = @OrderId AND EndDate IS NOT NULL
			
			/*设置循环总数*/
        SET @totalcount = @@ROWCOUNT
			/*设置循环起始值*/
        SET @rownum = 1
			/*    循环*/
        WHILE @rownum <= @totalcount 
            BEGIN
                DECLARE @id INT ,
                    @itemId INT
                DECLARE @startDate DATETIME ,
                    @endDate DATETIME
                --SELECT DATA
                SELECT TOP 1
                        @id = id ,
                        @itemId = itemId ,
                        @startDate = startDate ,
                        @endDate = endDate
                FROM    @idrecord
                WHERE   flagID = 0
				  	-------------------------------------------------------  
					--DO Something..
					
                SET @intErrorCode = @@ERROR
					
                IF @intErrorCode > 0 
                    BREAK
					-------------------------------------------------------
                UPDATE  @idrecord
                SET     flagID = 1
                WHERE   id = @id
                SET @rownum = @rownum + 1
				  
            END	--WHILE END			
    END
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[CMS_VideoClass]') AND type in (N'U'))
BEGIN
CREATE TABLE [CMS_VideoClass](
	[VideoClassID] [int] IDENTITY(1,1) NOT NULL,
	[VideoClassName] [nvarchar](100) NOT NULL,
	[ParentID] [int] NULL CONSTRAINT [DF_CMS_VideoClass_ParentID]  DEFAULT ((0)),
	[Sequence] [int] NOT NULL,
	[Path] [nvarchar](1000) NOT NULL,
	[Depth] [int] NOT NULL,
 CONSTRAINT [PK_Video] PRIMARY KEY CLUSTERED 
(
	[VideoClassID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[CMS_VideoAlbum]') AND type in (N'U'))
BEGIN
CREATE TABLE [CMS_VideoAlbum](
	[AlbumID] [int] IDENTITY(1,1) NOT NULL,
	[AlbumName] [nvarchar](100) NOT NULL,
	[CoverVideo] [nvarchar](200) NULL CONSTRAINT [DF_VideoAlbum_CoverVideo]  DEFAULT ('novideopic.png'),
	[Description] [text] NULL,
	[CreatedUserID] [int] NOT NULL,
	[CreatedDate] [datetime] NOT NULL,
	[LastUpdateUserID] [int] NULL,
	[LastUpdatedDate] [datetime] NULL,
	[State] [smallint] NOT NULL,
	[Sequence] [int] NOT NULL,
	[Privacy] [smallint] NULL,
	[PvCount] [int] NOT NULL CONSTRAINT [DF_VideoAlbum_PvCount]  DEFAULT ((0)),
 CONSTRAINT [PK_VideoAlbum] PRIMARY KEY CLUSTERED 
(
	[AlbumID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[CMS_Video]') AND type in (N'U'))
BEGIN
CREATE TABLE [CMS_Video](
	[VideoID] [int] IDENTITY(1,1) NOT NULL,
	[Title] [nvarchar](200) NOT NULL,
	[Description] [ntext] NULL,
	[AlbumID] [int] NULL CONSTRAINT [DF_CMS_Video_AlbumID]  DEFAULT ((0)),
	[CreatedUserID] [int] NOT NULL,
	[CreatedDate] [datetime] NOT NULL,
	[LastUpdateUserID] [int] NULL,
	[LastUpdateDate] [datetime] NULL,
	[Sequence] [int] NOT NULL,
	[VideoClassID] [int] NULL CONSTRAINT [DF_CMS_Video_VideoClassID]  DEFAULT ((0)),
	[IsRecomend] [bit] NOT NULL,
	[ImageUrl] [nvarchar](200) NULL CONSTRAINT [DF_CMS_Video_ImageUrl]  DEFAULT ('novideopic.png'),
	[ThumbImageUrl] [nvarchar](200) NULL CONSTRAINT [DF_CMS_Video_ThumbImageUrl]  DEFAULT ('novideopic.png'),
	[NormalImageUrl] [nvarchar](200) NULL CONSTRAINT [DF_CMS_Video_NormalImageUrl]  DEFAULT ('novideopic.png'),
	[TotalTime] [int] NULL CONSTRAINT [DF_Video_TotalTime]  DEFAULT ((0)),
	[TotalComment] [int] NOT NULL CONSTRAINT [DF_Video_TotalComment]  DEFAULT ((0)),
	[TotalFav] [int] NOT NULL CONSTRAINT [DF_Video_TotalFav]  DEFAULT ((0)),
	[TotalUp] [int] NOT NULL CONSTRAINT [DF_Video_TotalUp]  DEFAULT ((0)),
	[Reference] [int] NOT NULL CONSTRAINT [DF_Video_Reference]  DEFAULT ((0)),
	[Tags] [nvarchar](100) NULL,
	[VideoUrl] [nvarchar](max) NULL,
	[UrlType] [smallint] NOT NULL,
	[VideoFormat] [nvarchar](50) NULL,
	[Domain] [nvarchar](50) NULL,
	[Grade] [int] NOT NULL CONSTRAINT [DF_Video_Grade]  DEFAULT ((0)),
	[Attachment] [nvarchar](100) NULL,
	[Privacy] [smallint] NOT NULL,
	[State] [smallint] NOT NULL,
	[Remark] [nvarchar](300) NULL,
	[PVCount] [int] NOT NULL CONSTRAINT [DF_CMS_Video_PVCount]  DEFAULT ((0)),
 CONSTRAINT [PK_Video_1] PRIMARY KEY CLUSTERED 
(
	[VideoID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[CMS_PhotoClass]') AND type in (N'U'))
BEGIN
CREATE TABLE [CMS_PhotoClass](
	[ClassID] [int] IDENTITY(1,1) NOT NULL,
	[ClassName] [nvarchar](200) NULL,
	[ParentId] [int] NULL CONSTRAINT [DF_PhotoClass_ParentId]  DEFAULT ((0)),
	[Sequence] [int] NULL,
	[Path] [nvarchar](200) NULL,
	[Depth] [int] NULL,
 CONSTRAINT [PK_PhotoClass] PRIMARY KEY CLUSTERED 
(
	[ClassID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[CMS_PhotoAlbum]') AND type in (N'U'))
BEGIN
CREATE TABLE [CMS_PhotoAlbum](
	[AlbumID] [int] IDENTITY(1,1) NOT NULL,
	[AlbumName] [nvarchar](200) NOT NULL,
	[Description] [text] NULL,
	[CoverPhoto] [int] NULL,
	[State] [smallint] NOT NULL CONSTRAINT [DF_PhotoAlbum_State]  DEFAULT ((0)),
	[CreatedUserID] [int] NOT NULL,
	[CreatedDate] [datetime] NOT NULL,
	[PVCount] [int] NOT NULL,
	[Sequence] [int] NOT NULL,
	[Privacy] [smallint] NOT NULL CONSTRAINT [DF_PhotoAlbum_Privacy]  DEFAULT ((0)),
	[LastUpdatedDate] [datetime] NOT NULL CONSTRAINT [DF_PhotoAlbum_LastUpdatedDate]  DEFAULT (getdate()),
 CONSTRAINT [PK_PhotoAlbum] PRIMARY KEY CLUSTERED 
(
	[AlbumID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[CMS_Photo]') AND type in (N'U'))
BEGIN
CREATE TABLE [CMS_Photo](
	[PhotoID] [int] IDENTITY(1,1) NOT NULL,
	[PhotoName] [nvarchar](200) NULL,
	[ImageUrl] [nvarchar](200) NOT NULL,
	[Description] [nvarchar](500) NULL,
	[AlbumID] [int] NOT NULL,
	[State] [smallint] NOT NULL CONSTRAINT [DF_Photo_State]  DEFAULT ((0)),
	[CreatedUserID] [int] NOT NULL,
	[CreatedDate] [datetime] NOT NULL,
	[PVCount] [int] NOT NULL CONSTRAINT [DF_CMS_Photo_PVCount]  DEFAULT ((0)),
	[ClassID] [int] NOT NULL,
	[ThumbImageUrl] [nvarchar](200) NULL,
	[NormalImageUrl] [nvarchar](200) NULL,
	[Sequence] [int] NULL,
	[IsRecomend] [bit] NULL CONSTRAINT [DF_CMS_Photo_IsRecomend]  DEFAULT ((0)),
	[CommentCount] [int] NULL CONSTRAINT [DF_CMS_Photo_CommentCount]  DEFAULT ((0)),
	[Tags] [nvarchar](200) NULL,
	[FavouriteCount] [int] NULL CONSTRAINT [DF_CMS_Photo_FavouriteCount]  DEFAULT ((0)),
 CONSTRAINT [PK_Photo] PRIMARY KEY CLUSTERED 
(
	[PhotoID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[CMS_FLinks]') AND type in (N'U'))
BEGIN
CREATE TABLE [CMS_FLinks](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[Name] [nvarchar](50) NOT NULL,
	[ImgUrl] [nvarchar](150) NOT NULL,
	[LinkUrl] [nvarchar](150) NOT NULL,
	[LinkDesc] [nvarchar](300) NOT NULL,
	[State] [smallint] NOT NULL,
	[OrderID] [int] NOT NULL,
	[ContactPerson] [nvarchar](100) NOT NULL,
	[Email] [nvarchar](100) NOT NULL,
	[TelPhone] [nvarchar](100) NOT NULL,
	[TypeID] [smallint] NOT NULL,
	[IsDisplay] [bit] NOT NULL CONSTRAINT [DF_CMS_FLinks_IsDisplay]  DEFAULT ((1)),
	[ImgWidth] [int] NULL,
	[ImgHeight] [int] NULL,
 CONSTRAINT [PK_CMS_FLinks] PRIMARY KEY NONCLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[CMS_ContentClass]') AND type in (N'U'))
BEGIN
CREATE TABLE [CMS_ContentClass](
	[ClassID] [int] IDENTITY(1,1) NOT NULL,
	[ClassName] [nvarchar](50) NOT NULL,
	[ClassIndex] [nvarchar](50) NULL,
	[Sequence] [int] NOT NULL,
	[ParentId] [int] NULL,
	[State] [smallint] NOT NULL,
	[AllowSubclass] [bit] NOT NULL,
	[AllowAddContent] [bit] NOT NULL,
	[ImageUrl] [nvarchar](200) NULL,
	[Description] [text] NULL,
	[Keywords] [nvarchar](50) NULL,
	[ClassTypeID] [int] NOT NULL,
	[ClassModel] [smallint] NOT NULL,
	[PageModelName] [nvarchar](200) NULL,
	[CreatedDate] [datetime] NOT NULL CONSTRAINT [DF__CMS_Conte__Creat__69334BC6]  DEFAULT (getdate()),
	[CreatedUserID] [int] NOT NULL,
	[Path] [nvarchar](1000) NULL,
	[Depth] [int] NULL,
	[Remark] [nvarchar](200) NULL,
	[Meta_Title] [nvarchar](1000) NULL,
	[Meta_Description] [nvarchar](1000) NULL,
	[Meta_Keywords] [nvarchar](1000) NULL,
	[SeoUrl] [nvarchar](300) NULL,
	[SeoImageAlt] [nvarchar](300) NULL,
	[SeoImageTitle] [nvarchar](300) NULL,
	[IndexChar] [nvarchar](200) NULL,
 CONSTRAINT [PK_CMS_ContentClass] PRIMARY KEY CLUSTERED 
(
	[ClassID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO
SET IDENTITY_INSERT [CMS_ContentClass] ON
INSERT [CMS_ContentClass] ([ClassID], [ClassName], [ClassIndex], [Sequence], [ParentId], [State], [AllowSubclass], [AllowAddContent], [ImageUrl], [Description], [Keywords], [ClassTypeID], [ClassModel], [PageModelName], [CreatedDate], [CreatedUserID], [Path], [Depth], [Remark], [Meta_Title], [Meta_Description], [Meta_Keywords], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [IndexChar]) VALUES (1, N'团队', N'0', 33, 0, 0, 0, 1, N'', N'', N'', 0, 3, N'', CAST(0x0000A0F300F159BD AS DateTime), 1, N'1', 1, N'', NULL, NULL, NULL, NULL, NULL, NULL, N'TEST')
INSERT [CMS_ContentClass] ([ClassID], [ClassName], [ClassIndex], [Sequence], [ParentId], [State], [AllowSubclass], [AllowAddContent], [ImageUrl], [Description], [Keywords], [ClassTypeID], [ClassModel], [PageModelName], [CreatedDate], [CreatedUserID], [Path], [Depth], [Remark], [Meta_Title], [Meta_Description], [Meta_Keywords], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [IndexChar]) VALUES (4, N'固定页面', N'1', 33, 0, 2, 0, 1, N'', N'', N'', 1, 3, N'', CAST(0x0000A1F80117D482 AS DateTime), 1, N'4', 1, N'', N'', N'', N'', N'', N'', N'', N'TEST')
INSERT [CMS_ContentClass] ([ClassID], [ClassName], [ClassIndex], [Sequence], [ParentId], [State], [AllowSubclass], [AllowAddContent], [ImageUrl], [Description], [Keywords], [ClassTypeID], [ClassModel], [PageModelName], [CreatedDate], [CreatedUserID], [Path], [Depth], [Remark], [Meta_Title], [Meta_Description], [Meta_Keywords], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [IndexChar]) VALUES (9, N'公告', N'0', 32, 0, 0, 1, 1, N'', N'', N'', 1, 3, N'', CAST(0x0000A1E50157AE05 AS DateTime), 1, N'9', 1, N'', NULL, NULL, NULL, NULL, NULL, NULL, N'')
INSERT [CMS_ContentClass] ([ClassID], [ClassName], [ClassIndex], [Sequence], [ParentId], [State], [AllowSubclass], [AllowAddContent], [ImageUrl], [Description], [Keywords], [ClassTypeID], [ClassModel], [PageModelName], [CreatedDate], [CreatedUserID], [Path], [Depth], [Remark], [Meta_Title], [Meta_Description], [Meta_Keywords], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [IndexChar]) VALUES (10, N'最新消息', N'0', 31, 0, 0, 1, 1, N'', N'', N'', 0, 3, N'', CAST(0x0000A1E50157C76D AS DateTime), 1, N'10', 1, N'', NULL, NULL, NULL, NULL, NULL, NULL, N'')
INSERT [CMS_ContentClass] ([ClassID], [ClassName], [ClassIndex], [Sequence], [ParentId], [State], [AllowSubclass], [AllowAddContent], [ImageUrl], [Description], [Keywords], [ClassTypeID], [ClassModel], [PageModelName], [CreatedDate], [CreatedUserID], [Path], [Depth], [Remark], [Meta_Title], [Meta_Description], [Meta_Keywords], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [IndexChar]) VALUES (11, N'帮助中心', N'0', 25, 0, 0, 1, 1, N'', N'', N'', 1, 3, N'', CAST(0x0000A1E60119939C AS DateTime), 1, N'11', 1, N'', N'', N'', N'', N'', N'', N'', N'')
INSERT [CMS_ContentClass] ([ClassID], [ClassName], [ClassIndex], [Sequence], [ParentId], [State], [AllowSubclass], [AllowAddContent], [ImageUrl], [Description], [Keywords], [ClassTypeID], [ClassModel], [PageModelName], [CreatedDate], [CreatedUserID], [Path], [Depth], [Remark], [Meta_Title], [Meta_Description], [Meta_Keywords], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [IndexChar]) VALUES (12, N'关于我们', N'0', 30, 11, 0, 0, 1, N'', N'', N'', 1, 3, N'', CAST(0x0000A1E601177D69 AS DateTime), 1, N'11|12', 2, N'', N'', N'', N'', N'', N'', N'', N'')
INSERT [CMS_ContentClass] ([ClassID], [ClassName], [ClassIndex], [Sequence], [ParentId], [State], [AllowSubclass], [AllowAddContent], [ImageUrl], [Description], [Keywords], [ClassTypeID], [ClassModel], [PageModelName], [CreatedDate], [CreatedUserID], [Path], [Depth], [Remark], [Meta_Title], [Meta_Description], [Meta_Keywords], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [IndexChar]) VALUES (13, N'新手上路', N'0', 29, 11, 0, 0, 1, N'', N'', N'', 1, 3, N'', CAST(0x0000A1E6011773CF AS DateTime), 1, N'11|13', 2, N'', N'', N'', N'', N'', N'', N'', N'')
INSERT [CMS_ContentClass] ([ClassID], [ClassName], [ClassIndex], [Sequence], [ParentId], [State], [AllowSubclass], [AllowAddContent], [ImageUrl], [Description], [Keywords], [ClassTypeID], [ClassModel], [PageModelName], [CreatedDate], [CreatedUserID], [Path], [Depth], [Remark], [Meta_Title], [Meta_Description], [Meta_Keywords], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [IndexChar]) VALUES (14, N'支付方式', N'0', 28, 11, 0, 0, 1, N'', N'', N'', 1, 3, N'', CAST(0x0000A1E60117AB0D AS DateTime), 1, N'11|14', 2, N'', NULL, NULL, NULL, NULL, NULL, NULL, N'')
INSERT [CMS_ContentClass] ([ClassID], [ClassName], [ClassIndex], [Sequence], [ParentId], [State], [AllowSubclass], [AllowAddContent], [ImageUrl], [Description], [Keywords], [ClassTypeID], [ClassModel], [PageModelName], [CreatedDate], [CreatedUserID], [Path], [Depth], [Remark], [Meta_Title], [Meta_Description], [Meta_Keywords], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [IndexChar]) VALUES (15, N'配送方式', N'0', 27, 11, 0, 0, 1, N'', N'', N'', 0, 3, N'', CAST(0x0000A1E60117C20A AS DateTime), 1, N'11|15', 2, N'', NULL, NULL, NULL, NULL, NULL, NULL, N'')
INSERT [CMS_ContentClass] ([ClassID], [ClassName], [ClassIndex], [Sequence], [ParentId], [State], [AllowSubclass], [AllowAddContent], [ImageUrl], [Description], [Keywords], [ClassTypeID], [ClassModel], [PageModelName], [CreatedDate], [CreatedUserID], [Path], [Depth], [Remark], [Meta_Title], [Meta_Description], [Meta_Keywords], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [IndexChar]) VALUES (16, N'售后服务', N'0', 26, 11, 0, 0, 1, N'', N'', N'', 1, 3, N'', CAST(0x0000A1E60117DC9E AS DateTime), 1, N'11|16', 2, N'', NULL, NULL, NULL, NULL, NULL, NULL, N'')
INSERT [CMS_ContentClass] ([ClassID], [ClassName], [ClassIndex], [Sequence], [ParentId], [State], [AllowSubclass], [AllowAddContent], [ImageUrl], [Description], [Keywords], [ClassTypeID], [ClassModel], [PageModelName], [CreatedDate], [CreatedUserID], [Path], [Depth], [Remark], [Meta_Title], [Meta_Description], [Meta_Keywords], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [IndexChar]) VALUES (17, N'行业资讯', N'0', 8, 0, 0, 1, 1, N'', N'行业资讯', N'行业资讯', 1, 3, N'', CAST(0x0000A1EE01026E21 AS DateTime), 1, N'17', 1, N'', N'', N'', N'', N'', N'', N'', N'')
INSERT [CMS_ContentClass] ([ClassID], [ClassName], [ClassIndex], [Sequence], [ParentId], [State], [AllowSubclass], [AllowAddContent], [ImageUrl], [Description], [Keywords], [ClassTypeID], [ClassModel], [PageModelName], [CreatedDate], [CreatedUserID], [Path], [Depth], [Remark], [Meta_Title], [Meta_Description], [Meta_Keywords], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [IndexChar]) VALUES (18, N'经营杂谈', N'0', 7, 0, 0, 1, 1, N'', N'经营杂谈', N'', 1, 3, N'', CAST(0x0000A1EE01027C56 AS DateTime), 1, N'18', 1, N'', N'', N'', N'', N'', N'', N'', N'')
INSERT [CMS_ContentClass] ([ClassID], [ClassName], [ClassIndex], [Sequence], [ParentId], [State], [AllowSubclass], [AllowAddContent], [ImageUrl], [Description], [Keywords], [ClassTypeID], [ClassModel], [PageModelName], [CreatedDate], [CreatedUserID], [Path], [Depth], [Remark], [Meta_Title], [Meta_Description], [Meta_Keywords], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [IndexChar]) VALUES (19, N'新闻中心', N'0', 22, 0, 0, 1, 1, N'', N'', N'', 1, 3, N'', CAST(0x0000A21C00E48E08 AS DateTime), 1, N'17', 1, N'', N'', N'', N'', N'', N'', N'', N'')
INSERT [CMS_ContentClass] ([ClassID], [ClassName], [ClassIndex], [Sequence], [ParentId], [State], [AllowSubclass], [AllowAddContent], [ImageUrl], [Description], [Keywords], [ClassTypeID], [ClassModel], [PageModelName], [CreatedDate], [CreatedUserID], [Path], [Depth], [Remark], [Meta_Title], [Meta_Description], [Meta_Keywords], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [IndexChar]) VALUES (20, N'案例故事', N'0', 5, 0, 0, 1, 1, N'', N'案例故事', N'', 1, 3, N'', CAST(0x0000A1EE01029FB1 AS DateTime), 1, N'20', 1, N'', NULL, NULL, NULL, NULL, NULL, NULL, N'')
INSERT [CMS_ContentClass] ([ClassID], [ClassName], [ClassIndex], [Sequence], [ParentId], [State], [AllowSubclass], [AllowAddContent], [ImageUrl], [Description], [Keywords], [ClassTypeID], [ClassModel], [PageModelName], [CreatedDate], [CreatedUserID], [Path], [Depth], [Remark], [Meta_Title], [Meta_Description], [Meta_Keywords], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [IndexChar]) VALUES (21, N'企业资讯', N'0', 23, 19, 0, 0, 1, N'', N'', N'', 1, 3, N'', CAST(0x0000A21C00FBBF0D AS DateTime), 1, N'17|21', 2, N'', N'', N'', N'', N'', N'', N'', N'')
INSERT [CMS_ContentClass] ([ClassID], [ClassName], [ClassIndex], [Sequence], [ParentId], [State], [AllowSubclass], [AllowAddContent], [ImageUrl], [Description], [Keywords], [ClassTypeID], [ClassModel], [PageModelName], [CreatedDate], [CreatedUserID], [Path], [Depth], [Remark], [Meta_Title], [Meta_Description], [Meta_Keywords], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [IndexChar]) VALUES (22, N'产品动态', N'0', 24, 19, 0, 0, 1, N'', N'', N'', 1, 3, N'', CAST(0x0000A21C00FBAFA0 AS DateTime), 1, N'17|22', 2, N'', N'', N'', N'', N'', N'', N'', N'')
INSERT [CMS_ContentClass] ([ClassID], [ClassName], [ClassIndex], [Sequence], [ParentId], [State], [AllowSubclass], [AllowAddContent], [ImageUrl], [Description], [Keywords], [ClassTypeID], [ClassModel], [PageModelName], [CreatedDate], [CreatedUserID], [Path], [Depth], [Remark], [Meta_Title], [Meta_Description], [Meta_Keywords], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [IndexChar]) VALUES (23, N'产品服务', N'0', 18, 0, 0, 1, 1, N'', N'', N'', 1, 3, N'', CAST(0x0000A21C00E49ACA AS DateTime), 1, N'23', 1, N'', N'', N'', N'', N'', N'', N'', N'')
INSERT [CMS_ContentClass] ([ClassID], [ClassName], [ClassIndex], [Sequence], [ParentId], [State], [AllowSubclass], [AllowAddContent], [ImageUrl], [Description], [Keywords], [ClassTypeID], [ClassModel], [PageModelName], [CreatedDate], [CreatedUserID], [Path], [Depth], [Remark], [Meta_Title], [Meta_Description], [Meta_Keywords], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [IndexChar]) VALUES (27, N'人才招聘', N'0', 14, 0, 0, 1, 1, N'', N'', N'', 1, 3, N'', CAST(0x0000A21C00E4A92C AS DateTime), 1, N'27', 1, N'', N'', N'', N'', N'', N'', N'', N'')
INSERT [CMS_ContentClass] ([ClassID], [ClassName], [ClassIndex], [Sequence], [ParentId], [State], [AllowSubclass], [AllowAddContent], [ImageUrl], [Description], [Keywords], [ClassTypeID], [ClassModel], [PageModelName], [CreatedDate], [CreatedUserID], [Path], [Depth], [Remark], [Meta_Title], [Meta_Description], [Meta_Keywords], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [IndexChar]) VALUES (28, N'技术', N'0', 17, 27, 0, 0, 1, N'', N'', N'', 1, 3, N'', CAST(0x0000A214012FDD29 AS DateTime), 1, N'27|28', 2, N'', NULL, NULL, NULL, NULL, NULL, NULL, N'')
INSERT [CMS_ContentClass] ([ClassID], [ClassName], [ClassIndex], [Sequence], [ParentId], [State], [AllowSubclass], [AllowAddContent], [ImageUrl], [Description], [Keywords], [ClassTypeID], [ClassModel], [PageModelName], [CreatedDate], [CreatedUserID], [Path], [Depth], [Remark], [Meta_Title], [Meta_Description], [Meta_Keywords], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [IndexChar]) VALUES (29, N'销售', N'0', 16, 27, 0, 0, 1, N'', N'', N'', 1, 3, N'', CAST(0x0000A214012FF5F8 AS DateTime), 1, N'27|29', 2, N'', NULL, NULL, NULL, NULL, NULL, NULL, N'')
INSERT [CMS_ContentClass] ([ClassID], [ClassName], [ClassIndex], [Sequence], [ParentId], [State], [AllowSubclass], [AllowAddContent], [ImageUrl], [Description], [Keywords], [ClassTypeID], [ClassModel], [PageModelName], [CreatedDate], [CreatedUserID], [Path], [Depth], [Remark], [Meta_Title], [Meta_Description], [Meta_Keywords], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [IndexChar]) VALUES (30, N'客服', N'0', 15, 27, 0, 0, 1, N'', N'', N'', 1, 3, N'', CAST(0x0000A214013008F7 AS DateTime), 1, N'27|30', 2, N'', NULL, NULL, NULL, NULL, NULL, NULL, N'')
INSERT [CMS_ContentClass] ([ClassID], [ClassName], [ClassIndex], [Sequence], [ParentId], [State], [AllowSubclass], [AllowAddContent], [ImageUrl], [Description], [Keywords], [ClassTypeID], [ClassModel], [PageModelName], [CreatedDate], [CreatedUserID], [Path], [Depth], [Remark], [Meta_Title], [Meta_Description], [Meta_Keywords], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [IndexChar]) VALUES (32, N'成功案例', N'0', 13, 0, 0, 1, 1, N'', N'', N'', 1, 3, N'', CAST(0x0000A21C011302F5 AS DateTime), 1, N'32', 1, N'', N'', N'', N'', N'', N'', N'', N'')
INSERT [CMS_ContentClass] ([ClassID], [ClassName], [ClassIndex], [Sequence], [ParentId], [State], [AllowSubclass], [AllowAddContent], [ImageUrl], [Description], [Keywords], [ClassTypeID], [ClassModel], [PageModelName], [CreatedDate], [CreatedUserID], [Path], [Depth], [Remark], [Meta_Title], [Meta_Description], [Meta_Keywords], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [IndexChar]) VALUES (34, N'资质荣誉', N'0', 13, 0, 0, 1, 1, N'', N'', N'', 1, 3, N'', CAST(0x0000A21C00E46C4E AS DateTime), 1, N'32', 1, N'', N'', N'', N'', N'', N'', N'', N'')
INSERT [CMS_ContentClass] ([ClassID], [ClassName], [ClassIndex], [Sequence], [ParentId], [State], [AllowSubclass], [AllowAddContent], [ImageUrl], [Description], [Keywords], [ClassTypeID], [ClassModel], [PageModelName], [CreatedDate], [CreatedUserID], [Path], [Depth], [Remark], [Meta_Title], [Meta_Description], [Meta_Keywords], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [IndexChar]) VALUES (35, N'关于我们', N'0', 10, 0, 0, 1, 1, N'', N'', N'', 1, 3, N'', CAST(0x0000A21C00E56ADD AS DateTime), 1, N'35', 1, N'', NULL, NULL, NULL, NULL, NULL, NULL, N'')
INSERT [CMS_ContentClass] ([ClassID], [ClassName], [ClassIndex], [Sequence], [ParentId], [State], [AllowSubclass], [AllowAddContent], [ImageUrl], [Description], [Keywords], [ClassTypeID], [ClassModel], [PageModelName], [CreatedDate], [CreatedUserID], [Path], [Depth], [Remark], [Meta_Title], [Meta_Description], [Meta_Keywords], [SeoUrl], [SeoImageAlt], [SeoImageTitle], [IndexChar]) VALUES (39, N'联系我们', N'0', 9, 0, 0, 0, 1, N'', N'', N'', 1, 2, N'', CAST(0x0000A22000B2C580 AS DateTime), 1, N'38', 1, N'', NULL, NULL, NULL, NULL, NULL, NULL, N'')
SET IDENTITY_INSERT [CMS_ContentClass] OFF
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[CMS_Content]') AND type in (N'U'))
BEGIN
CREATE TABLE [CMS_Content](
	[ContentID] [int] IDENTITY(1,1) NOT NULL,
	[Title] [nvarchar](50) NOT NULL,
	[SubTitle] [nvarchar](255) NULL,
	[Summary] [ntext] NULL,
	[Description] [text] NULL,
	[ImageUrl] [nvarchar](200) NULL,
	[ThumbImageUrl] [nvarchar](200) NULL,
	[NormalImageUrl] [nvarchar](200) NULL,
	[CreatedDate] [datetime] NOT NULL CONSTRAINT [DF__CMS_Conte__Creat__6C0FB871]  DEFAULT (getdate()),
	[CreatedUserID] [int] NOT NULL,
	[LastEditUserID] [int] NULL,
	[LastEditDate] [datetime] NULL,
	[LinkUrl] [nvarchar](200) NULL,
	[PvCount] [int] NOT NULL,
	[State] [smallint] NOT NULL,
	[ClassID] [int] NOT NULL,
	[Keywords] [nvarchar](50) NULL,
	[Sequence] [int] NOT NULL,
	[IsRecomend] [bit] NOT NULL,
	[IsHot] [bit] NOT NULL,
	[IsColor] [bit] NOT NULL,
	[IsTop] [bit] NOT NULL,
	[Attachment] [nvarchar](200) NULL,
	[Remary] [nvarchar](200) NULL,
	[TotalComment] [int] NOT NULL CONSTRAINT [DF_CMS_Content_TotalComment]  DEFAULT ((0)),
	[TotalSupport] [int] NOT NULL CONSTRAINT [DF_CMS_Content_TotalUp]  DEFAULT ((0)),
	[TotalFav] [int] NOT NULL CONSTRAINT [DF_CMS_Content_TotalFav]  DEFAULT ((0)),
	[TotalShare] [int] NOT NULL CONSTRAINT [DF_CMS_Content_Reference]  DEFAULT ((0)),
	[BeFrom] [nvarchar](50) NULL,
	[FileName] [nvarchar](200) NULL,
	[Meta_Title] [nvarchar](1000) NULL,
	[Meta_Description] [nvarchar](1000) NULL,
	[Meta_Keywords] [nvarchar](1000) NULL,
	[SeoUrl] [nvarchar](300) NULL,
	[SeoImageAlt] [nvarchar](300) NULL,
	[SeoImageTitle] [nvarchar](300) NULL,
	[StaticUrl] [nvarchar](500) NULL,
 CONSTRAINT [PK_CMS_Content] PRIMARY KEY NONCLUSTERED 
(
	[ContentID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[CMS_Comment]') AND type in (N'U'))
BEGIN
CREATE TABLE [CMS_Comment](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[ContentId] [int] NULL,
	[Description] [text] NOT NULL,
	[CreatedDate] [datetime] NOT NULL CONSTRAINT [DF__SNS_Comme__Creat__38260017]  DEFAULT (getdate()),
	[CreatedUserID] [int] NOT NULL,
	[ReplyCount] [int] NOT NULL,
	[ParentID] [int] NOT NULL,
	[TypeID] [smallint] NOT NULL,
	[State] [bit] NOT NULL,
	[IsRead] [bit] NOT NULL,
	[CreatedNickName] [nvarchar](200) NULL,
 CONSTRAINT [PK__SNS_Comm__3214EC273549936C] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[CMS_ClassType]') AND type in (N'U'))
BEGIN
CREATE TABLE [CMS_ClassType](
	[ClassTypeID] [int] IDENTITY(1,1) NOT NULL,
	[ClassTypeName] [nvarchar](50) NOT NULL,
 CONSTRAINT [PK_CMS_ClassType] PRIMARY KEY NONCLUSTERED 
(
	[ClassTypeID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET IDENTITY_INSERT [CMS_ClassType] ON
INSERT [CMS_ClassType] ([ClassTypeID], [ClassTypeName]) VALUES (1, N'频道板块')
INSERT [CMS_ClassType] ([ClassTypeID], [ClassTypeName]) VALUES (0, N'主导航')
SET IDENTITY_INSERT [CMS_ClassType] OFF
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[CMS_Brand]') AND type in (N'U'))
BEGIN
CREATE TABLE [CMS_Brand](
	[BrandID] [int] IDENTITY(1,1) NOT NULL,
	[BrandName] [nvarchar](50) NOT NULL,
	[BrandLogo] [nvarchar](100) NOT NULL,
	[BrandDesc] [nvarchar](2000) NOT NULL,
	[EnterpriseID] [int] NOT NULL,
	[State] [smallint] NOT NULL,
	[Orders] [int] NOT NULL,
 CONSTRAINT [PK_CMS_Brand] PRIMARY KEY NONCLUSTERED 
(
	[BrandID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[AD_AdvertisePosition]') AND type in (N'U'))
BEGIN
CREATE TABLE [AD_AdvertisePosition](
	[AdvPositionId] [int] IDENTITY(1,1) NOT NULL,
	[AdvPositionName] [nvarchar](50) NULL,
	[ShowType] [int] NULL,
	[RepeatColumns] [int] NULL,
	[Width] [int] NULL,
	[Height] [int] NULL,
	[AdvHtml] [nvarchar](1000) NULL,
	[IsOne] [bit] NULL CONSTRAINT [DF_AD_AdvertisePosition_IsOne]  DEFAULT ((0)),
	[TimeInterval] [int] NULL,
	[CreatedDate] [datetime] NULL,
	[CreatedUserID] [int] NULL,
 CONSTRAINT [PK_AD_Advertising] PRIMARY KEY CLUSTERED 
(
	[AdvPositionId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET IDENTITY_INSERT [AD_AdvertisePosition] ON
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (1, N'SNS_首页大广告位', 2, NULL, 684, 263, NULL, 1, 10, CAST(0x0000A18C011682FC AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (2, N'SNS_专辑页小广告位', 0, NULL, 958, 96, N'', 1, 10, CAST(0x0000A1D3014DFEA1 AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (3, N'SNS_专辑页大广告位', 2, NULL, 684, 263, NULL, 0, NULL, CAST(0x0000A18C0116BB7C AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (4, N'SNS_小组首页小广告位', 2, NULL, 958, 96, NULL, 0, NULL, CAST(0x0000A18C0116D2F1 AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (5, N'SNS_搭配晒货页底部广告位', 2, NULL, 958, 96, NULL, 0, NULL, CAST(0x0000A18C01172898 AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (6, N'CMS_首页大广告', 1, 3, 950, 270, NULL, 1, 10, CAST(0x0000A18C012EAB0B AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (7, N'CMS_首页右侧广告1', 0, NULL, 278, 250, NULL, 0, NULL, CAST(0x0000A18C012FCE98 AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (8, N'CMS_首页右侧广告2', 0, NULL, 278, 250, NULL, 0, NULL, CAST(0x0000A18C012FD93B AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (9, N'CMS_列表页右侧广告1', 0, NULL, 278, 250, NULL, 0, NULL, CAST(0x0000A18C012FC751 AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (10, N'CMS_列表页右侧广告2', 0, NULL, 278, 250, NULL, 0, NULL, CAST(0x0000A18C013001E1 AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (11, N'CMS_内容页右侧广告1', 0, NULL, 278, 250, NULL, 0, NULL, CAST(0x0000A18C013024E0 AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (12, N'CMS_内容页右侧广告2', 0, NULL, 278, 250, NULL, 0, NULL, CAST(0x0000A18C01303D54 AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (13, N'CMS_搜索页右侧广告1', 0, NULL, 278, 250, NULL, 0, NULL, CAST(0x0000A18C01305C43 AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (14, N'CMS_搜索页右侧广告2', 0, NULL, 278, 250, NULL, 0, NULL, CAST(0x0000A18C0137F2AE AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (15, N'CMS_内容页中间自定义广告', 4, NULL, 0, 0, N'<script type="text/javascript"><!--
google_ad_client = "ca-pub-9330631477363163";
/* TC728-90 */
google_ad_slot = "7307433915";
google_ad_width = 636;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>', 0, NULL, CAST(0x0000A18F01347312 AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (16, N'CMS_右侧自定义广告', 4, NULL, 0, 0, N'<script type="text/javascript"><!--
google_ad_client = "ca-pub-9330631477363163";
/* dukeji250 */
google_ad_slot = "0543417175";
google_ad_width = 278;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>', 0, NULL, CAST(0x0000A18F01341D96 AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (17, N'SNS_图分享首页大广告位', 2, NULL, 960, 455, NULL, 1, 5, CAST(0x0000A19B0129EEEC AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (18, N'SNS_图分享专辑页小广告位', 2, NULL, 958, 96, NULL, 1, 10, CAST(0x0000A1A40140CF91 AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (19, N'SNS_图分享小组首页小广告位', 2, NULL, 958, 96, NULL, 1, 10, CAST(0x0000A1A401412AA7 AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (20, N'SNS_图分享视频页小广告位', 2, NULL, 958, 96, NULL, 1, 10, CAST(0x0000A1A401417D83 AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (21, N'SNS_图分享图片页小广告位', 2, NULL, 958, 96, NULL, 1, 10, CAST(0x0000A1A401449C57 AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (30, N'M1个人中心首页广告位', 0, NULL, 788, 98, NULL, 0, NULL, CAST(0x0000A1E700EF9E5F AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (31, N'M1头部右侧小广告', 0, NULL, 215, 70, NULL, 0, NULL, CAST(0x0000A1E8010456FB AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (32, N'M1商品搜索页广告位', 0, NULL, 770, 250, N'', 0, NULL, CAST(0x0000A1E801094E6C AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (33, N'M1单品页广告位', 0, NULL, 980, 60, N'', 0, NULL, CAST(0x0000A1E8010AF10D AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (34, N'M1首页今日热卖', 0, NULL, 232, 145, N'', 0, NULL, CAST(0x0000A1E8010D2803 AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (35, N'M1首页今日赠品', 0, NULL, 232, 145, NULL, 0, NULL, CAST(0x0000A1E8010DBDB6 AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (36, N'M1首页大广告', 2, NULL, 728, 337, N'', 1, 10, CAST(0x0000A1E80110B0DD AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (38, N'SNS_M1_首页', 0, NULL, 278, 208, NULL, 1, 1000, CAST(0x0000A1EF00A29666 AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (39, N'M1_首页_女装_左大图', 0, NULL, 558, 297, NULL, 0, NULL, CAST(0x0000A1F0014380CA AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (40, N'M1_首页_女装_中图', 0, NULL, 220, 297, NULL, 0, NULL, CAST(0x0000A1F00144A5AB AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (41, N'M1_首页_女装_右三张小图', 0, NULL, 198, 98, NULL, 0, NULL, CAST(0x0000A1F0014577B0 AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (42, N'M1_首页_童装_左大图', 0, NULL, 558, 297, NULL, 0, NULL, CAST(0x0000A1F00146BFFF AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (43, N'M1_首页_童装_中图', 0, NULL, 220, 297, NULL, 0, NULL, CAST(0x0000A1F001516D3B AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (44, N'M1_首页_童装_右三张小图', 0, NULL, 198, 98, NULL, 0, NULL, CAST(0x0000A1F00151F8AA AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (45, N'M1_首页_男装_左大图', 0, NULL, 558, 297, NULL, 0, NULL, CAST(0x0000A1F001529D39 AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (47, N'M1_首页_男装_中图', 0, NULL, 220, 297, NULL, 0, NULL, CAST(0x0000A1F001535239 AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (48, N'M1_首页_男装_右三张小图', 0, NULL, 198, 98, NULL, 0, NULL, CAST(0x0000A1F001539CA3 AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (49, N'M1_手机版_首页轮换', 0, NULL, 100, 100, NULL, 0, NULL, CAST(0x0000A23C0100357A AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (50, N'M1_手机版_首页', 0, NULL, 100, 100, NULL, 0, NULL, CAST(0x0000A23C01029F92 AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (51, N'百买_首页_导航后边的小图', 1, 1, 190, 72, NULL, 0, NULL, CAST(0x0000A27500C22855 AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (52, N'百买_首页_大banner', 1, 6, 1680, 370, NULL, 1, 3, CAST(0x0000A27500C2DD6F AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (53, N'百买_首页_大banner右上角', 1, 1, 200, 70, NULL, 0, NULL, CAST(0x0000A27500C61465 AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (54, N'百买_首页_本周爆款', 1, 1, 200, 70, NULL, 0, NULL, CAST(0x0000A27500C765B6 AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (55, N'百买_现货特价和品牌库', 1, 6, 990, 281, NULL, 0, NULL, CAST(0x0000A27500C8B346 AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (56, N'百买_登录页top', 1, 1, 206, 57, NULL, 0, NULL, CAST(0x0000A27500E740C6 AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (57, N'百买_登录页背景', 1, 2, 1800, 420, NULL, 1, 3, CAST(0x0000A27500E7D1E0 AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (58, N'百买_登录页bottom', 1, 3, 273, 251, NULL, 0, NULL, CAST(0x0000A27500E86DED AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (60, N'商家后台登录页小广告', 0, NULL, 323, 74, NULL, 0, NULL, CAST(0x0000A27700F836A1 AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (61, N'团购首页广告', 1, 4, 960, 230, NULL, 1, 2, CAST(0x0000A28900B2CD82 AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (62, N'VPH_Index_Ads', 1, 3, 720, 405, NULL, 1, 3, CAST(0x0000A28F013504E7 AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (63, N'APK_Index_Ad', 1, 4, 640, 240, N'', 1, 1, CAST(0x0000A2AC010CE656 AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (64, N'YX_Index_Ad', 1, 3, 100, 100, N'', 1, 1, CAST(0x0000A2B5012D41C5 AS DateTime), 1)
INSERT [AD_AdvertisePosition] ([AdvPositionId], [AdvPositionName], [ShowType], [RepeatColumns], [Width], [Height], [AdvHtml], [IsOne], [TimeInterval], [CreatedDate], [CreatedUserID]) VALUES (65, N'F1模版首页单个广告位', 0, NULL, 400, 4010, N'', 0, NULL, CAST(0x0000A2B400F8E61E AS DateTime), 1)
SET IDENTITY_INSERT [AD_AdvertisePosition] OFF
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[AD_Advertisement]') AND type in (N'U'))
BEGIN
CREATE TABLE [AD_Advertisement](
	[AdvertisementId] [int] IDENTITY(1,1) NOT NULL,
	[AdvertisementName] [nvarchar](50) NULL,
	[AdvPositionId] [int] NULL,
	[ContentType] [int] NULL,
	[FileUrl] [nvarchar](200) NULL,
	[AlternateText] [nvarchar](200) NULL,
	[NavigateUrl] [nvarchar](200) NULL,
	[AdvHtml] [nvarchar](max) NULL,
	[Impressions] [int] NULL,
	[CreatedDate] [datetime] NULL,
	[CreatedUserID] [int] NULL,
	[State] [int] NULL,
	[StartDate] [datetime] NULL,
	[EndDate] [datetime] NULL,
	[DayMaxPV] [int] NULL CONSTRAINT [DF_AD_Advertisement_DayMaxPV]  DEFAULT ((0)),
	[DayMaxIP] [int] NULL CONSTRAINT [DF_AD_Advertisement_DayMaxIP]  DEFAULT ((0)),
	[CPMPrice] [money] NULL CONSTRAINT [DF_AD_Advertisement_CPMPrice]  DEFAULT ((0)),
	[AutoStop] [int] NULL CONSTRAINT [DF_AD_Advertisement_AutoStop]  DEFAULT ((-1)),
	[Sequence] [int] NULL,
	[EnterpriseID] [int] NULL,
 CONSTRAINT [PK_AD_Advertisement] PRIMARY KEY CLUSTERED 
(
	[AdvertisementId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET IDENTITY_INSERT [AD_Advertisement] ON
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (1, N'动软卓越', 1, 1, N'/Upload/AD/1/201303251718166569238.jpg', N'很好很强大', N'http://www.maticsoft.com/', NULL, 10, CAST(0x0000A18C011D4D1C AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 1, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (2, N'动软卓越', 1, 1, N'/Upload/AD/1/201303251719210976096.jpg', N'', N'http://www.maticsoft.com/', NULL, 10, CAST(0x0000A18C011D8424 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 2, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (3, N'动软卓越', 1, 1, N'/Upload/AD/1/201303251719496592432.jpg', N'', N'http://www.maticsoft.com/', NULL, 10, CAST(0x0000A18C011D9ED2 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 3, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (4, N'动软卓越', 1, 1, N'/Upload/AD/1/201303251720525918428.jpg', N'', N'http://www.maticsoft.com/', NULL, 10, CAST(0x0000A18C011DB0B8 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 4, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (5, N'动软卓越', 2, 1, N'/Upload/AD/2/201303251730394284079.jpg', N'', N'http://www.maticsoft.com/', NULL, 10, CAST(0x0000A18C01209A18 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 5, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (6, N'动软卓越', 3, 1, N'/Upload/AD/3/201303251737168921415.jpg', N'', N'http://www.maticsoft.com/', NULL, 10, CAST(0x0000A18C01226A50 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 6, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (7, N'动软卓越', 3, 1, N'/Upload/AD/3/201303251737449767479.jpg', N'', N'http://www.maticsoft.com/', NULL, 10, CAST(0x0000A18C01228C04 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 7, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (8, N'动软卓越', 3, 1, N'/Upload/AD/3/201303251738076870468.jpg', N'', N'http://www.maticsoft.com/', NULL, 10, CAST(0x0000A18C0122A12C AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 8, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (9, N'动软卓越', 4, 1, N'/Upload/AD/4/201303251738532326519.jpg', N'', N'http://www.maticsoft.com/', NULL, 10, CAST(0x0000A18C0122DA50 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 9, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (10, N'动软卓越', 5, 1, N'/Upload/AD/5/201303251739249844680.jpg', N'', N'http://www.maticsoft.com/', NULL, 10, CAST(0x0000A18C0122FE35 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 10, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (11, N'动软卓越', 5, 1, N'/Upload/AD/5/201303251739554662114.jpg', N'', N'http://www.maticsoft.com/', NULL, 10, CAST(0x0000A18C012320E8 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 11, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (12, N'动软卓越', 6, 1, N'/Upload/AD/6/201303251832268494602.jpg', N'', N'http://www.maticsoft.com/', NULL, 10, CAST(0x0000A18C01318EA8 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 12, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (13, N'动软卓越', 7, 1, N'/Upload/AD/7/201303251900129917581.gif', N'', N'http://sns.maticsoft.com/', NULL, 10, CAST(0x0000A18C0139302C AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 13, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (14, N'动软卓越', 8, 1, N'/Upload/AD/8/201303251926323520924.gif', N'', N'http://msfw.maticsoft.com/', NULL, 10, CAST(0x0000A18C01399878 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 14, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (15, N'动软卓越', 9, 1, N'/Upload/AD/7/201303251900129917581.gif', N'', N'http://sns.maticsoft.com/', NULL, 10, CAST(0x0000A18C0139302C AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 15, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (16, N'动软卓越', 10, 1, N'/Upload/AD/8/201303251926323520924.gif', N'', N'http://msfw.maticsoft.com/', NULL, 10, CAST(0x0000A18C01399878 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 16, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (17, N'动软卓越', 11, 1, N'/Upload/AD/7/201303251900129917581.gif', N'', N'http://sns.maticsoft.com/', NULL, 10, CAST(0x0000A18C0139302C AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 17, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (18, N'动软卓越', 12, 1, N'/Upload/AD/8/201303251926323520924.gif', N'', N'http://msfw.maticsoft.com/', NULL, 10, CAST(0x0000A18C01399878 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 18, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (19, N'动软卓越', 13, 1, N'/Upload/AD/7/201303251900129917581.gif', N'', N'http://sns.maticsoft.com/', NULL, 10, CAST(0x0000A18C0139302C AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 19, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (20, N'动软卓越', 14, 1, N'/Upload/AD/8/201303251926323520924.gif', N'', N'http://msfw.maticsoft.com/', NULL, 10, CAST(0x0000A18C01399878 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 20, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (21, N'动软卓越', 6, 1, N'/Upload/AD/6/201303252250366064237.jpg', N'', N'http://www.maticsoft.com/', NULL, 10, CAST(0x0000A18C0178792C AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 21, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (22, N'动软卓越', 6, 1, N'/Upload/AD/6/201303252250589807034.jpg', N'', N'http://www.maticsoft.com/', NULL, 10, CAST(0x0000A18C017894C1 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 22, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (23, N'自定义广告代码', 16, 3, NULL, NULL, NULL, NULL, NULL, CAST(0x0000A18F0133094D AS DateTime), NULL, NULL, NULL, NULL, 0, 0, 0.0000, -1, NULL, NULL)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (24, N'动软卓越', 17, 1, N'/Upload/AD/17/201304081744558027011.jpg', N'动软社区分享系统——图分享模板', N'http://www.maticsoft.com', NULL, 10, CAST(0x0000A19A0124AB98 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 23, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (25, N'动软卓越', 17, 1, N'/Upload/AD/17/201304081746039285977.jpg', N'动软社区分享系统——图分享模板', N'http://www.maticsoft.com', NULL, 10, CAST(0x0000A19A0124E121 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 24, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (26, N'动软卓越', 17, 1, N'/Upload/AD/17/201304081746386085813.jpg', N'动软社区分享系统——图分享模板', N'http://www.maticsoft.com', NULL, 10, CAST(0x0000A19A012504E4 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 25, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (27, N'动软卓越', 17, 1, N'/Upload/AD/17/201304081747125565230.jpg', N'动软社区分享系统——图分享模板图片4', N'http://www.maticsoft.com', NULL, 10, CAST(0x0000A19A01253AEA AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 26, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (28, N'动软卓越', 17, 1, N'/Upload/AD/17/201304081747577871100.jpg', N'动软社区分享系统——图分享模板图片5', N'http://www.maticsoft.com', NULL, 10, CAST(0x0000A19A01255EA1 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 27, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (29, N'动软卓越', 18, 1, N'/Upload/AD/5/201303251739249844680.jpg', N'', N'http://www.maticsoft.com/', NULL, 10, CAST(0x0000A18C0122FE35 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 10, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (30, N'动软卓越', 18, 1, N'/Upload/AD/5/201303251739554662114.jpg', N'', N'http://www.maticsoft.com/', NULL, 10, CAST(0x0000A18C012320E8 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 11, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (31, N'动软卓越', 19, 1, N'/Upload/AD/5/201303251739249844680.jpg', N'', N'http://www.maticsoft.com/', NULL, 10, CAST(0x0000A18C0122FE35 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 10, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (32, N'动软卓越', 19, 1, N'/Upload/AD/5/201303251739249844680.jpg', N'', N'http://www.maticsoft.com/', NULL, 10, CAST(0x0000A18C0122FE35 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 10, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (33, N'动软卓越', 20, 1, N'/Upload/AD/5/201303251739249844680.jpg', N'', N'http://www.maticsoft.com/', NULL, 10, CAST(0x0000A18C0122FE35 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 10, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (34, N'动软卓越', 20, 1, N'/Upload/AD/5/201303251739249844680.jpg', N'', N'http://www.maticsoft.com/', NULL, 10, CAST(0x0000A18C0122FE35 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 10, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (35, N'动软卓越', 21, 1, N'/Upload/AD/5/201303251739249844680.jpg', N'', N'http://www.maticsoft.com/', NULL, 10, CAST(0x0000A18C0122FE35 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 10, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (36, N'动软卓越', 21, 1, N'/Upload/AD/5/201303251739249844680.jpg', N'', N'http://www.maticsoft.com/', NULL, 10, CAST(0x0000A18C0122FE35 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 10, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (39, N'意外的恋爱时光 ', 22, 1, N'/Upload/AD/22/201305221504273778539.jpg', N'  该片是一部具备亲切自然风格的浪漫气质喜剧，讲述毫无交集的两个人在寻觅爱情，抓住爱情的路上遭遇"意外"，和理想婚姻的追寻。...', N'http://www.maticsoft.com', NULL, 10, CAST(0x0000A1C600F8B3C1 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 28, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (40, N'钢铁侠3Iron Man 3', 22, 1, N'/Upload/AD/22/201305221507190696742.jpg', N' 在《钢铁侠3》中，托尼·斯塔克将遭遇到一个能力似乎没有界限的强敌的挑战。这个人毁坏了斯塔克的生活，而斯', N'http://www.maticsoft.com', NULL, 10, CAST(0x0000A1C600F94EE4 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 29, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (41, N'致我们终将逝去的青春', 22, 1, N'/Upload/AD/22/201305221508067954039.jpg', N'   自喻为"玉面小飞龙"的郑微，洋溢着青春活力，心怀着对邻家哥哥——林孝正，板正、自闭而又敏感、自尊的陈孝正却在毕业的...', N'http://www.maticsoft.com', NULL, 10, CAST(0x0000A1C600F97B70 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 30, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (42, N'疯狂原始人', 22, 1, N'/Upload/AD/22/201305221508412373739.jpg', N'   原始人克鲁德一家六口在老爸Grug（尼古拉斯·，她不满足一辈子留在这个小山洞里，一心想要追逐山洞外面的世...', N'http://www.maticsoft.com', NULL, 10, CAST(0x0000A1C600F9A2A2 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 31, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (43, N'淘淘乐', 23, 1, N'/Upload/AD/23/201305221558084930912.jpg', N'淘淘乐广告位', N'http://www.maticsoft.com', NULL, 10, CAST(0x0000A1C601073CC6 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 32, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (44, N'淘淘乐广告位', 24, 1, N'/Upload/AD/24/201305221600128362032.jpg', N'淘淘乐广告位', N'http://www.maticsoft.com', NULL, 10, CAST(0x0000A1C60107C5EF AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 33, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (45, N'淘淘乐广告位2', 24, 1, N'/Upload/AD/24/201305221628000335615.jpg', N'淘淘乐广告位2', N'http://www.maticsoft.com', NULL, 10, CAST(0x0000A1C6010F66A8 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 34, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (46, N'淘淘乐', 25, 1, N'/Upload/AD/23/201305221558084930912.jpg', N'淘淘乐广告位', N'http://www.maticsoft.com', NULL, 10, CAST(0x0000A1C601073CC6 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 32, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (47, N'淘淘乐', 26, 1, N'/Upload/AD/23/201305221558084930912.jpg', N'淘淘乐广告位', N'http://www.maticsoft.com', NULL, 10, CAST(0x0000A1C601073CC6 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 32, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (48, N'淘淘乐', 27, 1, N'/Upload/AD/23/201305221558084930912.jpg', N'淘淘乐广告位', N'http://www.maticsoft.com', NULL, 10, CAST(0x0000A1C601073CC6 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 32, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (49, N'淘淘乐', 28, 1, N'/Upload/AD/23/201305221558084930912.jpg', N'淘淘乐广告位', N'http://www.maticsoft.com', NULL, 10, CAST(0x0000A1C601073CC6 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 32, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (50, N'淘淘乐', 29, 1, N'/Upload/AD/23/201305221558084930912.jpg', N'淘淘乐广告位', N'http://www.maticsoft.com', NULL, 10, CAST(0x0000A1C601073CC6 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 32, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (51, N'动软', 30, 1, N'/Upload/AD/30/201306241436391378668.jpg', N'', N'/', NULL, 10, CAST(0x0000A1E700F0CB96 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 35, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (52, N'招商会', 31, 1, N'/Upload/AD/31/201306251551332313479.jpg', N'', N'/', NULL, 10, CAST(0x0000A1E801056210 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 36, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (53, N'热卖', 32, 1, N'/Upload/AD/32/201306251608311275682.jpg', N'热卖', N'/', NULL, 10, CAST(0x0000A1E8010A0B9F AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 37, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (54, N'你购物我买单', 33, 1, N'/Upload/AD/33/201306251611321139201.jpg', N'你购物我买单', N'/', NULL, 10, CAST(0x0000A1E8010ADABD AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 38, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (55, N'今日热卖', 34, 1, N'/Upload/AD/34/201306251621094269405.jpg', N'今日热卖', N'/', NULL, 10, CAST(0x0000A1E8010D815E AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 39, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (56, N'今日赠品', 35, 1, N'/Upload/AD/35/201306251622497826805.jpg', N'今日赠品', N'/', NULL, 10, CAST(0x0000A1E8010E092F AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 40, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (57, N'初秋最新爆款低至￥35', 36, 1, N'/Upload/AD/36/201306251636539429637.jpg', N'初秋最新爆款低至￥35', N'/', NULL, 10, CAST(0x0000A1E80111D57E AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 41, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (58, N'Mind&Style换季3折起', 36, 1, N'/Upload/AD/36/201306251638242711302.jpg', N'Mind&Style换季3折起', N'/', NULL, 10, CAST(0x0000A1E801124090 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 42, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (59, N'Euromoda秋衫4.5折抢', 36, 1, N'/Upload/AD/36/201306251639307369318.jpg', N'Euromoda秋衫4.5折抢', N'/', NULL, 10, CAST(0x0000A1E801128C9B AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 43, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (60, N'宝贝开学新衣4.3折起', 36, 1, N'/Upload/AD/36/201306251640363496846.jpg', N'宝贝开学新衣4.3折起', N'/', NULL, 10, CAST(0x0000A1E80112D615 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 44, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (61, N'College镂空针织衫￥79', 36, 1, N'/Upload/AD/36/201306251641375781867.jpg', N'College镂空针织衫￥79', N'/', NULL, 10, CAST(0x0000A1E80113216C AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 45, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (62, N'广告1', 38, 1, N'/Upload/AD/38/201307020952341865000.jpg', N'广告1', N'/', NULL, 10, CAST(0x0000A1EF00A2C923 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 46, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (63, N'广告2', 38, 1, N'/Upload/AD/38/201307020953011240000.jpg', N'广告2', N'/', NULL, 10, CAST(0x0000A1EF00A2ECD3 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 47, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (64, N'摩登派对简洁百搭衬衫', 39, 1, N'/Upload/AD/39/201307031940392021250.jpg', N'摩登派对简洁百搭衬衫', N'http://www.maticsoft.com', NULL, 10, CAST(0x0000A1F001446B21 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 48, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (65, N'无敌热卖连衣裙两件套', 40, 1, N'/Upload/AD/40/201307031944004990000.jpg', N'无敌热卖连衣裙两件套', N'http://www.maticsoft.com', NULL, 10, CAST(0x0000A1F001453EE4 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 49, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (66, N'韩都衣舍', 41, 1, N'/Upload/AD/41/201307031946408115000.jpg', N'韩都衣舍', N'http://shop.maticsoft.com/', NULL, 10, CAST(0x0000A1F00146153C AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 50, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (67, N'连衣裙', 41, 1, N'/Upload/AD/41/201307031948030771250.jpg', N'连衣裙', N'http://shop.maticsoft.com/', NULL, 10, CAST(0x0000A1F001465641 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 51, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (68, N'小外套', 41, 1, N'/Upload/AD/41/201307031948438115000.jpg', N'小外套', N'http://shop.maticsoft.com/', NULL, 10, CAST(0x0000A1F001468518 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 52, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (69, N'Euromoda Kids童装反季大特卖', 42, 1, N'/Upload/AD/42/201307031951379990000.jpg', N'Euromoda Kids童装反季大特卖', N'http://shop.maticsoft.com/', NULL, 10, CAST(0x0000A1F001475329 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 53, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (70, N'渠道营销解决方案', 43, 1, N'/Upload/AD/43/201307032029548896250.jpg', N'渠道营销解决方案', N'http://shop.maticsoft.com/', NULL, 10, CAST(0x0000A1F00151D21F AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 54, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (71, N'Euromoda Kids童装反季大特卖', 44, 1, N'/Upload/AD/44/201307032031008271250.jpg', N'渠道营销解决方案', N'http://shop.maticsoft.com/', NULL, 10, CAST(0x0000A1F001523193 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 55, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (72, N'渠道营销解决方案', 44, 1, N'/Upload/AD/44/201307032031437958750.jpg', N'渠道营销解决方案', N'http://shop.maticsoft.com/', NULL, 10, CAST(0x0000A1F0015255BD AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 56, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (73, N'Euromoda Kids童装反季大特卖', 44, 1, N'/Upload/AD/44/201307032032121865000.jpg', N'渠道营销解决方案', N'http://shop.maticsoft.com/', NULL, 10, CAST(0x0000A1F001527715 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 57, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (74, N'justyle秋装新款上市', 45, 1, N'/Upload/AD/45/201307032034548427500.jpg', N'justyle秋装新款上市', N'http://shop.maticsoft.com/', NULL, 10, CAST(0x0000A1F00153341F AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 58, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (75, N'零号男秋装上新', 47, 1, N'/Upload/AD/47/201307032035536865000.jpg', N'零号男秋装上新', N'http://shop.maticsoft.com/', NULL, 10, CAST(0x0000A1F00153782E AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 59, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (76, N'2012衬衫新品发布', 48, 1, N'/Upload/AD/48/201307032036533896250.jpg', N'2012衬衫新品发布', N'http://shop.maticsoft.com/', NULL, 10, CAST(0x0000A1F00153BFBD AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 60, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (77, N'型男必备卫衣', 48, 1, N'/Upload/AD/48/201307032037256708750.jpg', N'型男必备卫衣', N'http://shop.maticsoft.com/', NULL, 10, CAST(0x0000A1F00153E591 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 61, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (78, N'夏日眩彩polo衫', 48, 1, N'/Upload/AD/48/201307032037548271250.jpg', N'夏日眩彩polo衫', N'http://shop.maticsoft.com/', NULL, 10, CAST(0x0000A1F0015405D5 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 62, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (79, N'动软卓越', 49, 1, N'/Upload/AD/49/201309171533393694545.jpg', N'', N'http://shop.maticsoft.com/', NULL, 10, CAST(0x0000A23C010073F4 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 63, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (80, N'动软卓越', 49, 1, N'/Upload/AD/49/201309171534094830793.jpg', N'', N'http://shop.maticsoft.com/', NULL, 10, CAST(0x0000A23C0100964D AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 64, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (81, N'动软卓越', 49, 1, N'/Upload/AD/49/201309171534461723452.jpg', N'', N'http://shop.maticsoft.com/', NULL, 10, CAST(0x0000A23C0100C23B AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 65, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (82, N'动软卓越', 49, 1, N'/Upload/AD/49/201309171535098509008.jpg', N'', N'http://shop.maticsoft.com/', NULL, 10, CAST(0x0000A23C0100DD93 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 66, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (83, N'动软卓越', 49, 1, N'/Upload/AD/49/201309171535362471798.jpg', N'', N'http://shop.maticsoft.com/', NULL, 10, CAST(0x0000A23C0100FBAB AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 67, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (84, N'动软卓越', 49, 1, N'/Upload/AD/49/201309171536036430812.jpg', N'', N'http://shop.maticsoft.com/', NULL, 10, CAST(0x0000A23C01011C7C AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 68, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (85, N'动软卓越', 49, 1, N'/Upload/AD/49/201309171536366930968.jpg', N'', N'http://shop.maticsoft.com/', NULL, 10, CAST(0x0000A23C0101445E AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 69, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (86, N'动软卓越', 49, 1, N'/Upload/AD/49/201309171537215980093.jpg', N'', N'http://shop.maticsoft.com/', NULL, 10, CAST(0x0000A23C01017BAF AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 70, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (87, N'动软卓越', 49, 1, N'/Upload/AD/49/201309171537537108789.jpg', N'', N'http://shop.maticsoft.com/', NULL, 10, CAST(0x0000A23C01019DB1 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 71, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (88, N'动软卓越', 50, 1, N'/Upload/AD/50/201309171542042568620.jpg', N'', N'http://shop.maticsoft.com/', NULL, 10, CAST(0x0000A23C0102C4F7 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 72, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (89, N'动软卓越', 51, 1, N'/Upload/AD/51/201311131147560116999.jpg', N'', N'http://shop.maticsoft.com', NULL, 10, CAST(0x0000A27500C27CE8 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 73, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (90, N'动软卓越', 52, 1, N'/Upload/AD/52/201311131156140381854.jpg', N'', N'http://shop.maticsoft.com', NULL, 10, CAST(0x0000A27500C4C68D AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 74, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (91, N'动软卓越', 52, 1, N'/Upload/AD/52/201311131156573966653.jpg', N'', N'http://shop.maticsoft.com', NULL, 10, CAST(0x0000A27500C4F1F2 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 75, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (92, N'动软卓越', 52, 1, N'/Upload/AD/52/201311131157259062960.jpg', N'', N'http://shop.maticsoft.com', NULL, 10, CAST(0x0000A27500C51684 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 76, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (93, N'动软卓越', 52, 1, N'/Upload/AD/52/201311131158052575467.jpg', N'', N'http://shop.maticsoft.com', NULL, 10, CAST(0x0000A27500C543E4 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 77, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (94, N'动软卓越', 52, 1, N'/Upload/AD/52/201311131158385544512.jpg', N'', N'http://shop.maticsoft.com', NULL, 10, CAST(0x0000A27500C569BC AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 78, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (95, N'动软卓越', 52, 1, N'/Upload/AD/52/201311131159106862890.jpg', N'', N'http://shop.maticsoft.com', NULL, 10, CAST(0x0000A27500C58E27 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 79, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (96, N'动软卓越', 53, 1, N'/Upload/AD/53/201311131204371669627.jpg', N'', N'http://shop.maticsoft.com', NULL, 10, CAST(0x0000A27500C70DE0 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 80, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (97, N'动软卓越', 54, 1, N'/Upload/AD/54/201311131208439380772.jpg', N'', N'http://shop.maticsoft.com', NULL, 10, CAST(0x0000A27500C82F9A AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 81, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (98, N'动软卓越', 55, 1, N'/Upload/AD/55/201311131212035474942.jpg', N'', N'http://shop.maticsoft.com', NULL, 10, CAST(0x0000A27500C917B1 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 82, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (99, N'动软卓越', 55, 1, N'/Upload/AD/55/201311131212294479756.jpg', N'', N'http://shop.maticsoft.com', NULL, 10, CAST(0x0000A27500C9351B AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 83, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (100, N'动软卓越', 55, 1, N'/Upload/AD/55/201311131212566885337.jpg', N'', N'http://shop.maticsoft.com', NULL, 10, CAST(0x0000A27500C95670 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 84, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (101, N'动软卓越', 55, 1, N'/Upload/AD/55/201311131213245571277.jpg', N'', N'http://shop.maticsoft.com', NULL, 10, CAST(0x0000A27500C975AB AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 85, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (102, N'动软卓越', 55, 1, N'/Upload/AD/55/201311131213515676726.jpg', N'', N'http://shop.maticsoft.com', NULL, 10, CAST(0x0000A27500C99603 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 86, -1)
GO
print 'Processed 100 total records'
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (103, N'动软卓越', 55, 1, N'/Upload/AD/55/201311131214194222658.jpg', N'', N'http://shop.maticsoft.com', NULL, 10, CAST(0x0000A27500C9B6D3 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 87, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (104, N'动软卓越', 56, 1, N'/Upload/AD/56/201311131402252132318.jpg', N'', N'http://shop.maticsoft.com', NULL, 10, CAST(0x0000A27500E76EA4 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 88, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (105, N'动软卓越', 57, 1, N'/Upload/AD/57/201311131421056853191.jpg', N'', N'http://shop.maticsoft.com', NULL, 10, CAST(0x0000A27500E7FD74 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 89, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (106, N'动软卓越', 57, 1, N'/Upload/AD/57/201311131405046483510.jpg', N'', N'http://shop.maticsoft.com', NULL, 10, CAST(0x0000A27500E82989 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 90, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (107, N'动软卓越', 58, 1, N'/Upload/AD/58/201311131421329128765.jpg', N'', N'http://shop.maticsoft.com', NULL, 10, CAST(0x0000A27500E8E0CC AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 91, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (108, N'动软卓越', 58, 1, N'/Upload/AD/58/201311131421477297239.jpg', N'', N'http://shop.maticsoft.com', NULL, 10, CAST(0x0000A27500E9019C AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 92, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (109, N'动软卓越', 58, 1, N'/Upload/AD/58/201311131422010944884.jpg', N'', N'http://shop.maticsoft.com', NULL, 10, CAST(0x0000A27500E92014 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 93, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (115, N'动软卓越', 61, 1, N'/Upload/AD/61/201312031058513876252.jpg', N'', N'http://shop.maticsoft.com/', NULL, 10, CAST(0x0000A28900B4B533 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 99, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (120, N'动软卓越', 60, 1, N'/Upload/AD/60/201312101708369002384.gif', N'动软卓越', N'http://shop.maticsoft.com/', NULL, 10, CAST(0x0000A290011A8BA4 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 103, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (121, N'动软卓越', 62, 1, N'/Upload/AD/62/201312091846041037733.jpg', N'动软卓越', N'http://www.maticsoft.com', NULL, 10, CAST(0x0000A28F01355BB2 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 103, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (122, N'动软卓越', 62, 1, N'/Upload/AD/62/201312091846428709906.jpg', N'动软卓越', N'http://www.maticsoft.com', NULL, 10, CAST(0x0000A28F01355BB2 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 103, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (123, N'动软卓越', 62, 1, N'/Upload/AD/62/201312091846041037733.jpg', N'动软卓越', N'http://www.maticsoft.com', NULL, 10, CAST(0x0000A29100AA04EB AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 105, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (124, N'动软卓越', 63, 1, N'/Upload/AD/63/201312241422466603317.jpg', N'动软卓越', N'http://www.maticsoft.com', NULL, 10, CAST(0x0000A29E00ECCEB2 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 106, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (125, N'动软卓越', 63, 1, N'/Upload/AD/63/201312241422263981728.jpg', N'动软卓越', N'http://www.maticsoft.com', NULL, 10, CAST(0x0000A29E00ECE676 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 107, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (126, N'动软卓越', 63, 1, N'/Upload/AD/63/201312241422466603317.jpg', N'动软卓越', N'http://www.maticsoft.com', NULL, 10, CAST(0x0000A29E00ECFB8A AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 108, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (127, N'动软卓越', 63, 1, N'/Upload/AD/63/201312241422263981728.jpg', N'动软卓越', N'http://www.maticsoft.com', NULL, 10, CAST(0x0000A29E00ED1180 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 109, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (136, N'动软餐厅', 65, 1, N'/Upload/AD/65/201401151507001863436.jpg', N'动软餐厅', N'http://shop.maticsoft.com/', NULL, 10, CAST(0x0000A2B400F948CC AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 113, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (137, N'动软卓越', 64, 1, N'/Upload/AD/49/201309171533393694545.jpg', N'动软卓越', N'http://shop.maticsoft.com/', NULL, 10, CAST(0x0000A23C010073F4 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 63, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (138, N'动软卓越', 64, 1, N'/Upload/AD/49/201309171534094830793.jpg', N'动软卓越', N'http://shop.maticsoft.com/', NULL, 10, CAST(0x0000A23C0100964D AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 64, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (139, N'动软卓越', 64, 1, N'/Upload/AD/49/201309171534461723452.jpg', N'动软卓越', N'http://shop.maticsoft.com/', NULL, 10, CAST(0x0000A23C0100C23B AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 65, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (140, N'动软卓越', 64, 1, N'/Upload/AD/49/201309171535098509008.jpg', N'动软卓越', N'http://shop.maticsoft.com/', NULL, 10, CAST(0x0000A23C0100DD93 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 66, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (141, N'动软卓越', 64, 1, N'/Upload/AD/49/201309171535362471798.jpg', N'动软卓越', N'http://shop.maticsoft.com/', NULL, 10, CAST(0x0000A23C0100FBAB AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 67, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (142, N'动软卓越', 64, 1, N'/Upload/AD/49/201309171536036430812.jpg', N'动软卓越', N'http://shop.maticsoft.com/', NULL, 10, CAST(0x0000A23C01011C7C AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 68, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (143, N'动软卓越', 64, 1, N'/Upload/AD/49/201309171536366930968.jpg', N'动软卓越', N'http://shop.maticsoft.com/', NULL, 10, CAST(0x0000A23C0101445E AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 69, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (144, N'动软卓越', 64, 1, N'/Upload/AD/49/201309171537215980093.jpg', N'动软卓越', N'http://shop.maticsoft.com/', NULL, 10, CAST(0x0000A23C01017BAF AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 70, -1)
INSERT [AD_Advertisement] ([AdvertisementId], [AdvertisementName], [AdvPositionId], [ContentType], [FileUrl], [AlternateText], [NavigateUrl], [AdvHtml], [Impressions], [CreatedDate], [CreatedUserID], [State], [StartDate], [EndDate], [DayMaxPV], [DayMaxIP], [CPMPrice], [AutoStop], [Sequence], [EnterpriseID]) VALUES (145, N'动软卓越', 64, 1, N'/Upload/AD/49/201309171537537108789.jpg', N'动软卓越', N'http://shop.maticsoft.com/', NULL, 10, CAST(0x0000A23C01019DB1 AS DateTime), 1, 1, NULL, NULL, 0, 0, 0.0000, -1, 71, -1)
SET IDENTITY_INSERT [AD_Advertisement] OFF
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_VerifyMail]') AND type in (N'U'))
BEGIN
CREATE TABLE [Accounts_VerifyMail](
	[UserName] [nvarchar](50) NOT NULL,
	[KeyValue] [nvarchar](50) NOT NULL,
	[CreatedDate] [datetime] NOT NULL,
	[Status] [int] NOT NULL,
	[ValidityType] [int] NULL,
 CONSTRAINT [PK_Accounts_VerifyMail] PRIMARY KEY CLUSTERED 
(
	[KeyValue] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_UserType]') AND type in (N'U'))
BEGIN
CREATE TABLE [Accounts_UserType](
	[UserType] [char](2) NOT NULL,
	[Description] [nvarchar](50) NOT NULL,
 CONSTRAINT [PK_Accounts_UserType] PRIMARY KEY CLUSTERED 
(
	[UserType] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
INSERT [Accounts_UserType] ([UserType], [Description]) VALUES (N'AA', N'管理员')
INSERT [Accounts_UserType] ([UserType], [Description]) VALUES (N'AG', N'代理商')
INSERT [Accounts_UserType] ([UserType], [Description]) VALUES (N'EE', N'企业')
INSERT [Accounts_UserType] ([UserType], [Description]) VALUES (N'SP', N'商家')
INSERT [Accounts_UserType] ([UserType], [Description]) VALUES (N'UU', N'普通用户')
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_UsersExp]') AND type in (N'U'))
BEGIN
CREATE TABLE [Accounts_UsersExp](
	[UserID] [int] NOT NULL,
	[Gravatar] [nvarchar](200) NULL,
	[Singature] [nvarchar](200) NULL,
	[TelPhone] [nvarchar](50) NULL,
	[QQ] [nvarchar](50) NULL,
	[MSN] [nvarchar](50) NULL,
	[HomePage] [nvarchar](50) NULL,
	[Birthday] [datetime] NULL,
	[BirthdayVisible] [smallint] NOT NULL,
	[BirthdayIndexVisible] [bit] NOT NULL,
	[Constellation] [nvarchar](50) NULL,
	[ConstellationVisible] [smallint] NOT NULL,
	[ConstellationIndexVisible] [bit] NOT NULL,
	[NativePlace] [nvarchar](300) NULL,
	[NativePlaceVisible] [smallint] NOT NULL,
	[NativePlaceIndexVisible] [bit] NOT NULL,
	[RegionId] [int] NULL,
	[Address] [nvarchar](300) NULL,
	[AddressVisible] [smallint] NOT NULL,
	[AddressIndexVisible] [bit] NOT NULL,
	[BodilyForm] [nvarchar](10) NULL,
	[BodilyFormVisible] [smallint] NOT NULL,
	[BodilyFormIndexVisible] [bit] NOT NULL,
	[BloodType] [nvarchar](10) NULL,
	[BloodTypeVisible] [smallint] NOT NULL,
	[BloodTypeIndexVisible] [bit] NOT NULL,
	[Marriaged] [nvarchar](10) NULL,
	[MarriagedVisible] [smallint] NOT NULL,
	[MarriagedIndexVisible] [bit] NOT NULL,
	[PersonalStatus] [nvarchar](10) NULL,
	[PersonalStatusVisible] [smallint] NOT NULL,
	[PersonalStatusIndexVisible] [bit] NOT NULL,
	[Grade] [int] NULL,
	[Balance] [money] NULL CONSTRAINT [DF_Accounts_UsersExp_Balance]  DEFAULT ((0)),
	[BalanceCredit] [money] NULL CONSTRAINT [DF_Accounts_UsersExp_Balance1]  DEFAULT ((0)),
	[Points] [int] NULL CONSTRAINT [DF_Accounts_UsersExp_Points]  DEFAULT ((0)),
	[RankScore] [int] NOT NULL CONSTRAINT [DF_Accounts_UsersExp_RankScore]  DEFAULT ((0)),
	[TopicCount] [int] NULL CONSTRAINT [DF_Accounts_UsersExp_PostTopicCount]  DEFAULT ((0)),
	[ReplyTopicCount] [int] NULL CONSTRAINT [DF_Accounts_UsersExp_ReplyTopicCount]  DEFAULT ((0)),
	[FavTopicCount] [int] NULL CONSTRAINT [DF_Accounts_UsersExp_FavTopicCount]  DEFAULT ((0)),
	[PvCount] [int] NULL CONSTRAINT [DF_Accounts_UsersExp_PvCount]  DEFAULT ((0)),
	[FansCount] [int] NULL CONSTRAINT [DF_Accounts_UsersExp_FansCount]  DEFAULT ((0)),
	[FellowCount] [int] NULL CONSTRAINT [DF_Accounts_UsersExp_FellowCount]  DEFAULT ((0)),
	[AblumsCount] [int] NULL CONSTRAINT [DF_Accounts_UsersExp_AblumsCount]  DEFAULT ((0)),
	[FavouritesCount] [int] NULL CONSTRAINT [DF_Accounts_UsersExp_FavouritesCount]  DEFAULT ((0)),
	[FavoritedCount] [int] NULL CONSTRAINT [DF_Accounts_UsersExp_FavoritedCount]  DEFAULT ((0)),
	[ShareCount] [int] NULL CONSTRAINT [DF_Accounts_UsersExp_ShareCount]  DEFAULT ((0)),
	[ProductsCount] [int] NULL CONSTRAINT [DF_Accounts_UsersExp_ProductsCount]  DEFAULT ((0)),
	[PersonalDomain] [nvarchar](50) NULL,
	[LastAccessTime] [datetime] NULL,
	[LastAccessIP] [nvarchar](50) NULL,
	[LastPostTime] [datetime] NULL,
	[LastLoginTime] [datetime] NULL,
	[Remark] [nvarchar](max) NULL,
	[IsUserDPI] [bit] NULL CONSTRAINT [DF_Accounts_UsersExp_UerDPI]  DEFAULT ((0)),
	[PayAccount] [nvarchar](200) NULL,
	[UserCardCode] [nvarchar](50) NULL,
	[UserCardType] [smallint] NULL,
	[SourceType] [int] NULL,
	[SalesId] [int] NULL,
 CONSTRAINT [PK__Accounts__1788CCAC1C7DE5A2] PRIMARY KEY CLUSTERED 
(
	[UserID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_UsersApprove]') AND type in (N'U'))
BEGIN
CREATE TABLE [Accounts_UsersApprove](
	[ApproveID] [int] IDENTITY(1,1) NOT NULL,
	[UserID] [int] NOT NULL,
	[TrueName] [nvarchar](50) NOT NULL,
	[IDCardNum] [nvarchar](20) NOT NULL,
	[FrontView] [nvarchar](500) NOT NULL,
	[RearView] [nvarchar](500) NOT NULL,
	[DueDate] [datetime] NULL,
	[Status] [int] NOT NULL,
	[ApproveUserID] [int] NOT NULL,
	[UserType] [int] NULL,
	[CreatedDate] [datetime] NOT NULL CONSTRAINT [DF_Accounts_Approve_CreatedDate]  DEFAULT (getdate()),
	[ApproveDate] [datetime] NULL,
 CONSTRAINT [PK_Accounts_Approve] PRIMARY KEY CLUSTERED 
(
	[ApproveID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_Users]') AND type in (N'U'))
BEGIN
CREATE TABLE [Accounts_Users](
	[UserID] [int] IDENTITY(1,1) NOT NULL,
	[UserName] [nvarchar](100) NOT NULL,
	[Password] [binary](20) NOT NULL,
	[NickName] [nvarchar](50) NULL,
	[TrueName] [nvarchar](50) NULL,
	[Sex] [char](10) NULL,
	[Phone] [nvarchar](50) NULL,
	[Email] [nvarchar](100) NULL,
	[EmployeeID] [int] NULL,
	[DepartmentID] [nvarchar](50) NULL,
	[Activity] [bit] NULL,
	[UserType] [char](2) NULL,
	[Style] [int] NULL,
	[User_iCreator] [int] NULL,
	[User_dateCreate] [datetime] NULL,
	[User_dateValid] [datetime] NULL,
	[User_dateExpire] [datetime] NULL,
	[User_iApprover] [int] NULL,
	[User_dateApprove] [datetime] NULL,
	[User_iApproveState] [int] NULL,
	[User_cLang] [nvarchar](50) NULL,
 CONSTRAINT [PK_Accounts_Users] PRIMARY KEY NONCLUSTERED 
(
	[UserID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_UserRoles]') AND type in (N'U'))
BEGIN
CREATE TABLE [Accounts_UserRoles](
	[UserID] [int] NOT NULL,
	[RoleID] [int] NOT NULL,
 CONSTRAINT [PK_Accounts_UserRoles] PRIMARY KEY CLUSTERED 
(
	[UserID] ASC,
	[RoleID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_UserRank]') AND type in (N'U'))
BEGIN
CREATE TABLE [Accounts_UserRank](
	[RankId] [int] IDENTITY(1,1) NOT NULL,
	[Name] [nvarchar](50) NOT NULL,
	[RankLevel] [int] NOT NULL CONSTRAINT [DF_Accounts_UserRank_RankLevel]  DEFAULT ((0)),
	[ScoreMax] [int] NOT NULL,
	[ScoreMin] [int] NOT NULL,
	[IsDefault] [bit] NOT NULL,
	[RankType] [int] NOT NULL,
	[Description] [nvarchar](200) NULL,
	[CreatedUserId] [int] NULL,
 CONSTRAINT [PK_Accounts_UserRank] PRIMARY KEY CLUSTERED 
(
	[RankId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_UserInvite]') AND type in (N'U'))
BEGIN
CREATE TABLE [Accounts_UserInvite](
	[InviteId] [int] IDENTITY(1,1) NOT NULL,
	[UserId] [int] NOT NULL,
	[UserNick] [nvarchar](200) NOT NULL,
	[InviteUserId] [int] NOT NULL,
	[InviteNick] [nvarchar](200) NOT NULL,
	[Depth] [int] NOT NULL,
	[Path] [nvarchar](4000) NOT NULL,
	[Status] [int] NOT NULL CONSTRAINT [DF_Accounts_UserInvite_Status]  DEFAULT ((1)),
	[IsRebate] [bit] NOT NULL,
	[IsNew] [bit] NOT NULL,
	[CreatedDate] [datetime] NOT NULL,
	[Remark] [nvarchar](max) NULL,
	[RebateDesc] [nvarchar](200) NULL,
 CONSTRAINT [PK_Shop_UserInvite] PRIMARY KEY CLUSTERED 
(
	[InviteId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_UserCard]') AND type in (N'U'))
BEGIN
CREATE TABLE [Accounts_UserCard](
	[CardCode] [nvarchar](50) NOT NULL,
	[CardPwd] [nvarchar](50) NOT NULL,
	[CardValue] [decimal](18, 2) NOT NULL,
	[UserId] [int] NOT NULL,
	[Status] [int] NOT NULL,
	[Type] [int] NOT NULL,
	[EndDate] [datetime] NOT NULL,
	[CreatedDate] [datetime] NOT NULL,
	[Remark] [nvarchar](max) NULL,
 CONSTRAINT [PK_Accounts_UserCard] PRIMARY KEY CLUSTERED 
(
	[CardCode] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_UserBind]') AND type in (N'U'))
BEGIN
CREATE TABLE [Accounts_UserBind](
	[BindId] [int] IDENTITY(1,1) NOT NULL,
	[UserId] [int] NOT NULL,
	[TokenAccess] [nvarchar](200) NOT NULL,
	[TokenExpireTime] [datetime] NULL,
	[TokenRefresh] [nvarchar](200) NULL,
	[MediaUserID] [nvarchar](1000) NOT NULL,
	[MediaNickName] [nvarchar](200) NULL,
	[MediaID] [int] NOT NULL,
	[iHome] [bit] NULL,
	[Comment] [bit] NULL,
	[GroupTopic] [bit] NULL,
	[Status] [int] NULL CONSTRAINT [DF_Accounts_UserBind_Status]  DEFAULT ((1)),
 CONSTRAINT [PK_Accounts_UserBind] PRIMARY KEY CLUSTERED 
(
	[BindId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_UserAssignmentRoles]') AND type in (N'U'))
BEGIN
CREATE TABLE [Accounts_UserAssignmentRoles](
	[UserID] [int] NOT NULL,
	[RoleID] [int] NOT NULL,
 CONSTRAINT [PK_Accounts_UserAssignmentRoles] PRIMARY KEY CLUSTERED 
(
	[UserID] ASC,
	[RoleID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_Roles]') AND type in (N'U'))
BEGIN
CREATE TABLE [Accounts_Roles](
	[RoleID] [int] IDENTITY(1,1) NOT NULL,
	[Description] [nvarchar](255) NULL,
 CONSTRAINT [PK_Accounts_Roles] PRIMARY KEY CLUSTERED 
(
	[RoleID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET IDENTITY_INSERT [Accounts_Roles] ON
INSERT [Accounts_Roles] ([RoleID], [Description]) VALUES (1, N'系统管理员')
INSERT [Accounts_Roles] ([RoleID], [Description]) VALUES (5, N'普通用户')
INSERT [Accounts_Roles] ([RoleID], [Description]) VALUES (14, N'企业用户')
SET IDENTITY_INSERT [Accounts_Roles] OFF
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_RolePermissions]') AND type in (N'U'))
BEGIN
CREATE TABLE [Accounts_RolePermissions](
	[RoleID] [int] NOT NULL,
	[PermissionID] [int] NOT NULL,
 CONSTRAINT [PK_Accounts_RolePermissions] PRIMARY KEY CLUSTERED 
(
	[RoleID] ASC,
	[PermissionID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
INSERT [Accounts_RolePermissions] ([RoleID], [PermissionID]) VALUES (1, 1)
INSERT [Accounts_RolePermissions] ([RoleID], [PermissionID]) VALUES (1, 2)
INSERT [Accounts_RolePermissions] ([RoleID], [PermissionID]) VALUES (1, 3)
INSERT [Accounts_RolePermissions] ([RoleID], [PermissionID]) VALUES (1, 4)
INSERT [Accounts_RolePermissions] ([RoleID], [PermissionID]) VALUES (1, 5)
INSERT [Accounts_RolePermissions] ([RoleID], [PermissionID]) VALUES (1, 6)
INSERT [Accounts_RolePermissions] ([RoleID], [PermissionID]) VALUES (1, 87)
INSERT [Accounts_RolePermissions] ([RoleID], [PermissionID]) VALUES (1, 88)
INSERT [Accounts_RolePermissions] ([RoleID], [PermissionID]) VALUES (1, 89)
INSERT [Accounts_RolePermissions] ([RoleID], [PermissionID]) VALUES (1, 90)
INSERT [Accounts_RolePermissions] ([RoleID], [PermissionID]) VALUES (1, 91)
INSERT [Accounts_RolePermissions] ([RoleID], [PermissionID]) VALUES (1, 93)
INSERT [Accounts_RolePermissions] ([RoleID], [PermissionID]) VALUES (1, 95)
INSERT [Accounts_RolePermissions] ([RoleID], [PermissionID]) VALUES (1, 97)
INSERT [Accounts_RolePermissions] ([RoleID], [PermissionID]) VALUES (1, 98)
INSERT [Accounts_RolePermissions] ([RoleID], [PermissionID]) VALUES (1, 99)
INSERT [Accounts_RolePermissions] ([RoleID], [PermissionID]) VALUES (1, 100)
INSERT [Accounts_RolePermissions] ([RoleID], [PermissionID]) VALUES (1, 102)
INSERT [Accounts_RolePermissions] ([RoleID], [PermissionID]) VALUES (1, 103)
INSERT [Accounts_RolePermissions] ([RoleID], [PermissionID]) VALUES (1, 115)
INSERT [Accounts_RolePermissions] ([RoleID], [PermissionID]) VALUES (1, 116)
INSERT [Accounts_RolePermissions] ([RoleID], [PermissionID]) VALUES (1, 117)
INSERT [Accounts_RolePermissions] ([RoleID], [PermissionID]) VALUES (1, 118)
INSERT [Accounts_RolePermissions] ([RoleID], [PermissionID]) VALUES (1, 120)
INSERT [Accounts_RolePermissions] ([RoleID], [PermissionID]) VALUES (1, 121)
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_RankRule]') AND type in (N'U'))
BEGIN
CREATE TABLE [Accounts_RankRule](
	[RuleId] [int] IDENTITY(1,1) NOT NULL,
	[ActionId] [int] NOT NULL,
	[LimitID] [int] NOT NULL,
	[Name] [nvarchar](200) NOT NULL,
	[Score] [int] NOT NULL,
	[Description] [nvarchar](max) NULL,
	[TargetId] [int] NOT NULL CONSTRAINT [DF_Accounts_RankRule_TargetId]  DEFAULT ((0)),
	[TargetType] [int] NOT NULL CONSTRAINT [DF_Accounts_RankRule_TargetType]  DEFAULT ((0)),
 CONSTRAINT [PK_Accounts_RankRule] PRIMARY KEY CLUSTERED 
(
	[RuleId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_RankLimit]') AND type in (N'U'))
BEGIN
CREATE TABLE [Accounts_RankLimit](
	[LimitID] [int] IDENTITY(1,1) NOT NULL,
	[Name] [nvarchar](50) NOT NULL,
	[Cycle] [int] NOT NULL,
	[CycleUnit] [nvarchar](50) NOT NULL,
	[MaxTimes] [int] NOT NULL,
	[TargetId] [int] NOT NULL CONSTRAINT [DF_Accounts_RankLimit_TargetId]  DEFAULT ((0)),
	[TargetType] [int] NOT NULL CONSTRAINT [DF_Accounts_RankLimit_TargetType]  DEFAULT ((0)),
 CONSTRAINT [PK_Accounts_RankLimit] PRIMARY KEY CLUSTERED 
(
	[LimitID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_RankDetail]') AND type in (N'U'))
BEGIN
CREATE TABLE [Accounts_RankDetail](
	[DetailID] [int] IDENTITY(1,1) NOT NULL,
	[RuleId] [int] NOT NULL,
	[UserID] [int] NOT NULL,
	[Score] [int] NOT NULL,
	[ExtData] [nvarchar](max) NULL,
	[Description] [nvarchar](max) NULL,
	[CreatedDate] [datetime] NOT NULL,
	[Type] [int] NOT NULL,
 CONSTRAINT [PK_Accounts_RankDetail] PRIMARY KEY CLUSTERED 
(
	[DetailID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_RankAction]') AND type in (N'U'))
BEGIN
CREATE TABLE [Accounts_RankAction](
	[ActionId] [int] IDENTITY(1,1) NOT NULL,
	[Name] [nvarchar](200) NOT NULL,
 CONSTRAINT [PK_Accounts_RankAction] PRIMARY KEY CLUSTERED 
(
	[ActionId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET IDENTITY_INSERT [Accounts_RankAction] ON
INSERT [Accounts_RankAction] ([ActionId], [Name]) VALUES (1, N'登录')
INSERT [Accounts_RankAction] ([ActionId], [Name]) VALUES (2, N'注册')
INSERT [Accounts_RankAction] ([ActionId], [Name]) VALUES (3, N'文章评论')
INSERT [Accounts_RankAction] ([ActionId], [Name]) VALUES (4, N'发布动态')
INSERT [Accounts_RankAction] ([ActionId], [Name]) VALUES (5, N'分享图片')
INSERT [Accounts_RankAction] ([ActionId], [Name]) VALUES (6, N'邀请用户')
INSERT [Accounts_RankAction] ([ActionId], [Name]) VALUES (7, N'商品评论')
INSERT [Accounts_RankAction] ([ActionId], [Name]) VALUES (8, N'晒单')
INSERT [Accounts_RankAction] ([ActionId], [Name]) VALUES (9, N'发布商品')
INSERT [Accounts_RankAction] ([ActionId], [Name]) VALUES (10, N'签到')
SET IDENTITY_INSERT [Accounts_RankAction] OFF
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_PointsRule]') AND type in (N'U'))
BEGIN
CREATE TABLE [Accounts_PointsRule](
	[RuleId] [int] IDENTITY(1,1) NOT NULL,
	[ActionId] [int] NOT NULL,
	[LimitID] [int] NOT NULL,
	[Name] [nvarchar](200) NOT NULL,
	[Score] [int] NOT NULL,
	[Description] [nvarchar](max) NULL,
	[TargetId] [int] NOT NULL CONSTRAINT [DF_Accounts_PointsRule_TargetId]  DEFAULT ((0)),
	[TargetType] [int] NOT NULL CONSTRAINT [DF_Accounts_PointsRule_TargetType]  DEFAULT ((0)),
 CONSTRAINT [PK_Accounts_PointsRule] PRIMARY KEY CLUSTERED 
(
	[RuleId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET IDENTITY_INSERT [Accounts_PointsRule] ON
INSERT [Accounts_PointsRule] ([RuleId], [ActionId], [LimitID], [Name], [Score], [Description], [TargetId], [TargetType]) VALUES (16, 2, 1, N'注册', 10, N'', 0, 0)
INSERT [Accounts_PointsRule] ([RuleId], [ActionId], [LimitID], [Name], [Score], [Description], [TargetId], [TargetType]) VALUES (17, 1, 1, N'登录操作', 10, N'', 0, 0)
INSERT [Accounts_PointsRule] ([RuleId], [ActionId], [LimitID], [Name], [Score], [Description], [TargetId], [TargetType]) VALUES (18, 10, 1, N'签到', 10, N'', 0, 0)
SET IDENTITY_INSERT [Accounts_PointsRule] OFF
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_PointsLimit]') AND type in (N'U'))
BEGIN
CREATE TABLE [Accounts_PointsLimit](
	[LimitID] [int] IDENTITY(1,1) NOT NULL,
	[Name] [nvarchar](50) NOT NULL,
	[Cycle] [int] NOT NULL,
	[CycleUnit] [nvarchar](50) NOT NULL,
	[MaxTimes] [int] NOT NULL,
	[TargetId] [int] NOT NULL CONSTRAINT [DF_Accounts_PointsLimit_TargetId]  DEFAULT ((0)),
	[TargetType] [int] NOT NULL CONSTRAINT [DF_Accounts_PointsLimit_TargetType]  DEFAULT ((0)),
 CONSTRAINT [PK_Points_Limit] PRIMARY KEY CLUSTERED 
(
	[LimitID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET IDENTITY_INSERT [Accounts_PointsLimit] ON
INSERT [Accounts_PointsLimit] ([LimitID], [Name], [Cycle], [CycleUnit], [MaxTimes], [TargetId], [TargetType]) VALUES (1, N'一天一次', 1, N'day', 1, 0, 0)
SET IDENTITY_INSERT [Accounts_PointsLimit] OFF
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_PointsDetail]') AND type in (N'U'))
BEGIN
CREATE TABLE [Accounts_PointsDetail](
	[DetailID] [int] IDENTITY(1,1) NOT NULL,
	[RuleId] [int] NOT NULL,
	[UserID] [int] NOT NULL,
	[Score] [int] NOT NULL,
	[ExtData] [nvarchar](max) NULL,
	[CurrentPoints] [int] NOT NULL,
	[Description] [nvarchar](max) NULL,
	[CreatedDate] [datetime] NOT NULL,
	[Type] [int] NOT NULL,
 CONSTRAINT [PK_Points_Detail] PRIMARY KEY CLUSTERED 
(
	[DetailID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_PointsAction]') AND type in (N'U'))
BEGIN
CREATE TABLE [Accounts_PointsAction](
	[ActionId] [int] IDENTITY(1,1) NOT NULL,
	[Name] [nvarchar](200) NOT NULL,
 CONSTRAINT [PK_Accounts_PointsAction] PRIMARY KEY CLUSTERED 
(
	[ActionId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET IDENTITY_INSERT [Accounts_PointsAction] ON
INSERT [Accounts_PointsAction] ([ActionId], [Name]) VALUES (1, N'登录')
INSERT [Accounts_PointsAction] ([ActionId], [Name]) VALUES (2, N'注册')
INSERT [Accounts_PointsAction] ([ActionId], [Name]) VALUES (3, N'文章评论')
INSERT [Accounts_PointsAction] ([ActionId], [Name]) VALUES (4, N'发布动态')
INSERT [Accounts_PointsAction] ([ActionId], [Name]) VALUES (5, N'分享图片')
INSERT [Accounts_PointsAction] ([ActionId], [Name]) VALUES (6, N'邀请用户')
INSERT [Accounts_PointsAction] ([ActionId], [Name]) VALUES (7, N'商品评论')
INSERT [Accounts_PointsAction] ([ActionId], [Name]) VALUES (8, N'晒单')
INSERT [Accounts_PointsAction] ([ActionId], [Name]) VALUES (9, N'发布商品')
INSERT [Accounts_PointsAction] ([ActionId], [Name]) VALUES (10, N'签到')
SET IDENTITY_INSERT [Accounts_PointsAction] OFF
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_Permissions]') AND type in (N'U'))
BEGIN
CREATE TABLE [Accounts_Permissions](
	[PermissionID] [int] IDENTITY(1,1) NOT NULL,
	[Description] [nvarchar](255) NULL,
	[CategoryID] [int] NULL,
 CONSTRAINT [PK_Accounts_Permissions] PRIMARY KEY CLUSTERED 
(
	[PermissionID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET IDENTITY_INSERT [Accounts_Permissions] ON
INSERT [Accounts_Permissions] ([PermissionID], [Description], [CategoryID]) VALUES (1, N'权限管理', 1)
INSERT [Accounts_Permissions] ([PermissionID], [Description], [CategoryID]) VALUES (2, N'菜单管理', 1)
INSERT [Accounts_Permissions] ([PermissionID], [Description], [CategoryID]) VALUES (3, N'用户管理', 1)
INSERT [Accounts_Permissions] ([PermissionID], [Description], [CategoryID]) VALUES (4, N'角色管理', 1)
INSERT [Accounts_Permissions] ([PermissionID], [Description], [CategoryID]) VALUES (5, N'日志管理', 1)
INSERT [Accounts_Permissions] ([PermissionID], [Description], [CategoryID]) VALUES (6, N'系统管理主菜单', 3)
INSERT [Accounts_Permissions] ([PermissionID], [Description], [CategoryID]) VALUES (87, N'功能行为管理', 1)
INSERT [Accounts_Permissions] ([PermissionID], [Description], [CategoryID]) VALUES (88, N'参数管理', 1)
INSERT [Accounts_Permissions] ([PermissionID], [Description], [CategoryID]) VALUES (89, N'用户日志', 1)
INSERT [Accounts_Permissions] ([PermissionID], [Description], [CategoryID]) VALUES (90, N'错误日志', 1)
INSERT [Accounts_Permissions] ([PermissionID], [Description], [CategoryID]) VALUES (91, N'多语言数据', 1)
INSERT [Accounts_Permissions] ([PermissionID], [Description], [CategoryID]) VALUES (93, N'初始默认权限', 9)
INSERT [Accounts_Permissions] ([PermissionID], [Description], [CategoryID]) VALUES (95, N'查看失效数据', 9)
INSERT [Accounts_Permissions] ([PermissionID], [Description], [CategoryID]) VALUES (97, N'批量删除数据', 9)
INSERT [Accounts_Permissions] ([PermissionID], [Description], [CategoryID]) VALUES (98, N'批量关闭按钮', 9)
INSERT [Accounts_Permissions] ([PermissionID], [Description], [CategoryID]) VALUES (99, N'批量审核按钮', 9)
INSERT [Accounts_Permissions] ([PermissionID], [Description], [CategoryID]) VALUES (100, N'设置数据有效或无效', 9)
INSERT [Accounts_Permissions] ([PermissionID], [Description], [CategoryID]) VALUES (102, N'批量打开按钮', 9)
INSERT [Accounts_Permissions] ([PermissionID], [Description], [CategoryID]) VALUES (103, N'查看保留角色和权限', 1)
INSERT [Accounts_Permissions] ([PermissionID], [Description], [CategoryID]) VALUES (104, N'工作日程', 3)
INSERT [Accounts_Permissions] ([PermissionID], [Description], [CategoryID]) VALUES (115, N'添加数据', 9)
INSERT [Accounts_Permissions] ([PermissionID], [Description], [CategoryID]) VALUES (116, N'用户管理_添加数据', 15)
INSERT [Accounts_Permissions] ([PermissionID], [Description], [CategoryID]) VALUES (117, N'用户管理_编辑数据', 15)
INSERT [Accounts_Permissions] ([PermissionID], [Description], [CategoryID]) VALUES (118, N'用户管理_删除数据', 15)
INSERT [Accounts_Permissions] ([PermissionID], [Description], [CategoryID]) VALUES (120, N'定制快捷菜单', 15)
INSERT [Accounts_Permissions] ([PermissionID], [Description], [CategoryID]) VALUES (121, N'页面显示', 15)
INSERT [Accounts_Permissions] ([PermissionID], [Description], [CategoryID]) VALUES (122, N'订单管理_修改订单应付金额', 15)
INSERT [Accounts_Permissions] ([PermissionID], [Description], [CategoryID]) VALUES (123, N'COM_优惠券兑换使用', 15)
SET IDENTITY_INSERT [Accounts_Permissions] OFF
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_PermissionCategories]') AND type in (N'U'))
BEGIN
CREATE TABLE [Accounts_PermissionCategories](
	[CategoryID] [int] IDENTITY(1,1) NOT NULL,
	[Description] [nvarchar](255) NULL,
 CONSTRAINT [PK_Accounts_PermissionCategories] PRIMARY KEY CLUSTERED 
(
	[CategoryID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET IDENTITY_INSERT [Accounts_PermissionCategories] ON
INSERT [Accounts_PermissionCategories] ([CategoryID], [Description]) VALUES (1, N'系统功能管理')
INSERT [Accounts_PermissionCategories] ([CategoryID], [Description]) VALUES (3, N'主菜单管理')
INSERT [Accounts_PermissionCategories] ([CategoryID], [Description]) VALUES (9, N'基础数据')
INSERT [Accounts_PermissionCategories] ([CategoryID], [Description]) VALUES (15, N'功能行为权限')
INSERT [Accounts_PermissionCategories] ([CategoryID], [Description]) VALUES (16, N'页面显示')
SET IDENTITY_INSERT [Accounts_PermissionCategories] OFF
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_MailConfig]') AND type in (N'U'))
BEGIN
CREATE TABLE [Accounts_MailConfig](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[UserID] [int] NOT NULL,
	[Mailaddress] [nvarchar](100) NOT NULL,
	[Username] [nvarchar](50) NULL,
	[Password] [nvarchar](50) NULL,
	[SMTPServer] [nvarchar](50) NULL,
	[SMTPPort] [int] NULL,
	[SMTPSSL] [smallint] NULL,
	[POPServer] [nvarchar](50) NULL,
	[POPPort] [int] NULL,
	[POPSSL] [smallint] NULL,
 CONSTRAINT [PK_Accounts_MailConfig] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_EmailQueue]') AND type in (N'U'))
BEGIN
CREATE TABLE [Accounts_EmailQueue](
	[EmailId] [int] IDENTITY(1,1) NOT NULL,
	[EmailPriority] [int] NOT NULL,
	[IsBodyHtml] [bit] NOT NULL,
	[EmailTo] [nvarchar](2000) NULL,
	[EmailCc] [ntext] NULL,
	[EmailBcc] [ntext] NULL,
	[EmailFrom] [nvarchar](256) NULL,
	[EmailSubject] [nvarchar](1024) NULL,
	[EmailBody] [ntext] NULL,
	[NextTryTime] [datetime] NOT NULL CONSTRAINT [DF_Accounts_EmailQueue_NextTryTime]  DEFAULT (getdate()),
	[NumberOfTries] [int] NOT NULL CONSTRAINT [DF_Accounts_EmailQueue_NumberOfTries]  DEFAULT ((0)),
 CONSTRAINT [PK_Accounts_EmailQueue_1] PRIMARY KEY CLUSTERED 
(
	[EmailId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Accounts_Actions_Permission]') AND type in (N'U'))
BEGIN
CREATE TABLE [Accounts_Actions_Permission](
	[ActionID] [int] IDENTITY(1,1) NOT NULL,
	[Description] [nvarchar](200) NULL,
	[PermissionID] [int] NULL,
 CONSTRAINT [PK_Accounts_Actions_Permission] PRIMARY KEY CLUSTERED 
(
	[ActionID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET IDENTITY_INSERT [Accounts_Actions_Permission] ON
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (1, N'批量删除', 97)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (2, N'查看失效数据', 95)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (3, N'批量关闭按钮', 98)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (4, N'批量审核按钮', 99)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (5, N'设为无效', 100)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (6, N'设为有效', 100)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (13, N'查看系统保留角色', 103)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (14, N'查看系统保留权限', 103)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (15, N'添加数据', 115)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (16, N'用户管理_添加用户', 120)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (17, N'用户管理_编辑用户', 117)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (18, N'用户管理_删除用户', 118)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (19, N'社区_分享_已分类商品_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (20, N'社区_分享_未分类商品_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (21, N'社区_分享_晒货管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (22, N'社区_分享_搭配管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (23, N'社区管理_是否显示全部评论页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (24, N'社区_分享_视频分享_删除视频', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (25, N'社区_分享_动态与评论_删除动态或评论', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (26, N'社区_分享_评论列表_删除评论', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (27, N'系统管理_用户管理_设置角色', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (28, N'系统管理_是否显示用户管理', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (29, N'系统管理_用户管理_编辑用户', 117)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (30, N'系统管理_用户管理_删除用户', 118)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (31, N'系统管理_是否显示角色管理', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (32, N'系统管理_角色管理_添加角色', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (33, N'系统管理_角色管理_修改角色', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (34, N'系统管理_角色管理_删除角色', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (35, N'系统管理_用户管理_从角色中移除用户', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (36, N'系统管理_用户管理_保存角色所拥有的权限', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (37, N'系统管理_权限管理_批量删除权限', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (38, N'系统管理_是否显示权限管理', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (39, N'系统管理_权限管理_增加权限类别', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (40, N'系统管理_权限管理_删除权限', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (41, N'系统管理_权限管理_增加权限数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (42, N'系统管理_权限管理_编辑权限数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (43, N'系统管理_权限管理_移动权限数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (44, N'系统管理_功能行为管理_增加功能行为', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (45, N'系统管理_功能行为管理_编辑功能行为', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (46, N'系统管理_功能行为管理_删除功能行为', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (47, N'系统管理_功能行为管理_设置功能行为权限', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (48, N'系统管理_用户类别管理_添加用户类别', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (49, N'系统管理_是否显示用户类别管理', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (50, N'系统管理_用户类别管理_编辑用户类别', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (51, N'系统管理_用户类别管理_删除用户类别', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (52, N'系统管理_是否显示后台菜单管理', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (53, N'系统管理_后台菜单管理_增加菜单', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (54, N'系统管理_后台菜单管理_编辑菜单', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (55, N'系统管理_后台菜单管理_删除菜单', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (56, N'系统管理_后台菜单管理_移动菜单', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (57, N'系统管理_是否显示参数管理', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (58, N'系统管理_参数管理_添加参数类别', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (59, N'系统管理_参数管理_添加参数', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (60, N'系统管理_参数管理_编辑参数信息', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (61, N'系统管理_参数管理_删除参数信息', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (62, N'系统管理_是否显示清空缓存', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (63, N'系统管理_是否显示多语言管理菜单', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (64, N'系统管理_是否显示支付方式管理页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (65, N'系统管理_支付方式管理_添加支付方式', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (66, N'系统管理_支付方式管理_编辑支付方式', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (67, N'系统管理_支付方式管理_删除支付方式', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (68, N'系统管理_是否显示企业菜单管理页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (69, N'系统管理_企业菜单管理_增加菜单', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (70, N'系统管理_企业菜单管理_编辑菜单', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (71, N'系统管理_企业菜单管理_删除菜单', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (72, N'系统管理_企业菜单管理_移动菜单', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (73, N'系统管理_是否显示用户日志页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (74, N'系统管理_ 用户日志_批量删除用户日志', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (75, N'系统管理_ 用户日志_删除指定日期之前用户日志', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (76, N'系统管理_是否显示错误日志页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (77, N'系统管理_ 错误日志_批量删除错误日志', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (78, N'系统管理_ 错误日志_删除指定日期之前错误日志', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (79, N'系统管理_是否显示在线用户页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (80, N'客服管理_是否显示评论列表页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (81, N'客服管理_评论列表_批量删除评论', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (82, N'客服管理_是否显示留言列表页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (83, N'客服管理_留言列表_批量删除留言', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (84, N'客服管理_是否显示客户反馈页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (85, N'客服管理_客户反馈_批量删除客户反馈', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (86, N'客服管理_是否显示在线报名页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (87, N'客服管理_在线报名_批量删除在线报名信息', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (88, N'客服管理_在线报名_编辑在线报名信息', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (89, N'客服管理_是否显示发件箱页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (90, N'客服管理_发件箱_批量删除已发送信息', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (91, N'社区管理_是否显示全部动态页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (92, N'社区管理_是否显示视频分享页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (93, N'社区管理_是否显示专辑管理页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (94, N'社区管理_专辑管理_删除专辑信息', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (95, N'社区管理_是否显示专辑分类页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (96, N'社区管理_专辑分类_批量删除专辑分类', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (97, N'社区管理_专辑分类_添加专辑分类', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (98, N'社区管理_专辑分类_编辑专辑分类', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (99, N'社区管理_专辑分类_删除专辑分类', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (100, N'社区管理_是否显示小组标签页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (101, N'社区管理_小组标签_添加小组标签', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (102, N'社区管理_小组标签_编辑小组标签', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (103, N'社区管理_小组标签_删除小组标签', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (104, N'社区管理_小组标签_批量删除小组标签', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (105, N'社区管理_是否显示群组列表页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (106, N'社区管理_群组列表_批量删除群组信息', NULL)
GO
print 'Processed 100 total records'
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (107, N'社区管理_群组列表_批量审核群组信息', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (108, N'社区管理_是否显示群组主题页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (109, N'社区管理_群组主题_删除群组主题', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (110, N'社区管理_群组主题_批量删除群组主题', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (111, N'社区管理_群组主题_批量审核群组主题信息', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (112, N'运营管理_是否显示API接口设置页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (113, N'运营管理_是否显示API接口_编辑接口信息', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (114, N'运营管理_是否显示分享设置页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (115, N'运营管理_分享设置_编辑分享设置信息', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (116, N'运营管理_是否显示SEO优化配置页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (117, N'运营管理_SEO优化设置_编辑SEO优化信息', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (118, N'运营管理_是否显示界面设置页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (119, N'运营管理_界面设置_编辑界面配置信息', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (120, N'运营管理_是否显示淘宝分类页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (121, N'SNS_是否显示社区商品分类管理页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (122, N'SNS_商品分享分类_添加分类', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (123, N'SNS_商品分享分类_编辑分类', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (124, N'SNS_商品分享分类_删除分类', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (125, N'SNS_是否显示图片标签页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (126, N'SNS_图片标签_添加图片标签', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (127, N'SNS_图片标签_编辑图片标签', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (128, N'SNS_图片标签_删除图片标签', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (129, N'SNS_图片标签_批量删除图片标签', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (130, N'SNS_是否显示图片分类管理页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (131, N'SNS_图片分类_添加分类', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (132, N'SNS_图片分类_编辑分类', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (133, N'SNS_图片分类_删除分类', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (134, N'SNS_是否显示商品标签类型管理页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (135, N'SNS_商品标签类型_添加标签', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (136, N'SNS_商品标签类型_编辑标签', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (137, N'SNS_商品标签类型_删除标签', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (138, N'SNS_商品标签类型_批量删除标签', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (139, N'SNS_是否显示商品标签管理页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (140, N'SNS_商品标签_添加商品标签', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (141, N'SNS_商品标签_编辑商品标签', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (142, N'SNS_商品标签_删除商品标签', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (143, N'SNS_商品标签_批量删除商品标签', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (144, N'运营管理_是否显示搜索日志管理页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (145, N'运营管理_搜索日志管理_批量删除搜索日志', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (146, N'运营管理_搜索日志管理_删除搜索日志', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (147, N'运营管理_是否显示热搜词排行页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (148, N'运营管理_热搜词排行_批量删除热搜词', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (149, N'运营管理_热搜词排行_删除热搜词', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (150, N'运营管理_是否显示举报类型页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (151, N'运营管理_举报类型_添加举报类型', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (152, N'运营管理_举报类型_编辑举报类型', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (153, N'运营管理_举报类型_删除举报类型', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (154, N'运营管理_举报类型_批量删除举报类型', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (155, N'运营管理_是否显示举报管理页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (156, N'运营管理_举报管理_删除举报信息', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (157, N'运营管理_举报管理_批量删除举报信息', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (158, N'运营管理_举报管理_批量审核举报信息', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (159, N'社区管理_是否显示已分类商品管理页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (160, N'网站管理_是否显示网站设置页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (161, N'网站管理_网站设置_编辑网站信息', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (162, N'网站管理_是否显示邮件配置页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (163, N'网站管理_邮件配置-编辑邮件信息', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (164, N'网站管理_是否显示邮件群发页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (165, N'网站管理_邮件群发_发送邮件', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (166, N'网站管理_是否显示广告管理页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (167, N'网站管理_广告管理_添加广告位', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (168, N'网站管理_广告管理_编辑广告位', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (169, N'网站管理_广告管理_删除广告位', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (170, N'网站管理_广告管理_批量删除广告位', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (171, N'网站管理_广告内容管理_添加广告内容', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (172, N'网站管理_广告内容管理_编辑广告内容', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (173, N'网站管理_广告内容管理_删除广告内容', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (174, N'网站管理_广告内容管理_批量删除广告内容', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (175, N'用户管理_是否显示实名认证管理页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (176, N'用户管理_实名认证_批量删除认证信息', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (177, N'用户管理_实名认证_批量审核认证信息', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (178, N'用户管理_是否显示会员等级管理页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (179, N'用户管理_会员等级_添加会员等级', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (180, N'用户管理_会员等级_编辑会员等级', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (181, N'用户管理_会员等级_删除会员等级', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (182, N'用户管理_是否显示会员信息管理页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (183, N'用户管理_会员管理_批量激活', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (184, N'用户管理_会员管理_批量冻结', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (185, N'用户管理_是否显示达人类型页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (186, N'用户管理_达人类型_添加达人类型', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (187, N'用户管理_达人类型_编辑达人类型', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (188, N'用户管理_达人类型_删除达人类型', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (189, N'用户管理_达人类型_批量删除达人类型', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (190, N'系统管理_修改密码', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (191, N'定制快捷菜单', 120)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (194, N'CMS_类型管理_添加页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (195, N'系统管理_功能行为管理_列表页面', 121)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (196, N'系统管理_用户管理_添加页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (197, N'系统管理_用户管理_编辑页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (198, N'系统管理_用户管理_角色分配页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (199, N'系统管理_角色管理_编辑页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (200, N'系统管理_用户类别管理_添加页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (201, N'系统管理_用户类别管理_编辑页面', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (202, N'系统管理_用户角色分配管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (203, N'系统管理_用户角色分配管理_分配角色设置页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (204, N'系统管理_修改用户密码页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (205, N'设置_邮件配置_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (206, N'设置_邮件配置_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (207, N'微博绑定', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (208, N'系统管理_用户管理页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (209, N'系统管理_后台菜单管理_添加页', NULL)
GO
print 'Processed 200 total records'
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (210, N'系统管理_后台菜单管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (211, N'设置_采集工具设置页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (212, N'系统管理_定制菜单页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (213, N'系统管理_后台菜单管理_详细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (214, N'系统管理_搜索页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (215, N'CMS_类型管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (216, N'CMS_类型管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (217, N'CMS_类型管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (218, N'CMS_类型管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (219, N'CMS_类型管理_编辑数据', 117)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (220, N'CMS_栏目管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (221, N'CMS_栏目管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (222, N'CMS_栏目管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (223, N'CMS_栏目管理_详细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (224, N'CMS_栏目管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (225, N'CMS_栏目管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (226, N'CMS_栏目管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (227, N'CMS_内容管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (228, N'CMS_内容管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (229, N'CMS_内容管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (230, N'CMS_内容管理_详细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (231, N'CMS_内容管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (232, N'CMS_内容管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (233, N'CMS_内容管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (234, N'CMS_文章静态化页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (235, N'CMS_图片管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (236, N'CMS_图片管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (237, N'CMS_图片管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (238, N'CMS_图片管理_详细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (239, N'CMS_图片管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (240, N'CMS_图片管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (241, N'CMS_图片管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (242, N'CMS_图片管理_缩略图生成页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (243, N'CMS_相册管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (244, N'CMS_相册管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (245, N'CMS_相册管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (246, N'CMS_相册管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (247, N'CMS_相册管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (248, N'CMS_相册管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (249, N'CMS_图片分类管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (250, N'CMS_图片分类管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (251, N'CMS_图片分类管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (252, N'CMS_图片分类管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (253, N'CMS_图片分类管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (254, N'CMS_图片分类管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (255, N'CMS_视频专辑管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (256, N'CMS_视频专辑管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (257, N'CMS_视频专辑管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (258, N'CMS_视频专辑管理_详细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (259, N'CMS_视频专辑管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (260, N'CMS_视频专辑管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (261, N'CMS_视频专辑管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (262, N'CMS_视频分类管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (263, N'CMS_视频分类管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (264, N'CMS_视频分类管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (265, N'CMS_视频分类管理_详细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (266, N'CMS_视频分类管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (267, N'CMS_视频分类管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (268, N'CMS_视频分类管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (269, N'CMS_视频信息管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (270, N'CMS_视频信息管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (271, N'CMS_视频信息管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (272, N'CMS_视频信息管理_详细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (273, N'CMS_视频信息管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (274, N'CMS_视频信息管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (275, N'CMS_视频信息管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (276, N'客服管理_报名用户管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (277, N'客服管理_报名用户管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (278, N'客服管理_报名用户管理_详细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (279, N'客服管理_客户反馈类型管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (280, N'客服管理_客户反馈类型管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (281, N'客服管理_客户反馈类型管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (282, N'客服管理_客户反馈类型管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (283, N'客服管理_客户反馈类型管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (284, N'客服管理_客户反馈类型管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (285, N'客服管理_客户反馈管理_详细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (286, N'客服管理_客户反馈_回复页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (287, N'用户管理_会员信息管理_详细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (288, N'用户管理_会员日志信息管理页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (289, N'用户管理_积分规则管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (290, N'用户管理_积分规则管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (291, N'用户管理_积分规则管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (292, N'用户管理_积分规则管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (293, N'用户管理_积分规则管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (294, N'用户管理_积分规则管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (295, N'用户管理_积分限制管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (296, N'用户管理_积分限制管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (297, N'用户管理_积分限制管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (298, N'用户管理_积分限制管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (299, N'用户管理_积分限制管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (300, N'用户管理_积分限制管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (301, N'用户管理_积分详情页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (302, N'客服管理_站内信_发消息页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (303, N'客服管理_站内信_详细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (304, N'用户管理_会员等级管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (305, N'用户管理_会员等级管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (306, N'用户管理_实名认证管理_详细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (307, N'设置_邮件模版管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (308, N'设置_邮件模版管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (309, N'设置_邮件模版管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (310, N'设置_邮件模版管理_删除数据', NULL)
GO
print 'Processed 300 total records'
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (311, N'设置_邮件模版管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (312, N'设置_邮件模版管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (313, N'企业管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (314, N'企业管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (315, N'企业管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (316, N'企业管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (317, N'企业管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (318, N'企业管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (319, N'企业管理_地图管理页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (320, N'企业管理_详细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (321, N'企业管理_用户权限设置_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (322, N'设置_App信息推送页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (323, N'设置_二维码生成页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (324, N'设置_热门地区推荐管理页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (325, N'省市区域管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (326, N'省市区域管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (327, N'省市区域管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (328, N'省市区域管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (329, N'省市区域管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (330, N'地区分组_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (331, N'地区分组_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (332, N'地区分组_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (333, N'地区分组_设置地区页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (334, N'设置_模版管理页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (335, N'设置_缩略图尺寸管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (336, N'设置_缩略图尺寸管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (337, N'设置_缩略图尺寸管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (338, N'设置_缩略图尺寸管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (339, N'设置_缩略图尺寸管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (340, N'设置_缩略图尺寸管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (341, N'设置_水印设置页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (342, N'微博管理_微博群发_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (343, N'微博管理_微博群发_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (344, N'微博管理_微博群发_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (345, N'微博管理_微博任务信息_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (346, N'微博管理_微博群发_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (347, N'微博管理_微博任务信息_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (348, N'系统管理_支付方式管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (349, N'系统管理_支付方式管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (350, N'客服管理_问卷管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (351, N'客服管理_问卷管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (352, N'客服管理_问卷管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (353, N'客服管理_问卷管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (354, N'客服管理_问卷管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (355, N'客服管理_问卷管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (356, N'客服管理_问卷管理_结果页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (357, N'客服管理_题目管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (358, N'客服管理_题目管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (359, N'客服管理_题目管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (360, N'客服管理_选项管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (361, N'客服管理_选项管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (362, N'客服管理_选项管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (363, N'客服管理_投票用户管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (364, N'客服管理_投票用户管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (365, N'客服管理_投票用户管理_详细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (366, N'网站管理_广告管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (367, N'网站管理_广告管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (368, N'网站管理_广告管理_详细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (369, N'网站管理_广告管理_获取广告代码页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (370, N'网站管理_广告内容管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (371, N'网站管理_广告内容管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (372, N'网站管理_广告内容管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (373, N'网站管理_广告内容管理_详细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (374, N'设置_敏感词管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (375, N'设置_敏感词管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (376, N'设置_敏感词管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (377, N'设置_敏感词管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (378, N'设置_敏感词管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (379, N'设置_友情链接管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (380, N'设置_友情链接管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (381, N'设置_友情链接管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (382, N'设置_友情链接管理_详细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (383, N'设置_友情链接管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (384, N'设置_友情链接管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (385, N'设置_友情链接管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (386, N'设置_导航菜单管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (387, N'设置_导航菜单管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (388, N'设置_导航菜单管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (389, N'设置_导航菜单管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (390, N'设置_导航菜单管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (391, N'设置_导航菜单管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (392, N'设置_SEO关联链接管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (393, N'设置_SEO关联链接管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (394, N'设置_SEO关联链接管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (395, N'设置_SEO关联链接管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (396, N'设置_SEO关联链接管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (397, N'Shop_品牌管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (398, N'Shop_品牌管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (399, N'Shop_品牌管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (400, N'Shop_品牌管理_详细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (401, N'Shop_品牌管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (402, N'Shop_品牌管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (403, N'Shop_品牌管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (404, N'Shop_商品咨询管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (405, N'Shop_商品咨询管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (406, N'Shop_商品咨询管理_详细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (407, N'Shop_商品咨询管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (408, N'Shop_商品咨询管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (409, N'Shop_优惠券分类管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (410, N'Shop_优惠券分类管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (411, N'Shop_优惠券分类管理_编辑页', NULL)
GO
print 'Processed 400 total records'
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (412, N'Shop_优惠券分类管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (413, N'Shop_优惠券分类管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (414, N'Shop_优惠券分类管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (415, N'Shop_优惠券规则管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (416, N'Shop_优惠券规则管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (417, N'Shop_优惠券规则管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (418, N'Shop_优惠券管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (419, N'Shop_优惠券管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (420, N'Shop_历史优惠券管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (421, N'Shop_历史优惠券管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (422, N'Shop_礼品管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (423, N'Shop_礼品管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (424, N'Shop_礼品管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (425, N'Shop_礼品管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (426, N'Shop_礼品管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (427, N'Shop_礼品管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (428, N'Shop_礼品分类管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (429, N'Shop_礼品分类管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (430, N'Shop_礼品分类管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (431, N'Shop_礼品分类管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (432, N'Shop_礼品分类管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (433, N'Shop_礼品分类管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (434, N'Shop_礼品兑换管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (435, N'Shop_订单可选项管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (436, N'Shop_订单可选项管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (437, N'Shop_订单可选项管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (438, N'Shop_订单可选项管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (439, N'Shop_订单可选项内容管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (440, N'Shop_订单可选项内容管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (441, N'Shop_订单可选项内容管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (442, N'Shop_订单可选项内容管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (443, N'Shop_订单管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (444, N'Shop_订单管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (445, N'Shop_订单管理_详细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (446, N'Shop_订单管理_发货页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (447, N'Shop_包装类别管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (448, N'Shop_包装管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (449, N'Shop_包装管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (450, N'Shop_包装管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (451, N'Shop_包装管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (452, N'Shop_包装管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (453, N'Shop_包装管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (454, N'Shop_包装类别管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (455, N'Shop_包装类别管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (456, N'Shop_包装类别管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (457, N'Shop_包装类别管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (458, N'Shop_包装类别管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (459, N'Shop_商品疑问管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (460, N'Shop_商品疑问管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (461, N'Shop_商品疑问管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (462, N'Shop_商品疑问管理_回复页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (463, N'Shop_商品疑问管理_详细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (464, N'Shop_商品疑问回复管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (465, N'Shop_商品疑问回复管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (466, N'Shop_商品评论管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (467, N'Shop_商品评论管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (468, N'Shop_商品评论管理_详细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (469, N'Shop_导出商品页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (470, N'Shop_批量上传页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (471, N'Shop_热门关键词管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (472, N'Shop_热门关键词管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (473, N'Shop_热门关键词管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (474, N'Shop_热门关键词管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (475, N'Shop_热门关键词管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (476, N'Shop_回收站管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (477, N'Shop_回收站管理_还原数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (478, N'Shop_回收站管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (479, N'Shop_商品推荐管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (480, N'Shop_商品推荐管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (481, N'Shop_商品推荐管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (482, N'Shop_商品管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (483, N'Shop_商品管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (484, N'Shop_商品管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (485, N'Shop_商品管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (486, N'Shop_商品管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (487, N'Shop_未分类商品管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (488, N'Shop_未分类商品管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (489, N'Shop_商品类型管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (490, N'Shop_商品类型管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (491, N'Shop_商品类型管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (492, N'Shop_商品类型管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (493, N'Shop_商品类型管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (494, N' Shop_商品类型管理_编辑页（扩展属性列表页，规格列表页）', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (495, N'Shop_扩展属性_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (496, N'Shop_扩展属性_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (497, N'Shop_扩展属性_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (498, N'Shop_扩展属性_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (499, N'Shop_扩展数据_编辑页（属性值列表页）', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (500, N'Shop_扩展属性值_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (501, N'Shop_扩展属性值_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (502, N'Shop_扩展属性值_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (503, N'Shop_扩展属性值_添加编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (504, N'Shop_规格_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (505, N'Shop_规格_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (506, N'Shop_规格_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (507, N'Shop_规格_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (508, N'Shop_规格_编辑页  （规格值列表页）', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (509, N'Shop_规格值_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (510, N'Shop_规格值_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (511, N'Shop_规格值_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (512, N'Shop_规格值_添加页', NULL)
GO
print 'Processed 500 total records'
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (513, N'Shop_规格值_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (514, N'Shop_商品类型管理_详细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (515, N'Shop_SEO优化页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (516, N'Shop_SEO优化_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (517, N'Shop_配送方式管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (518, N'Shop_配送方式管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (519, N'Shop_配送方式管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (520, N'Shop_配送方式管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (521, N'Shop_配送方式管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (522, N'Shop_配送方式管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (523, N'Shop_配送方式管理_详细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (524, N'Shop_商品分类管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (525, N'Shop_商品分类管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (526, N'Shop_商品分类管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (527, N'Shop_商品分类管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (528, N'Shop_商品分类管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (529, N'Shop_商品分类管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (530, N'Shop_商品分类管理_详细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (531, N'Shop_商品分类管理_批量转移页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (532, N'Shop_供应商管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (533, N'Shop_供应商管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (534, N'Shop_供应商管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (535, N'Shop_供应商管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (536, N'Shop_供应商管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (537, N'Shop_供应商管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (538, N'Shop_供应商管理_详细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (539, N'Shop_标签分类管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (540, N'Shop_标签分类管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (541, N'Shop_标签分类管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (542, N'Shop_标签分类管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (543, N'Shop_标签分类管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (544, N'Shop_标签分类管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (545, N'Shop_标签管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (546, N'Shop_标签管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (547, N'Shop_标签管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (548, N'Shop_标签管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (549, N'Shop_标签管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (550, N'Shop_标签管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (551, N'Shop_批发商品管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (552, N'Shop_批发商品管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (553, N'Shop_分销规则管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (554, N'Shop_分销规则管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (555, N'Shop_分销规则管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (556, N'Shop_分销规则管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (557, N'Shop_分销规则管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (558, N'Shop_分销规则管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (559, N'Shop_分销规则管理_设置应用商品页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (560, N'Shop_收藏管理页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (561, N'SNS_图片分享分类管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (562, N'SNS_图片分享分类管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (563, N'SNS_图片分享分类管理_详细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (564, N'SNS_商品分享分类管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (565, N'SNS_商品分享分类管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (566, N'SNS_商品分享分类管理_详细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (567, N'SNS_群组主题回复管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (568, N'SNS_群组主题回复管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (569, N'SNS_群组主题回复管理_批量审核数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (570, N'SNS_小组成员_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (571, N'SNS_小组成员_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (572, N'SNS_会员等级管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (573, N'SNS_会员等级管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (574, N'SNS_会员等级管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (575, N'SNS_会员等级管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (576, N'SNS_会员等级管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (577, N'SNS_会员等级管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (578, N'SNS_用户标签管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (579, N'SNS_用户标签管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (580, N'SNS_用户标签管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (581, N'SNS_会员管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (582, N'SNS_会员管理_激活数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (583, N'SNS_会员管理_冻结数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (584, N'SNS_会员管理日志页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (585, N'SNS_会员管理日志_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (586, N'SNS_会员管理_详细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (587, N'SNS_会员管理_更新统计数量页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (588, N'CMS_评论管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (589, N'CMS_评论管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (590, N'SNS_图片分享管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (591, N'SNS_图片分享管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (592, N'SNS_图片分享管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (593, N'SNS_缩略图生成页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (594, N'SNS_未分类商品分享管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (595, N'SNS_已分类商品分享管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (596, N'SNS_淘宝商品采集页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (597, N'SNS_商品标签分类管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (598, N'SNS_商品标签分类管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (599, N'SNS_商品标签管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (600, N'SNS_商品标签管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (601, N'SNS_商品来源管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (602, N'SNS_商品来源管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (603, N'SNS_商品来源管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (604, N'SNS_商品来源管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (605, N'SNS_商品来源管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (606, N'SNS_商品来源管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (607, N'SNS_商品统计页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (608, N'SNS_举报类型管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (609, N'SNS_举报类型管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (610, N'SNS_举报管理_详细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (611, N'SNS_SEO优化页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (612, N'SNS_SEO优化_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (613, N'SNS_静态化页', NULL)
GO
print 'Processed 600 total records'
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (614, N'SNS_达人类型管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (615, N'SNS_达人类型管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (616, N'SNS_达人类型管理_详细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (617, N'SNS_达人管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (618, N'SNS_达人管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (619, N'SNS_达人排行管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (620, N'SNS_达人排行管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (621, N'SNS_专辑分类管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (622, N'SNS_专辑分类管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (623, N'微信营销_指令功能管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (624, N'微信营销_指令功能管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (625, N'微信营销_指令功能管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (626, N'微信营销_指令功能管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (627, N'微信营销_指令功能管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (628, N'微信营销_微信导航菜单管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (629, N'微信营销_微信导航菜单管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (630, N'微信营销_微信导航菜单管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (631, N'微信营销_微信导航菜单管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (632, N'微信营销_微信导航菜单管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (633, N'微信营销_微信导航菜单管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (634, N'微信营销_用户小组管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (635, N'微信营销_用户小组管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (636, N'微信营销_用户小组管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (637, N'微信营销_用户小组管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (638, N'微信营销_智能客服设置管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (639, N'微信营销_智能客服设置管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (640, N'微信营销_智能客服设置管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (641, N'微信营销_智能客服设置管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (642, N'微信营销_智能客服设置管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (643, N'微信营销_智能客服设置管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (644, N'微信营销_智能客服规则关键字管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (645, N'微信营销_智能客服规则关键字管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (646, N'微信营销_智能客服规则关键字管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (647, N'微信营销_移动设置页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (648, N'微信营销_系统消息设置页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (649, N'微信营销_系统消息设置_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (650, N'微信营销_微信用户管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (651, N'微信营销_微信用户管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (652, N'微信营销_微信用户管理_绑定用户页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (653, N'微信营销_微信用户消息管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (654, N'微信营销_微信用户消息管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (655, N'移动办公_考勤类型管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (656, N'移动办公_考勤类型管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (657, N'移动办公_考勤类型管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (658, N'移动办公_考勤类型管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (659, N'移动办公_考勤类型管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (660, N'移动办公_考勤类型管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (661, N'移动办公_考勤类型管理_详细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (662, N'移动办公_日报管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (663, N'移动办公_日报管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (664, N'移动办公_日报管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (665, N'移动办公_日报管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (666, N'移动办公_日报管理_详细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (667, N'移动办公_考勤管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (668, N'移动办公_考勤管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (669, N'移动办公_考勤管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (670, N'移动办公_考勤管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (671, N'移动办公_考勤管理_详细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (672, N'移动办公_考勤明细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (673, N'移动办公_考勤地图页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (674, N'移动办公_考勤统计页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (675, N'移动办公_待办管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (676, N'移动办公_待办管理_添加数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (677, N'移动办公_待办管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (678, N'移动办公_待办管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (679, N'移动办公_待办管理_添加页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (680, N'移动办公_待办管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (681, N'移动办公_待办管理_详细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (682, N'Shop_提现管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (683, N'Shop_提现管理_编辑数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (684, N'Shop_提现管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (685, N'Shop_提现管理_编辑页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (686, N'Shop_提现管理_详细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (687, N'邀请管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (688, N'邀请管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (689, N'邀请管理_详细页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (690, N'Shop_充值管理_列表页', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (691, N'Shop_充值管理_删除数据', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (692, N'用户管理_会员信息管理_修改余额', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (693, N'用户管理_会员信息管理_修改积分', NULL)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (694, N'Shop_订单管理_修改订单应付金额', 116)
INSERT [Accounts_Actions_Permission] ([ActionID], [Description], [PermissionID]) VALUES (695, N'COM_优惠券兑换使用', 123)
SET IDENTITY_INSERT [Accounts_Actions_Permission] OFF
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SP_GetTableInfo]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'CREATE PROCEDURE [SP_GetTableInfo] @table NVARCHAR(200)
AS 
    SELECT  表名 = CASE WHEN a.colorder = 1 THEN d.name
                      ELSE ''''
                 END ,
            表说明 = CASE WHEN a.colorder = 1 THEN ISNULL(f.value, '''')
                       ELSE ''''
                  END ,
            字段序号 = a.colorder ,
            字段名 = a.name ,
            标识 = CASE WHEN COLUMNPROPERTY(a.id, a.name, ''IsIdentity'') = 1
                      THEN ''√''
                      ELSE ''''
                 END ,
            主键 = CASE WHEN EXISTS ( SELECT  1
                                    FROM    sysobjects
                                    WHERE   xtype = ''PK''
                                            AND parent_obj = a.id
                                            AND name IN (
                                            SELECT  name
                                            FROM    sysindexes
                                            WHERE   indid IN (
                                                    SELECT  indid
                                                    FROM    sysindexkeys
                                                    WHERE   id = a.id
                                                            AND colid = a.colid ) ) )
                      THEN ''√''
                      ELSE ''''
                 END ,
            类型 = b.name ,
            占用字节数 = a.length ,
            长度 = COLUMNPROPERTY(a.id, a.name, ''PRECISION'') ,
            小数位数 = ISNULL(COLUMNPROPERTY(a.id, a.name, ''Scale''), 0) ,
            允许空 = CASE WHEN a.isnullable = 1 THEN ''√''
                       ELSE ''''
                  END ,
            默认值 = ISNULL(e.text, '''') ,
            字段说明 = ISNULL(g.[value], '''')
    FROM    syscolumns a
            LEFT JOIN systypes b ON a.xusertype = b.xusertype
            INNER JOIN sysobjects d ON a.id = d.id
                                       AND d.xtype = ''U''
                                       AND d.name <> ''dtproperties''
            LEFT JOIN syscomments e ON a.cdefault = e.id
            LEFT JOIN sys.extended_properties g ON a.id = G.major_id
                                                   AND a.colid = g.minor_id
            LEFT JOIN sys.extended_properties f ON d.id = f.major_id
                                                   AND f.minor_id = 0
    WHERE   d.name = ''ReceiveMsgBox''    --如果只查询指定表,加上此条件
ORDER BY    a.id ,
            a.colorder
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_GetRecordByPageOrder]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'


CREATE PROCEDURE [sp_GetRecordByPageOrder]
 
 @tblName varchar(255),   -- 表名 
 @fldName varchar(255),   -- 显示字段名 
 @OrderfldName varchar(255),  -- 排序字段名 
 @StatfldName varchar(255),  -- 统计字段名 
 @PageSize int = 10,   -- 页尺寸 
 @PageIndex int = 1,   -- 页码 
 @IsReCount bit = 0,   -- 返回记录总数, 非 0 值则返回 
 @OrderType bit = 0,   -- 设置排序类型, 非 0 值则降序 
 @strWhere varchar(1000) = ''''  -- 查询条件 (注意: 不要加 where) 
AS 

 declare @strSQL varchar(6000)  -- 主语句 
 declare @strTmp varchar(100)   -- 临时变量 
 declare @strOrder varchar(400)  -- 排序类型 

if @OrderType != 0 
 begin 
  set @strTmp = ''<(select min'' 
  set @strOrder = '' order by ['' + @OrderfldName +''] desc'' 
 end 
else 
 begin 
  set @strTmp = ''>(select max'' 
  set @strOrder = '' order by ['' + @OrderfldName +''] asc'' 
 end 

set @strSQL = ''select top '' + str(@PageSize) + '' '' + @fldName + '' from ['' 
 + @tblName + ''] where ['' + @OrderfldName + '']'' + @strTmp + ''(['' 
 + @OrderfldName + '']) from (select top '' + str((@PageIndex-1)*@PageSize) + '' ['' 
 + @OrderfldName + ''] from ['' + @tblName + '']'' + @strOrder + '') as tblTmp)'' 
 + @strOrder 

if @strWhere != '''' 
 set @strSQL = ''select top '' + str(@PageSize) + '' '' + @fldName + '' from ['' 
 + @tblName + ''] where ['' + @OrderfldName + '']'' + @strTmp + ''(['' 
 + @OrderfldName + '']) from (select top '' + str((@PageIndex-1)*@PageSize) + '' ['' 
 + @OrderfldName + ''] from ['' + @tblName + ''] where '' + @strWhere + '' '' 
 + @strOrder + '') as tblTmp) and '' + @strWhere + '' '' + @strOrder 

if @PageIndex = 1 
 begin 
  set @strTmp = '''' 
  if @strWhere != '''' 
  set @strTmp = '' where '' + @strWhere 

  set @strSQL = ''select top '' + str(@PageSize) + '' '' + @fldName + '' from ['' 
  + @tblName + '']'' + @strTmp + '' '' + @strOrder 
 end 


if @IsReCount != 0 
	set @strSQL = @strSQL+'' select count(1) as Total from ['' + @tblName + '']''

if @strWhere!=''''
	set @strSQL = @strSQL+'' where '' + @strWhere
exec (@strSQL) 


' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_GetRecordByPage]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'
CREATE PROCEDURE [sp_GetRecordByPage]
    @tblName      varchar(255),       -- 表名
    @fldName      varchar(255),       -- 字段名
    @PageSize     int = 10,           -- 页尺寸
    @PageIndex    int = 1,            -- 页码
    @IsReCount    bit = 0,            -- 返回记录总数, 非 0 值则返回
    @OrderType    bit = 0,            -- 设置排序类型, 非 0 值则降序
    @strWhere     varchar(1000) = ''''  -- 查询条件 (注意: 不要加 where)
AS

declare @strSQL   varchar(6000)       -- 主语句
declare @strTmp   varchar(100)        -- 临时变量
declare @strOrder varchar(400)        -- 排序类型

if @OrderType != 0
begin
    set @strTmp = ''<(select min''
    set @strOrder = '' order by ['' + @fldName +''] desc''
end
else
begin
    set @strTmp = ''>(select max''
    set @strOrder = '' order by ['' + @fldName +''] asc''
end

set @strSQL = ''select top '' + str(@PageSize) + '' * from [''
    + @tblName + ''] where ['' + @fldName + '']'' + @strTmp + ''([''
    + @fldName + '']) from (select top '' + str((@PageIndex-1)*@PageSize) + '' [''
    + @fldName + ''] from ['' + @tblName + '']'' + @strOrder + '') as tblTmp)''
    + @strOrder

if @strWhere != ''''
    set @strSQL = ''select top '' + str(@PageSize) + '' * from [''
        + @tblName + ''] where ['' + @fldName + '']'' + @strTmp + ''([''
        + @fldName + '']) from (select top '' + str((@PageIndex-1)*@PageSize) + '' [''
        + @fldName + ''] from ['' + @tblName + ''] where '' + @strWhere + '' ''
        + @strOrder + '') as tblTmp) and '' + @strWhere + '' '' + @strOrder

if @PageIndex = 1
begin
    set @strTmp =''''
    if @strWhere != ''''
        set @strTmp = '' where '' + @strWhere

    set @strSQL = ''select top '' + str(@PageSize) + '' * from [''
        + @tblName + '']'' + @strTmp + '' '' + @strOrder
end

if @IsReCount != 0
    set @strSQL = ''select count(*) as Total from ['' + @tblName + '']''+'' where '' + @strWhere

exec (@strSQL)


' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_GetAllTableInfoByName]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'CREATE  PROCEDURE [sp_GetAllTableInfoByName]
(@TableName NVARCHAR(50))
AS
SELECT 
    表名       = case when a.colorder=1 then d.name else '''' end,
    表说明     = case when a.colorder=1 then isnull(f.value,'''') else '''' end,
    字段序号   = a.colorder,
    字段名     = a.name,
    标识       = case when COLUMNPROPERTY( a.id,a.name,''IsIdentity'')=1 then ''√''else '''' end,
    主键       = case when exists(SELECT 1 FROM sysobjects where xtype=''PK'' and parent_obj=a.id and name in (
                     SELECT name FROM sysindexes WHERE indid in( SELECT indid FROM sysindexkeys WHERE id = a.id AND colid=a.colid))) then ''√'' else '''' end,
    类型       = b.name,
    占用字节数 = a.length,
    长度       = COLUMNPROPERTY(a.id,a.name,''PRECISION''),
    小数位数   = isnull(COLUMNPROPERTY(a.id,a.name,''Scale''),0),
    允许空     = case when a.isnullable=1 then ''√''else '''' end,
    默认值     = isnull(e.text,''''),
    字段说明   = isnull(g.[value],'''')
FROM 
    syscolumns a
left join 
    systypes b 
on 
    a.xusertype=b.xusertype
inner join 
    sysobjects d 
on 
    a.id=d.id  and d.xtype=''U'' and  d.name<>''dtproperties''
left join 
    syscomments e 
on 
    a.cdefault=e.id
left join 
sys.extended_properties   g 
on 
    a.id=G.major_id and a.colid=g.minor_id  
left join 

sys.extended_properties f
on 
    d.id=f.major_id and f.minor_id=0
where 
    d.name=@TableName    --如果只查询指定表,加上此条件
order by 
    a.id,a.colorder
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_User]') AND type in (N'U'))
BEGIN
CREATE TABLE [WeChat_User](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[UserId] [int] NOT NULL CONSTRAINT [DF_WeChat_User_UserId]  DEFAULT ((-1)),
	[GroupId] [int] NOT NULL CONSTRAINT [DF_SA_WikiUser_GroupId]  DEFAULT ((0)),
	[OpenId] [nvarchar](200) NOT NULL,
	[UserName] [nvarchar](200) NOT NULL,
	[NickName] [nvarchar](200) NULL,
	[Sex] [int] NOT NULL CONSTRAINT [DF_WeChat_User_Sex]  DEFAULT ((0)),
	[City] [nvarchar](200) NULL,
	[Province] [nvarchar](200) NULL,
	[Country] [nvarchar](200) NULL,
	[Language] [nvarchar](200) NULL,
	[Headimgurl] [nvarchar](500) NULL,
	[CreateTime] [datetime] NOT NULL,
	[Status] [int] NOT NULL,
	[CancelTime] [datetime] NULL,
	[Remark] [nvarchar](300) NULL,
	[LastMsgTime] [datetime] NULL,
 CONSTRAINT [PK_SA_WikiUser] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_TaskMsg]') AND type in (N'U'))
BEGIN
CREATE TABLE [WeChat_TaskMsg](
	[TaskId] [int] IDENTITY(1,1) NOT NULL,
	[OpenId] [nvarchar](200) NOT NULL,
	[GroupId] [int] NOT NULL CONSTRAINT [DF_WeChat_TaskMsg_GroupId]  DEFAULT ((0)),
	[UserName] [nvarchar](200) NOT NULL CONSTRAINT [DF_WeChat_TaskMsg_UserName]  DEFAULT (N'“”'),
	[MsgType] [nvarchar](50) NOT NULL,
	[CreatedDate] [datetime] NOT NULL,
	[Title] [nvarchar](200) NULL,
	[Description] [nvarchar](max) NULL,
	[MediaId] [nvarchar](300) NULL,
	[VoiceUrl] [nvarchar](300) NULL,
	[MusicUrl] [nvarchar](300) NULL,
	[HQMusicUrl] [nvarchar](300) NULL,
	[ArticleCount] [int] NOT NULL,
	[PublishDate] [datetime] NOT NULL,
 CONSTRAINT [PK_WeChat_TaskMsg] PRIMARY KEY CLUSTERED 
(
	[TaskId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_SysMsg]') AND type in (N'U'))
BEGIN
CREATE TABLE [WeChat_SysMsg](
	[SysMsgId] [int] IDENTITY(1,1) NOT NULL,
	[OpenId] [nvarchar](200) NOT NULL,
	[MsgType] [nvarchar](50) NOT NULL,
	[SysType] [int] NOT NULL,
	[CreateTime] [datetime] NOT NULL,
	[Title] [nvarchar](200) NULL,
	[PicUrl] [nvarchar](200) NULL,
	[Url] [nvarchar](200) NULL,
	[Description] [nvarchar](max) NULL,
	[MusicUrl] [nvarchar](300) NULL,
	[HQMusicUrl] [nvarchar](300) NULL,
 CONSTRAINT [PK_WeChat_SysMsg] PRIMARY KEY CLUSTERED 
(
	[SysMsgId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_SceneDetail]') AND type in (N'U'))
BEGIN
CREATE TABLE [WeChat_SceneDetail](
	[DetailId] [int] IDENTITY(1,1) NOT NULL,
	[SceneId] [int] NOT NULL,
	[OpenId] [nvarchar](200) NOT NULL,
	[UserName] [nvarchar](200) NOT NULL,
	[NickName] [nvarchar](200) NOT NULL,
	[Sex] [int] NOT NULL CONSTRAINT [DF_WeChat_SceneDetail_Sex]  DEFAULT ((0)),
	[City] [nvarchar](200) NULL,
	[Province] [nvarchar](200) NULL,
	[Country] [nvarchar](200) NULL,
	[Language] [nvarchar](200) NULL,
	[CreateTime] [datetime] NOT NULL,
 CONSTRAINT [PK_WeChat_SceneDetail] PRIMARY KEY CLUSTERED 
(
	[DetailId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_Scene]') AND type in (N'U'))
BEGIN
CREATE TABLE [WeChat_Scene](
	[SceneId] [int] IDENTITY(1,1) NOT NULL,
	[OpenId] [nvarchar](200) NOT NULL,
	[Name] [nvarchar](200) NOT NULL,
	[CreateTime] [datetime] NOT NULL,
	[Remark] [nvarchar](500) NULL,
	[ImageUrl] [nvarchar](500) NULL,
 CONSTRAINT [PK_WeChat_Scene] PRIMARY KEY CLUSTERED 
(
	[SceneId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_RequestMsg]') AND type in (N'U'))
BEGIN
CREATE TABLE [WeChat_RequestMsg](
	[UserMsgId] [bigint] IDENTITY(1,1) NOT NULL,
	[OpenId] [nvarchar](200) NOT NULL,
	[UserName] [nvarchar](200) NOT NULL,
	[MsgType] [nvarchar](50) NOT NULL,
	[CreateTime] [datetime] NOT NULL,
	[Description] [nvarchar](max) NULL,
	[Location_X] [nvarchar](50) NULL,
	[Location_Y] [nvarchar](50) NULL,
	[Scale] [int] NOT NULL,
	[PicUrl] [nvarchar](200) NULL,
	[Title] [nvarchar](200) NULL,
	[Url] [nvarchar](200) NULL,
	[Event] [nvarchar](50) NULL,
	[EventKey] [nvarchar](200) NULL,
 CONSTRAINT [PK_SA_RequstMsg] PRIMARY KEY CLUSTERED 
(
	[UserMsgId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_PostMsgItem]') AND type in (N'U'))
BEGIN
CREATE TABLE [WeChat_PostMsgItem](
	[PostMsgId] [int] NOT NULL,
	[ItemId] [int] NOT NULL,
	[Type] [int] NOT NULL CONSTRAINT [DF_WeChat_PostMsgItem_Type]  DEFAULT ((0)),
 CONSTRAINT [PK_WeChat_PostMsgItem] PRIMARY KEY CLUSTERED 
(
	[PostMsgId] ASC,
	[ItemId] ASC,
	[Type] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_PostMsg]') AND type in (N'U'))
BEGIN
CREATE TABLE [WeChat_PostMsg](
	[PostMsgId] [bigint] IDENTITY(1,1) NOT NULL,
	[RuleId] [int] NOT NULL CONSTRAINT [DF_Wiki_PostMsg_UserMsgId]  DEFAULT ((-1)),
	[MsgType] [nvarchar](50) NOT NULL,
	[CreateTime] [datetime] NOT NULL,
	[Title] [nvarchar](200) NULL,
	[Description] [nvarchar](max) NULL,
	[MusicUrl] [nvarchar](300) NULL,
	[HQMusicUrl] [nvarchar](300) NULL,
	[ArticleCount] [int] NOT NULL,
 CONSTRAINT [PK_Wiki_PostMsg] PRIMARY KEY CLUSTERED 
(
	[PostMsgId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_OPLog]') AND type in (N'U'))
BEGIN
CREATE TABLE [WeChat_OPLog](
	[ID] [bigint] IDENTITY(1,1) NOT NULL,
	[UserName] [nvarchar](200) NOT NULL,
	[OpenId] [nvarchar](200) NOT NULL,
	[Address] [nvarchar](200) NULL,
	[Longitude] [float] NULL,
	[Latitude] [float] NULL,
	[Url] [nvarchar](500) NULL,
	[ActionId] [int] NULL,
	[OPType] [int] NOT NULL,
	[OPTime] [datetime] NOT NULL,
	[Remark] [nvarchar](max) NULL,
 CONSTRAINT [PK_WeChat_OPLog] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_NoReplyMsg]') AND type in (N'U'))
BEGIN
CREATE TABLE [WeChat_NoReplyMsg](
	[MsgId] [bigint] IDENTITY(1,1) NOT NULL,
	[OpenId] [nvarchar](200) NOT NULL,
	[UserName] [nvarchar](200) NOT NULL,
	[MsgType] [nvarchar](50) NOT NULL,
	[CreateTime] [datetime] NOT NULL,
	[Description] [nvarchar](max) NULL,
	[Location_X] [nvarchar](50) NULL,
	[Location_Y] [nvarchar](50) NULL,
	[Scale] [int] NOT NULL,
	[PicUrl] [nvarchar](200) NULL,
	[Title] [nvarchar](200) NULL,
	[Url] [nvarchar](200) NULL,
	[Event] [nvarchar](50) NULL,
	[EventKey] [nvarchar](200) NULL,
	[Status] [int] NOT NULL,
 CONSTRAINT [PK_WeChat_NoReplyMsg] PRIMARY KEY CLUSTERED 
(
	[MsgId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_MsgItem]') AND type in (N'U'))
BEGIN
CREATE TABLE [WeChat_MsgItem](
	[ItemId] [int] IDENTITY(1,1) NOT NULL,
	[OpenId] [nvarchar](50) NULL,
	[Title] [nvarchar](200) NOT NULL,
	[PicUrl] [nvarchar](200) NOT NULL,
	[Url] [nvarchar](200) NOT NULL,
	[Description] [nvarchar](max) NULL,
 CONSTRAINT [PK_Wiki_MsgItem] PRIMARY KEY CLUSTERED 
(
	[ItemId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_Menu]') AND type in (N'U'))
BEGIN
CREATE TABLE [WeChat_Menu](
	[MenuId] [int] IDENTITY(1,1) NOT NULL,
	[OpenId] [nvarchar](200) NOT NULL,
	[ParentId] [int] NOT NULL,
	[Name] [nvarchar](200) NOT NULL,
	[Type] [nvarchar](50) NOT NULL,
	[Sequence] [int] NOT NULL,
	[MenuKey] [nvarchar](50) NOT NULL,
	[MenuUrl] [nvarchar](300) NULL,
	[Status] [int] NOT NULL,
	[CreateDate] [datetime] NOT NULL,
	[Remark] [nvarchar](max) NULL,
	[HasChildren] [bit] NOT NULL CONSTRAINT [DF_WeChat_Menu_HasChildren]  DEFAULT ((0)),
 CONSTRAINT [PK_WeChat_Menu] PRIMARY KEY CLUSTERED 
(
	[MenuId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_Location]') AND type in (N'U'))
BEGIN
CREATE TABLE [WeChat_Location](
	[LocationId] [bigint] IDENTITY(1,1) NOT NULL,
	[OpenId] [nvarchar](200) NOT NULL,
	[UserName] [nvarchar](200) NOT NULL,
	[Latitude] [decimal](18, 6) NOT NULL,
	[Longitude] [decimal](18, 6) NOT NULL,
	[Precision] [decimal](18, 6) NOT NULL,
	[CreateTime] [datetime] NOT NULL,
 CONSTRAINT [PK_WeChat_Location] PRIMARY KEY CLUSTERED 
(
	[LocationId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_LinkLog]') AND type in (N'U'))
BEGIN
CREATE TABLE [WeChat_LinkLog](
	[WeChatLink] [nvarchar](400) NOT NULL,
	[CreatedDate] [datetime] NOT NULL,
 CONSTRAINT [PK_WeChat_LinkLog] PRIMARY KEY CLUSTERED 
(
	[WeChatLink] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_KeyValue]') AND type in (N'U'))
BEGIN
CREATE TABLE [WeChat_KeyValue](
	[ValueId] [int] IDENTITY(1,1) NOT NULL,
	[RuleId] [int] NOT NULL CONSTRAINT [DF_WeChat_KeyValue_RuleId]  DEFAULT ((-1)),
	[Value] [nvarchar](max) NOT NULL,
	[MatchType] [int] NOT NULL CONSTRAINT [DF_WeChat_KeyValue_MatchType]  DEFAULT ((0)),
 CONSTRAINT [PK_WeChat_KeyValue] PRIMARY KEY CLUSTERED 
(
	[ValueId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_KeyRule]') AND type in (N'U'))
BEGIN
CREATE TABLE [WeChat_KeyRule](
	[RuleId] [int] IDENTITY(1,1) NOT NULL,
	[OpenId] [nvarchar](200) NOT NULL,
	[Name] [nvarchar](200) NOT NULL,
	[Remark] [nvarchar](max) NULL,
 CONSTRAINT [PK_WeChat_KeyRule] PRIMARY KEY CLUSTERED 
(
	[RuleId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_Group]') AND type in (N'U'))
BEGIN
CREATE TABLE [WeChat_Group](
	[GroupId] [int] IDENTITY(1,1) NOT NULL,
	[OpenId] [nvarchar](200) NOT NULL,
	[GroupName] [nvarchar](200) NOT NULL,
	[Remark] [nvarchar](300) NULL,
 CONSTRAINT [PK_SA_WikiGroup] PRIMARY KEY CLUSTERED 
(
	[GroupId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_CustUserMsg]') AND type in (N'U'))
BEGIN
CREATE TABLE [WeChat_CustUserMsg](
	[MsgId] [bigint] NOT NULL,
	[UserName] [nvarchar](200) NOT NULL,
 CONSTRAINT [PK_WeChat_CusUserMsg] PRIMARY KEY CLUSTERED 
(
	[MsgId] ASC,
	[UserName] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_CustomerMsg]') AND type in (N'U'))
BEGIN
CREATE TABLE [WeChat_CustomerMsg](
	[MsgId] [bigint] IDENTITY(1,1) NOT NULL,
	[OpenId] [nvarchar](200) NOT NULL,
	[MsgType] [nvarchar](50) NOT NULL,
	[CreateTime] [datetime] NOT NULL,
	[Title] [nvarchar](200) NULL,
	[Description] [nvarchar](max) NULL,
	[MusicUrl] [nvarchar](300) NULL,
	[HQMusicUrl] [nvarchar](300) NULL,
	[ArticleCount] [int] NOT NULL,
 CONSTRAINT [PK_WeChat_CustomerMsg] PRIMARY KEY CLUSTERED 
(
	[MsgId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_Config]') AND type in (N'U'))
BEGIN
CREATE TABLE [WeChat_Config](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[KeyName] [nvarchar](50) NOT NULL,
	[Value] [nvarchar](max) NOT NULL,
	[Description] [nvarchar](200) NULL,
	[TargetId] [int] NOT NULL,
	[UserType] [char](2) NOT NULL,
 CONSTRAINT [PK_WeChat_Config] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_Command]') AND type in (N'U'))
BEGIN
CREATE TABLE [WeChat_Command](
	[CommandId] [int] IDENTITY(1,1) NOT NULL,
	[OpenId] [nvarchar](200) NOT NULL,
	[ActionId] [int] NOT NULL CONSTRAINT [DF_WeChat_Command_ActionId]  DEFAULT ((-1)),
	[TargetId] [int] NOT NULL CONSTRAINT [DF_WeChat_Command_TargetId]  DEFAULT ((-1)),
	[Name] [nvarchar](200) NOT NULL,
	[Sequence] [int] NOT NULL,
	[Status] [int] NOT NULL CONSTRAINT [DF_WeChat_Command_Status]  DEFAULT ((1)),
	[ParseType] [int] NOT NULL,
	[ParseLength] [int] NOT NULL,
	[ParseChar] [nvarchar](50) NULL,
	[Remark] [nvarchar](max) NULL,
 CONSTRAINT [PK_WeChat_Command] PRIMARY KEY CLUSTERED 
(
	[CommandId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_ActivityInfo]') AND type in (N'U'))
BEGIN
CREATE TABLE [WeChat_ActivityInfo](
	[ActivityId] [int] IDENTITY(1,1) NOT NULL,
	[OpenId] [nvarchar](50) NOT NULL,
	[PreName] [nvarchar](200) NOT NULL,
	[Name] [nvarchar](200) NOT NULL,
	[ImageUrl] [nvarchar](300) NULL,
	[StartDate] [datetime] NOT NULL,
	[EndDate] [datetime] NOT NULL,
	[CreatedDate] [datetime] NOT NULL,
	[Summary] [nvarchar](300) NOT NULL,
	[ActivityDesc] [nvarchar](max) NULL,
	[CreatedUserId] [int] NOT NULL,
	[Type] [int] NOT NULL CONSTRAINT [DF_WeChat_Activity_Type]  DEFAULT ((0)),
	[Status] [int] NOT NULL,
	[Probability] [decimal](18, 2) NOT NULL,
	[LimitType] [int] NOT NULL,
	[UserTotal] [int] NOT NULL,
	[EachCount] [int] NOT NULL,
	[DayTotal] [int] NOT NULL,
	[IsPwd] [bit] NOT NULL,
	[PwdLength] [int] NOT NULL,
	[Remark] [nvarchar](max) NULL,
	[AwardType] [int] NOT NULL CONSTRAINT [DF_WeChat_ActivityInfo_AwardType]  DEFAULT ((0)),
 CONSTRAINT [PK_WeChat_Activity] PRIMARY KEY CLUSTERED 
(
	[ActivityId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_ActivityDetail]') AND type in (N'U'))
BEGIN
CREATE TABLE [WeChat_ActivityDetail](
	[DetailId] [bigint] IDENTITY(1,1) NOT NULL,
	[UserName] [nvarchar](200) NOT NULL,
	[ActivityId] [int] NOT NULL,
	[ActivityName] [nvarchar](50) NOT NULL,
	[CreateDate] [datetime] NOT NULL,
	[Remark] [nvarchar](max) NULL,
 CONSTRAINT [PK_WeChat_ActivityDetail] PRIMARY KEY CLUSTERED 
(
	[DetailId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_ActivityCode]') AND type in (N'U'))
BEGIN
CREATE TABLE [WeChat_ActivityCode](
	[CodeName] [nvarchar](50) NOT NULL,
	[ActivityId] [int] NOT NULL,
	[AwardId] [int] NOT NULL,
	[AwardName] [nvarchar](200) NOT NULL,
	[ActivityName] [nvarchar](200) NOT NULL,
	[ActivityPwd] [nvarchar](200) NOT NULL,
	[UserId] [nvarchar](200) NOT NULL,
	[UserName] [nvarchar](200) NOT NULL,
	[Phone] [nvarchar](200) NOT NULL,
	[Status] [int] NOT NULL,
	[IsPwd] [bit] NOT NULL,
	[StartDate] [datetime] NOT NULL,
	[EndDate] [datetime] NOT NULL,
	[GenerateDate] [datetime] NOT NULL,
	[UsedDate] [datetime] NULL,
	[Remark] [nvarchar](max) NULL,
 CONSTRAINT [PK_WeChat_ActivityCode] PRIMARY KEY CLUSTERED 
(
	[CodeName] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_ActivityAward]') AND type in (N'U'))
BEGIN
CREATE TABLE [WeChat_ActivityAward](
	[AwardId] [int] IDENTITY(1,1) NOT NULL,
	[ActivityId] [int] NOT NULL,
	[AwardName] [nvarchar](200) NOT NULL,
	[GiftName] [nvarchar](200) NOT NULL,
	[ImageUrl] [nvarchar](200) NULL,
	[ThumbImage] [nvarchar](200) NULL,
	[Count] [int] NOT NULL,
	[AwardDesc] [nvarchar](max) NULL,
	[Remark] [nvarchar](max) NULL,
	[TargetId] [int] NOT NULL CONSTRAINT [DF_WeChat_ActivityAward_TargetId]  DEFAULT ((0)),
 CONSTRAINT [PK_WeChat_ActivityAward] PRIMARY KEY CLUSTERED 
(
	[AwardId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[WeChat_Action]') AND type in (N'U'))
BEGIN
CREATE TABLE [WeChat_Action](
	[ActionId] [int] IDENTITY(1,1) NOT NULL,
	[TargetId] [int] NOT NULL CONSTRAINT [DF_WeChat_Action_TargetId]  DEFAULT ((-1)),
	[Name] [nvarchar](200) NOT NULL,
	[Remark] [nvarchar](max) NULL,
 CONSTRAINT [PK_WeChat_Action] PRIMARY KEY CLUSTERED 
(
	[ActionId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET IDENTITY_INSERT [WeChat_Action] ON
INSERT [WeChat_Action] ([ActionId], [TargetId], [Name], [Remark]) VALUES (1, -1, N'文章栏目', N'微信_查询文章栏目')
INSERT [WeChat_Action] ([ActionId], [TargetId], [Name], [Remark]) VALUES (2, -1, N'商品查询', N'微信_查询商品信息')
INSERT [WeChat_Action] ([ActionId], [TargetId], [Name], [Remark]) VALUES (3, -1, N'修改昵称', N'微信_修改用户昵称')
INSERT [WeChat_Action] ([ActionId], [TargetId], [Name], [Remark]) VALUES (8, -1, N'获取优惠券', N'微信_获取优惠卷')
INSERT [WeChat_Action] ([ActionId], [TargetId], [Name], [Remark]) VALUES (11, -1, N'查询物流', N'微信_订单号查询物流')
INSERT [WeChat_Action] ([ActionId], [TargetId], [Name], [Remark]) VALUES (12, -1, N'刮刮卡', N'微信活动_刮刮卡')
INSERT [WeChat_Action] ([ActionId], [TargetId], [Name], [Remark]) VALUES (13, -1, N'大转盘', N'微信活动_大转盘')
INSERT [WeChat_Action] ([ActionId], [TargetId], [Name], [Remark]) VALUES (14, -1, N'获取SN码', N'获取SN码')
SET IDENTITY_INSERT [WeChat_Action] OFF
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_SearchProducts]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'-- =============================================
-- Author:		<Rock>
-- Create date: <2012年7月19日 11:56:20>
-- Description:	<商品简单搜索Demo 需完善>
-- =============================================
CREATE PROCEDURE [sp_SearchProducts]
    @CategoryId INT ,
    @BrandId INT ,
    @ValueStr1 INT ,
    @ValueStr2 INT ,
    @ValueStr3 INT ,
    @ValueStr4 INT ,
    @ValueStr5 INT ,
    @ValueStr6 INT
AS 
    BEGIN
    
        DECLARE @SQL NVARCHAR(MAX)
    
        SET @SQL = '' IF OBJECT_ID(''''tempdb..##Table1'''') IS NOT NULL   DROP TABLE ##Table1   SELECT DISTINCT CategoryId, TypeId, A.ProductId, BrandId, ProductName, ProductCode, SupplierId, RegionId, ShortDescription, Unit, Meta_Title, Meta_Description, Meta_Keywords, SaleStatus, AddedDate, VistiCounts, SaleCounts, DisplaySequence, LineId, MarketPrice, LowestSalePrice, PenetrationStatus, MainCategoryPath, ExtendCategoryPath, HasSKU, Points, ThumbnailUrl1,MaxQuantity, MinQuantity
       INTO ##Table1  FROM    Shop_Products A
                LEFT JOIN Shop_ProductAttributes B ON A.ProductId = B.ProductId
        WHERE   A.CategoryId = '' + CAST(@CategoryId AS NVARCHAR) + ''
                AND A.SaleStatus = 1''
          
              
        IF @BrandId <> 0 
            BEGIN
                SET @SQL = @SQL + ''AND A.BrandId = ''
                    + CAST(@BrandId AS NVARCHAR)
            END
                
                
        IF @ValueStr1 <> 0 
            BEGIN
                SET @SQL = @SQL
                    + ''    IF OBJECT_ID(''''tempdb..##Table2'''') IS NOT NULL   DROP TABLE ##Table2  SELECT DISTINCT A.* INTO ##Table2 FROM ##Table1 A
LEFT JOIN Shop_ProductAttributes B ON A.ProductId = B.ProductId
WHERE B.ValueId='' + CAST(@ValueStr1 AS NVARCHAR)
            END    
        ELSE 
            BEGIN
                SET @SQL = @SQL
                    + ''   IF OBJECT_ID(''''tempdb..##Table2'''') IS NOT NULL   DROP TABLE ##Table2  SELECT DISTINCT A.* INTO ##Table2 FROM ##Table1 A
LEFT JOIN Shop_ProductAttributes B ON A.ProductId = B.ProductId''
            END
                
         
                
        IF @ValueStr2 <> 0 
            BEGIN
                SET @SQL = @SQL
                    + ''   IF OBJECT_ID(''''tempdb..##Table3'''') IS NOT NULL   DROP TABLE ##Table3  SELECT DISTINCT A.* INTO ##Table3 FROM ##Table2 A
LEFT JOIN Shop_ProductAttributes B ON A.ProductId = B.ProductId
WHERE B.ValueId='' + CAST(@ValueStr2 AS NVARCHAR)
            END    
        ELSE 
            BEGIN
                SET @SQL = @SQL
                    + ''    IF OBJECT_ID(''''tempdb..##Table3'''') IS NOT NULL   DROP TABLE ##Table3  SELECT DISTINCT A.* INTO ##Table3 FROM ##Table2 A
LEFT JOIN Shop_ProductAttributes B ON A.ProductId = B.ProductId''
            END       
                
               
                
        IF @ValueStr3 <> 0 
            BEGIN
                SET @SQL = @SQL
                    + ''		IF OBJECT_ID(''''tempdb..##Table4'''') IS NOT NULL   DROP TABLE ##Table4  SELECT DISTINCT A.* INTO ##Table4 FROM ##Table3 A
LEFT JOIN Shop_ProductAttributes B ON A.ProductId = B.ProductId
WHERE B.ValueId='' + CAST(@ValueStr3 AS NVARCHAR)
            END    
        ELSE 
            BEGIN
                SET @SQL = @SQL
                    + ''		IF OBJECT_ID(''''tempdb..##Table4'''') IS NOT NULL   DROP TABLE ##Table4  SELECT DISTINCT A.* INTO ##Table4 FROM ##Table3 A
LEFT JOIN Shop_ProductAttributes B ON A.ProductId = B.ProductId''
            END    
                
        IF @ValueStr4 <> 0 
            BEGIN
                SET @SQL = @SQL
                    + ''		IF OBJECT_ID(''''tempdb..##Table5'''') IS NOT NULL   DROP TABLE ##Table5  SELECT DISTINCT A.* INTO ##Table5 FROM ##Table4 A
LEFT JOIN Shop_ProductAttributes B ON A.ProductId = B.ProductId
WHERE B.ValueId='' + CAST(@ValueStr4 AS NVARCHAR)
            END    
        ELSE 
            BEGIN
                SET @SQL = @SQL
                    + ''		IF OBJECT_ID(''''tempdb..##Table5'''') IS NOT NULL   DROP TABLE ##Table5  SELECT DISTINCT A.* INTO ##Table5 FROM ##Table4 A
LEFT JOIN Shop_ProductAttributes B ON A.ProductId = B.ProductId''
            END     
                
                     
        IF @ValueStr5 <> 0 
            BEGIN
                SET @SQL = @SQL
                    + ''		IF OBJECT_ID(''''tempdb..##Table6'''') IS NOT NULL   DROP TABLE ##Table6  SELECT DISTINCT A.* INTO ##Table6 FROM ##Table5 A
LEFT JOIN Shop_ProductAttributes B ON A.ProductId = B.ProductId
WHERE B.ValueId='' + CAST(@ValueStr5 AS NVARCHAR)
            END    
        ELSE 
            BEGIN
                SET @SQL = @SQL
                    + ''		IF OBJECT_ID(''''tempdb..##Table6'''') IS NOT NULL   DROP TABLE ##Table6  SELECT DISTINCT A.* INTO ##Table6 FROM ##Table5 A
LEFT JOIN Shop_ProductAttributes B ON A.ProductId = B.ProductId''
            END   
                     
        IF @ValueStr6 <> 0 
            BEGIN
                SET @SQL = @SQL
                    + ''		IF OBJECT_ID(''''tempdb..##Table7'''') IS NOT NULL   DROP TABLE ##Table7  SELECT DISTINCT A.* INTO ##Table7 FROM ##Table6 A
LEFT JOIN Shop_ProductAttributes B ON A.ProductId = B.ProductId
WHERE B.ValueId='' + CAST(@ValueStr6 AS NVARCHAR)
            END    
        ELSE 
            BEGIN
                SET @SQL = @SQL
                    + ''		IF OBJECT_ID(''''tempdb..##Table7'''') IS NOT NULL   DROP TABLE ##Table7  SELECT DISTINCT A.* INTO ##Table7 FROM ##Table6 A
LEFT JOIN Shop_ProductAttributes B ON A.ProductId = B.ProductId''
            END       
                
                
                
        SET @SQL = @SQL + ''		SELECT * FROM ##Table7''    
                
                
                
                
                -------------
        --IF @ValueStr IS NOT NULL 
        --    BEGIN
        --        SET @SQL = @SQL + ''AND B.ValueId IN( ''
        --            + CAST(@ValueStr AS NVARCHAR) + '')''
        --    END
                
        PRINT @SQL
        EXEC(@SQL)
    END
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_BrandsPageInfo]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'-- =============================================
-- Author:		<ROCK>
-- Create date: <2012年6月12日 23:45:24>
-- Description:	<Description,,>
-- =============================================
CREATE PROCEDURE [sp_Shop_BrandsPageInfo]
    @Action INT ,
    @ProductTypeId INT ,
    @PageIndex INT ,
    @PageSize INT ,
    @RowsCount FLOAT OUTPUT ,
    @PageCount FLOAT OUTPUT
AS 
    BEGIN
        DECLARE @SQL NVARCHAR(MAX) ,
            @SQLCOUNT NVARCHAR(MAX)
	--对品牌所在的类别进行查询
        IF @Action = 1 
            BEGIN
            
                IF @ProductTypeId <> -1 
                    BEGIN
					
            
            
            
            
                        SET @SQLCOUNT = ''SELECT @RC= COUNT(*) FROM (
	SELECT ROW_NUMBER() OVER(ORDER BY DisplaySequence) AS RNum,* FROM(
	SELECT  A.ProductTypeId,B.*
	FROM Shop_ProductTypeBrands A
	LEFT JOIN Shop_Brands B ON A.BrandId=B.BrandId )Temp ''
                        IF @ProductTypeId <> -1 
                            SET @SQLCOUNT = @SQLCOUNT
                                + ''  WHERE ProductTypeId=''
                                + CAST(@ProductTypeId AS NVARCHAR)
                        SET @SQLCOUNT = @SQLCOUNT + '') D ''
                        SET @SQLCOUNT = @SQLCOUNT
                            + '' SET @PC=CEILING((@RC+0.0)/''
                            + CAST(@PageSize AS NVARCHAR) + '')''
	
                        EXEC SP_EXECUTESQL @SQLCOUNT,
                            N''@RC FLOAT OUTPUT,@PC FLOAT OUTPUT'',
                            @RowsCount OUTPUT, @PageCount OUTPUT
	
                        SET @SQL = ''SELECT * FROM (
	SELECT ROW_NUMBER() OVER(ORDER BY DisplaySequence) AS RNum,* FROM(
	SELECT  A.ProductTypeId,B.*
	FROM Shop_ProductTypeBrands A
	LEFT JOIN Shop_Brands B ON A.BrandId=B.BrandId )Temp ''
	
                        IF @ProductTypeId <> -1 
                            SET @SQL = @SQL + ''  WHERE ProductTypeId=''
                                + CAST(@ProductTypeId AS NVARCHAR)
                        SET @SQL = @SQL + '') D
	WHERE  RNum >'' + CAST(( ( @PageIndex - 1 ) * @PageSize ) AS NVARCHAR)
                            + '' AND RNum<=''
                            + CAST(( @PageSize * @PageIndex ) AS NVARCHAR)
                    
                        EXEC(@SQL)
                    END
            
                ELSE 
                    BEGIN
            	
            
                        SET @SQLCOUNT = ''SELECT @RC= COUNT(*) FROM (
	SELECT ROW_NUMBER() OVER(ORDER BY DisplaySequence) AS RNum,* FROM(
	SELECT  *
	FROM  Shop_Brands  )Temp ''
	
                        SET @SQLCOUNT = @SQLCOUNT + '') D ''
                        SET @SQLCOUNT = @SQLCOUNT
                            + '' SET @PC=CEILING((@RC+0.0)/''
                            + CAST(@PageSize AS NVARCHAR) + '')''
	
                        EXEC SP_EXECUTESQL @SQLCOUNT,
                            N''@RC FLOAT OUTPUT,@PC FLOAT OUTPUT'',
                            @RowsCount OUTPUT, @PageCount OUTPUT
	
                        SET @SQL = ''SELECT * FROM (
	SELECT ROW_NUMBER() OVER(ORDER BY DisplaySequence) AS RNum,* FROM(
	SELECT *
	FROM  Shop_Brands )Temp ''
                        SET @SQL = @SQL + '') D
	WHERE  RNum >'' + CAST(( ( @PageIndex - 1 ) * @PageSize ) AS NVARCHAR)
                            + '' AND RNum<=''
                            + CAST(( @PageSize * @PageIndex ) AS NVARCHAR)
                    
                        EXEC(@SQL)
                    END
            
            END
            
            
        ELSE 
            BEGIN
            
                SET @SQLCOUNT = ''SELECT @RC= COUNT(*) FROM Shop_Brands WHERE BrandId NOT IN ( SELECT DISTINCT BrandId FROM Shop_ProductTypeBrands )''
                SET @SQLCOUNT = @SQLCOUNT + '' SET @PC=CEILING((@RC+0.0)/''
                    + CAST(@PageSize AS NVARCHAR) + '')''
                EXEC SP_EXECUTESQL @SQLCOUNT,
                    N''@RC FLOAT OUTPUT,@PC FLOAT OUTPUT'', @RowsCount OUTPUT,
                    @PageCount OUTPUT
                SET @SQL = ''SELECT  * FROM ( SELECT ROW_NUMBER() OVER ( ORDER BY DisplaySequence ) AS RNum , * FROM ''
                SET @SQL = @SQL
                    + ''(SELECT * FROM Shop_Brands WHERE BrandId NOT IN ( SELECT DISTINCT BrandId FROM Shop_ProductTypeBrands ))A)B''
                SET @SQL = @SQL + '' WHERE  RNum >''
                    + CAST(( ( @PageIndex - 1 ) * @PageSize ) AS NVARCHAR)
                    + '' AND RNum<=''
                    + CAST(( @PageSize * @PageIndex ) AS NVARCHAR)
                EXEC(@SQL)
            END
    END
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_CompareProductBasicInfo]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'-- =============================================
-- Author:		<Rock>
-- Create date: <2012年7月13日 11:25:57>
-- Description:	<商品对比>
-- =============================================
CREATE PROCEDURE [sp_Shop_CompareProductBasicInfo]
    @ProductIDs NVARCHAR(MAX)
AS 
    BEGIN
	
	
        DECLARE @MainRes NVARCHAR(MAX)  --对比结果主体
        DECLARE @ActiveCom NVARCHAR(MAX) --动态列
        DECLARE @ActiveAfCom NVARCHAR(MAX) --动态列
        DECLARE @SortCom NVARCHAR(MAX) 
        DECLARE @ConvertCom NVARCHAR(MAX) 

        DECLARE @PriceSQL NVARCHAR(MAX) 
        DECLARE @PICSQL NVARCHAR(MAX) 

        IF OBJECT_ID(''tempdb..##testTable'') IS NOT NULL 
            DROP TABLE ##testTable
        
        DECLARE @MainSQL NVARCHAR(MAX)
        
        SET @MainSQL = ''

        SELECT  A.ProductName ,
                A.MarketPrice ,
                A.ThumbnailUrl1 ,
                B.* ,
                C.AttributeName ,
                D.ValueStr ,
                ''''市场价'''' AS MarkP ,
                ''''商品图片'''' AS PIC
        INTO    ##testTable
        FROM    Shop_Products A
                LEFT JOIN Shop_ProductAttributes B ON A.ProductId = B.ProductId
                LEFT JOIN Shop_Attributes C ON B.AttributeId = C.AttributeId
                LEFT JOIN Shop_AttributeValues D ON B.ValueId = D.ValueId
        WHERE   A.ProductId IN ( '' + @ProductIDs + '' )''

        EXEC(@MainSQL)

        SELECT  @MainRes = '''' ,
                @ActiveCom = '''' ,
                @ActiveAfCom = '''' ,
                @SortCom = '''' ,
                @ConvertCom = ''''

        SELECT  @ActiveCom = @ActiveCom + '','' + QUOTENAME(ProductId, '''')
                + ''=ISNULL('' + QUOTENAME(ProductId, '''') + '',NULL)'' ,
                @ActiveAfCom = @ActiveAfCom + '','' + QUOTENAME(ProductId, '''') ,
                @SortCom = @SortCom + '',MAX('' + QUOTENAME(ProductId, '''') + '')'' ,
                @ConvertCom = @ConvertCom + '',CONVERT(NVARCHAR,MAX(''
                + QUOTENAME(ProductId, '''') + ''))''
        FROM    ##testTable
        GROUP BY ProductId 

        SET @ActiveCom = STUFF(@ActiveCom, 1, 1, '''')
        SET @ActiveAfCom = STUFF(@ActiveAfCom, 1, 1, '''')
        SET @SortCom = STUFF(@SortCom, 1, 1, '''')
        SET @ConvertCom = STUFF(@ConvertCom, 1, 1, '''')

        DECLARE @Count INT


        SELECT  @Count = LEN(@SortCom) - LEN(REPLACE(@SortCom, '','', ''''))

        IF ( @Count = 0 ) 
            BEGIN
                SET @SortCom = @SortCom + '',NULL'' + '',NULL'' + '',NULL''
                SET @ConvertCom = @ConvertCom + '',NULL'' + '',NULL'' + '',NULL''
            END
        IF ( @Count = 1 ) 
            BEGIN
                SET @SortCom = @SortCom + '',NULL'' + '',NULL''
                SET @ConvertCom = @ConvertCom + '',NULL'' + '',NULL''
            END
        IF ( @Count = 2 ) 
            BEGIN
                SET @SortCom = @SortCom + '',NULL''
                SET @ConvertCom = @ConvertCom + '',NULL''
            END


        SELECT  @PriceSQL = ''IF OBJECT_ID(''''tempdb..##outPRICE'''') IS NOT NULL   DROP TABLE ##outPRICE SELECT 
MarkP, 
'' + @ActiveCom + '' INTO ##outPRICE
FROM ##testTable
PIVOT( 
MAX(MarketPrice) for ProductId in('' + @ActiveAfCom + '') 
)pvt'' 

PRINT @PriceSQL
        EXEC(@PriceSQL) 




        SELECT  @PICSQL = ''IF OBJECT_ID(''''tempdb..##outPIC'''') IS NOT NULL DROP TABLE ##outPIC SELECT 
PIC, 
'' + @ActiveCom + '' INTO ##outPIC
FROM ##testTable
PIVOT( 
MAX(ProductId) for ProductId in('' + @ActiveAfCom + '') 
)pvt'' 

        EXEC(@PICSQL) 


        DECLARE @res NVARCHAR(MAX)


        DECLARE @TmpTInfo TABLE
            (
              [AttName] NVARCHAR(MAX) NOT NULL ,
              [Product1] NVARCHAR(MAX) NULL ,
              [Product2] NVARCHAR(MAX) NULL ,
              [Product3] NVARCHAR(MAX) NULL ,
              [Product4] NVARCHAR(MAX) NULL
            )



        SET @res = ''SELECT PIC,'' + @ConvertCom + '' FROM ##outPIC
GROUP BY PIC UNION ALL SELECT MarkP,'' + @ConvertCom + '' FROM ##outPRICE
GROUP BY MarkP ''

PRINT @res
        INSERT  INTO @TmpTInfo
                EXEC sp_executesql @res
--EXEC(@res)

        SELECT  *
        FROM    @TmpTInfo
    END
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_CompareProduct]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'-- =============================================
-- Author:		<Rock>
-- Create date: <2012年7月13日 11:25:57>
-- Description:	<商品对比>
-- =============================================
CREATE PROCEDURE [sp_Shop_CompareProduct]
    @ProductIDs NVARCHAR(MAX)
AS 
    BEGIN
	
	
        DECLARE @MainRes NVARCHAR(MAX)  --对比结果主体
        DECLARE @ActiveCom NVARCHAR(MAX) --动态列
        DECLARE @ActiveAfCom NVARCHAR(MAX) --动态列
        DECLARE @SortCom NVARCHAR(MAX) 
        DECLARE @ConvertCom NVARCHAR(MAX) 

        DECLARE @PriceSQL NVARCHAR(MAX) 
        DECLARE @PICSQL NVARCHAR(MAX) 

        IF OBJECT_ID(''tempdb..##testTable'') IS NOT NULL 
            DROP TABLE ##testTable
        
        DECLARE @MainSQL NVARCHAR(MAX)
        
        SET @MainSQL=''''
        SET @MainSQL = ''

        SELECT  A.ProductName ,
                A.MarketPrice ,
                A.ImageUrl ,
                B.* ,
                C.AttributeName ,
                D.ValueStr ,
                ''''市场价'''' AS MarkP ,
                ''''商品图片'''' AS PIC
        INTO    ##testTable
        FROM    Shop_Products A
                LEFT JOIN Shop_ProductAttributes B ON A.ProductId = B.ProductId
                LEFT JOIN Shop_Attributes C ON B.AttributeId = C.AttributeId
                LEFT JOIN Shop_AttributeValues D ON B.ValueId = D.ValueId
        WHERE   A.ProductId IN ( '' + @ProductIDs + '' )''

PRINT @MainSQL
        EXEC(@MainSQL)

        SELECT  @MainRes = '''' ,
                @ActiveCom = '''' ,
                @ActiveAfCom = '''' ,
                @SortCom = '''' ,
                @ConvertCom = ''''

        SELECT  @ActiveCom = @ActiveCom + '','' + QUOTENAME(ProductId, '''')
                + ''=ISNULL('' + QUOTENAME(ProductId, '''') + '',NULL)'' ,
                @ActiveAfCom = @ActiveAfCom + '','' + QUOTENAME(ProductId, '''') ,
                @SortCom = @SortCom + '',MAX('' + QUOTENAME(ProductId, '''') + '')'' ,
                @ConvertCom = @ConvertCom + '',CONVERT(NVARCHAR,MAX(''
                + QUOTENAME(ProductId, '''') + ''))''
        FROM    ##testTable
        GROUP BY ProductId 

        SET @ActiveCom = STUFF(@ActiveCom, 1, 1, '''')
        SET @ActiveAfCom = STUFF(@ActiveAfCom, 1, 1, '''')
        SET @SortCom = STUFF(@SortCom, 1, 1, '''')
        SET @ConvertCom = STUFF(@ConvertCom, 1, 1, '''')

        DECLARE @Count INT


        SELECT  @Count = LEN(@SortCom) - LEN(REPLACE(@SortCom, '','', ''''))

        IF ( @Count = 0 ) 
            BEGIN
                SET @SortCom = @SortCom + '',NULL'' + '',NULL'' + '',NULL''
                SET @ConvertCom = @ConvertCom + '',NULL'' + '',NULL'' + '',NULL''
            END
        IF ( @Count = 1 ) 
            BEGIN
                SET @SortCom = @SortCom + '',NULL'' + '',NULL''
                SET @ConvertCom = @ConvertCom + '',NULL'' + '',NULL''
            END
        IF ( @Count = 2 ) 
            BEGIN
                SET @SortCom = @SortCom + '',NULL''
                SET @ConvertCom = @ConvertCom + '',NULL''
            END

        PRINT @SortCom







        SELECT  @MainRes = ''IF OBJECT_ID(''''tempdb..##outPIVOT'''') IS NOT NULL   DROP TABLE ##outPIVOT SELECT 
AttributeName, 
'' + @ActiveCom + '' INTO ##outPIVOT
FROM ##testTable
PIVOT( 
MAX(ValueStr) for ProductId in('' + @ActiveAfCom + '') 
)pvt'' 

        PRINT @ConvertCom
        EXEC(@MainRes) 

        PRINT @SortCom


        SELECT  @PriceSQL = ''IF OBJECT_ID(''''tempdb..##outPRICE'''') IS NOT NULL   DROP TABLE ##outPRICE SELECT 
MarkP, 
'' + @ActiveCom + '' INTO ##outPRICE
FROM ##testTable
PIVOT( 
MAX(MarketPrice) for ProductId in('' + @ActiveAfCom + '') 
)pvt'' 

PRINT @PriceSQL

        EXEC(@PriceSQL) 




        SELECT  @PICSQL = ''IF OBJECT_ID(''''tempdb..##outPIC'''') IS NOT NULL DROP TABLE ##outPIC SELECT 
PIC, 
'' + @ActiveCom + '' INTO ##outPIC
FROM ##testTable
PIVOT( 
MAX(ProductId) for ProductId in('' + @ActiveAfCom + '') 
)pvt'' 

        EXEC(@PICSQL) 


        DECLARE @res NVARCHAR(MAX)


        DECLARE @TmpTInfo TABLE
            (
              [AttName] NVARCHAR(MAX) NOT NULL ,
              [Product1] NVARCHAR(MAX) NULL ,
              [Product2] NVARCHAR(MAX) NULL ,
              [Product3] NVARCHAR(MAX) NULL ,
              [Product4] NVARCHAR(MAX) NULL
            )



        SET @res = '' SELECT AttributeName,'' + @SortCom + '' FROM ##outPIVOT
GROUP BY AttributeName ''

--PRINT @res
        INSERT  INTO @TmpTInfo
                EXEC sp_executesql @res
--EXEC(@res)

        SELECT  *
        FROM    @TmpTInfo
    END
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_ProductInfo_Get]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- Remark：2012年10月12日 11:50:44 Rock 修改兼容SqlServer2005
-- =============================================
CREATE PROCEDURE [sp_Shop_ProductInfo_Get]
    @SqlWhere NVARCHAR(4000) ,
    @OrderBy NVARCHAR(1000) ,
    @StartIndex INT ,
    @EndIndex INT,
    @ProductId BIGINT 
AS 
    SET NOCOUNT ON ;
    SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
    BEGIN
	
		IF(@SqlWhere IS NULL)
		BEGIN
			SET @SqlWhere=''''
		END
		IF (@OrderBy IS NULL)
		BEGIN
			SET @OrderBy=''''
		END
		IF(@StartIndex IS NULL)
		BEGIN
			SET @StartIndex=0
		END
		IF(@EndIndex IS NULL)
		BEGIN
			SET @EndIndex=0
		END
		IF(@ProductId IS NULL)
		BEGIN
			SET @ProductId=0
		END
		
        DECLARE @DataCount INT 
        SET @DataCount=0
        DECLARE @SQL NVARCHAR(MAX)
		SET @SQL=''''
        DECLARE @SQLCOUNT NVARCHAR(MAX)
        SET @SQLCOUNT=''''
		
        SET @SQLCOUNT = @SQLCOUNT
            + ''SELECT @RC=COUNT(*)  FROM Shop_Products WHERE   SaleStatus = 1 ''
            + @SqlWhere +'' AND ProductId<>''+STR(@ProductId)
		
		
        EXEC SP_EXECUTESQL @SQLCOUNT, N''@RC INT OUTPUT'', @DataCount OUTPUT
		
        PRINT @SQLCOUNT
		
        SET @SQL = @SQL + ''SELECT  * FROM( SELECT ROW_NUMBER() OVER ( ''
            + @OrderBy + '' ) AS RNum ,* FROM (SELECT  *
        FROM    Shop_Products
        WHERE   SaleStatus = 1 ''+ @SqlWhere+'' ) A  ) AS TEMP WHERE RNum BETWEEN	''
            + STR(@StartIndex) + '' AND '' + STR(@EndIndex) +'' AND TEMP.ProductId<>''+STR(@ProductId)
        
        
        EXEC(@SQL)
        
		RETURN @DataCount
    END
    SET NOCOUNT OFF ;
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_ProductStationModesInfo]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
CREATE PROCEDURE [sp_Shop_ProductStationModesInfo]
    @SqlWhere NVARCHAR(4000) = ''''
  , @OrderBy NVARCHAR(1000) = ''''
  , @StartIndex INT = 0
  , @EndIndex INT = 0
  , @ProductId BIGINT = 0
  , @ModeType INT
AS 
    SET NOCOUNT ON;
    SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
    BEGIN
	
        DECLARE @DataCount INT 
        SET @DataCount = 0
        DECLARE @SQL NVARCHAR(MAX)
        SET @SQL = ''''
		
        DECLARE @SQLCOUNT NVARCHAR(MAX)
        SET @SQLCOUNT = ''''
		
        SET @SQLCOUNT = @SQLCOUNT
            + ''SELECT @RC=COUNT(*)  FROM Shop_Products WHERE   SaleStatus = 1 AND ProductId NOT IN (SELECT ProductId FROM Shop_ProductStationModes WHERE Type=''
            + STR(@ModeType) + '')'' + @SqlWhere + '' AND ProductId<>''
            + STR(@ProductId)
		
		
        EXEC SP_EXECUTESQL @SQLCOUNT, N''@RC INT OUTPUT'', @DataCount OUTPUT
		
        PRINT @SQLCOUNT
		
        SET @SQL = @SQL + ''SELECT  * FROM( SELECT ROW_NUMBER() OVER ( ''
            + @OrderBy
            + ''  ) AS RNum ,*  FROM Shop_Products WHERE SaleStatus = 1 AND ProductId NOT IN (SELECT ProductId FROM Shop_ProductStationModes WHERE Type=''
            + STR(@ModeType) + '') '' + @SqlWhere + '' ) A  WHERE RNum BETWEEN ''
            + STR(@StartIndex) + '' AND '' + STR(@EndIndex)
            + '' AND A.ProductId<>'' + STR(@ProductId)
        PRINT @SQL
        
        EXEC(@SQL)
        
    END
    RETURN @DataCount
    SET NOCOUNT OFF;' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_ProductSkuInfo_NotPage_GetProdAcce]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'

-- =============================================
-- Author:		<Ben>
-- Create date: <2012年7月4日 09:47:28>
-- Description:	<Description,,>
-- Remark：2012年10月12日 11:45:43 Rock 修改兼容SqlServer2005
-- =============================================
CREATE   PROCEDURE [sp_Shop_ProductSkuInfo_NotPage_GetProdAcce]
    @SqlWhere NVARCHAR(4000)
  , @OrderBy NVARCHAR(1000)
  , @AccessoriesId INT
  ,
  --  @top INT  ,
    @ProductId BIGINT
AS 
    SET NOCOUNT ON;
    SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED

    BEGIN
	
        IF ( @SqlWhere IS NULL ) 
            BEGIN
                SET @SqlWhere = ''''
            END
        IF ( @OrderBy IS NULL ) 
            BEGIN
                SET @OrderBy = ''''
            END 
        IF ( @AccessoriesId IS NULL ) 
            BEGIN
                SET @AccessoriesId = 0
            END
		--IF(@EndIndex IS NULL)
		--BEGIN
		--	SET @EndIndex=0
		--END
        IF ( @ProductId IS NULL ) 
            BEGIN
                SET @ProductId = 0
            END
		
	
        DECLARE @baseQuery NVARCHAR(2000)
          , @subQuery NVARCHAR(4000)
          , @countSQL NVARCHAR(2000)
          , @DataCount INT
        DECLARE @ParmDefinition NVARCHAR(500)
        
        SET @DataCount = 0
        
        IF @OrderBy IS NULL
            OR @OrderBy = '''' 
            BEGIN
                SET @OrderBy = ''AccessoriesId ''
            END
            
        SET @baseQuery = N''
SELECT  S.* ,
        P.ProductName,
        P.ImageUrl,
        P.ThumbnailUrl1,
        P.MarketPrice,
        P.SupplierId,
        acceValues.AccessoriesId
FROM      Shop_SKUs S
        LEFT JOIN Shop_Products P ON S.ProductId = P.ProductId
        INNER JOIN  Shop_AccessoriesValues AS acceValues ON  S.SKU = acceValues.SKU  and acceValues.AccessoriesId=
        '' + STR(@AccessoriesId) + '' '' + @SqlWhere + '' WHERE P.ProductId<>''
            + STR(@ProductId)            
        
        --SELECT  @countSQL = N''SELECT @retvalOUT = COUNT(*) FROM (''
        --        + @baseQuery + '') T'' ;  
        --SET @ParmDefinition = N''@retvalOUT int OUTPUT'' ;

       -- EXEC sp_executesql @countSQL, @ParmDefinition;--,
            --@retvalOUT = @DataCount OUTPUT ;
            
        --IF @DataCount = 0 
        --    RETURN 0
            
        --IF @StartIndex <> 0
        --    AND @EndIndex <> 0 
        BEGIN
            SET @subQuery = N''
SELECT  TT.SkuId , TT.ProductId , TT.SKU , TT.Weight , TT.Stock , TT.AlertStock ,
              TT.CostPrice , TT.SalePrice , TT.Upselling, TT.ProductName, TT.ImageUrl,
			  TT.ThumbnailUrl1,TT.MarketPrice,TT.SupplierId,TT.AccessoriesId
FROM    ( SELECT    ROW_NUMBER() OVER ( ORDER BY T.'' + @OrderBy + '' ) AS Row ,
                    T.*
          FROM      ( 
						'' + @baseQuery + ''
                    ) T
        ) TT; ''
--WHERE   TT.Row BETWEEN '' + STR(@StartIndex) + '' AND '' + STR(@EndIndex) + ''
--;''
        END
--        ELSE 
--            BEGIN
--                SET @subQuery = @baseQuery + ''
--		ORDER BY S.'' + @OrderBy + ''
--;''
--            END
        PRINT @subQuery

        DECLARE @TmpSkuInfo TABLE
            (
              [SkuId] [bigint] NOT NULL
            , [ProductId] [bigint] NOT NULL
            , [SKU] [nvarchar](50) NULL
            , [Weight] [int] NULL
            , [Stock] [int] NOT NULL
            , [AlertStock] [int] NOT NULL
            , [CostPrice] [money] NULL
            , [SalePrice] [money] NOT NULL
            , [Upselling] [bit] NOT NULL
            , [ProductName] [nvarchar](200) NOT NULL
            , [ImageUrl] [nvarchar](255) NULL
            , [ThumbnailUrl1] [NVARCHAR](255) NULL
            , [MarketPrice] [money] NULL
            , [SupplierId] [int] NOT NULL
            , [AccessoriesId] [int] NOT NULL
            )

        INSERT  INTO @TmpSkuInfo
                EXEC sp_executesql @subQuery



        SELECT  TTT.*
        FROM    ( SELECT    ROW_NUMBER() OVER ( ORDER BY SP.AccessoriesId DESC ) AS Row
                          , SP.*
                          , C.AttributeId
                          , C.ValueId
                          , AV.ValueStr
                          , AV.ImageUrl AS ValueImage
                  FROM      @TmpSkuInfo SP --Shop_SKUItems SI ,
                            LEFT JOIN ( SELECT  a.AttributeId
                                              , a.ValueId
                                              , B.SkuId
                                        FROM    Shop_SKUItems A
                                                LEFT JOIN Shop_SKURelation B ON A.SpecId = B.SpecId
                                      ) C ON SP.SkuId = C.SkuId
                            LEFT JOIN Shop_AttributeValues AV ON AV.AttributeId = C.AttributeId
                                                              AND AV.ValueId = C.ValueId
                  WHERE     SP.ProductId <> @ProductId
                ) TTT  --WHERE   TTT.Row BETWEEN STR(@StartIndex) AND STR(@EndIndex)
                
                
               
          
        SELECT  a.AttributeId
              , a.ValueId
              , B.SkuId
        FROM    Shop_SKUItems A
                LEFT JOIN Shop_SKURelation B ON A.SpecId = B.SpecId
        WHERE   A.ProductId <> @ProductId
    END
  --  RETURN @DataCount
    SET NOCOUNT OFF;
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_ProductSkuInfo_Get]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'

-- =============================================
-- Author:		<Ben>
-- Create date: <2012年7月4日 09:47:28>
-- Description:	<Description,,>
-- Remark：2012年10月12日 11:45:43 Rock 修改兼容SqlServer2005
-- =============================================
CREATE PROCEDURE [sp_Shop_ProductSkuInfo_Get]
    @SqlWhere NVARCHAR(4000) ,
    @OrderBy NVARCHAR(1000) ,
    @StartIndex INT  ,
    @EndIndex INT ,
    @ProductId BIGINT
AS 
    SET NOCOUNT ON ;
    SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED

    BEGIN
	
		IF(@SqlWhere IS NULL)
		BEGIN
			SET @SqlWhere=''''
		END
		IF (@OrderBy IS NULL)
		BEGIN
			SET @OrderBy=''''
		END
		IF(@StartIndex IS NULL)
		BEGIN
			SET @StartIndex=0
		END
		IF(@EndIndex IS NULL)
		BEGIN
			SET @EndIndex=0
		END
		IF(@ProductId IS NULL)
		BEGIN
			SET @ProductId=0
		END
		
	
        DECLARE @baseQuery NVARCHAR(2000) ,
            @subQuery NVARCHAR(4000) ,
            @countSQL NVARCHAR(2000) ,
            @DataCount INT
        DECLARE @ParmDefinition NVARCHAR(500)
        
        SET @DataCount=0
        
        IF @OrderBy IS NULL
            OR @OrderBy = '''' 
            BEGIN
                SET @OrderBy = ''SkuId DESC''
            END
            
        SET @baseQuery = N''
SELECT  S.* ,
        P.ProductName,
        P.ImageUrl,
        P.ThumbnailUrl1,
        P.MarketPrice
FROM      Shop_SKUs S
        LEFT JOIN Shop_Products P ON S.ProductId = P.ProductId
		'' + @SqlWhere + ''  WHERE P.ProductId<>''+STR(@ProductId)            
        
        SELECT  @countSQL = N''SELECT @retvalOUT = COUNT(*) FROM (''
                + @baseQuery + '') T'' ;  
        SET @ParmDefinition = N''@retvalOUT int OUTPUT'' ;

        EXEC sp_executesql @countSQL, @ParmDefinition,
            @retvalOUT = @DataCount OUTPUT ;
            
        IF @DataCount = 0 
            RETURN 0
            
        IF @StartIndex <> 0
            AND @EndIndex <> 0 
            BEGIN
                SET @subQuery = N''
SELECT  TT.SkuId , TT.ProductId , TT.SKU , TT.Weight , TT.Stock , TT.AlertStock ,
              TT.CostPrice , TT.SalePrice , TT.Upselling, TT.ProductName, TT.ImageUrl,
			  TT.ThumbnailUrl1,TT.MarketPrice
FROM    ( SELECT    ROW_NUMBER() OVER ( ORDER BY T.'' + @OrderBy + '' ) AS Row ,
                    T.*
          FROM      ( 
						'' + @baseQuery + ''
                    ) T
        ) TT; ''
--WHERE   TT.Row BETWEEN '' + STR(@StartIndex) + '' AND '' + STR(@EndIndex) + ''
--;''
            END
        ELSE 
            BEGIN
                SET @subQuery = @baseQuery + ''
		ORDER BY S.'' + @OrderBy + ''
;''
            END
        PRINT @subQuery

        DECLARE @TmpSkuInfo TABLE
            (
              [SkuId] [bigint] NOT NULL ,
              [ProductId] [bigint] NOT NULL ,
              [SKU] [nvarchar](50) NULL ,
              [Weight] [int] NULL ,
              [Stock] [int] NOT NULL ,
              [AlertStock] [int] NOT NULL ,
              [CostPrice] [money] NULL ,
              [SalePrice] [money] NOT NULL ,
              [Upselling] [bit] NOT NULL ,
              [ProductName] [nvarchar](200) NOT NULL ,
              [ImageUrl] [nvarchar](255) NULL ,
              [ThumbnailUrl1] [NVARCHAR](255) NULL,
              [MarketPrice] [money] NULL 
            )

        INSERT  INTO @TmpSkuInfo
                EXEC sp_executesql @subQuery



SELECT TTT.* FROM (
        SELECT ROW_NUMBER() OVER ( ORDER BY SP.SkuId DESC ) AS Row , SP.* ,
                C.AttributeId ,
                C.ValueId ,
                AV.ValueStr ,
                AV.ImageUrl AS ValueImage
        FROM    @TmpSkuInfo SP 
                --Shop_SKUItems SI ,
               LEFT JOIN ( SELECT a.AttributeId,a.ValueId,B.SkuId FROM Shop_SKUItems A
           LEFT JOIN Shop_SKURelation B ON  A.SpecId = B.SpecId) C ON SP.SkuId = C.SkuId
                LEFT JOIN Shop_AttributeValues AV ON AV.AttributeId = C.AttributeId AND AV.ValueId = C.ValueId
        WHERE   SP.ProductId<>@ProductId)TTT  --WHERE   TTT.Row BETWEEN STR(@StartIndex) AND STR(@EndIndex)
                
                
               
          
           SELECT a.AttributeId,a.ValueId, B.SkuId FROM Shop_SKUItems A
           LEFT JOIN Shop_SKURelation B ON  A.SpecId = B.SpecId
           WHERE A.ProductId<>@ProductId
    END
    RETURN @DataCount
    SET NOCOUNT OFF ;
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_DisplaceCategory]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'-- =============================================
-- Author:		<Author:Rock>
-- Create date: <Create Date:2012年6月20日 13:40:19>
-- Description:	<Description:转换商品>
-- =============================================
CREATE PROCEDURE [sp_Shop_DisplaceCategory]
    @FromCategoryId INT ,
    @ToCategory INT
AS 
    BEGIN
        UPDATE  Shop_Products
        SET     CategoryId = @ToCategory
        WHERE   CategoryId = @FromCategoryId
    END
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_DeleteProducts]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'-- =============================================
-- Author:		<Rock>
-- Create date: <2012年12月20日 14:58:21>
-- Description:	<删除商品>
-- =============================================
CREATE PROCEDURE [sp_Shop_DeleteProducts]
    @ProductIds NVARCHAR(1000)
AS 
    BEGIN
        DECLARE @ErrorCode INT 
        SET XACT_ABORT ON
        BEGIN TRANSACTION
                
        DELETE  FROM Shop_ProductAttributes
        WHERE   ProductId IN ( SELECT   *
                               FROM     F_SplitToInt(@ProductIds, '','') )
        SET @ErrorCode = @@ERROR 
        
        DELETE  FROM Shop_SKURelation
        WHERE   ProductId IN ( SELECT   *
                               FROM     F_SplitToInt(@ProductIds, '','') ) 
        SET @ErrorCode = @@ERROR
 
        /***防止skuid重复***/  
        ----------------------------------
        DELETE  FROM Shop_SKURelation
        WHERE   SkuId IN (SELECT  SkuId
                FROM    Shop_SKUs
                WHERE   ProductId IN ( SELECT   *
                                       FROM     F_SplitToInt(@ProductIds, '','') ) ) 
        SET @ErrorCode = @@ERROR
        ----------------------------------
         /***防止skuid重复***/  
         
            
        /***删除组合优惠开始****/
        SELECT  AccessoriesId
        INTO    #TempTable
        FROM    Shop_ProductAccessories
        WHERE   ProductId IN ( SELECT   *
                               FROM     F_SplitToInt(@ProductIds, '','') )
        SET @ErrorCode = @@ERROR
        
        DELETE  FROM Shop_ProductAccessories
        WHERE   ProductId IN ( SELECT   *
                               FROM     F_SplitToInt(@ProductIds, '','') )
        SET @ErrorCode = @@ERROR
        
        DELETE  FROM Shop_AccessoriesValues
        WHERE   AccessoriesId IN ( SELECT   *
                                   FROM     #TempTable )
        SET @ErrorCode = @@ERROR
        
        DROP TABLE #TempTable
        
        DELETE  FROM Shop_AccessoriesValues
        WHERE   SKU IN (
                SELECT  sku
                FROM    Shop_SKUs
                WHERE   ProductId IN ( SELECT   *
                                       FROM     F_SplitToInt(@ProductIds, '','') ) )
        SET @ErrorCode = @@ERROR
        /***删除组合优惠结束****/
        
        /***删除商家推荐的商品开始***/
        DELETE  FROM Shop_SuppProductStatModes
        WHERE   ProductId IN ( SELECT   *
                               FROM     F_SplitToInt(@ProductIds, '','') )
        SET @ErrorCode = @@ERROR
        /***删除商家推荐的商品结束***/
        
        /***删除商家商品分类开始***/
        DELETE  FROM Shop_SuppProductCategories
        WHERE   ProductId IN ( SELECT   *
                               FROM     F_SplitToInt(@ProductIds, '','') )
        SET @ErrorCode = @@ERROR
         /***删除商家商品分类结束***/
         
        DELETE  FROM Shop_ProductStationModes
        WHERE   ProductId IN ( SELECT   *
                               FROM     F_SplitToInt(@ProductIds, '','') ) 
        SET @ErrorCode = @@ERROR
        
        /*内存临时表 SKU图片地址*/
        DECLARE @SKUImage TABLE
            (
              ImageURL NVARCHAR(255) ,
              ThumbnailUrl1 NVARCHAR(255) ,
              ThumbnailUrl2 NVARCHAR(255)
            )
        INSERT  INTO @SKUImage
                ( ImageURL ,
                  ThumbnailUrl1 ,
                  ThumbnailUrl2 
                )
                ( SELECT    ImageUrl ,
                            NULL ,
                            NULL
                  FROM      Shop_SKUItems
                  WHERE     ProductId IN (
                            SELECT  *
                            FROM    F_SplitToInt(@ProductIds, '','') )
                            AND ImageUrl IS NOT NULL
                )
        
        DELETE  FROM Shop_SKUItems
        WHERE   ProductId IN ( SELECT   *
                               FROM     F_SplitToInt(@ProductIds, '','') )
        SET @ErrorCode = @@ERROR
  
        
        DELETE  FROM Shop_SKUMemberPrice
        WHERE   SkuId IN (
                SELECT  SkuId
                FROM    Shop_SKUs
                WHERE   ProductId IN ( SELECT   *
                                       FROM     F_SplitToInt(@ProductIds, '','') ) )
        SET @ErrorCode = @@ERROR
        
    
        DELETE  FROM Shop_SKUs
        WHERE   ProductId IN ( SELECT   *
                               FROM     F_SplitToInt(@ProductIds, '','') ) 
        SET @ErrorCode = @@ERROR
        
        DELETE  FROM Shop_RelatedProducts
        WHERE   ProductId IN ( SELECT   *
                               FROM     F_SplitToInt(@ProductIds, '','') )
                OR RelatedId IN ( SELECT    *
                                  FROM      F_SplitToInt(@ProductIds, '','') )
        SET @ErrorCode = @@ERROR
        
      
        
        
        /*内存临时表 SKU图片地址*/
        DECLARE @ProductImage TABLE
            (
              ImageURL NVARCHAR(255) ,
              ThumbnailUrl1 NVARCHAR(255) ,
              ThumbnailUrl2 NVARCHAR(255)
            )
        INSERT  INTO @ProductImage
                ( ImageURL ,
                  ThumbnailUrl1 ,
                  ThumbnailUrl2 
                )
                ( SELECT    ImageUrl ,
                            ThumbnailUrl1 ,
                            ThumbnailUrl2
                  FROM      Shop_ProductImages
                  WHERE     ProductId IN (
                            SELECT  *
                            FROM    F_SplitToInt(@ProductIds, '','') )
                )
          
        
        DELETE  FROM Shop_ProductImages
        WHERE   ProductId IN ( SELECT   *
                               FROM     F_SplitToInt(@ProductIds, '','') )
        SET @ErrorCode = @@ERROR
          
        /*内存临时表 SKU图片地址*/
        DECLARE @ProductMainImage TABLE
            (
              ImageURL NVARCHAR(255) ,
              ThumbnailUrl1 NVARCHAR(255) ,
              ThumbnailUrl2 NVARCHAR(255)
            )
        INSERT  INTO @ProductMainImage
                ( ImageURL ,
                  ThumbnailUrl1 ,
                  ThumbnailUrl2 
                )
                ( SELECT    ImageUrl ,
                            ThumbnailUrl1 ,
                            ThumbnailUrl2
                  FROM      Shop_Products
                  WHERE     ProductId IN (
                            SELECT  *
                            FROM    F_SplitToInt(@ProductIds, '','') )
                )
        
        
        DELETE  FROM Shop_ProductCategories
        WHERE   ProductId IN ( SELECT   *
                               FROM     F_SplitToInt(@ProductIds, '','') )
        SET @ErrorCode = @@ERROR
        
        DELETE  FROM Shop_ProductPackage
        WHERE   ProductId IN ( SELECT   *
                               FROM     F_SplitToInt(@ProductIds, '','') )
        SET @ErrorCode = @@ERROR
        
        DELETE  FROM Shop_Products
        WHERE   ProductId IN ( SELECT   *
                               FROM     F_SplitToInt(@ProductIds, '','') )
        SET @ErrorCode = @@ERROR
        
        
        
        
        
        
        
        IF @ErrorCode = 0 
            BEGIN
                COMMIT TRAN
                SELECT  *
                FROM    @SKUImage
                UNION ALL
                SELECT  *
                FROM    @ProductImage
                UNION ALL
                SELECT  *
                FROM    @ProductMainImage 
                RETURN 1
            END
        ELSE 
            BEGIN
                ROLLBACK TRAN		
                RETURN 0
            END
    END
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_DeleteManage]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'-- =============================================
-- Author:		<Author:Rock>
-- Create date: <Create Date:2012年6月17日 17:24:51>
-- Description:	<Description：删除信息>
-- =============================================
CREATE PROCEDURE [sp_Shop_DeleteManage]
    @ValueId BIGINT,
    @AttributeId BIGINT  ,
    @TypeId INT 
AS 
    BEGIN
    
        SET XACT_ABORT ON
        BEGIN TRANSACTION
			
        DECLARE @intErrorCode INT
        DECLARE @SkuId BIGINT 
		
        
        --内存临时表 基础数据
        DECLARE @AttributeIdTempTable TABLE ( ArrIds BIGINT )
		
        DECLARE @SkuIdsTempTable TABLE ( SkuIds BIGINT )
        
        DECLARE @ValuesTempTable TABLE ( ValuesId BIGINT )
		
        IF @TypeId IS NOT NULL 
            BEGIN
            
                DELETE  FROM @AttributeIdTempTable
                DELETE  FROM @SkuIdsTempTable
                DELETE  FROM @ValuesTempTable
            
            
				--从品牌类别表中删除和TypeID相关的信息
                DELETE  FROM Shop_ProductTypeBrands
                WHERE   ProductTypeId = @TypeId
                SET @intErrorCode = @@ERROR
                
                --更新商品列表中TypeID信息
                UPDATE  Shop_Products
                SET     TypeId = 0
                WHERE   TypeId = @TypeId
                SET @intErrorCode = @@ERROR
				
				--根据TypeID获取和该TypeID相关的AttributeID信息
				
                INSERT  INTO @AttributeIdTempTable
                        ( ArrIds 
                        )
                        ( SELECT DISTINCT
                                    AttributeId
                          FROM      Shop_Attributes
                          WHERE     TypeId = @TypeId
                        )
				
                
                INSERT  INTO @SkuIdsTempTable
                        ( SkuIds 
                        )
                        ( SELECT  DISTINCT
                                    SpecId
                          FROM      Shop_SKUItems
                          WHERE     AttributeId IN (
                                    SELECT  *
                                    FROM    @AttributeIdTempTable )
                        )
                
                               
                                     
                DELETE  FROM Shop_SKUItems
                WHERE   AttributeId IN ( SELECT *
                                         FROM   @AttributeIdTempTable )		
                SET @intErrorCode = @@ERROR 
                     
                     
                     
                INSERT  INTO @ValuesTempTable
                        ( ValuesId 
                        )
                        ( SELECT DISTINCT
                                    ValueId
                          FROM      Shop_AttributeValues
                          WHERE     AttributeId IN (
                                    SELECT  *
                                    FROM    @AttributeIdTempTable )
                        )   
                        
				
                DELETE  FROM Shop_SKUMemberPrice
                WHERE   SkuId IN ( SELECT   *
                                   FROM     @SkuIdsTempTable ) 	
                SET @intErrorCode = @@ERROR 
                           
                DELETE  FROM Shop_SKUs
                WHERE   SkuId IN ( SELECT   *
                                   FROM     @SkuIdsTempTable )
                SET @intErrorCode = @@ERROR 
                                   
                DELETE  FROM Shop_AttributeValues
                WHERE   ValueId IN ( SELECT *
                                     FROM   @ValuesTempTable )
                SET @intErrorCode = @@ERROR 
                
                DELETE  FROM Shop_ProductAttributes
                WHERE   AttributeId IN ( SELECT *
                                         FROM   @AttributeIdTempTable )
                SET @intErrorCode = @@ERROR 
                
                DELETE  FROM Shop_Attributes
                WHERE   AttributeId IN ( SELECT *
                                         FROM   @AttributeIdTempTable )
                SET @intErrorCode = @@ERROR 
                
                DELETE  FROM Shop_ProductTypes
                WHERE   TypeId = @TypeId
            END
		
		
        IF @AttributeId IS NOT NULL 
            BEGIN
                       
                DELETE  FROM @AttributeIdTempTable
                DELETE  FROM @SkuIdsTempTable
                DELETE  FROM @ValuesTempTable
                                 
                DELETE  FROM Shop_ProductAttributes
                WHERE   AttributeId = @AttributeId
                SET @intErrorCode = @intErrorCode + @@ERROR
                
                INSERT  INTO @SkuIdsTempTable
                        ( SkuIds 
                        )
                        ( SELECT  DISTINCT
                                    SpecId
                          FROM      Shop_SKUItems
                          WHERE     AttributeId = @AttributeId
                        )
            
                DELETE  FROM Shop_SKUItems
                WHERE   AttributeId = @AttributeId
                SET @intErrorCode = @intErrorCode + @@ERROR
                
                DELETE  FROM Shop_SKUMemberPrice
                WHERE   SkuId IN ( SELECT   *
                                   FROM     @SkuIdsTempTable )
                SET @intErrorCode = @intErrorCode + @@ERROR
            
                DELETE  FROM Shop_SKUs
                WHERE   SkuId IN ( SELECT   *
                                   FROM     @SkuIdsTempTable )
                SET @intErrorCode = @intErrorCode + @@ERROR
                
                
                DELETE  FROM Shop_AttributeValues
                WHERE   AttributeId = @AttributeId
                SET @intErrorCode = @intErrorCode + @@ERROR
                
                DELETE  FROM Shop_Attributes
                WHERE   AttributeId = @AttributeId
                SET @intErrorCode = @intErrorCode + @@ERROR
            END
		 
		 
        
        IF @ValueId IS NOT NULL 
            BEGIN
                        
                DELETE  FROM @AttributeIdTempTable
                DELETE  FROM @SkuIdsTempTable
                DELETE  FROM @ValuesTempTable
                
                
                INSERT  INTO @SkuIdsTempTable
                        ( SkuIds 
                        )
                        ( SELECT  DISTINCT
                                    SpecId
                          FROM      Shop_SKUItems
                          WHERE     ValueId = @ValueId
                        )
                        
                        
                DELETE  FROM Shop_ProductAttributes
                WHERE   ValueId = @ValueId
                SET @intErrorCode = @intErrorCode + @@ERROR
                        
                DELETE  FROM Shop_SKUItems
                WHERE   ValueId = @ValueId
                SET @intErrorCode = @intErrorCode + @@ERROR
                
                
                DELETE  FROM Shop_SKUMemberPrice
                WHERE   SkuId IN ( SELECT   *
                                   FROM     @SkuIdsTempTable )
                SET @intErrorCode = @intErrorCode + @@ERROR
                
                
                DELETE  FROM Shop_SKUs
                WHERE   SkuId IN ( SELECT   *
                                   FROM     @SkuIdsTempTable )
                SET @intErrorCode = @intErrorCode + @@ERROR
                
                
                DELETE  FROM Shop_AttributeValues
                WHERE   ValueId = @ValueId
                SET @intErrorCode = @intErrorCode + @@ERROR
                         
            END
		
				
        IF @intErrorCode > 0 
            BEGIN
                ROLLBACK TRAN
            END
        ELSE 
            COMMIT TRAN
    END
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_DeleteBeforeUpdate]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
CREATE PROCEDURE [sp_Shop_DeleteBeforeUpdate] @ProductId BIGINT
AS 
    BEGIN
        DECLARE @ErrorCode INT 
        SET XACT_ABORT ON
        BEGIN TRANSACTION
        DELETE FROM Shop_ProductAttributes
		WHERE ProductId=@ProductId
		SET @ErrorCode = @@ERROR 
        
        DELETE FROM Shop_SKURelation WHERE ProductId=@ProductId 
        SET @ErrorCode = @@ERROR
        
        DELETE FROM Shop_SKUItems WHERE ProductId=@ProductId
        SET @ErrorCode = @@ERROR
        
        DELETE FROM Shop_SKUMemberPrice WHERE SkuId IN(SELECT SkuId FROM Shop_SKUs WHERE ProductId =@ProductId)
        SET @ErrorCode = @@ERROR
        
        DELETE FROM Shop_SKUs WHERE ProductId=@ProductId 
        SET @ErrorCode = @@ERROR
        
        DELETE FROM Shop_RelatedProducts WHERE ProductId=@ProductId
        SET @ErrorCode = @@ERROR
        
        
        DELETE FROM Shop_RelatedProducts WHERE RelatedId=@ProductId
        SET @ErrorCode = @@ERROR
         
         --删除当前所编辑商品的配件、优惠组合  
        DELETE FROM Shop_AccessoriesValues WHERE  AccessoriesId in  (SELECT AccessoriesId  FROM Shop_ProductAccessories WHERE  ProductId = @ProductId )
        SET @ErrorCode = @@ERROR

        DELETE FROM Shop_ProductAccessories WHERE  ProductId = @ProductId
        SET @ErrorCode = @@ERROR
        
        
        DELETE FROM Shop_ProductImages
        WHERE ProductId=@ProductId
        SET @ErrorCode = @@ERROR
        
        DELETE FROM Shop_ProductCategories
        WHERE ProductId=@ProductId
        SET @ErrorCode = @@ERROR
        
        IF @ErrorCode = 0 
            BEGIN
                COMMIT TRAN
                RETURN 1
            END
        ELSE 
            BEGIN
                ROLLBACK TRAN		
                RETURN 0
            END
    END
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_ChangeProductsCategory]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'-- =============================================
-- Author:		<Rock>
-- Create date: <2012年12月20日 16:17:16>
-- Description:	<未分类商品转移分类>
-- =============================================
CREATE PROCEDURE [sp_Shop_ChangeProductsCategory]
    @ProductIds NVARCHAR(1000) ,
    @CategoryId INT
AS 
    BEGIN
	
        DECLARE @ErrorCode INT 
        SET @ErrorCode = 0
        SET XACT_ABORT ON
        BEGIN TRANSACTION
        
        DECLARE @Path VARCHAR(4000)
	
        SELECT  @Path = Path
        FROM    Shop_Categories
        WHERE   CategoryId = @CategoryId
	
        INSERT  INTO Shop_ProductCategories
                ( CategoryId ,
                  ProductId ,
                  CategoryPath
	          )
                ( SELECT    @CategoryId ,
                            * ,
                            @Path
                  FROM      F_SplitToInt(@ProductIds, '','')
                )
        SET @ErrorCode = @@ERROR
        
        UPDATE  Shop_Products
        SET     CategoryId = 0
        WHERE   ProductId IN ( SELECT   *
                               FROM     F_SplitToInt(@ProductIds, '','') )
        SET @ErrorCode = @@ERROR
                
        IF @ErrorCode = 0 
            BEGIN
                COMMIT TRAN
                RETURN 1
            END
        ELSE 
            BEGIN
                ROLLBACK TRAN		
                RETURN 0
            END
    END
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_Category_SwapSequence]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'-- =============================================
-- Author:		<Author:Rock>
-- Create date: <Create Date:2012年6月20日 10:20:49>
-- Description:	<Description:排序>
-- =============================================
CREATE PROCEDURE [sp_Shop_Category_SwapSequence]
    @CategoryId INT ,
    @ZIndex INT
AS 
    BEGIN
        DECLARE @Path NVARCHAR(4000)
        DECLARE @ParentCategoryId INT ,
            @DisplaySequence INT
	
        DECLARE @swap_Path NVARCHAR(4000)
        DECLARE @swap_CategoryId INT
	
        SELECT  @Path = Path ,
                @ParentCategoryId = ParentCategoryId ,
                @DisplaySequence = DisplaySequence
        FROM    Shop_Categories
        WHERE   CategoryId = @CategoryId
        IF @Path IS NULL
            OR @ParentCategoryId IS NULL 
            RETURN
		
        IF @ZIndex = 0 
            SELECT TOP 1
                    @swap_Path = Path ,
                    @swap_CategoryId = CategoryId
            FROM    Shop_Categories
            WHERE   ParentCategoryId = @ParentCategoryId
                    AND DisplaySequence < @DisplaySequence
            ORDER BY DisplaySequence DESC
        ELSE 
            SELECT TOP 1
                    @swap_Path = Path ,
                    @swap_CategoryId = CategoryId
            FROM    Shop_Categories
            WHERE   ParentCategoryId = @ParentCategoryId
                    AND DisplaySequence > @DisplaySequence
            ORDER BY DisplaySequence ASC
	
        IF @swap_Path IS NULL
            OR @swap_CategoryId IS NULL 
            RETURN ;
	
        SET XACT_ABORT ON
        BEGIN TRAN
	
        DECLARE @tempTable TABLE ( CategoryId INT )
        DECLARE @Count INT ,
            @SwapCount INT
	
        INSERT  INTO @tempTable
                SELECT  CategoryId
                FROM    Shop_Categories
                WHERE   CategoryId = @CategoryId
                        OR Path LIKE '''' + @Path + ''|%''
        SET @Count = @@ROWCOUNT
	
        IF @ZIndex = 0 
            BEGIN
                UPDATE  Shop_Categories
                SET     DisplaySequence = DisplaySequence + @Count
                WHERE   CategoryId = @swap_CategoryId
                        OR Path LIKE '''' + @swap_Path + ''|%''
                SET @SwapCount = @@ROWCOUNT
                UPDATE  Shop_Categories
                SET     DisplaySequence = DisplaySequence - @SwapCount
                WHERE   CategoryId IN ( SELECT  CategoryId
                                        FROM    @tempTable )
            END
        ELSE 
            BEGIN
                UPDATE  Shop_Categories
                SET     DisplaySequence = DisplaySequence - @Count
                WHERE   CategoryId = @swap_CategoryId
                        OR Path LIKE '''' + @swap_Path + ''|%''
                SET @SwapCount = @@ROWCOUNT
                UPDATE  Shop_Categories
                SET     DisplaySequence = DisplaySequence + @SwapCount
                WHERE   CategoryId IN ( SELECT  CategoryId
                                        FROM    @tempTable )
            END
	
        COMMIT TRAN
    END
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_Category_Delete]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'-- =============================================
-- Author:		<Author：Rock>
-- Create date: <Create Date:2012年6月20日 10:47:08>
-- Description:	<Description：删除分类>
-- =============================================
CREATE PROCEDURE [sp_Shop_Category_Delete] @CategoryId INT
AS 
    BEGIN
        DECLARE @Err AS INT ,
            @Count INT ,
            @DisplaySequence INT
        DECLARE @Path NVARCHAR(4000)
        SET XACT_ABORT ON
        BEGIN TRAN
        
        DECLARE @intErrorCode INT --定义错误计数器
        SET @intErrorCode = 0 --无错误为0

        CREATE TABLE #tempTable ( CategoryId INT )
        
        DECLARE @TableTarget TABLE ( ImageUrl NVARCHAR(300) )
        

        SELECT  @Err = 0 ,
                @Path = Path ,
                @DisplaySequence = DisplaySequence
        FROM    Shop_Categories
        WHERE   CategoryId = @CategoryId
        INSERT  INTO #tempTable
                SELECT  CategoryId
                FROM    Shop_Categories
                WHERE   CategoryId = @CategoryId
                        OR Path LIKE '''' + @Path + ''|%''
       
	
        DECLARE @ChildCount INT
        SET @ChildCount = -1	
		
        SELECT  @ChildCount = COUNT(*)
        FROM    Shop_Categories C ,
                ( SELECT    ParentCategoryId
                  FROM      Shop_Categories
                  WHERE     CategoryId = @CategoryId
                ) A
        WHERE   C.ParentCategoryId = A.ParentCategoryId
                         
                        
        INSERT  INTO @TableTarget
                ( ImageUrl 
                )
                ( SELECT    ImageUrl
                  FROM      Shop_Categories
                  WHERE     CategoryId = @CategoryId
                            OR Path LIKE '''' + @Path + ''|%''
                )

        SET @Count = @@ROWCOUNT

        DECLARE @ParentCategoryId INT
        SET @ParentCategoryId = -1
        
        SELECT  @ParentCategoryId = ParentCategoryId
        FROM    Shop_Categories
        WHERE   CategoryId = @CategoryId 
        
        
        UPDATE  Shop_Products
        SET     CategoryId = -1
        WHERE   ProductId IN ( SELECT DISTINCT
                                        ProductId
                               FROM     Shop_ProductCategories
                               WHERE    CategoryId = @CategoryId )
        SET @intErrorCode = @intErrorCode + @@ERROR
        
        DELETE  FROM Shop_ProductCategories
        WHERE   CategoryId = @CategoryId
        SET @intErrorCode = @intErrorCode + @@ERROR
       
        
        
        
        
		-- 删除自身和所有子分类
        DELETE  FROM Shop_Categories
        WHERE   CategoryId IN ( SELECT  CategoryId
                                FROM    #tempTable )
        SET @intErrorCode = @intErrorCode + @@ERROR

		-- 修改商品分类的编号为0，表示未分类
        UPDATE  Shop_Products
        SET     CategoryId = -1
        WHERE   CategoryId IN ( SELECT  CategoryId
                                FROM    #tempTable )
        SET @intErrorCode = @intErrorCode + @@ERROR

		--更新热卖关键字表
        UPDATE  Shop_HotKeywords
        SET     CategoryId = 0
        WHERE   CategoryId IN ( SELECT  CategoryId
                                FROM    #tempTable )
        SET @intErrorCode = @intErrorCode + @@ERROR

		--更新其他记录的DisplaySequence
        UPDATE  Shop_Categories
        SET     DisplaySequence = DisplaySequence - @Count
        WHERE   DisplaySequence > @DisplaySequence 
        SET @intErrorCode = @intErrorCode + @@ERROR

        DROP TABLE #tempTable
		
		PRINT @ChildCount
        IF ( @ChildCount = 0 ) 
            BEGIN			
                UPDATE  Shop_Categories
                SET     HasChildren = ~( HasChildren )
                WHERE   CategoryId = @ParentCategoryId
                SET @intErrorCode = @intErrorCode + @@ERROR
            END
		 
       
        
        IF @intErrorCode <> 0 
            BEGIN
                ROLLBACK TRANSACTION--事务回滚语句
                RETURN 0
            END
        ELSE 
            BEGIN
                COMMIT TRANSACTION--事务提交语句
                SELECT  *
                FROM    @TableTarget
        --返回结果集
                RETURN 1
            END
    END
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_Category_Create]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'-- =============================================
-- Author:		<Author:Rock>
-- Create date: <Create Date:2012年6月19日 19:28:05>
-- Description:	<Description：创建店铺分类>
-- =============================================
CREATE PROCEDURE [sp_Shop_Category_Create]
    @Name NVARCHAR(100) ,
    @Meta_Title NVARCHAR(1000) ,
    @MetaDescription NVARCHAR(1000) ,
    @MetaKeywords NVARCHAR(1000) ,
    @Description NVARCHAR(1000) ,
    @ImageUrl NVARCHAR(300),
    @RewriteName NVARCHAR(50) ,
    @SKUPrefix NVARCHAR(10) ,
    @AssociatedProductType INT ,
    @HasChildren BIT ,
    @ParentCategoryId INT
AS 
    DECLARE @Err AS INT
    DECLARE @DisplaySequence INT
    
    SELECT  @Err = 0

    SET XACT_ABORT ON
    BEGIN TRAN

    DECLARE @CategoryId INT

    IF @DisplaySequence IS NULL
        OR @DisplaySequence <= 0 
        SET @DisplaySequence = 1
	
    IF @ParentCategoryId IS NULL
        OR @ParentCategoryId < 0 
        SET @ParentCategoryId = 0
        
    UPDATE  Shop_Categories
    SET     HasChildren = 1
    WHERE   CategoryId = @ParentCategoryId
	
    DECLARE @Depth AS INT

    CREATE TABLE #tempTable ( Sequence INT )
    DECLARE @subQuery NVARCHAR(4000)

    --SELECT  @CategoryId = MAX(CategoryId)
    --FROM    Shop_Categories
    
    SELECT @CategoryId = IDENT_CURRENT(''Shop_Categories'') 
    
    IF @CategoryId IS NOT NULL 
        SET @CategoryId = @CategoryId + 1
    ELSE 
        SET @CategoryId = 1


    DECLARE @Path AS NVARCHAR(4000)
    DECLARE @Order AS INT

    IF @ParentCategoryId = 0 
        BEGIN
            SET @subQuery = ''SELECT TOP '' + LTRIM(RTRIM(STR(@DisplaySequence)))
                + '' DisplaySequence FROM Shop_Categories WHERE Depth = 1 ORDER BY DisplaySequence ASC''
	
            INSERT  INTO #tempTable
                    EXEC sp_executesql @subQuery
            SELECT  @Order = MAX(Sequence)
            FROM    #tempTable
	
            IF @Order IS NULL 
                SET @Order = 1

            SET @Path = LTRIM(RTRIM(STR(@CategoryId)))
            SET @Depth = 1
        END
    ELSE 
        BEGIN
	--获取父节点的路径和深度
            SELECT  @Path = [Path] ,
                    @Depth = Depth
            FROM    Shop_Categories
            WHERE   CategoryId = @ParentCategoryId
            IF @Path IS NULL 
                BEGIN
                    SET @Err = 1
                    GOTO theEnd
                END

            SET @subQuery = ''SELECT TOP '' + LTRIM(RTRIM(STR(@DisplaySequence)))
                + '' DisplaySequence FROM Shop_Categories WHERE ParentCategoryId = ''
                + LTRIM(RTRIM(STR(@ParentCategoryId)))
                + '' ORDER BY DisplaySequence ASC''
	

            INSERT  INTO #tempTable
                    EXEC sp_executesql @subQuery
            SELECT  @Order = MAX(Sequence)
            FROM    #tempTable
	
	
            IF @Order IS NULL 
                BEGIN 
                    SELECT  @Order = DisplaySequence + 1
                    FROM    Shop_Categories
                    WHERE   CategoryId = @ParentCategoryId
                END 

            SET @Path = @Path + ''|'' + LTRIM(RTRIM(STR(@CategoryId)))
            SET @Depth = @Depth + 1
        END

--更新当前要插入节点后所有节点的序号
    UPDATE  Shop_Categories
    SET     DisplaySequence = DisplaySequence + 1
    WHERE   DisplaySequence >= @Order

	
    INSERT  INTO Shop_Categories
            ( Name ,
              DisplaySequence ,
              Meta_Title,
              Meta_Description ,
              Meta_Keywords ,
              Description ,
              ParentCategoryId ,
              Depth ,
              Path ,
              RewriteName ,
              SKUPrefix ,
              AssociatedProductType ,
              ImageUrl,
              Notes1 ,
              Notes2 ,
              Notes3 ,
              Notes4 ,
              Notes5 ,
              Theme ,
              HasChildren
	        
            )
    VALUES  ( @Name , -- Name - nvarchar(100)
              @Order , -- DisplaySequence - int
              @Meta_Title,
              @MetaDescription , -- Meta_Description - nvarchar(1000)
              @MetaKeywords , -- Meta_Keywords - nvarchar(1000)
              @Description , -- Description - nvarchar(1000)
              @ParentCategoryId , -- ParentCategoryId - int
              @Depth , -- Depth - int
              @Path , -- Path - varchar(4000)
              @RewriteName , -- RewriteName - nvarchar(50)
              @SKUPrefix , -- SKUPrefix - nvarchar(10)
              @AssociatedProductType , -- AssociatedProductType - int
              @ImageUrl,
              NULL , -- Notes1 - ntext
              NULL , -- Notes2 - ntext
              NULL , -- Notes3 - ntext
              NULL , -- Notes4 - ntext
              NULL , -- Notes5 - ntext
              NULL , -- Theme - varchar(100)
              @HasChildren  -- HasChildren - bit
	        
            )

    DROP TABLE #tempTable

    IF @@Error <> 0 
        BEGIN
            SET @Err = 1
            GOTO theEnd
        END

    theEnd:
    IF @Err = 0 
        BEGIN
            COMMIT TRAN
            RETURN @CategoryId
        END
    ELSE 
        BEGIN
            ROLLBACK TRAN
            RETURN 0
        END
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_BrandsCreateUpdateDelete]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'-- =============================================
-- Author:		<Rock>
-- Create date: <2012年6月12日 13:42:18>
-- Description:	<品牌的增删改>
-- =============================================
CREATE PROCEDURE [sp_Shop_BrandsCreateUpdateDelete]
    @BrandId INT  ,
    @BrandName NVARCHAR(50)  ,
    @BrandSpell NVARCHAR(200)  ,
    @Meta_Description NVARCHAR(1000)  ,
    @Meta_Keywords NVARCHAR(1000)  ,
    @Logo NVARCHAR(255)  ,
    @CompanyUrl NVARCHAR(255)  ,
    @Description NTEXT  ,
    @DisplaySequence INT  ,
    @Theme NVARCHAR(100)  ,
    @Action INT ,
    @BrandIdOutPut INT  OUTPUT
AS 
    BEGIN
	
        IF @Action = 0 -- 创建
            BEGIN
	
	    --如果排序编号在此兄弟节点间存在,则修改分类中兄弟节点的其它的排序编号
                IF EXISTS ( SELECT  DisplaySequence
                            FROM    Shop_Brands
                            WHERE   DisplaySequence = @DisplaySequence ) 
		-- 将大于或等于其兄弟节点的排序号加1
                    UPDATE  Shop_Brands
                    SET     DisplaySequence = DisplaySequence + 1
                    WHERE   DisplaySequence >= @DisplaySequence
					
                INSERT  INTO Shop_Brands
                        ( BrandName ,
                          BrandSpell ,
                          Meta_Description ,
                          Meta_Keywords ,
                          Logo ,
                          CompanyUrl ,
                          Description ,
                          DisplaySequence ,
                          Theme
                        )
                VALUES  ( @BrandName ,
                          @BrandSpell ,
                          @Meta_Description ,
                          @Meta_Keywords ,
                          @Logo ,
                          @CompanyUrl ,
                          @Description ,
                          @DisplaySequence ,
                          @Theme
                        )
		
                IF @@ROWCOUNT = 1 
                    BEGIN		
                        SET @BrandIdOutPut = @@IDENTITY
                    END
                RETURN
            END
            
        IF @Action = 1 -- 修改
            BEGIN
	
		--如果排序编号在此兄弟节点间存在,则修改分类中兄弟节点的其它的排序编号
                IF EXISTS ( SELECT  DisplaySequence
                            FROM    Shop_Brands
                            WHERE   DisplaySequence = @DisplaySequence
                                    AND BrandId != @BrandId ) 
		-- 将大于或等于其兄弟节点的排序号加1
                    UPDATE  Shop_Brands
                    SET     DisplaySequence = DisplaySequence + 1
                    WHERE   DisplaySequence >= @DisplaySequence
		
                UPDATE  Shop_Brands
                SET     BrandName = @BrandName ,
                        BrandSpell = @BrandSpell ,
                        Meta_Description = @Meta_Description ,
                        Meta_Keywords = @Meta_Keywords ,
                        Logo = @Logo ,
                        CompanyUrl = @CompanyUrl ,
                        Description = @Description ,
                        DisplaySequence = @DisplaySequence
                WHERE   BrandId = @BrandId
				
                RETURN
            END
    END
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_AttributesValuesCreateEditDelete]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'-- =============================================
-- Author:		<Rock>
-- Create date: <2012年6月14日 16:19:40>
-- Description:	<扩展属性操作>
-- =============================================
CREATE PROCEDURE [sp_Shop_AttributesValuesCreateEditDelete]
    @Action INT ,
    @ValueId BIGINT ,
    @AttributeId BIGINT ,
    @ValueStr NVARCHAR(200) ,
    @ImageUrl NVARCHAR(255)
AS 
    BEGIN
		
        IF @Action = 0--创建
            BEGIN 
                DECLARE @Seq INT ,
                    @DisplaySequence INT
                SELECT  @Seq = ( SELECT MAX(DisplaySequence)
                                 FROM   Shop_AttributeValues WHERE AttributeId=@AttributeId
                               ) 
                               
                IF @Seq IS NOT NULL 
                    SELECT  @DisplaySequence = ( SELECT MAX(DisplaySequence)
                                                 FROM   Shop_AttributeValues WHERE AttributeId=@AttributeId
                                               ) + 1
                ELSE 
                    SET @DisplaySequence = 1
                INSERT  INTO Shop_AttributeValues
                        ( AttributeId ,
                          DisplaySequence ,
                          ValueStr ,
                          ImageUrl
                        )
                VALUES  ( @AttributeId , -- AttributeId - bigint
                          @DisplaySequence , -- DisplaySequence - int
                          @ValueStr , -- ValueStr - nvarchar(200)
                          @ImageUrl  -- ImageUrl - nvarchar(255)
                        )
            END	
            
        IF @Action = 1--修改
            BEGIN
                UPDATE  Shop_AttributeValues
                SET     ValueStr = @ValueStr ,
                        ImageUrl = @ImageUrl
                WHERE   ValueId = @ValueId
            END
        IF @Action = 2--删除 --级联更新
            BEGIN
                DELETE  FROM Shop_AttributeValues
                WHERE   ValueId = @ValueId
            END
    END
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_AttributesCreateEditDelete]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'-- =============================================
-- Author:		<Rock>
-- Create date: <2012年6月14日 16:19:40>
-- Description:	<扩展属性操作>
-- =============================================
CREATE PROCEDURE [sp_Shop_AttributesCreateEditDelete]
    @Action INT ,
    @AttributeId BIGINT ,
    @AttributeName NVARCHAR(50) ,
    @TypeId INT ,
    @UsageMode INT ,
    @UseAttributeImage BIT ,
    @UserDefinedPic BIT ,
    @AttributeIdOutPut INT OUTPUT
AS 
    BEGIN
		
        IF @Action = 0--创建
            BEGIN 
                DECLARE @Seq INT ,
                    @DisplaySequence INT
                
                IF @UsageMode = 3 
                    BEGIN
                	
                        SELECT  @Seq = ( SELECT MAX(DisplaySequence)
                                         FROM   Shop_Attributes
                                         WHERE  TypeId = @TypeId
                                                AND UsageMode = 3
                                       ) + 1
                        IF NOT @Seq IS NULL 
                            SELECT  @DisplaySequence = ( SELECT
                                                              MAX(DisplaySequence)
                                                         FROM Shop_Attributes
                                                         WHERE
                                                              TypeId = @TypeId
                                                              AND UsageMode = 3
                                                       ) + 1
                        ELSE 
                            SET @DisplaySequence = 1
                    END
                    
                ELSE 
                    BEGIN
                        SELECT  @Seq = ( SELECT MAX(DisplaySequence)
                                         FROM   Shop_Attributes
                                         WHERE  TypeId = @TypeId
                                       ) + 1
                        IF NOT @Seq IS NULL 
                            SELECT  @DisplaySequence = ( SELECT
                                                              MAX(DisplaySequence)
                                                         FROM Shop_Attributes
                                                         WHERE
                                                              TypeId = @TypeId
                                                       ) + 1
                        ELSE 
                            SET @DisplaySequence = 1
                    END
                    
                INSERT  INTO Shop_Attributes
                        ( AttributeName ,
                          DisplaySequence ,
                          TypeId ,
                          UsageMode ,
                          UseAttributeImage,
                          UserDefinedPic
		            )
                VALUES  ( @AttributeName , -- AttributeName - nvarchar(50)
                          @DisplaySequence , -- DisplaySequence - int
                          @TypeId , -- TypeId - int
                          @UsageMode , -- UsageMode - int
                          @UseAttributeImage  -- UseAttributeImage - bit
                          ,@UserDefinedPic
		            )
                IF @@ROWCOUNT = 1 
                    BEGIN		
                        SET @AttributeIdOutPut = @@IDENTITY
                    END
                RETURN
            END	
            
        IF @Action = 1--修改
            BEGIN
                UPDATE  Shop_Attributes
                SET     AttributeName = @AttributeName ,
                        UsageMode = @UsageMode
                WHERE   AttributeId = @AttributeId
            END
        IF @Action = 2--删除 --级联更新
            BEGIN
                DELETE  FROM Shop_Attributes
                WHERE   AttributeId = @AttributeId
            END
    END
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Pay_PaymentMode_Sequence]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'

CREATE PROCEDURE [sp_Pay_PaymentMode_Sequence] ( @ModeId INT, @Sort INT )
AS 
    DECLARE @oldSequence INT
    DECLARE @newSequence INT
    DECLARE @oModeId INT
-- 升
    IF @Sort = 1 
        BEGIN
            SELECT  @oldSequence = DisplaySequence
            FROM    Pay_PaymentTypes
            WHERE   ModeId = @ModeId

            SELECT  @newSequence = DisplaySequence
            FROM    Pay_PaymentTypes
            WHERE   ModeId = ( SELECT TOP 1
                                        ModeId
                               FROM     Pay_PaymentTypes
                               WHERE    DisplaySequence < @oldSequence
                               ORDER BY DisplaySequence DESC
                             )

            SELECT  @oModeId = ( SELECT TOP 1
                                        ModeId
                                 FROM   Pay_PaymentTypes
                                 WHERE  DisplaySequence < @oldSequence
                                 ORDER BY DisplaySequence DESC
                               )

            IF NOT @newSequence IS NULL 
                BEGIN
                    UPDATE  Pay_PaymentTypes
                    SET     DisplaySequence = @newSequence
                    WHERE   ModeId = @ModeId
                END
            IF NOT @oModeId IS NULL 
                BEGIN
                    UPDATE  Pay_PaymentTypes
                    SET     DisplaySequence = @oldSequence
                    WHERE   modeId = @oModeId
                END
        END
-- 降
    IF @Sort = 0 
        BEGIN
            SELECT  @oldSequence = DisplaySequence
            FROM    Pay_PaymentTypes
            WHERE   ModeId = @ModeId

            SELECT  @newSequence = DisplaySequence
            FROM    Pay_PaymentTypes
            WHERE   ModeId = ( SELECT TOP 1
                                        ModeId
                               FROM     Pay_PaymentTypes
                               WHERE    DisplaySequence > @oldSequence
                               ORDER BY DisplaySequence ASC
                             )
  

            SELECT  @oModeId = ( SELECT TOP 1
                                        ModeId
                                 FROM   Pay_PaymentTypes
                                 WHERE  DisplaySequence > @oldSequence
                                 ORDER BY DisplaySequence ASC
                               )
   

            IF NOT @newSequence IS NULL 
                BEGIN
                    UPDATE  Pay_PaymentTypes
                    SET     DisplaySequence = @newSequence
                    WHERE   ModeId = @ModeId
                END
            IF NOT @oModeId IS NULL 
                BEGIN
                    UPDATE  Pay_PaymentTypes
                    SET     DisplaySequence = @oldSequence
                    WHERE   modeId = @oModeId
                END
        END


' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Pay_PaymentMode_CreateUpdateDelete]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'CREATE PROCEDURE [sp_Pay_PaymentMode_CreateUpdateDelete]
	(
		@ModeId INT = NULL OUTPUT,
		@MerchantCode NVARCHAR(300) = NULL,
		@EmailAddress NVARCHAR(255) = NULL,
		@DrivePath NVARCHAR(255) = NULL,
		@SecretKey NVARCHAR(4000) = NULL,
		@SecondKey NVARCHAR(4000) = NULL,
		@Password NVARCHAR(4000) = NULL,
		@Partner NVARCHAR(300) = NULL,
		@Name NVARCHAR(100) = null,
		@Description NVARCHAR(4000) = NULL,
		@Gateway NVARCHAR(200) = NULL,
		@DisplaySequence INT = NULL,
		@Charge MONEY = NULL,
		@IsPercent BIT = NULL,
		@AllowRecharge BIT =NULL,
		@Action INT,
		@Status INT OUTPUT
	)
AS
	SET @Status = 99
	
	IF @Action = 2 -- 删除
	BEGIN -- 同时删除支付方式的支付货币
	
		SET XACT_ABORT ON
		DECLARE @intErrorCode INT
		
		BEGIN TRAN
		
		DELETE FROM Pay_PaymentCurrencys WHERE ModeId = @ModeId
		SET @intErrorCode = @@ERROR
		
		IF @intErrorCode = 0
        BEGIN
			DELETE FROM
				Pay_PaymentTypes
			WHERE
				ModeId = @ModeId 
				
			SET @intErrorCode = @@ERROR
		END
			
		IF @intErrorCode = 0
		BEGIN
			SET @Status = 0
			COMMIT TRAN
		END
		ELSE
			ROLLBACK TRAN
		
		RETURN
	END

	IF @Action = 0 -- 创建
	BEGIN	
        --- 修改显示序号
	    IF  @DisplaySequence IS NULL
           SET @DisplaySequence = (Select Max(DisplaySequence) From Pay_PaymentTypes ) + 1
        ELSE
           UPDATE Pay_PaymentTypes set DisplaySequence = DisplaySequence + 1 where DisplaySequence >= @DisplaySequence 
           
		INSERT INTO 
			Pay_PaymentTypes(MerchantCode, EmailAddress, SecretKey, SecondKey, Password, 
								Partner, [Name], Description, Gateway, DisplaySequence, Charge, IsPercent, AllowRecharge,DrivePath)
		VALUES 
			(@MerchantCode, @EmailAddress, @SecretKey, @SecondKey, @Password, 
			@Partner, @Name, @Description, @Gateway, @DisplaySequence, @Charge, @IsPercent, @AllowRecharge,@DrivePath)
		
		SELECT @ModeId = @@IDENTITY
		IF @@ROWCOUNT = 1
			SET @Status = 0
		
		RETURN
	END

	IF @Action = 1 -- 修改
	BEGIN
		--判断序号是否为空
       IF  @DisplaySequence IS NUll
          SET @DisplaySequence = (Select Max(DisplaySequence) From Pay_PaymentTypes) + 1
       Else IF @DisplaySequence != (Select DisplaySequence  From Pay_PaymentTypes where ModeId=@ModeId)
          UPDATE Pay_PaymentTypes set DisplaySequence = DisplaySequence + 1 where DisplaySequence >= @DisplaySequence 
       -- 如果@CreatorUserId是空的   则 用户编号不作为修改的条件
       
		UPDATE 
			Pay_PaymentTypes 
		SET 
			MerchantCode = @MerchantCode,
			EmailAddress = @EmailAddress,
			DrivePath=@DrivePath,
			SecretKey = @SecretKey,
			SecondKey = @SecondKey,
			Password = @Password,
			Partner = @Partner,
			[Name] = @Name,
			Description = @Description,
			Gateway = @Gateway,  --修改支付方式时不能修改网关类型
			DisplaySequence = @DisplaySequence,
			Charge = @Charge,
			IsPercent = @IsPercent,
			AllowRecharge=@AllowRecharge
		WHERE ModeId = @ModeId
		IF @@ROWCOUNT = 1
			SET @Status = 0
		
		RETURN
	END
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Pay_BalanceDetails_Create]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'CREATE PROCEDURE [sp_Pay_BalanceDetails_Create]
    (
      @UserId INT ,
      @TradeDate DATETIME ,
      @TradeType INT ,
      @Income MONEY ,
      @Balance MONEY ,
      @Remark NVARCHAR(2000) ,
      @RechargeId BIGINT ,
      @Status INT OUTPUT
    )
AS 
    SELECT  @Status = 99
    BEGIN
        SET XACT_ABORT ON
        DECLARE @intErrorCode INT
		
        BEGIN TRAN
		-- 添加一条预付款明细
        INSERT  INTO Pay_BalanceDetails
                ( UserId ,
                  TradeDate ,
                  TradeType ,
                  Income ,
                  Balance ,
                  Remark
                )
        VALUES  ( @UserId ,
                  @TradeDate ,
                  @TradeType ,
                  @Income ,
                  @Balance ,
                  @Remark
                )
	    --更新个人信息的预付款记录
        UPDATE  Accounts_UsersExp
        SET     balance = @Balance
        WHERE   UserId = @UserId
        SET @intErrorCode = @@RowCount
		
        IF @intErrorCode = 1 
            BEGIN
			-- 删除一条充值记录
                DELETE  FROM Pay_RechargeRequest
                WHERE   RechargeId = @RechargeId
                SET @intErrorCode = @intErrorCode + @@RowCount
            END
		
        IF @intErrorCode = 2 
            BEGIN
                SET @Status = 0
                COMMIT TRAN
            END
        ELSE 
            ROLLBACK TRAN
			
        RETURN
    END

' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Sp_MsgBox_SetSystemMsgStateToDel]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'---存储过程说明：设置系统消息为已读  @ReceiverID 接收者id @AdminId 后台的id  usertype 用户的类型  id 信息的id
CREATE  PROCEDURE [Sp_MsgBox_SetSystemMsgStateToDel]
    @ID INT ,
    @ReceiverID NVARCHAR(50) ,
    @UserType NVARCHAR(50)
AS 
    DECLARE @count1 INT
    DECLARE @count2 INT 
    SELECT  @count1 = COUNT(1)
    FROM    SA_SiteMessage
    WHERE   ID = @ID 
    SELECT  @count2 = COUNT(1)
    FROM    SA_SiteMessageLog
    WHERE   MessageID = @ID
            AND ReceiverID = @ReceiverID
            AND MessageType = @UserType
    IF ( @count1 > 0 ) 
        BEGIN
            IF ( @count2 = 0 ) 
                BEGIN
                    INSERT  INTO SA_SiteMessageLog
                            ( MessageID ,
                              MessageType ,
                              MessageState ,
                              [ReceiverID]
                            )
                    VALUES  ( @ID ,
                              @UserType ,
                              ''1'' ,
                              @ReceiverID
                            )

                END
            ELSE 
                BEGIN
                    UPDATE  SA_SiteMessageLog
                    SET     MessageState = 1
                    WHERE   MessageID = @ID
                            AND ReceiverID = @ReceiverID
                            AND MessageType = @UserType
                
                END
                
        END
  
   

 ' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Sp_MsgBox_SetSystemMsgStateToAlreadyRead]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'---存储过程说明：设置系统消息为已读  @ReceiverID 接收者id @AdminId 后台的id  usertype 用户的类型  id 信息的id
CREATE  PROCEDURE [Sp_MsgBox_SetSystemMsgStateToAlreadyRead]
    @ID INT ,
    @ReceiverID NVARCHAR(50) ,
    @UserType NVARCHAR(50)
AS 
    DECLARE @count1 INT
    DECLARE @count2 INT 
    SELECT  @count1 = COUNT(1)
    FROM    SA_SiteMessage
    WHERE   ID = @ID 
    SELECT  @count2 = COUNT(1)
    FROM    SA_SiteMessageLog
    WHERE   MessageID = @ID
            AND ReceiverID = @ReceiverID
            AND MessageType = @UserType
    IF ( @count1 > 0 ) 
        BEGIN
            IF ( @count2 = 0 ) 
                BEGIN
                    INSERT  INTO SA_SiteMessageLog
                            ( MessageID ,
                              MessageType ,
                              MessageState ,
                              [ReceiverID]
                            )
                    VALUES  ( @ID ,
                              @UserType ,
                              ''0'' ,
                              @ReceiverID
                            )

                END
        END
  
   

 ' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.views WHERE object_id = OBJECT_ID(N'[View_VideoAlbum]'))
EXEC sp_executesql @statement = N'CREATE VIEW [View_VideoAlbum]
AS
SELECT     CMSVA.AlbumID, CMSVA.AlbumName, CMSVA.CoverVideo, CMSVA.Description, CMSVA.CreatedUserID, CMSVA.CreatedDate, CMSVA.LastUpdateUserID, 
                      CMSVA.LastUpdatedDate, CMSVA.State, CMSVA.Sequence, CMSVA.Privacy, CMSVA.PvCount, Accounts_Users.UserID, Accounts_Users.UserName, 
                      Accounts_Users.Password, Accounts_Users.TrueName, Accounts_Users.Sex, Accounts_Users.Phone, Accounts_Users.Email, 
                      Accounts_Users.EmployeeID, Accounts_Users.DepartmentID, Accounts_Users.Activity, Accounts_Users.UserType, Accounts_Users.Style, 
                      Accounts_Users.User_iCreator, Accounts_Users.User_dateCreate, Accounts_Users.User_dateValid, Accounts_Users.User_dateExpire, 
                      Accounts_Users.User_iApprover, Accounts_Users.User_dateApprove, Accounts_Users.User_iApproveState, Accounts_Users.User_cLang, 
                      CMSVAS.AlbumID AS Expr1, CMSVAS.AlbumName AS Expr2, CMSVAS.CoverVideo AS Expr3, CMSVAS.Description AS Expr4, CMSVAS.CreatedUserID AS Expr5, 
                      CMSVAS.CreatedDate AS Expr6, CMSVAS.LastUpdateUserID AS Expr7, CMSVAS.LastUpdatedDate AS Expr8, CMSVAS.State AS Expr9, CMSVAS.Sequence AS Expr10, 
                      CMSVAS.Privacy AS Expr11, CMSVAS.PvCount AS Expr12, CMSVAS.UserID AS Expr13, CMSVAS.UserName AS Expr14, CMSVAS.Password AS Expr15, 
                      CMSVAS.TrueName AS Expr16, CMSVAS.Sex AS Expr17, CMSVAS.Phone AS Expr18, CMSVAS.Email AS Expr19, CMSVAS.EmployeeID AS Expr20, 
                      CMSVAS.DepartmentID AS Expr21, CMSVAS.Activity AS Expr22, CMSVAS.UserType AS Expr23, CMSVAS.Style AS Expr24, CMSVAS.User_iCreator AS Expr25, 
                      CMSVAS.User_dateCreate AS Expr26, CMSVAS.User_dateValid AS Expr27, CMSVAS.User_dateExpire AS Expr28, CMSVAS.User_iApprover AS Expr29, 
                      CMSVAS.User_dateApprove AS Expr30, CMSVAS.User_iApproveState AS Expr31, CMSVAS.User_cLang AS Expr32, CMSVAS.CreatedUserName, 
                      Accounts_Users.UserName AS LastUpdateUserName
FROM         CMS_VideoAlbum AS CMSVA LEFT OUTER JOIN
                      Accounts_Users ON Accounts_Users.UserID = CMSVA.LastUpdateUserID LEFT OUTER JOIN
                          (SELECT     CMV.AlbumID, CMV.AlbumName, CMV.CoverVideo, CMV.Description, CMV.CreatedUserID, CMV.CreatedDate, CMV.LastUpdateUserID, 
                                                   CMV.LastUpdatedDate, CMV.State, CMV.Sequence, CMV.Privacy, CMV.PvCount, Accounts_Users_1.UserID, Accounts_Users_1.UserName, 
                                                   Accounts_Users_1.Password, Accounts_Users_1.TrueName, Accounts_Users_1.Sex, Accounts_Users_1.Phone, Accounts_Users_1.Email, 
                                                   Accounts_Users_1.EmployeeID, Accounts_Users_1.DepartmentID, Accounts_Users_1.Activity, Accounts_Users_1.UserType, Accounts_Users_1.Style, 
                                                   Accounts_Users_1.User_iCreator, Accounts_Users_1.User_dateCreate, Accounts_Users_1.User_dateValid, Accounts_Users_1.User_dateExpire, 
                                                   Accounts_Users_1.User_iApprover, Accounts_Users_1.User_dateApprove, Accounts_Users_1.User_iApproveState, Accounts_Users_1.User_cLang, 
                                                   Accounts_Users_1.UserName AS CreatedUserName
                            FROM          CMS_VideoAlbum AS CMV LEFT OUTER JOIN
                                                   Accounts_Users AS Accounts_Users_1 ON Accounts_Users_1.UserID = CMV.CreatedUserID) AS CMSVAS ON CMSVAS.AlbumID = CMSVA.AlbumID
'
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.views WHERE object_id = OBJECT_ID(N'[View_Video]'))
EXEC sp_executesql @statement = N'CREATE VIEW [View_Video]
AS
SELECT     CMSV.VideoID, CMSV.Title, CMSV.Description, CMSV.AlbumID, CMSV.CreatedUserID, CMSV.CreatedDate, CMSV.LastUpdateUserID, CMSV.LastUpdateDate, 
                      CMSV.Sequence, CMSV.VideoClassID, CMSV.IsRecomend, CMSV.ImageUrl, CMSV.ThumbImageUrl, CMSV.NormalImageUrl, CMSV.TotalTime, CMSV.TotalComment, 
                      CMSV.TotalFav, CMSV.TotalUp, CMSV.Reference, CMSV.Tags, CMSV.VideoUrl, CMSV.UrlType, CMSV.VideoFormat, CMSV.Domain, CMSV.Grade, CMSV.Attachment, 
                      CMSV.Privacy, CMSV.State, CMSV.Remark, CMSV.PVCount, Accounts_Users.UserID, Accounts_Users.UserName, Accounts_Users.Password, 
                      Accounts_Users.TrueName, Accounts_Users.Sex, Accounts_Users.Phone, Accounts_Users.Email, Accounts_Users.EmployeeID, 
                      Accounts_Users.DepartmentID, Accounts_Users.Activity, Accounts_Users.UserType, Accounts_Users.Style, Accounts_Users.User_iCreator, 
                      Accounts_Users.User_dateCreate, Accounts_Users.User_dateValid, Accounts_Users.User_dateExpire, Accounts_Users.User_iApprover, 
                      Accounts_Users.User_dateApprove, Accounts_Users.User_iApproveState, Accounts_Users.User_cLang, CMSVS_1.VideoID AS Expr1, 
                      CMSVS_1.Title AS Expr2, CMSVS_1.Description AS Expr3, CMSVS_1.AlbumID AS Expr4, CMSVS_1.CreatedUserID AS Expr5, CMSVS_1.CreatedDate AS Expr6, 
                      CMSVS_1.LastUpdateUserID AS Expr7, CMSVS_1.LastUpdateDate AS Expr8, CMSVS_1.Sequence AS Expr9, CMSVS_1.VideoClassID AS Expr10, 
                      CMSVS_1.IsRecomend AS Expr11, CMSVS_1.ImageUrl AS Expr12, CMSVS_1.ThumbImageUrl AS Expr13, CMSVS_1.NormalImageUrl AS Expr14, 
                      CMSVS_1.TotalTime AS Expr15, CMSVS_1.TotalComment AS Expr16, CMSVS_1.TotalFav AS Expr17, CMSVS_1.TotalUp AS Expr18, CMSVS_1.Reference AS Expr19, 
                      CMSVS_1.Tags AS Expr20, CMSVS_1.VideoUrl AS Expr21, CMSVS_1.UrlType AS Expr22, CMSVS_1.VideoFormat AS Expr23, CMSVS_1.Domain AS Expr24, 
                      CMSVS_1.Grade AS Expr25, CMSVS_1.Attachment AS Expr26, CMSVS_1.Privacy AS Expr27, CMSVS_1.State AS Expr28, CMSVS_1.Remark AS Expr29, 
                      CMSVS_1.PVCount AS Expr30, CMSVS_1.UserID AS Expr31, CMSVS_1.UserName AS Expr32, CMSVS_1.Password AS Expr33, CMSVS_1.TrueName AS Expr34, 
                      CMSVS_1.Sex AS Expr35, CMSVS_1.Phone AS Expr36, CMSVS_1.Email AS Expr37, CMSVS_1.EmployeeID AS Expr38, CMSVS_1.DepartmentID AS Expr39, 
                      CMSVS_1.Activity AS Expr40, CMSVS_1.UserType AS Expr41, CMSVS_1.Style AS Expr42, CMSVS_1.User_iCreator AS Expr43, CMSVS_1.User_dateCreate AS Expr44, 
                      CMSVS_1.User_dateValid AS Expr45, CMSVS_1.User_dateExpire AS Expr46, CMSVS_1.User_iApprover AS Expr47, CMSVS_1.User_dateApprove AS Expr48, 
                      CMSVS_1.User_iApproveState AS Expr49, CMSVS_1.User_cLang AS Expr50, CMSVS_1.CreatedUserName, CMSVA.AlbumID AS Expr51, CMSVA.AlbumName, 
                      CMSVA.CoverVideo, CMSVA.Description AS Expr52, CMSVA.CreatedUserID AS Expr53, CMSVA.CreatedDate AS Expr54, CMSVA.LastUpdateUserID AS Expr55, 
                      CMSVA.LastUpdatedDate, CMSVA.State AS Expr56, CMSVA.Sequence AS Expr57, CMSVA.Privacy AS Expr58, CMSVA.PvCount AS Expr59, 
                      CMSVC.VideoClassID AS Expr60, CMSVC.VideoClassName, CMSVC.ParentID, CMSVC.Sequence AS Expr61, CMSVC.Path, CMSVC.Depth, 
                      Accounts_Users.UserName AS LastUpdateUserName, CMSVA.AlbumName AS Expr62, CMSVC.VideoClassName AS Expr63
FROM         CMS_Video AS CMSV LEFT OUTER JOIN
                      Accounts_Users ON Accounts_Users.UserID = CMSV.LastUpdateUserID LEFT OUTER JOIN
                          (SELECT     CMSVS.VideoID, CMSVS.Title, CMSVS.Description, CMSVS.AlbumID, CMSVS.CreatedUserID, CMSVS.CreatedDate, CMSVS.LastUpdateUserID, 
                                                   CMSVS.LastUpdateDate, CMSVS.Sequence, CMSVS.VideoClassID, CMSVS.IsRecomend, CMSVS.ImageUrl, CMSVS.ThumbImageUrl, 
                                                   CMSVS.NormalImageUrl, CMSVS.TotalTime, CMSVS.TotalComment, CMSVS.TotalFav, CMSVS.TotalUp, CMSVS.Reference, CMSVS.Tags, CMSVS.VideoUrl, 
                                                   CMSVS.UrlType, CMSVS.VideoFormat, CMSVS.Domain, CMSVS.Grade, CMSVS.Attachment, CMSVS.Privacy, CMSVS.State, CMSVS.Remark, 
                                                   CMSVS.PVCount, Accounts_Users_1.UserID, Accounts_Users_1.UserName, Accounts_Users_1.Password, Accounts_Users_1.TrueName, 
                                                   Accounts_Users_1.Sex, Accounts_Users_1.Phone, Accounts_Users_1.Email, Accounts_Users_1.EmployeeID, Accounts_Users_1.DepartmentID, 
                                                   Accounts_Users_1.Activity, Accounts_Users_1.UserType, Accounts_Users_1.Style, Accounts_Users_1.User_iCreator, 
                                                   Accounts_Users_1.User_dateCreate, Accounts_Users_1.User_dateValid, Accounts_Users_1.User_dateExpire, Accounts_Users_1.User_iApprover, 
                                                   Accounts_Users_1.User_dateApprove, Accounts_Users_1.User_iApproveState, Accounts_Users_1.User_cLang, 
                                                   Accounts_Users_1.UserName AS CreatedUserName
                            FROM          CMS_Video AS CMSVS LEFT OUTER JOIN
                                                   Accounts_Users AS Accounts_Users_1 ON Accounts_Users_1.UserID = CMSVS.CreatedUserID) AS CMSVS_1 ON 
                      CMSVS_1.VideoID = CMSV.VideoID LEFT OUTER JOIN
                      CMS_VideoAlbum AS CMSVA ON CMSVA.AlbumID = CMSV.AlbumID LEFT OUTER JOIN
                      CMS_VideoClass AS CMSVC ON CMSVC.VideoClassID = CMSV.VideoClassID
'
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.views WHERE object_id = OBJECT_ID(N'[View_ContentClass]'))
EXEC sp_executesql @statement = N'CREATE VIEW [View_ContentClass]
AS
SELECT     CMSCC.ClassID, CMSCC.ClassName, CMSCC.ClassIndex, CMSCC.Sequence, CMSCC.ParentId, CMSCC.State, CMSCC.AllowSubclass, CMSCC.AllowAddContent, 
                      CMSCC.ImageUrl, CMSCC.Description, CMSCC.Keywords, CMSCC.ClassTypeID, CMSCC.ClassModel, CMSCC.PageModelName, CMSCC.CreatedDate, 
                      CMSCC.CreatedUserID, CMSCC.Path, CMSCC.Depth, CMSCC.Remark, CMSCT.ClassTypeName
FROM         CMS_ContentClass AS CMSCC LEFT OUTER JOIN
                      Accounts_Users AS AU ON AU.UserID = CMSCC.CreatedUserID LEFT OUTER JOIN
                      CMS_ClassType AS CMSCT ON CMSCT.ClassTypeID = CMSCC.ClassTypeID
'
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.views WHERE object_id = OBJECT_ID(N'[View_Content]'))
EXEC sp_executesql @statement = N'CREATE VIEW [View_Content]
AS
SELECT     CMSC.ContentID, CMSC.Title, CMSC.SubTitle, CMSC.Summary, CMSC.Description, CMSC.ImageUrl, CMSC.CreatedUserID, CMSC.LastEditUserID, CMSC.LastEditDate, 
                      CMSC.LinkUrl, CMSC.PvCount, CMSC.State, CMSC.ClassID, CMSC.Keywords, CMSC.Sequence, CMSC.IsRecomend, CMSC.IsHot, CMSC.IsColor, CMSC.IsTop, 
                      CMSC.Attachment, CMSC.Remary, AU.UserName, CMSCC.ClassName, CMSC.ThumbImageUrl, CMSC.NormalImageUrl, CMSC.CreatedDate, CMSC.TotalComment, 
                      CMSC.TotalFav, CMSC.TotalSupport, CMSC.TotalShare, CMSCC.ClassModel
FROM         CMS_Content AS CMSC LEFT OUTER JOIN
                      Accounts_Users AS AU ON AU.UserID = CMSC.CreatedUserID LEFT OUTER JOIN
                      CMS_ContentClass AS CMSCC ON CMSC.ClassID = CMSCC.ClassID
'
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_UserAttendance_Statistics]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'-- =============================================
-- Author:		<Author:Ben>
-- Create date: <Create Date:2013年01月09日 21:05:00>
-- Description:	<Description:根据日期统计用户考勤>
-- =============================================
CREATE PROCEDURE [sp_UserAttendance_Statistics]
    @SqlWhere NVARCHAR(3000) = ''''
AS 
    DECLARE @ColumnNames VARCHAR(3000)
    SET @ColumnNames = ''''
    SELECT  @ColumnNames = @ColumnNames + ''['' + TypeName + ''],''
    FROM    ( SELECT DISTINCT
                        TypeName
              FROM      JLT_AttendanceType
            ) T

    SET @ColumnNames = LEFT(@ColumnNames, LEN(@ColumnNames) - 1)

    DECLARE @selectSQL NVARCHAR(3000)

    SET @selectSQL = ''SELECT  *
FROM    ( SELECT    U.UserID ,
                    U.UserName ,
                    AT.TypeName ,
                    COUNT(UA.ID) [COUNT]
          FROM      JLT_AttendanceType AT
                    RIGHT JOIN JLT_UserAttendance UA ON AT.TypeID = UA.TypeID
                    RIGHT JOIN Accounts_Users U ON UA.UserID = U.UserID
          WHERE     ''+@SqlWhere+'' 
          GROUP BY  U.UserID ,
                    U.UserName ,
                    AT.TypeName 
        ) A PIVOT ( SUM(A.[COUNT]) FOR TypeName IN ( ''+@ColumnNames+'' ) ) T
ORDER BY T.UserID
''
    EXEC sp_executesql @selectSQL
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_SNS_ImageDeleteAction]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'
-- =============================================
-- Author:		<Ben>
-- Create date: <2012年11月6日 16:01:46>
-- Description:	<图片/商品删除操作>
-- =============================================
CREATE PROCEDURE [sp_SNS_ImageDeleteAction]
    (
      @Type INT ,	-- 1 图片 | 2 商品
      @TargetIds NVARCHAR(1000)
    )
AS 
    BEGIN
        SET XACT_ABORT ON
        BEGIN TRANSACTION
        
        DECLARE @intErrorCode INT --定义错误计数器
        SET @intErrorCode = 0 --无错误为0
        
        IF ( @Type <> 1
             AND @Type <> 2
           )
            OR LEN(@TargetIds) < 1 
            BEGIN
                COMMIT TRANSACTION --结束事务
                RETURN 0
            END
        
        
        --删除记录数 用于更新数量
        DECLARE @TargetCount INT
        SET @TargetCount = 0
		/*内存临时表 基础数据*/
        DECLARE @TableTarget TABLE
            (
              TargetId INT ,
              TargetImageURL NVARCHAR(300) ,
              ThumbImageUrl NVARCHAR(300) ,
              NormalImageUrl NVARCHAR(300) ,
              CreatedUserId INT
            )
            
        
        --1.获取要删除的数据
        IF @Type = 2 
            BEGIN
				--加载产品数据 
                INSERT  INTO @TableTarget
                        ( TargetId ,
                          TargetImageURL ,
                          ThumbImageUrl ,
                          NormalImageUrl ,
                          CreatedUserId
                        )
                        ( SELECT    P.ProductID ,
                                    NULL , -- 产品无原图
                                    P.ThumbImageUrl ,
                                    P.NormalImageUrl ,
                                    P.CreateUserId
                          FROM      SNS_Products P ,
                                    F_SplitToInt(@TargetIds, '','') T
                          WHERE     P.ProductID = T.UnitInt
                        )
                
            END
        ELSE 
            BEGIN
				--加载图片数据
                INSERT  INTO @TableTarget
                        ( TargetId ,
                          TargetImageURL ,
                          ThumbImageUrl ,
                          NormalImageUrl ,
                          CreatedUserId
                        )
                        ( SELECT    P.PhotoID ,
                                    P.PhotoUrl ,
                                    P.ThumbImageUrl ,
                                    P.NormalImageUrl,
                                    P.CreatedUserId
                          FROM      SNS_Photos P ,
                                    F_SplitToInt(@TargetIds, '','') T
                          WHERE     P.PhotoID = T.UnitInt
                        )
            END
        SET @TargetCount = @@ROWCOUNT
        
                
        --2.更新用户商品数
        IF @Type = 2 
            BEGIN
                UPDATE  UE
                SET     UE.ProductsCount = ( CASE WHEN UE.ProductsCount > T.tcount
                                                  THEN UE.ProductsCount
                                                       - T.tcount
                                                  ELSE 0
                                             END )
                FROM    Accounts_UsersExp UE ,
                        ( SELECT    COUNT(*) tcount ,
                                    CreatedUserId
                          FROM      @TableTarget
                          GROUP BY  CreatedUserId
                        ) T
                WHERE   UE.UserID = T.CreatedUserId
                SET @intErrorCode = @intErrorCode + @@ERROR
            END
       
        
        --3.更新用户ShareCount        
        UPDATE  UE
        SET     UE.ShareCount = ( CASE WHEN UE.ShareCount > T.tcount
                                       THEN UE.ShareCount - T.tcount
                                       ELSE 0
                                  END )
        FROM    Accounts_UsersExp UE ,
                ( SELECT    COUNT(*) tcount ,
                            CreatedUserId
                  FROM      @TableTarget
                  GROUP BY  CreatedUserId
                ) T
        WHERE   UE.UserID = T.CreatedUserId         
        SET @intErrorCode = @intErrorCode + @@ERROR
        
  
  
		--4.删除评论表中对应的数据
        DELETE  C
        FROM    SNS_Comments C ,
                @TableTarget T
        WHERE   C.TargetId = T.TargetId
                AND C.Type = @Type
        SET @intErrorCode = @intErrorCode + @@ERROR
		
		--5.删除用户喜欢数据表信息
		--5.1更新用户对应图片被喜欢数
        UPDATE  UE
        SET     UE.FavoritedCount = ( CASE WHEN UE.FavoritedCount > PC.pcount
                                           THEN UE.FavoritedCount - PC.pcount
                                           ELSE 0
                                      END )
        FROM    Accounts_UsersExp UE ,
                ( SELECT    COUNT(*) pcount ,
                            T.CreatedUserId
                  FROM      SNS_UserFavourite UF ,
                            @TableTarget T
                  WHERE     UF.TargetID = T.TargetID
                            AND UF.Type = @Type - 1
                  GROUP BY  T.CreatedUserId
                ) PC
        WHERE   UE.UserID = PC.CreatedUserId         
        SET @intErrorCode = @intErrorCode + @@ERROR
        
		--5.2更新用户喜欢数
        UPDATE  UE
        SET     UE.FavouritesCount = ( CASE WHEN UE.FavouritesCount > PC.pcount
                                            THEN UE.FavouritesCount
                                                 - PC.pcount
                                            ELSE 0
                                       END )
        FROM    Accounts_UsersExp UE ,
                ( SELECT    COUNT(*) pcount ,
                            UF.CreatedUserID
                  FROM      SNS_UserFavourite UF ,
                            @TableTarget U
                  WHERE     UF.TargetID = U.TargetId
                            AND UF.Type = @Type - 1
                  GROUP BY  UF.CreatedUserID
                ) PC
        WHERE   UE.UserID = PC.CreatedUserID         
        SET @intErrorCode = @intErrorCode + @@ERROR
        
        DELETE  UF
        FROM    SNS_UserFavourite UF ,
                @TableTarget T
        WHERE   UF.TargetID = T.TargetId
                AND UF.Type = @Type - 1
        SET @intErrorCode = @intErrorCode + @@ERROR
          
        --6删除SNS_Posts中信息
        DECLARE @PostCount INT
        SET @PostCount = 0
        
        SELECT  @PostCount = COUNT(PO.PostID)
        FROM    SNS_Posts PO ,
                @TableTarget T
        WHERE   PO.TargetId = T.TargetID
                AND PO.Type = @Type
                
        IF ( @PostCount > 0 ) 
            BEGIN
        	/*删除SNS_Comments中图片的评论信息*/
                DELETE  CO
                FROM    SNS_Comments CO ,
                        @TableTarget T
                WHERE   CO.TargetId = T.TargetID
                        AND CO.Type = @Type
                SET @intErrorCode = @intErrorCode + @@ERROR
            END
                
        DELETE  POST
        FROM    SNS_Posts POST ,
                @TableTarget T
        WHERE   T.TargetID = POST.TargetId
                AND POST.Type = @Type
        
        
        /*1、根据Type 和TargetID 从 SNS_GroupTopics 表中查询出对应的 TopicID
          2、删除 SNS_GroupTopicReply对应信息  之前 更新 SNS_Groups TopicReplyCount -Count  TopicCount 更新   
          3、更新 CreatedUserID userExp 中的FavTopicCount   TopicCount
          4、删除SNS_GroupTopicFav   删除SNS_GroupTopics 
        */
        
        /*更新SNS_Groups中图片/商品TopicReplyCount*/        
        UPDATE  G
        SET     G.TopicReplyCount = ( CASE WHEN G.TopicReplyCount > GP.gtpcount
                                           THEN G.TopicReplyCount
                                                - GP.gtpcount
                                           ELSE 0
                                      END )
        FROM    SNS_Groups G ,
                ( SELECT    COUNT(GTP.GroupID) gtpcount ,
                            GTP.GroupID
                  FROM      SNS_GroupTopicReply GTP ,
                            ( SELECT    GT.TopicID
                              FROM      SNS_GroupTopics GT ,
                                        @TableTarget T
                              WHERE     GT.TargetID = T.TargetID
                                        AND GT.Type = @Type
                            ) GT
                  WHERE     GTP.TopicID = GT.TopicID
                  GROUP BY  GTP.GroupID
                ) GP
        WHERE   G.GroupID = GP.GroupID
        SET @intErrorCode = @intErrorCode + @@ERROR
        
        
        /*删除SNS_GroupTopicReply中图片/商品的信息*/
        DELETE  GTR
        FROM    SNS_GroupTopicReply GTR ,
                ( SELECT    GT.TopicID
                  FROM      SNS_GroupTopics GT ,
                            @TableTarget T
                  WHERE     GT.TargetID = T.TargetID
                            AND GT.Type = @Type
                ) GT
        WHERE   GTR.TopicID = GT.TopicID
        SET @intErrorCode = @intErrorCode + @@ERROR
        
        /*更新SNS_Groups中图片/商品的TopicCount*/
        UPDATE  G
        SET     G.TopicCount = ( CASE WHEN G.TopicReplyCount > GT.gtcount
                                      THEN G.TopicReplyCount - GT.gtcount
                                      ELSE 0
                                 END )
        FROM    SNS_Groups G ,
                ( SELECT    COUNT(GT.GroupID) gtcount ,
                            GT.GroupID
                  FROM      SNS_GroupTopics GT ,
                            @TableTarget T
                  WHERE     GT.TargetID = T.TargetID
                            AND GT.Type = @Type
                  GROUP BY  GT.GroupID
                ) GT
        WHERE   G.GroupID = GT.GroupID      
        SET @intErrorCode = @intErrorCode + @@ERROR
                
        /*更新Accounts_UsersExp中的FavTopicCount*/
        UPDATE  UE
        SET     UE.FavTopicCount = ( CASE WHEN UE.FavTopicCount > GTF.gtfcount
                                          THEN UE.FavTopicCount - GTF.gtfcount
                                          ELSE 0
                                     END )
        FROM    Accounts_UsersExp UE ,
                ( SELECT    COUNT(GTF.TopicID) gtfcount ,
                            GT.CreatedUserId
                  FROM      SNS_GroupTopicFav GTF ,
                            ( SELECT    GT.TopicID ,
                                        T.CreatedUserId
                              FROM      SNS_GroupTopics GT ,
                                        @TableTarget T
                              WHERE     GT.TargetID = T.TargetID
                                        AND GT.Type = @Type
                            ) GT
                  WHERE     GTF.TopicID = GT.TopicID
                  GROUP BY  GT.CreatedUserId
                ) GTF
        WHERE   UE.UserID = GTF.CreatedUserId
        SET @intErrorCode = @intErrorCode + @@ERROR
        
        /*更新Accounts_UsersExp中的TopicCount*/
        
        UPDATE  UE
        SET     UE.TopicCount = ( CASE WHEN UE.TopicCount > GT.gtcount
                                       THEN UE.TopicCount - GT.gtcount
                                       ELSE 0
                                  END )
        FROM    Accounts_UsersExp UE ,
                ( SELECT    COUNT(GT.TopicID) gtcount ,
                            GT.CreatedUserID
                  FROM      SNS_GroupTopics GT ,
                            @TableTarget T
                  WHERE     GT.TargetID = T.TargetID
                            AND GT.Type = @Type
                  GROUP BY  GT.CreatedUserID
                ) GT
        WHERE   UE.UserID = GT.CreatedUserID
        SET @intErrorCode = @intErrorCode + @@ERROR
        
        /*删除SNS_GroupTopicFav中图片/商品信息*/
        DELETE  GTF
        FROM    SNS_GroupTopicFav GTF ,
                ( SELECT    GT.TopicID
                  FROM      SNS_GroupTopics GT ,
                            @TableTarget T
                  WHERE     GT.TargetID = T.TargetID
                            AND GT.Type = @Type
                ) GT
        WHERE   GTF.TopicID = GT.TopicID
        SET @intErrorCode = @intErrorCode + @@ERROR
        
        /*删除SNS_GroupTopics中图片/商品信息*/
        DELETE  GT
        FROM    SNS_GroupTopics GT ,
                @TableTarget T
        WHERE   GT.TargetID = T.TargetID
                AND GT.Type = @Type
        SET @intErrorCode = @intErrorCode + @@ERROR
        
        UPDATE  UA
        SET     PhotoCount = ( CASE WHEN UA.PhotoCount > UAD.uadcount
                                    THEN UA.PhotoCount - UAD.uadcount
                                    ELSE 0
                               END )
        FROM    SNS_UserAlbums UA ,
                ( SELECT    COUNT(UAD.TargetID) uadcount ,
                            UAD.AlbumID
                  FROM      SNS_UserAlbumDetail UAD ,
                            @TableTarget T
                  WHERE     UAD.TargetID = T.TargetID
                            AND UAD.Type = @Type - 1
                  GROUP BY  UAD.AlbumID
                ) UAD
        WHERE   UA.AlbumID = UAD.AlbumID
        SET @intErrorCode = @intErrorCode + @@ERROR
        
		
        DELETE  UAD
        FROM    SNS_UserAlbumDetail UAD ,
                @TableTarget T
        WHERE   UAD.TargetID = T.TargetID
                AND UAD.Type = @Type - 1
        SET @intErrorCode = @intErrorCode + @@ERROR
		
        IF @Type = 2 
            BEGIN
        			/*删除产品表用户添加的信息*/
                DELETE  P
                FROM    SNS_Products P ,
                        @TableTarget T
                WHERE   P.ProductID = T.TargetID
                        AND P.CreateUserId = T.CreatedUserId
                SET @intErrorCode = @intErrorCode + @@ERROR
            END
        ELSE 
            BEGIN
        	
		/*删除图片表用户上传的信息*/
                DELETE  P
                FROM    SNS_Photos P ,
                        @TableTarget T
                WHERE   P.PhotoID = T.TargetID
                        AND P.CreatedUserID = T.CreatedUserId
                SET @intErrorCode = @intErrorCode + @@ERROR
            END
            
        
        IF @intErrorCode <> 0 
            BEGIN
                ROLLBACK TRANSACTION--事务回滚语句
                RETURN 0
            END
        ELSE 
            BEGIN
                COMMIT TRANSACTION--事务提交语句
                
        --返回结果集
                SELECT  *
                FROM    @TableTarget
                RETURN 1
            END
    END' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_SNS_CommentDeleteAction]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'
-- =============================================
-- Author:		<Ben>
-- Create date: <2012年11月6日 16:01:46>
-- Description:	<图片/商品删除操作>
-- =============================================
CREATE PROCEDURE [sp_SNS_CommentDeleteAction]
    (
      @TargetIds NVARCHAR(1000)
    )
AS 
    BEGIN
        SET XACT_ABORT ON
        BEGIN TRANSACTION
        
        DECLARE @intErrorCode INT --定义错误计数器
        SET @intErrorCode = 0 --无错误为0
        
        IF (LEN(@TargetIds) < 1)
            BEGIN
                COMMIT TRANSACTION --结束事务
                RETURN 0
            END
        
        --更新专辑相关的评论个数
            BEGIN
             UPDATE ua
             SET    CommentsCount = ( CASE WHEN ua.CommentsCount > T.tcount
                                           THEN UA.CommentsCount - T.tcount
                                           ELSE 0
                                      END )
             FROM   SNS_UserAlbums ua ,
                    ( SELECT    COUNT(TargetId) tcount ,
                                TargetId
                      FROM      SNS_Comments
                      WHERE     Type = 3
                                AND CommentID IN (SELECT * FROM  F_SplitToInt(@TargetIds, '','') T )
                      GROUP BY  TargetId
                    ) T
             WHERE  ua.AlbumID = T.TargetId

                SET @intErrorCode = @intErrorCode + @@ERROR
            END
        --更新图片相关的评论个数
          BEGIN
             UPDATE sp
             SET    CommentCount = ( CASE WHEN sp.CommentCount > T.tcount
                                           THEN sp.CommentCount - T.tcount
                                           ELSE 0
                                      END )
             FROM   SNS_Photos sp ,
                    ( SELECT    COUNT(TargetId) tcount ,
                                TargetId
                      FROM      SNS_Comments
                      WHERE     Type = 1
                                AND CommentID IN (SELECT * FROM  F_SplitToInt(@TargetIds, '','') T )
                      GROUP BY  TargetId
                    ) T
             WHERE  sp.PhotoID = T.TargetId

                SET @intErrorCode = @intErrorCode + @@ERROR
            END
            
            --更新商品相关的评论个数
             BEGIN
             UPDATE st
             SET    CommentCount = ( CASE WHEN st.CommentCount > T.tcount
                                           THEN st.CommentCount - T.tcount
                                           ELSE 0
                                      END )
             FROM   SNS_Products st ,
                    ( SELECT    COUNT(TargetId) tcount ,
                                TargetId
                      FROM      SNS_Comments
                      WHERE     Type = 2
                                AND CommentID IN (SELECT * FROM  F_SplitToInt(@TargetIds, '','') T )
                      GROUP BY  TargetId
                    ) T
             WHERE  st.ProductID = T.TargetId

                SET @intErrorCode = @intErrorCode + @@ERROR
            END
    
    
     --更新一般动态的评论个数
             BEGIN
             UPDATE ps
             SET    CommentCount = ( CASE WHEN ps.CommentCount > T.tcount
                                           THEN ps.CommentCount - T.tcount
                                           ELSE 0
                                      END )
             FROM   SNS_Posts ps ,
                    ( SELECT    COUNT(TargetId) tcount ,
                                TargetId
                      FROM      SNS_Comments
                      WHERE     Type = 0
                                AND CommentID IN (SELECT * FROM  F_SplitToInt(@TargetIds, '','') T )
                      GROUP BY  TargetId
                    ) T
             WHERE  ps.PostID = T.TargetId

                SET @intErrorCode = @intErrorCode + @@ERROR
            END
        
           BEGIN
           
           DELETE SNS_Comments WHERE CommentID IN (SELECT * FROM  F_SplitToInt(@TargetIds, '','') T )
           
           END
        IF @intErrorCode <> 0 
            BEGIN
                ROLLBACK TRANSACTION--事务回滚语句
                RETURN 0
            END
        ELSE 
            BEGIN
                COMMIT TRANSACTION--事务提交语句
                
        --返回结果集
                RETURN 1
            END
    END' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_SNS_Category_SwapSequence]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'-- =============================================
-- Author:		<Author:Rock>
-- Create date: <Create Date:2012年11月8日 17:01:51>
-- Description:	<Description:SNS分类排序>
-- =============================================
CREATE PROCEDURE [sp_SNS_Category_SwapSequence]
    @CategoryId INT ,
    @ZIndex INT
AS 
    BEGIN
        DECLARE @Path NVARCHAR(4000)
        DECLARE @ParentID INT ,
            @Sequence INT
	
        DECLARE @swap_Path NVARCHAR(4000)
        DECLARE @swap_CategoryId INT
	
        SELECT  @Path = Path ,
                @ParentID = ParentID ,
                @Sequence = Sequence
        FROM    SNS_Categories
        WHERE   CategoryId = @CategoryId
        IF @Path IS NULL
            OR @ParentID IS NULL 
            RETURN
		
        IF @ZIndex = 0 
            SELECT TOP 1
                    @swap_Path = Path ,
                    @swap_CategoryId = CategoryId
            FROM    SNS_Categories
            WHERE   ParentID = @ParentID
                    AND Sequence < @Sequence
            ORDER BY Sequence DESC
        ELSE 
            SELECT TOP 1
                    @swap_Path = Path ,
                    @swap_CategoryId = CategoryId
            FROM    SNS_Categories
            WHERE   ParentID = @ParentID
                    AND Sequence > @Sequence
            ORDER BY Sequence ASC
	
        IF @swap_Path IS NULL
            OR @swap_CategoryId IS NULL 
            RETURN ;
	
        SET XACT_ABORT ON
        BEGIN TRAN
	
        DECLARE @tempTable TABLE ( CategoryId INT )
        DECLARE @Count INT ,
            @SwapCount INT
	
        INSERT  INTO @tempTable
                SELECT  CategoryId
                FROM    SNS_Categories
                WHERE   CategoryId = @CategoryId
                        OR Path LIKE '''' + @Path + ''|%''
        SET @Count = @@ROWCOUNT
	
        IF @ZIndex = 0 
            BEGIN
                UPDATE  SNS_Categories
                SET     Sequence = Sequence + @Count
                WHERE   CategoryId = @swap_CategoryId
                        OR Path LIKE '''' + @swap_Path + ''|%''
                SET @SwapCount = @@ROWCOUNT
                UPDATE  SNS_Categories
                SET     Sequence = Sequence - @SwapCount
                WHERE   CategoryId IN ( SELECT  CategoryId
                                        FROM    @tempTable )
            END
        ELSE 
            BEGIN
                UPDATE  SNS_Categories
                SET     Sequence = Sequence - @Count
                WHERE   CategoryId = @swap_CategoryId
                        OR Path LIKE '''' + @swap_Path + ''|%''
                SET @SwapCount = @@ROWCOUNT
                UPDATE  SNS_Categories
                SET     Sequence = Sequence + @SwapCount
                WHERE   CategoryId IN ( SELECT  CategoryId
                                        FROM    @tempTable )
            END
	
        COMMIT TRAN
    END
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_SNS_Category_Create]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'-- =============================================
-- Author:		<Author:Rock>
-- Create date: <Create Date:2012年11月8日 16:26:57>
-- Description:	<Description：创建商品分类>
-- =============================================
CREATE PROCEDURE [sp_SNS_Category_Create]
    @Name NVARCHAR(100) ,
    @Description NVARCHAR(200) ,
    @HasChildren BIT ,
    @ParentCategoryId INT,
    @MenuSequence INT,
    @FontColor NVARCHAR(100),
    @MenuIsShow BIT,
    @CreatedUserID INT,
    @IsMenu BIT,
    @Type INT,
    @SeoUrl NVARCHAR(300),
    @Meta_Title NVARCHAR(100),
    @Meta_Description NVARCHAR(1000),
    @Meta_Keywords NVARCHAR(1000),
    @Status INT 
    
AS 
    DECLARE @Err AS INT
    DECLARE @Sequence INT
    
    SELECT  @Err = 0

    SET XACT_ABORT ON
    BEGIN TRAN

    DECLARE @CategoryId INT

    IF @Sequence IS NULL
        OR @Sequence <= 0 
        SET @Sequence = 1
	
    IF @ParentCategoryId IS NULL
        OR @ParentCategoryId < 0 
        SET @ParentCategoryId = 0
        
    UPDATE  SNS_Categories
    SET     HasChildren = 1
    WHERE   CategoryId = @ParentCategoryId
	
    DECLARE @Depth AS INT

    CREATE TABLE #tempTable ( Sequence INT )
    DECLARE @subQuery NVARCHAR(4000)

    --SELECT  @CategoryId = MAX(CategoryId)
    --FROM    SNS_Categories
    
    SELECT @CategoryId = IDENT_CURRENT(''SNS_Categories'') 
    
    IF @CategoryId IS NOT NULL 
        SET @CategoryId = @CategoryId + 1
    ELSE 
        SET @CategoryId = 1


    DECLARE @Path AS NVARCHAR(4000)
    DECLARE @Order AS INT

    IF @ParentCategoryId = 0 
        BEGIN
            SET @subQuery = ''SELECT TOP '' + LTRIM(RTRIM(STR(@Sequence)))
                + '' Sequence FROM SNS_Categories WHERE Depth = 1 ORDER BY Sequence ASC''
	
            INSERT  INTO #tempTable
                    EXEC sp_executesql @subQuery
            SELECT  @Order = MAX(Sequence)
            FROM    #tempTable
	
            IF @Order IS NULL 
                SET @Order = 1

            SET @Path = LTRIM(RTRIM(STR(@CategoryId)))
            SET @Depth = 1
        END
    ELSE 
        BEGIN
	--获取父节点的路径和深度
            SELECT  @Path = [Path] ,
                    @Depth = Depth
            FROM    SNS_Categories
            WHERE   CategoryId = @ParentCategoryId
            IF @Path IS NULL 
                BEGIN
                    SET @Err = 1
                    GOTO theEnd
                END

            SET @subQuery = ''SELECT TOP '' + LTRIM(RTRIM(STR(@Sequence)))
                + '' Sequence FROM SNS_Categories WHERE ParentID = ''
                + LTRIM(RTRIM(STR(@ParentCategoryId)))
                + '' ORDER BY Sequence ASC''
	

            INSERT  INTO #tempTable
                    EXEC sp_executesql @subQuery
            SELECT  @Order = MAX(Sequence)
            FROM    #tempTable
	
	
            IF @Order IS NULL 
                BEGIN 
                    SELECT  @Order = Sequence + 1
                    FROM    SNS_Categories
                    WHERE   CategoryId = @ParentCategoryId
                END 

            SET @Path = @Path + ''|'' + LTRIM(RTRIM(STR(@CategoryId)))
            SET @Depth = @Depth + 1
        END

--更新当前要插入节点后所有节点的序号
    UPDATE  SNS_Categories
    SET     Sequence = Sequence + 1
    WHERE   Sequence >= @Order

	
	INSERT INTO SNS_Categories
	        ( Name ,
	          Description ,
	          ParentID ,
	          Path ,
	          Depth ,
	          Sequence ,
	          HasChildren ,
	          IsMenu ,
	          Type ,
	          MenuIsShow ,
	          MenuSequence ,
	          FontColor ,
	          CreatedUserID ,
	          CreatedDate ,
	           SeoUrl ,
    Meta_Title ,
    Meta_Description ,
    Meta_Keywords ,
	          Status
	        )
	VALUES  ( @Name , -- Name - nvarchar(50)
	          @Description , -- Description - nvarchar(200)
	          @ParentCategoryId , -- ParentID - int
	          @Path , -- Path - nvarchar(50)
	          @Depth, -- Depth - int
	          @Order , -- Sequence - int
	          @HasChildren , -- HasChildren - bit
	          @IsMenu , -- IsMenu - bit
	          @Type , -- Type - int
	          @MenuIsShow , -- MenuIsShow - bit
	          @MenuSequence , -- MenuSequence - int
	          @FontColor, -- FontColor - nvarchar(100)
	          @CreatedUserID , -- CreatedUserID - int
	          GETDATE() , -- CreatedDate - datetime
	           @SeoUrl ,
    @Meta_Title ,
    @Meta_Description ,
    @Meta_Keywords ,
	          @Status  -- Status - int
	        )

    DROP TABLE #tempTable

    IF @@Error <> 0 
        BEGIN
            SET @Err = 1
            GOTO theEnd
        END

    theEnd:
    IF @Err = 0 
        BEGIN
            COMMIT TRAN
            RETURN @CategoryId
        END
    ELSE 
        BEGIN
            ROLLBACK TRAN
            RETURN 0
        END
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_SNS_AblumsDeleteAction]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'-- =============================================
-- Author:		<Rock>
-- Create date: <2012年11月6日 16:01:46>
-- Description:	<专辑删除操作>
-- =============================================
CREATE PROCEDURE [sp_SNS_AblumsDeleteAction] @AlbumID INT
AS 
    BEGIN
        SET XACT_ABORT ON
        BEGIN TRANSACTION
        
        DECLARE @ErrorSum INT --定义错误计数器
        SET @ErrorSum = 0 --没错为0
        
		/*内存临时表 基础数据*/
        DECLARE @ProductsInfoForAblumU TABLE
            (
              ProductID INT ,
              CreatedUserID INT
            )
        INSERT  INTO @ProductsInfoForAblumU
                ( ProductID ,
                  CreatedUserID 
                )
                ( SELECT    P.ProductID ,
                            U.CreatedUserID
                  FROM      SNS_Products P ,
                            ( SELECT    TargetID
                              FROM      SNS_UserAlbumDetail
                              WHERE     AlbumID = @AlbumID
                                        AND Type = 1
                            ) UAD ,
                            ( SELECT    CreatedUserID
                              FROM      SNS_UserAlbums
                              WHERE     AlbumID = @AlbumID
                            ) U
                  WHERE     P.ProductID = UAD.TargetID
                            AND P.CreateUserID = U.CreatedUserID
                )
                                        
          /*内存临时表 基础数据*/
        DECLARE @PhotoInfoForAblumU TABLE
            (
              PhotoID INT ,
              CreatedUserID INT
            )
        INSERT  INTO @PhotoInfoForAblumU
                ( PhotoID ,
                  CreatedUserID 
                )
                ( SELECT    P.PhotoID ,
                            U.CreatedUserID
                  FROM      SNS_Photos P ,
                            ( SELECT    TargetID
                              FROM      SNS_UserAlbumDetail
                              WHERE     AlbumID = @AlbumID
                                        AND Type = 0
                            ) UAD ,
                            ( SELECT    CreatedUserID
                              FROM      SNS_UserAlbums
                              WHERE     AlbumID = @AlbumID
                            ) U
                  WHERE     P.PhotoID = UAD.TargetID
                            AND P.CreatedUserID = U.CreatedUserID
                )
                        
                 
		--1、更新用户专辑数
        UPDATE  Accounts_UsersExp
        SET     AblumsCount = AblumsCount - 1
        WHERE   UserID = ( SELECT   CreatedUserID
                           FROM     SNS_UserAlbums
                           WHERE    AlbumID = @AlbumID
                         )  
        SET @ErrorSum = @ErrorSum + @@ERROR
		--2、更新专辑数
        UPDATE  SNS_AlbumType
        SET     AlbumsCount = AlbumsCount - 1
        WHERE   ID IN ( SELECT  TypeID
                        FROM    SNS_UserAlbumsType
                        WHERE   AlbumsID = @AlbumID ) 
         
        SET @ErrorSum = @ErrorSum + @@ERROR                  
        --3、更新用户商品数                
        UPDATE  UE
        SET     UE.ProductsCount = ( CASE WHEN UE.ProductsCount > PC.pcount
                                          THEN UE.ProductsCount - PC.pcount
                                          ELSE 0
                                     END )
        FROM    Accounts_UsersExp UE ,
                ( SELECT    COUNT(*) pcount ,
                            P.CreateUserID
                  FROM      SNS_Products P
                            LEFT JOIN SNS_UserAlbumDetail UAD ON P.ProductID = UAD.TargetID
                                                              AND uad.Type = 1
                            LEFT JOIN SNS_UserAlbums UA ON UAD.AlbumID = UA.AlbumID
                  WHERE     UA.AlbumID = @AlbumID
                            AND p.CreateUserID = UA.CreatedUserID
                  GROUP BY  P.CreateUserID
                ) PC
        WHERE   UE.UserID = PC.CreateUserID  
        
        
        SET @ErrorSum = @ErrorSum + @@ERROR
        --4、更新用户ShareCount
        UPDATE  UE
        SET     UE.ShareCount = ( CASE WHEN UE.ShareCount > PC.pcount
                                       THEN UE.ShareCount - PC.pcount
                                       ELSE 0
                                  END )
        FROM    Accounts_UsersExp UE ,
                ( SELECT    COUNT(*) pcount ,
                            P.CreatedUserID
                  FROM      SNS_Photos P
                            LEFT JOIN SNS_UserAlbumDetail UAD ON P.PhotoID = UAD.TargetID
                                                              AND uad.Type = 0
                            LEFT JOIN SNS_UserAlbums UA ON UAD.AlbumID = UA.AlbumID
                  WHERE     UA.AlbumID = @AlbumID
                            AND p.CreatedUserID = UA.CreatedUserID
                  GROUP BY  P.CreatedUserID
                ) PC
        WHERE   UE.UserID = PC.CreatedUserID         
        
        SET @ErrorSum = @ErrorSum + @@ERROR
        
        UPDATE  UE
        SET     UE.ShareCount = ( CASE WHEN UE.ShareCount > PH.phcount
                                       THEN UE.ShareCount - PH.phcount
                                       ELSE 0
                                  END )
        FROM    Accounts_UsersExp UE ,
                ( SELECT    COUNT(*) phcount ,
                            P.CreateUserID
                  FROM      SNS_Products P
                            LEFT JOIN SNS_UserAlbumDetail UAD ON P.ProductID = UAD.TargetID
                                                              AND uad.Type = 1
                            LEFT JOIN SNS_UserAlbums UA ON UAD.AlbumID = UA.AlbumID
                  WHERE     UA.AlbumID = @AlbumID
                            AND p.CreateUserID = UA.CreatedUserID
                  GROUP BY  P.CreateUserID
                ) PH
        WHERE   UE.UserID = PH.CreateUserID 
        
        SET @ErrorSum = @ErrorSum + @@ERROR
  
  
		--5、删除评论表中对应的数据
		
		        
        UPDATE  UA
        SET     UA.CommentsCount = ( CASE WHEN UA.CommentsCount > C.ccount
                                          THEN UA.CommentsCount - C.ccount
                                          ELSE 0
                                     END )
        FROM    SNS_UserAlbums UA ,
                ( SELECT    COUNT(*) ccount
                  FROM      SNS_Comments CO ,
                            @PhotoInfoForAblumU PH
                  WHERE     CO.TargetId = PH.PhotoID
                            AND CO.Type = 1
                ) C
        WHERE   AlbumID = @AlbumID
        SET @ErrorSum = @ErrorSum + @@ERROR
        
        
		
        
        
        UPDATE  UA
        SET     UA.CommentsCount = ( CASE WHEN UA.CommentsCount > C.ccount
                                          THEN UA.CommentsCount - C.ccount
                                          ELSE 0
                                     END )
        FROM    SNS_UserAlbums UA ,
                ( SELECT    COUNT(*) ccount
                  FROM      SNS_Comments CO ,
                            @ProductsInfoForAblumU PH
                  WHERE     CO.TargetId = PH.ProductID
                            AND CO.Type = 2
                ) C
        WHERE   AlbumID = @AlbumID
        SET @ErrorSum = @ErrorSum + @@ERROR
		--5.1删除评论表中对图片的评论
        DELETE  C
        FROM    SNS_Comments C ,
                @PhotoInfoForAblumU P
        WHERE   TargetId = P.PhotoID
                AND Type = 1
		
		
        SET @ErrorSum = @ErrorSum + @@ERROR
		
		--5.2删除评论表中对商品的评论
		
        DELETE  C
        FROM    SNS_Comments C ,
                ( SELECT    *
                  FROM      @ProductsInfoForAblumU
                ) P
        WHERE   TargetId = P.ProductID
                AND Type = 2
		
        SET @ErrorSum = @ErrorSum + @@ERROR
		
		--6、删除用户喜欢数据表信息
		--6.1更新用户对应图片被喜欢数
        UPDATE  UE
        SET     UE.FavoritedCount = ( CASE WHEN UE.FavoritedCount > PC.pcount
                                           THEN UE.FavoritedCount - PC.pcount
                                           ELSE 0
                                      END )
        FROM    Accounts_UsersExp UE ,
                ( SELECT    COUNT(*) pcount ,
                            P.CreatedUserID
                  FROM      SNS_UserFavourite UF ,
                            @PhotoInfoForAblumU P
                  WHERE     UF.TargetID = P.PhotoID
                            AND UF.Type = 0
                  GROUP BY  P.CreatedUserID
                ) PC
        WHERE   UE.UserID = PC.CreatedUserID         
        SET @ErrorSum = @ErrorSum + @@ERROR
        
		--6.2更新用户对应商品被喜欢数
        UPDATE  UE
        SET     UE.FavoritedCount = ( CASE WHEN UE.FavoritedCount > PC.pcount
                                           THEN UE.FavoritedCount - PC.pcount
                                           ELSE 0
                                      END )
        FROM    Accounts_UsersExp UE ,
                ( SELECT    COUNT(*) pcount ,
                            P.CreatedUserID
                  FROM      SNS_UserFavourite UF ,
                            @ProductsInfoForAblumU P
                  WHERE     UF.TargetID = P.ProductID
                            AND UF.Type = 1
                  GROUP BY  P.CreatedUserID
                ) PC
        WHERE   UE.UserID = PC.CreatedUserID 
		
        SET @ErrorSum = @ErrorSum + @@ERROR	
		--6.3更新用户喜欢数
        UPDATE  UE
        SET     UE.FavouritesCount = ( CASE WHEN UE.FavouritesCount > PC.pcount
                                            THEN UE.FavouritesCount
                                                 - PC.pcount
                                            ELSE 0
                                       END )
        FROM    Accounts_UsersExp UE ,
                ( SELECT    COUNT(*) pcount ,
                            UF.CreatedUserID
                  FROM      SNS_UserFavourite UF ,
                            @PhotoInfoForAblumU U
                  WHERE     UF.TargetID = U.PhotoID
                            AND UF.Type = 0
                  GROUP BY  UF.CreatedUserID
                ) PC
        WHERE   UE.UserID = PC.CreatedUserID 
        
        SET @ErrorSum = @ErrorSum + @@ERROR
        UPDATE  UE
        SET     UE.FavouritesCount = ( CASE WHEN UE.FavouritesCount > PC.pcount
                                            THEN UE.FavouritesCount
                                                 - PC.pcount
                                            ELSE 0
                                       END )
        FROM    Accounts_UsersExp UE ,
                ( SELECT    COUNT(*) pcount ,
                            UF.CreatedUserID
                  FROM      SNS_UserFavourite UF ,
                            @ProductsInfoForAblumU U
                  WHERE     UF.TargetID = U.ProductID
                            AND UF.Type = 1
                  GROUP BY  UF.CreatedUserID
                ) PC
        WHERE   UE.UserID = PC.CreatedUserID 
        
        --SELECT * FROM SNS_UserFavourite 
        
        --SELECT * FROM SNS_Photos
        --WHERE PhotoID=296
        
        
        
        SET @ErrorSum = @ErrorSum + @@ERROR
        --6.4删除用户喜欢的图片或商品
        
        DELETE  UF
        FROM    SNS_UserFavourite UF ,
                @PhotoInfoForAblumU PC
        WHERE   UF.TargetID = PC.PhotoID
                AND UF.Type = 0
        
        
        SET @ErrorSum = @ErrorSum + @@ERROR
        
        DELETE  UF
        FROM    SNS_UserFavourite UF ,
                @ProductsInfoForAblumU PC
        WHERE   UF.TargetID = PC.ProductID
                AND UF.Type = 1
        
        SET @ErrorSum = @ErrorSum + @@ERROR
        
        
        
        
        
        --7删除SNS_Posts中信息
        --7.1
        DECLARE @PostPhotoCount INT ,
            @PostProductsCount INT
        SET @PostPhotoCount = 0
        SET @PostProductsCount = 0
        
        SELECT  @PostPhotoCount = COUNT(PO.PostID)
        FROM    SNS_Posts PO ,
                @PhotoInfoForAblumU PH
        WHERE   PO.TargetId = PH.PhotoID
                AND PO.Type = 1
        
		
        
                
        IF ( @PostPhotoCount > 0 ) 
            BEGIN
        	/*删除SNS_Comments中图片的评论信息*/
                DELETE  CO
                FROM    SNS_Comments CO ,
                        @PhotoInfoForAblumU PH
                WHERE   CO.TargetId = PH.PhotoID
                        AND CO.Type = 1
                        
                SET @ErrorSum = @ErrorSum + @@ERROR
            END
                
        SELECT  @PostProductsCount = COUNT(PO.PostID)
        FROM    SNS_Posts PO ,
                @ProductsInfoForAblumU PH
        WHERE   PO.TargetId = PH.ProductID
                AND PO.Type = 2
                
        
        IF ( @PostProductsCount > 0 ) 
            BEGIN
           	/*删除SNS_Comments中商品的评论信息*/
                DELETE  CO
                FROM    SNS_Comments CO ,
                        @ProductsInfoForAblumU PP
                WHERE   CO.TargetId = PP.ProductID
                        AND CO.Type = 2
                        
                SET @ErrorSum = @ErrorSum + @@ERROR
            END
        
        DELETE  POST
        FROM    SNS_Posts POST ,
                @PhotoInfoForAblumU P
        WHERE   P.PhotoID = POST.TargetId
                AND POST.Type = 1
        DELETE  POST
        FROM    SNS_Posts POST ,
                @ProductsInfoForAblumU P
        WHERE   P.ProductID = POST.TargetId
                AND POST.Type = 2
        SET @ErrorSum = @ErrorSum + @@ERROR
        
        
        
        /*1、根据Type 和TargetID 从 SNS_GroupTopics 表中查询出对应的 TopicID
          2、删除 SNS_GroupTopicReply对应信息  之前 更新 SNS_Groups TopicReplyCount -Count  TopicCount 更新   
          3、更新 CreatedUserID userExp 中的FavTopicCount   TopicCount
          4、删除SNS_GroupTopicFav   删除SNS_GroupTopics 
        */
        
        /*更新SNS_Groups中图片TopicReplyCount*/        
        UPDATE  G
        SET     G.TopicReplyCount = ( CASE WHEN G.TopicReplyCount > GP.gtpcount
                                           THEN G.TopicReplyCount
                                                - GP.gtpcount
                                           ELSE 0
                                      END )
        FROM    SNS_Groups G ,
                ( SELECT    COUNT(GTP.GroupID) gtpcount ,
                            GTP.GroupID
                  FROM      SNS_GroupTopicReply GTP ,
                            ( SELECT    GT.TopicID
                              FROM      SNS_GroupTopics GT ,
                                        @PhotoInfoForAblumU P
                              WHERE     GT.TargetID = P.PhotoID
                                        AND GT.Type = 1
                            ) GT
                  WHERE     GTP.TopicID = GT.TopicID
                  GROUP BY  GTP.GroupID
                ) GP
        WHERE   G.GroupID = GP.GroupID
        
        SET @ErrorSum = @ErrorSum + @@ERROR
        /*删除SNS_GroupTopicReply中图片的信息*/
        DELETE  GTR
        FROM    SNS_GroupTopicReply GTR ,
                ( SELECT    GT.TopicID
                  FROM      SNS_GroupTopics GT ,
                            @PhotoInfoForAblumU P
                  WHERE     GT.TargetID = P.PhotoID
                            AND GT.Type = 1
                ) GT
        WHERE   GTR.TopicID = GT.TopicID
        
        SET @ErrorSum = @ErrorSum + @@ERROR
        /*更新SNS_Groups中图片的TopicCount*/
        UPDATE  G
        SET     G.TopicCount = ( CASE WHEN G.TopicReplyCount > GT.gtcount
                                      THEN G.TopicReplyCount - GT.gtcount
                                      ELSE 0
                                 END )
        FROM    SNS_Groups G ,
                ( SELECT    COUNT(GT.GroupID) gtcount ,
                            GT.GroupID
                  FROM      SNS_GroupTopics GT ,
                            @PhotoInfoForAblumU P
                  WHERE     GT.TargetID = P.PhotoID
                            AND GT.Type = 1
                  GROUP BY  GT.GroupID
                ) GT
        WHERE   G.GroupID = GT.GroupID      
        SET @ErrorSum = @ErrorSum + @@ERROR
                
         /*更新SNS_Groups中商品TopicReplyCount*/        
        UPDATE  G
        SET     G.TopicReplyCount = ( CASE WHEN G.TopicReplyCount > GP.gtpcount
                                           THEN G.TopicReplyCount
                                                - GP.gtpcount
                                           ELSE 0
                                      END )
        FROM    SNS_Groups G ,
                ( SELECT    COUNT(GTP.GroupID) gtpcount ,
                            GTP.GroupID
                  FROM      SNS_GroupTopicReply GTP ,
                            ( SELECT    GT.TopicID
                              FROM      SNS_GroupTopics GT ,
                                        @ProductsInfoForAblumU P
                              WHERE     GT.TargetID = P.ProductID
                                        AND GT.Type = 2
                            ) GT
                  WHERE     GTP.TopicID = GT.TopicID
                  GROUP BY  GTP.GroupID
                ) GP
        WHERE   G.GroupID = GP.GroupID
        SET @ErrorSum = @ErrorSum + @@ERROR
        /*删除SNS_GroupTopicReply中商品的信息*/
        DELETE  GTR
        FROM    SNS_GroupTopicReply GTR ,
                ( SELECT    GT.TopicID
                  FROM      SNS_GroupTopics GT ,
                            @ProductsInfoForAblumU P
                  WHERE     GT.TargetID = P.ProductID
                            AND GT.Type = 2
                ) GT
        WHERE   GTR.TopicID = GT.TopicID
        SET @ErrorSum = @ErrorSum + @@ERROR
        
        
        /*更新SNS_Groups中商品的TopicCount*/
        UPDATE  G
        SET     G.TopicCount = ( CASE WHEN G.TopicReplyCount > GT.gtcount
                                      THEN G.TopicReplyCount - GT.gtcount
                                      ELSE 0
                                 END )
        FROM    SNS_Groups G ,
                ( SELECT    COUNT(GT.GroupID) gtcount ,
                            GT.GroupID
                  FROM      SNS_GroupTopics GT ,
                            @ProductsInfoForAblumU P
                  WHERE     GT.TargetID = P.ProductID
                            AND GT.Type = 2
                  GROUP BY  GT.GroupID
                ) GT
        WHERE   G.GroupID = GT.GroupID
        SET @ErrorSum = @ErrorSum + @@ERROR
        
        /*更新Accounts_UsersExp中的FavTopicCount*/
        UPDATE  UE
        SET     UE.FavTopicCount = ( CASE WHEN UE.FavTopicCount > GTF.gtfcount
                                          THEN UE.FavTopicCount - GTF.gtfcount
                                          ELSE 0
                                     END )
        FROM    Accounts_UsersExp UE ,
                ( SELECT    COUNT(GTF.TopicID) gtfcount ,
                            GT.CreatedUserID
                  FROM      SNS_GroupTopicFav GTF ,
                            ( SELECT    GT.TopicID ,
                                        P.CreatedUserID
                              FROM      SNS_GroupTopics GT ,
                                        @PhotoInfoForAblumU P
                              WHERE     GT.TargetID = P.PhotoID
                                        AND GT.Type = 1
                            ) GT
                  WHERE     GTF.TopicID = GT.TopicID
                  GROUP BY  GT.CreatedUserID
                ) GTF
        WHERE   UE.UserID = GTF.CreatedUserID
        SET @ErrorSum = @ErrorSum + @@ERROR
        
        UPDATE  UE
        SET     UE.FavTopicCount = ( CASE WHEN UE.FavTopicCount > GTF.gtfcount
                                          THEN UE.FavTopicCount - GTF.gtfcount
                                          ELSE 0
                                     END )
        FROM    Accounts_UsersExp UE ,
                ( SELECT    COUNT(GTF.TopicID) gtfcount ,
                            GT.CreatedUserID
                  FROM      SNS_GroupTopicFav GTF ,
                            ( SELECT    GT.TopicID ,
                                        P.CreatedUserID
                              FROM      SNS_GroupTopics GT ,
                                        @ProductsInfoForAblumU P
                              WHERE     GT.TargetID = P.ProductID
                                        AND GT.Type = 2
                            ) GT
                  WHERE     GTF.TopicID = GT.TopicID
                  GROUP BY  GT.CreatedUserID
                ) GTF
        WHERE   UE.UserID = GTF.CreatedUserID
        SET @ErrorSum = @ErrorSum + @@ERROR
        
        /*更新Accounts_UsersExp中的TopicCount*/
        
        UPDATE  UE
        SET     UE.TopicCount = ( CASE WHEN UE.TopicCount > GT.gtcount
                                       THEN UE.TopicCount - GT.gtcount
                                       ELSE 0
                                  END )
        FROM    Accounts_UsersExp UE ,
                ( SELECT    COUNT(GT.TopicID) gtcount ,
                            P.CreatedUserID
                  FROM      SNS_GroupTopics GT ,
                            @PhotoInfoForAblumU P
                  WHERE     GT.TargetID = P.PhotoID
                            AND GT.Type = 1
                  GROUP BY  P.CreatedUserID
                ) GT
        WHERE   UE.UserID = GT.CreatedUserID
        SET @ErrorSum = @ErrorSum + @@ERROR
        
        UPDATE  UE
        SET     UE.TopicCount = ( CASE WHEN UE.TopicCount > GT.gtcount
                                       THEN UE.TopicCount - GT.gtcount
                                       ELSE 0
                                  END )
        FROM    Accounts_UsersExp UE ,
                ( SELECT    COUNT(GT.TopicID) gtcount ,
                            P.CreatedUserID
                  FROM      SNS_GroupTopics GT ,
                            @ProductsInfoForAblumU P
                  WHERE     GT.TargetID = P.ProductID
                            AND GT.Type = 2
                  GROUP BY  P.CreatedUserID
                ) GT
        WHERE   UE.UserID = GT.CreatedUserID
        SET @ErrorSum = @ErrorSum + @@ERROR
        
        /*删除SNS_GroupTopicFav中图片信息*/
        DELETE  GTF
        FROM    SNS_GroupTopicFav GTF ,
                ( SELECT    GT.TopicID
                  FROM      SNS_GroupTopics GT ,
                            @PhotoInfoForAblumU P
                  WHERE     GT.TargetID = P.PhotoID
                            AND GT.Type = 1
                ) GT
        WHERE   GTF.TopicID = GT.TopicID
        SET @ErrorSum = @ErrorSum + @@ERROR
        
        /*删除SSNS_GroupTopicFav中商品信息*/
        DELETE  GTF
        FROM    SNS_GroupTopicFav GTF ,
                ( SELECT    GT.TopicID
                  FROM      SNS_GroupTopics GT ,
                            @ProductsInfoForAblumU P
                  WHERE     GT.TargetID = P.ProductID
                            AND GT.Type = 2
                ) GT
        WHERE   GTF.TopicID = GT.TopicID
        SET @ErrorSum = @ErrorSum + @@ERROR
        
        /*删除SNS_GroupTopics中图片信息*/
        DELETE  GT
        FROM    SNS_GroupTopics GT ,
                @PhotoInfoForAblumU P
        WHERE   GT.TargetID = P.PhotoID
                AND GT.Type = 1
        SET @ErrorSum = @ErrorSum + @@ERROR
                
        /*删除SNS_GroupTopics中商品信息*/
        DELETE  GT
        FROM    SNS_GroupTopics GT ,
                @ProductsInfoForAblumU P
        WHERE   GT.TargetID = P.ProductID
                AND GT.Type = 2 
        SET @ErrorSum = @ErrorSum + @@ERROR
		
        UPDATE  UA
        SET     PhotoCount = ( CASE WHEN UA.PhotoCount > UAD.uadcount
                                    THEN UA.PhotoCount - UAD.uadcount
                                    ELSE 0
                               END )
        FROM    SNS_UserAlbums UA ,
                ( SELECT    COUNT(UAD.TargetID) uadcount ,
                            UAD.AlbumID
                  FROM      SNS_UserAlbumDetail UAD ,
                            ( SELECT    PhotoID
                              FROM      SNS_Photos SP ,
                                        ( SELECT    TargetID
                                          FROM      SNS_UserAlbumDetail
                                          WHERE     AlbumID = @AlbumID
                                                    AND Type = 0
                                        ) U
                              WHERE     U.TargetID = SP.PhotoID
                            ) P
                  WHERE     UAD.TargetID = p.PhotoID
                            AND UAD.Type = 0
                  GROUP BY  UAD.AlbumID
                ) UAD
        WHERE   UA.AlbumID = UAD.AlbumID
        SET @ErrorSum = @ErrorSum + @@ERROR
        
        UPDATE  UA
        SET     PhotoCount = ( CASE WHEN UA.PhotoCount > UAD.uadcount
                                    THEN UA.PhotoCount - UAD.uadcount
                                    ELSE 0
                               END )
        FROM    SNS_UserAlbums UA ,
                ( SELECT    COUNT(UAD.TargetID) uadcount ,
                            UAD.AlbumID
                  FROM      SNS_UserAlbumDetail UAD ,
                            ( SELECT    ProductID
                              FROM      SNS_Products ,
                                        ( SELECT    TargetID
                                          FROM      SNS_UserAlbumDetail
                                          WHERE     AlbumID = @AlbumID
                                                    AND Type = 1
                                        ) U
                              WHERE     U.TargetID = SNS_Products.ProductID
                            ) P
                  WHERE     UAD.TargetID = p.ProductID
                            AND UAD.Type = 1
                  GROUP BY  UAD.AlbumID
                ) UAD
        WHERE   UA.AlbumID = UAD.AlbumID
        SET @ErrorSum = @ErrorSum + @@ERROR
		
        DELETE  UAD
        FROM    SNS_UserAlbumDetail UAD ,
                ( SELECT    PhotoID
                  FROM      SNS_Photos SP ,
                            ( SELECT    TargetID
                              FROM      SNS_UserAlbumDetail
                              WHERE     AlbumID = @AlbumID
                                        AND Type = 0
                            ) U
                  WHERE     U.TargetID = SP.PhotoID
                ) P
        WHERE   UAD.TargetID = p.PhotoID
                AND UAD.Type = 0
               
        SET @ErrorSum = @ErrorSum + @@ERROR
		
        DELETE  UAD
        FROM    SNS_UserAlbumDetail UAD ,
                ( SELECT    ProductID
                  FROM      SNS_Products ,
                            ( SELECT    TargetID
                              FROM      SNS_UserAlbumDetail
                              WHERE     AlbumID = @AlbumID
                                        AND Type = 1
                            ) U
                  WHERE     U.TargetID = SNS_Products.ProductID
                ) P
        WHERE   UAD.TargetID = p.ProductID
                AND UAD.Type = 1
        SET @ErrorSum = @ErrorSum + @@ERROR
		
		
                
		/*删除产品表用户添加的信息*/
        DELETE  P
        FROM    SNS_Products P ,
                ( SELECT    TargetID
                  FROM      SNS_UserAlbumDetail
                  WHERE     AlbumID = @AlbumID
                            AND Type = 1
                ) UAD ,
                ( SELECT    CreatedUserID
                  FROM      SNS_UserAlbums
                  WHERE     AlbumID = @AlbumID
                ) U
        WHERE   P.ProductID = UAD.TargetID
                AND P.CreateUserID = U.CreatedUserID
        SET @ErrorSum = @ErrorSum + @@ERROR
		
		/*删除图片表用户上传的信息*/
        DELETE  P
        FROM    SNS_Photos P ,
                ( SELECT    TargetID
                  FROM      SNS_UserAlbumDetail
                  WHERE     AlbumID = @AlbumID
                            AND Type = 0
                ) UAD ,
                ( SELECT    CreatedUserID
                  FROM      SNS_UserAlbums
                  WHERE     AlbumID = @AlbumID
                ) U
        WHERE   P.PhotoID = UAD.TargetID
                AND P.CreatedUserID = U.CreatedUserID
                
        --        SELECT * FROM    SNS_Photos P ,
        --        ( SELECT    TargetID
        --          FROM      SNS_UserAlbumDetail
        --          WHERE     AlbumID = 166
        --                    AND Type = 0
        --        ) UAD ,
        --        ( SELECT    CreatedUserID
        --          FROM      SNS_UserAlbums
        --          WHERE     AlbumID = 166
        --        ) U
        --WHERE   P.PhotoID = UAD.TargetID
        --        AND P.CreatedUserID = U.CreatedUserID
                
                
        SET @ErrorSum = @ErrorSum + @@ERROR
		
		/*删除用户专辑类型*/
        DELETE  FROM SNS_UserAlbumsType
        WHERE   AlbumsID = @AlbumID 
        SET @ErrorSum = @ErrorSum + @@ERROR
		
		/*删除用户收藏专辑*/
        DELETE  FROM SNS_UserFavAlbum
        WHERE   AlbumID = @AlbumID
        SET @ErrorSum = @ErrorSum + @@ERROR
        
		/*删除用户详细专辑*/
        DELETE  FROM SNS_UserAlbumDetail
        WHERE   AlbumID = @AlbumID 
        SET @ErrorSum = @ErrorSum + @@ERROR
        		           
		
		/*删除专辑*/
        DELETE  FROM SNS_UserAlbums
        WHERE   AlbumID = @AlbumID 
        SET @ErrorSum = @ErrorSum + @@ERROR
        
        IF @ErrorSum <> 0 
            BEGIN
                ROLLBACK TRANSACTION--事务回滚语句
                RETURN 0
            END
        ELSE 
            BEGIN
                COMMIT TRANSACTION--事务提交语句
                RETURN 1
            END
    END
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_SiteSettings_Save]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'CREATE procedure [sp_SiteSettings_Save]
(
	@Disabled		smallint,
	@SettingsXML	 	ntext = null,
	@ApplicationName	nvarchar(256)
)
AS
SET Transaction Isolation Level Read UNCOMMITTED
BEGIN

	UPDATE
		SA_SiteSettings
	SET
		Disabled = @Disabled,
		SettingsXML = @SettingsXML,
		ApplicationName = @ApplicationName		
END
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Show_Shop_ProductTypesCreateUpdateDelete]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'-- =============================================
-- Author:		<Rock>
-- Create date: <2012年6月14日 09:47:28>
-- Description:	<Description,,>
-- =============================================
CREATE PROCEDURE [sp_Show_Shop_ProductTypesCreateUpdateDelete]
    @TypeName NVARCHAR(50) ,
    @Remark NVARCHAR(200) ,
    @Action INT ,
    @TypeId INT ,
    @TypeIdOut INT OUTPUT
AS 
    BEGIN
	
        IF @Action = 0--创建
            BEGIN 
                INSERT  INTO Shop_ProductTypes
                        ( TypeName, Remark )
                VALUES  ( @TypeName, -- TypeName - nvarchar(50)
                          @Remark  -- Remark - nvarchar(200)
                          )
                          
                IF @@ROWCOUNT = 1 
                    BEGIN		
                        SET @TypeIdOut = @@IDENTITY
                    END
                RETURN
            END 
            
        IF @Action = 1--修改
            BEGIN
                UPDATE  Shop_ProductTypes
                SET     TypeName = @TypeName ,
                        Remark = @Remark
                WHERE   TypeId = @TypeId
            END 
            
        IF @Action = 2 --删除   是否需要更新关联Shop_Attributes 和Shop_Products 、Shop_ProductTypeBrands
            BEGIN
                DELETE  FROM Shop_ProductTypes
                WHERE   TypeId = @TypeId
            END
            
    END
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_TagCategories_SwapSequence]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'
CREATE PROCEDURE [sp_Shop_TagCategories_SwapSequence]
    @ID INT ,
    @Index INT
AS 
    BEGIN
        DECLARE @Path NVARCHAR(500)
        DECLARE @ParentCategoryId INT ,
            @DisplaySequence INT
	
        DECLARE @swap_Path NVARCHAR(500)
        DECLARE @swap_CategoryId INT
	
        SELECT  @Path = Path ,
                @ParentCategoryId = ParentCategoryId ,
                @DisplaySequence = DisplaySequence
        FROM    Shop_TagCategories
        WHERE   ID = @ID
        IF @Path IS NULL
            OR @ParentCategoryId IS NULL 
            RETURN
		
        IF @Index = 0 
            SELECT TOP 1
                    @swap_Path = Path ,
                    @swap_CategoryId = ID
            FROM    Shop_TagCategories
            WHERE   ParentCategoryId = @ParentCategoryId
                    AND DisplaySequence < @DisplaySequence
            ORDER BY DisplaySequence DESC
        ELSE 
            SELECT TOP 1
                    @swap_Path = Path ,
                    @swap_CategoryId = ID
            FROM    Shop_TagCategories
            WHERE   ParentCategoryId = @ParentCategoryId
                    AND DisplaySequence > @DisplaySequence
            ORDER BY DisplaySequence ASC
	
        IF @swap_Path IS NULL
            OR @swap_CategoryId IS NULL 
            RETURN ;
	
        SET XACT_ABORT ON
        BEGIN TRAN
	
        DECLARE @tempTable TABLE ( ID INT )
        DECLARE @Count INT ,
            @SwapCount INT
	
        INSERT  INTO @tempTable
                SELECT  ID
                FROM    Shop_TagCategories
                WHERE   ID = @ID
                        OR Path LIKE '''' + @Path + ''|%''
        SET @Count = @@ROWCOUNT
	
        IF @Index = 0 
            BEGIN
                UPDATE  Shop_TagCategories
                SET     DisplaySequence = DisplaySequence + @Count
                WHERE   ID = @swap_CategoryId
                        OR Path LIKE '''' + @swap_Path + ''|%''
                SET @SwapCount = @@ROWCOUNT
                UPDATE  Shop_TagCategories
                SET     DisplaySequence = DisplaySequence - @SwapCount
                WHERE   ID IN ( SELECT  ID
                                        FROM    @tempTable )
            END
        ELSE 
            BEGIN
                UPDATE  Shop_TagCategories
                SET     DisplaySequence = DisplaySequence - @Count
                WHERE   ID = @swap_CategoryId
                        OR Path LIKE '''' + @swap_Path + ''|%''
                SET @SwapCount = @@ROWCOUNT
                UPDATE  Shop_TagCategories
                SET     DisplaySequence = DisplaySequence + @SwapCount
                WHERE   ID IN ( SELECT  ID
                                        FROM    @tempTable )
            END
	
        COMMIT TRAN
    END
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_TagCategories_Delete]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'
CREATE PROCEDURE [sp_Shop_TagCategories_Delete] @ID INT
AS 
    BEGIN
        DECLARE @Err AS INT ,
            @Count INT ,
            @DisplaySequence INT
        DECLARE @Path NVARCHAR(4000)
        SET XACT_ABORT ON
        BEGIN TRAN
        
        DECLARE @intErrorCode INT --定义错误计数器
        SET @intErrorCode = 0 --无错误为0

        CREATE TABLE #tempTable ( ID INT )
        
        DECLARE @TableTarget TABLE ( ImageUrl NVARCHAR(300) )
        

        SELECT  @Err = 0 ,
                @Path = Path ,
                @DisplaySequence = DisplaySequence
        FROM    Shop_TagCategories
        WHERE   ID = @ID
        INSERT  INTO #tempTable
                SELECT  ID
                FROM    Shop_TagCategories
                WHERE   ID = @ID
                        OR Path LIKE '''' + @Path + ''|%''

        SET @Count = @@ROWCOUNT

        DECLARE @ParentCategoryId INT
        SET @ParentCategoryId = -1
        
        SELECT  @ParentCategoryId = ParentCategoryId
        FROM    Shop_TagCategories
        WHERE   ID = @ID 
        
-- 删除自身和所有子分类
        DELETE  FROM Shop_TagCategories
        WHERE   ID IN ( SELECT  ID
                                FROM    #tempTable )
        SET @intErrorCode = @intErrorCode + @@ERROR

-- 修改商品分类的编号为0，表示未分类
        UPDATE  Shop_Tags
        SET    TagCategoryId = 0
        WHERE  TagCategoryId IN ( SELECT  ID
                                FROM    #tempTable )
        SET @intErrorCode = @intErrorCode + @@ERROR

--更新其他记录的DisplaySequence
        UPDATE  Shop_TagCategories
        SET     DisplaySequence = DisplaySequence - @Count
        WHERE   DisplaySequence > @DisplaySequence 
        SET @intErrorCode = @intErrorCode + @@ERROR

        DROP TABLE #tempTable
	
        DECLARE @ChildCount INT
        SET @ChildCount = -1	
		
        SELECT  @ChildCount = COUNT(*)
        FROM    Shop_TagCategories C ,
                ( SELECT    ParentCategoryId
                  FROM      Shop_TagCategories
                  WHERE     ID = @ID
                ) A
        WHERE   C.ParentCategoryId = A.ParentCategoryId
		
		
        IF ( @ChildCount = 0 ) 
            BEGIN			
                UPDATE  Shop_TagCategories
                SET     HasChildren = ~( HasChildren )
                WHERE   ID = @ParentCategoryId
                SET @intErrorCode = @intErrorCode + @@ERROR
            END
		 
       
        
        IF @intErrorCode <> 0 
            BEGIN
                ROLLBACK TRANSACTION--事务回滚语句
                RETURN 0
            END
        ELSE 
            BEGIN
                COMMIT TRANSACTION--事务提交语句
                SELECT  *
                FROM    @TableTarget
        --返回结果集
                RETURN 1
            END
    END
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_TagCategories_Create]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'
CREATE PROCEDURE [sp_Shop_TagCategories_Create]
    @CategoryName NVARCHAR(50) ,
    @ParentCategoryId INT, 
    @Meta_Title NVARCHAR(1000) ,
    @Meta_Description NVARCHAR(1000) ,
    @Meta_Keywords NVARCHAR(1000) ,
    @HasChildren BIT ,
    @Status INT , 
    @Remark NVARCHAR(200) 
     
    
AS 
    DECLARE @Err AS INT
    DECLARE @DisplaySequence INT
    
    SELECT  @Err = 0

    SET XACT_ABORT ON
    BEGIN TRAN

    DECLARE @CategoryId INT

    IF @DisplaySequence IS NULL
        OR @DisplaySequence <= 0 
        SET @DisplaySequence = 1
	
    IF @ParentCategoryId IS NULL
        OR @ParentCategoryId < 0 
        SET @ParentCategoryId = 0
        
    UPDATE  Shop_TagCategories
    SET     HasChildren = 1
    WHERE   ID = @ParentCategoryId
	
    DECLARE @Depth AS INT

    CREATE TABLE #tempTable ( Sequence INT )
    DECLARE @subQuery NVARCHAR(4000)


    SELECT @CategoryId = IDENT_CURRENT(''Shop_TagCategories'') 
    
    IF @CategoryId IS NOT NULL 
        SET @CategoryId = @CategoryId + 1
    ELSE 
        SET @CategoryId = 1


    DECLARE @Path AS NVARCHAR(500)
    DECLARE @Order AS INT

    IF @ParentCategoryId = 0 
        BEGIN
            SET @subQuery = ''SELECT TOP '' + LTRIM(RTRIM(STR(@DisplaySequence)))
                + '' DisplaySequence FROM Shop_TagCategories WHERE Depth = 1 ORDER BY DisplaySequence ASC''
	
            INSERT  INTO #tempTable
                    EXEC sp_executesql @subQuery
            SELECT  @Order = MAX(Sequence)
            FROM    #tempTable
	
            IF @Order IS NULL 
                SET @Order = 1

            SET @Path = LTRIM(RTRIM(STR(@CategoryId)))
            SET @Depth = 1
        END
    ELSE 
        BEGIN
	--获取父节点的路径和深度
            SELECT  @Path = [Path] ,
                    @Depth = Depth
            FROM    Shop_TagCategories
            WHERE   ID = @ParentCategoryId
            IF @Path IS NULL 
                BEGIN
                    SET @Err = 1
                    GOTO theEnd
                END

            SET @subQuery = ''SELECT TOP '' + LTRIM(RTRIM(STR(@DisplaySequence)))
                + '' DisplaySequence FROM Shop_TagCategories WHERE ParentCategoryId = ''
                + LTRIM(RTRIM(STR(@ParentCategoryId)))
                + '' ORDER BY DisplaySequence ASC''
	

            INSERT  INTO #tempTable
                    EXEC sp_executesql @subQuery
            SELECT  @Order = MAX(Sequence)
            FROM    #tempTable
	
	
            IF @Order IS NULL 
                BEGIN 
                    SELECT  @Order = DisplaySequence + 1
                    FROM    Shop_TagCategories
                    WHERE   ID = @ParentCategoryId
                END 

            SET @Path = @Path + ''|'' + LTRIM(RTRIM(STR(@CategoryId)))
            SET @Depth = @Depth + 1
        END

--更新当前要插入节点后所有节点的序号
    UPDATE  Shop_TagCategories
    SET     DisplaySequence = DisplaySequence + 1
    WHERE   DisplaySequence >= @Order

	
    INSERT  INTO Shop_TagCategories
            ( 
              CategoryName ,
              ParentCategoryId , 
              DisplaySequence ,
              Depth , 
              Path , 
              Meta_Title,
              Meta_Description ,
              Meta_Keywords ,
              HasChildren ,
			  Status, 
              Remark 	        
            )
    VALUES  ( 
			  @CategoryName , -- Name - nvarchar(50)
			  @ParentCategoryId , -- ParentCategoryId - int 
              @Order , -- DisplaySequence - int
              @Depth , -- Depth - int 
              @Path , -- Path - varchar(500) 
              @Meta_Title,--Meta_Title -nvarchar(1000)
              @Meta_Description , -- Meta_Description - nvarchar(1000)
              @Meta_Keywords , -- Meta_Keywords - nvarchar(1000)
              @HasChildren ,  -- HasChildren - bit 
              @Status ,--Stutas -int 
              @Remark  -- Remark - nvarchar(200)

            )

    DROP TABLE #tempTable

    IF @@Error <> 0 
        BEGIN
            SET @Err = 1
            GOTO theEnd
        END

    theEnd:
    IF @Err = 0 
        BEGIN
            COMMIT TRAN
            RETURN @CategoryId
        END
    ELSE 
        BEGIN
            ROLLBACK TRAN
            RETURN 0
        END
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Shop_SwapManage]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'-- =============================================
-- Author:		<Author：Rock>
-- Create date: <Create Date：2012年6月18日 19:59:07>
-- Description:	<Description：交换属性/规格顺序>
-- =============================================
CREATE PROCEDURE [sp_Shop_SwapManage]
    @AttributeId BIGINT ,
    @TypeId INT ,
    @ValueId BIGINT ,
    @ZIndex INT ,
    @UsageMode BIT
AS 
    BEGIN
	
        DECLARE @BeforeSwape INT
        
        DECLARE @PrevAtt BIGINT
        
        DECLARE @NextAtt BIGINT
        
        
        DECLARE @MaxSeq INT
        DECLARE @MinSeq INT 
        DECLARE @Num INT
        
        --属性/规格交换
        IF @ValueId IS NOT NULL 
            BEGIN
                SELECT  @MaxSeq = MAX(DisplaySequence)
                FROM    Shop_AttributeValues
                WHERE   AttributeId = @AttributeId
                
                SELECT  @MinSeq = MIN(DisplaySequence)
                FROM    Shop_AttributeValues
                WHERE   AttributeId = @AttributeId
            
            
            
				--内存临时表 基础数据
                DECLARE @AttributeValues TABLE
                    (
                      Num INT ,
                      ValueId BIGINT ,
                      DisplaySequence INT
                    )
            
                INSERT  INTO @AttributeValues
                        ( Num ,
                          ValueId ,
                          DisplaySequence 
                        )
                        ( SELECT    ROW_NUMBER() OVER ( ORDER BY DisplaySequence ) AS RNum ,
                                    *
                          FROM      ( SELECT    ValueId ,
                                                DisplaySequence
                                      FROM      Shop_AttributeValues
                                      WHERE     AttributeId = @AttributeId
                                    ) A
                        )
            
            
            --查询未交换之前的顺序值
                SELECT  @BeforeSwape = DisplaySequence ,
                        @Num = Num
                FROM    @AttributeValues
                WHERE   ValueId = @ValueId
                                
                IF @BeforeSwape <= @MaxSeq
                    AND @BeforeSwape >= @MinSeq 
                    BEGIN
                    
                        SELECT  @NextAtt = ValueId
                        FROM    @AttributeValues
                        WHERE   Num = ( @Num + 1 )
                
                        --SELECT  @NextAtt = ValueId
                        --FROM    Shop_AttributeValues
                        --WHERE   DisplaySequence = ( @BeforeSwape + 1 )
                        --        AND AttributeId = @AttributeId
                        SELECT  @PrevAtt = ValueId
                        FROM    @AttributeValues
                        WHERE   Num = ( @Num - 1 )
                
                        --SELECT  @PrevAtt = ValueId
                        --FROM    Shop_AttributeValues
                        --WHERE   DisplaySequence = ( @BeforeSwape - 1 )
                        --        AND AttributeId = @AttributeId
                        
                --向上
                        IF @ZIndex = 1
                            AND @BeforeSwape > @MinSeq 
                            BEGIN
						--更新当前顺序
                                UPDATE  Shop_AttributeValues
                                SET     DisplaySequence = ( SELECT
                                                              DisplaySequence
                                                            FROM
                                                              @AttributeValues
                                                            WHERE
                                                              Num = @Num - 1
                                                          ) -- @BeforeSwape - 1
                                WHERE   ValueId = @ValueId
                                
                                UPDATE  Shop_AttributeValues
                                SET     DisplaySequence = @BeforeSwape
                                WHERE   ValueId = @PrevAtt
                            END
                 --向下
                        IF @ZIndex = 0
                            AND @BeforeSwape < @MaxSeq 
                            BEGIN
                            
                                UPDATE  Shop_AttributeValues
                                SET     DisplaySequence = ( SELECT
                                                              DisplaySequence
                                                            FROM
                                                              @AttributeValues
                                                            WHERE
                                                              Num = @Num + 1
                                                          )-- @BeforeSwape + 1
                                WHERE   ValueId = @ValueId
                                
                                UPDATE  Shop_AttributeValues
                                SET     DisplaySequence = @BeforeSwape
                                WHERE   ValueId = @NextAtt
                            END
                    
                    END
            END
        
        
        
	
        IF @TypeId IS NOT NULL 
            BEGIN        
            
            
				--内存临时表 基础数据
                DECLARE @Attribute TABLE
                    (
                      Num INT ,
                      AttributeId BIGINT ,
                      DisplaySequence INT
                    )
                        
                IF @UsageMode = 0 
                    BEGIN
            	
                        SELECT  @MaxSeq = MAX(DisplaySequence)
                        FROM    Shop_Attributes
                        WHERE   TypeId = @TypeId
                                AND UsageMode <> 3
            
                        SELECT  @MinSeq = MIN(DisplaySequence)
                        FROM    Shop_Attributes
                        WHERE   TypeId = @TypeId
                                AND UsageMode <> 3
						
                        INSERT  INTO @Attribute
                                ( Num ,
                                  AttributeId ,
                                  DisplaySequence 
                                )
                                ( SELECT    ROW_NUMBER() OVER ( ORDER BY DisplaySequence ) AS RNum ,
                                            *
                                  FROM      ( SELECT    AttributeId ,
                                                        DisplaySequence
                                              FROM      Shop_Attributes
                                              WHERE     TypeId = @TypeId
                                                        AND UsageMode <> 3
                                            ) A
                                )
						
                    END
                IF @UsageMode = 1 
                    BEGIN
                        SELECT  @MaxSeq = MAX(DisplaySequence)
                        FROM    Shop_Attributes
                        WHERE   TypeId = @TypeId
                                AND UsageMode = 3
            
                        SELECT  @MinSeq = MIN(DisplaySequence)
                        FROM    Shop_Attributes
                        WHERE   TypeId = @TypeId
                                AND UsageMode = 3
                                
                        INSERT  INTO @Attribute
                                ( Num ,
                                  AttributeId ,
                                  DisplaySequence 
                                )
                                ( SELECT    ROW_NUMBER() OVER ( ORDER BY DisplaySequence ) AS RNum ,
                                            *
                                  FROM      ( SELECT    AttributeId ,
                                                        DisplaySequence
                                              FROM      Shop_Attributes
                                              WHERE     TypeId = @TypeId
                                                        AND UsageMode = 3
                                            ) A
                                )      
                    END
            
            
            
            --查询未交换之前的顺序值
                SELECT  @BeforeSwape = DisplaySequence ,
                        @Num = Num
                FROM    @Attribute
                WHERE   AttributeId = @AttributeId
                
                IF @BeforeSwape <= @MaxSeq
                    AND @BeforeSwape >= @MinSeq 
                    BEGIN
                    
                        SELECT  @NextAtt = AttributeId
                        FROM    @Attribute
                        WHERE   Num = ( @Num + 1 )
                
                
                        SELECT  @PrevAtt = AttributeId
                        FROM    @Attribute
                        WHERE   Num = ( @Num - 1 )
                
                        --SELECT  @NextAtt = AttributeId
                        --FROM    Shop_Attributes
                        --WHERE   DisplaySequence = ( @BeforeSwape + 1 )
                        --        AND TypeId = @TypeId
                
                        --SELECT  @PrevAtt = AttributeId
                        --FROM    Shop_Attributes
                        --WHERE   DisplaySequence = ( @BeforeSwape - 1 )
                        --        AND TypeId = @TypeId
                --向上
                        IF @ZIndex = 1
                            AND @BeforeSwape > @MinSeq 
                            BEGIN
						--更新当前顺序
                                UPDATE  Shop_Attributes
                                SET     DisplaySequence =( SELECT
                                                              DisplaySequence
                                                            FROM
                                                              @Attribute
                                                            WHERE
                                                              Num = @Num - 1
                                                          )-- @BeforeSwape - 1
                                WHERE   AttributeId = @AttributeId
                                
                                UPDATE  Shop_Attributes
                                SET     DisplaySequence = @BeforeSwape
                                WHERE   AttributeId = @PrevAtt
                            END
                 --向下
                        IF @ZIndex = 0
                            AND @BeforeSwape < @MaxSeq 
                            BEGIN
                	
						--更新当前顺序
                                UPDATE  Shop_Attributes
                                SET     DisplaySequence = ( SELECT
                                                              DisplaySequence
                                                            FROM
                                                              @Attribute
                                                            WHERE
                                                              Num = @Num + 1
                                                          )-- @BeforeSwape + 1
                                WHERE   AttributeId = @AttributeId
                                
                                UPDATE  Shop_Attributes
                                SET     DisplaySequence = @BeforeSwape
                                WHERE   AttributeId = @NextAtt
                            END
                    END
            END
            
    END
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Emails_Enqueue]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'CREATE  PROCEDURE [sp_Emails_Enqueue]
    (
      @EmailTo NVARCHAR(2000) ,
      @EmailCc NTEXT ,
      @EmailBcc NTEXT ,
      @EmailFrom NVARCHAR(256) ,
      @EmailSubject NVARCHAR(1024) ,
      @EmailBody NTEXT ,
      @EmailPriority INT ,
      @IsBodyHtml BIT
    )
AS 
    SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
    BEGIN

        INSERT  INTO Accounts_EmailQueue
                ( emailTo ,
                  emailCc ,
                  emailBcc ,
                  EmailFrom ,
                  EmailSubject ,
                  EmailBody ,
                  emailPriority ,
                  IsBodyHtml
		    )
        VALUES  ( @EmailTo ,
                  @EmailCc ,
                  @EmailBcc ,
                  @EmailFrom ,
                  @EmailSubject ,
                  @EmailBody ,
                  @EmailPriority ,
                  @IsBodyHtml
		    )		
    END' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Emails_Dequeue]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'CREATE    PROCEDURE [sp_Emails_Dequeue]
AS 
    SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
    BEGIN

        SELECT  *
        FROM    Accounts_EmailQueue
        WHERE   NextTryTime < GETDATE()
	
    END' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_EmailQueue_Failure]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'CREATE PROC [sp_EmailQueue_Failure]
    @EmailId INT ,
    @FailureInterval INT ,
    @MaxNumberOfTries INT
AS 
    SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
    DECLARE @NumberOfTries INT
    SELECT  @NumberOfTries = NumberOfTries + 1
    FROM    Accounts_EmailQueue
    WHERE   EmailId = @EmailId

    IF @NumberOfTries <= @MaxNumberOfTries 
        BEGIN
            UPDATE  Accounts_EmailQueue
            SET     NumberOfTries = @NumberOfTries ,
                    NextTryTime = DATEADD(minute,
                                          @NumberOfTries * @FailureInterval,
                                          GETDATE())
            WHERE   EmailId = @EmailId
        END
    ELSE 
        BEGIN
            DELETE  FROM Accounts_EmailQueue
            WHERE   EmailId = @EmailId
        END' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_EmailQueue_Delete]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'CREATE PROC [sp_EmailQueue_Delete]
    @EmailId INT
AS 
    SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
    DELETE  FROM Accounts_EmailQueue
    WHERE   EmailId = @EmailId' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_CMS_VideoClass_Delete]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'CREATE PROCEDURE [sp_CMS_VideoClass_Delete] ( @VideoClassID INT )
AS 
    DECLARE @Count INT ,
        @Sequence INT
    DECLARE @Path NVARCHAR(4000)

    SET XACT_ABORT ON
    BEGIN TRAN

    CREATE TABLE #tempTable ( VideoClassID INT )

    SELECT  @Path = Path ,
            @Sequence = Sequence
    FROM    CMS_VideoClass
    WHERE   VideoClassID = @VideoClassID
    INSERT  INTO #tempTable
            SELECT  VideoClassID
            FROM    CMS_VideoClass
            WHERE   VideoClassID = @VideoClassID
                    OR Path LIKE '''' + @Path + ''|%''

    SET @Count = @@ROWCOUNT

-- 删除自身和所有子分类
    DELETE  FROM CMS_VideoClass
    WHERE   VideoClassID IN ( SELECT    VideoClassID
                              FROM      #tempTable )

-- 修改视频分类的编号为0，表示未分类
    UPDATE  CMS_Video
    SET     VideoClassID = 0
    WHERE   VideoClassID IN ( SELECT    VideoClassID
                              FROM      #tempTable )

--更新其他记录的Sequence
    UPDATE  CMS_VideoClass
    SET     Sequence = Sequence - @Count
    WHERE   Sequence > @Sequence 

    DROP TABLE #tempTable

    COMMIT TRAN
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_CMS_VideoClass_Create]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'CREATE PROCEDURE [sp_CMS_VideoClass_Create]
    (
      @VideoClassName NVARCHAR(100) ,
      @Sequence INT ,
      @ParentID INT 
	
    )
AS 
    DECLARE @Err AS INT
    SELECT  @Err = 0

    SET XACT_ABORT ON
    BEGIN TRAN

    DECLARE @VideoClassID INT

    IF @Sequence IS NULL
        OR @Sequence <= 0 
        SET @Sequence = 1
	
    IF @ParentID IS NULL
        OR @ParentID < 0 
        SET @ParentID = 0
	
--通过现有记录获取栏目ID
    DECLARE @Depth AS INT

    CREATE TABLE #tempTable ( Sequence INT )
    DECLARE @subQuery NVARCHAR(4000)

    SELECT  @VideoClassID = MAX(VideoClassID)
    FROM    CMS_VideoClass
    IF @VideoClassID IS NOT NULL 
        SET @VideoClassID = @VideoClassID + 1
    ELSE 
        SET @VideoClassID = 1

--判断是否是顶级栏目，设置其Path和Order
    DECLARE @Path AS NVARCHAR(4000)
    DECLARE @Order AS INT

    IF @ParentID = 0 
        BEGIN
            SET @subQuery = ''SELECT TOP '' + LTRIM(RTRIM(STR(@Sequence)))
                + '' Sequence FROM CMS_VideoClass WHERE Depth = 1 ORDER BY Sequence ASC''
	
            INSERT  INTO #tempTable
                    EXEC sp_executesql @subQuery
            SELECT  @Order = MAX(Sequence)
            FROM    #tempTable
	
            IF @Order IS NULL 
                SET @Order = 1

            SET @Path = LTRIM(RTRIM(STR(@VideoClassID)))
            SET @Depth = 1
        END
    ELSE 
        BEGIN
	--获取父节点的路径和深度
            SELECT  @Path = [Path] ,
                    @Depth = Depth
            FROM    CMS_VideoClass
            WHERE   VideoClassID = @ParentID
            IF @Path IS NULL 
                BEGIN
                    SET @Err = 1
                    GOTO theEnd
                END

            SET @subQuery = ''SELECT TOP '' + LTRIM(RTRIM(STR(@Sequence)))
                + '' Sequence FROM CMS_VideoClass WHERE ParentID = ''
                + LTRIM(RTRIM(STR(@ParentID))) + '' ORDER BY Sequence ASC''
	

            INSERT  INTO #tempTable
                    EXEC sp_executesql @subQuery
            SELECT  @Order = MAX(Sequence)
            FROM    #tempTable
	
	
            IF @Order IS NULL 
                BEGIN 
                    SELECT  @Order = Sequence + 1
                    FROM    CMS_VideoClass
                    WHERE   VideoClassID = @ParentID
                END 

            SET @Path = @Path + ''|'' + LTRIM(RTRIM(STR(@VideoClassID)))
            SET @Depth = @Depth + 1
        END

--更新当前要插入节点后所有节点的序号
    UPDATE  CMS_VideoClass
    SET     Sequence = Sequence + 1
    WHERE   Sequence >= @Order

    INSERT  INTO CMS_VideoClass
            ( [VideoClassName] ,
              Sequence ,
              ParentID ,
              Depth ,
              Path
            )
    VALUES  ( @VideoClassName ,
              @Order ,
              @ParentID ,
              @Depth ,
              @Path
            )

    DROP TABLE #tempTable

    IF @@Error <> 0 
        BEGIN
            SET @Err = 1
            GOTO theEnd
        END

    theEnd:
    IF @Err = 0 
        BEGIN
            COMMIT TRAN
            RETURN @VideoClassID
        END
    ELSE 
        BEGIN
            ROLLBACK TRAN
            RETURN 0
        END
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_CMS_SwapVideoClassSequence]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'CREATE PROCEDURE [sp_CMS_SwapVideoClassSequence]
    (
      @VideoClassID INT ,
      @ZIndex INT
	
    )
AS -- @ZIndex = 0 @ZIndex = 1
    DECLARE @Path VARCHAR(1000)
    DECLARE @ParentID INT ,
        @Sequence INT
	
    DECLARE @swap_Path VARCHAR(1000)
    DECLARE @swap_VideoClassID INT
	
    SELECT  @Path = Path ,
            @ParentID = ParentID ,
            @Sequence = Sequence
    FROM    CMS_VideoClass
    WHERE   VideoClassID = @VideoClassID
    IF @Path IS NULL
        OR @ParentID IS NULL 
        RETURN
		
    IF @ZIndex = 0 
        SELECT TOP 1
                @swap_Path = Path ,
                @swap_VideoClassID = VideoClassID
        FROM    CMS_VideoClass
        WHERE   ParentID = @ParentID
                AND Sequence < @Sequence
        ORDER BY Sequence DESC
    IF @ZIndex = 1 
        SELECT TOP 1
                @swap_Path = Path ,
                @swap_VideoClassID = VideoClassID
        FROM    CMS_VideoClass
        WHERE   ParentID = @ParentID
                AND Sequence > @Sequence
        ORDER BY Sequence ASC
	
    IF @swap_Path IS NULL
        OR @swap_VideoClassID IS NULL 
        RETURN ;
	
    SET XACT_ABORT ON
    BEGIN TRAN
	
    DECLARE @tempTable TABLE ( VideoClassID INT )
    DECLARE @Count INT ,
        @SwapCount INT
	
    INSERT  INTO @tempTable
            SELECT  VideoClassID
            FROM    CMS_VideoClass
            WHERE   VideoClassID = @VideoClassID
                    OR Path LIKE '''' + @Path + ''|%''
    SET @Count = @@ROWCOUNT
	
    IF @ZIndex = 0 
        BEGIN
            UPDATE  CMS_VideoClass
            SET     Sequence = Sequence + @Count
            WHERE   VideoClassID = @swap_VideoClassID
                    OR Path LIKE '''' + @swap_Path + ''|%''
            SET @SwapCount = @@ROWCOUNT
            UPDATE  CMS_VideoClass
            SET     Sequence = Sequence - @SwapCount
            WHERE   VideoClassID IN ( SELECT    VideoClassID
                                      FROM      @tempTable )
        END
    IF @ZIndex = 1 
        BEGIN
            UPDATE  CMS_VideoClass
            SET     Sequence = Sequence - @Count
            WHERE   VideoClassID = @swap_VideoClassID
                    OR Path LIKE '''' + @swap_Path + ''|%''
            SET @SwapCount = @@ROWCOUNT
            UPDATE  CMS_VideoClass
            SET     Sequence = Sequence + @SwapCount
            WHERE   VideoClassID IN ( SELECT    VideoClassID
                                      FROM      @tempTable )
        END
	
    COMMIT TRAN
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_CMS_SwapContentClassSequence]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'CREATE PROCEDURE [sp_CMS_SwapContentClassSequence]
    (
      @ClassID INT ,
      @ZIndex INT
	
    )
AS -- @ZIndex = 0 @ZIndex = 1
    DECLARE @Path VARCHAR(1000)
    DECLARE @ParentID INT ,
        @Sequence INT
	
    DECLARE @swap_Path VARCHAR(1000)
    DECLARE @swap_ContentClassID INT
	
    SELECT  @Path = Path ,
            @ParentID = ParentID ,
            @Sequence = Sequence
    FROM    CMS_ContentClass
    WHERE   ClassID = @ClassID
    IF @Path IS NULL
        OR @ParentID IS NULL 
        RETURN
		
    IF @ZIndex = 0 
        SELECT TOP 1
                @swap_Path = Path ,
                @swap_ContentClassID = ClassID
        FROM    CMS_ContentClass
        WHERE   ParentID = @ParentID
                AND Sequence < @Sequence
        ORDER BY Sequence DESC
    IF @ZIndex = 1 
    
        SELECT TOP 1
                @swap_Path = Path ,
                @swap_ContentClassID = ClassID
        FROM    CMS_ContentClass
        WHERE   ParentID = @ParentID
                AND Sequence > @Sequence
        ORDER BY Sequence ASC
	
	PRINT @swap_Path
	
    IF @swap_Path IS NULL
        OR @swap_ContentClassID IS NULL 
        RETURN ;
	
    SET XACT_ABORT ON
    BEGIN TRAN
	
    DECLARE @tempTable TABLE ( ClassID INT )
    DECLARE @Count INT ,
        @SwapCount INT
	
    INSERT  INTO @tempTable
            SELECT  ClassID
            FROM    CMS_ContentClass
            WHERE   ClassID = @ClassID
                    OR Path LIKE '''' + @Path + ''|%''
    SET @Count = @@ROWCOUNT
    
    IF @ZIndex = 0 
        BEGIN
            UPDATE  CMS_ContentClass
            SET     Sequence = Sequence + @Count
            WHERE   ClassID = @swap_ContentClassID
                    OR Path LIKE '''' + @swap_Path + ''|%''
            SET @SwapCount = @@ROWCOUNT
            UPDATE  CMS_ContentClass
            SET     Sequence = Sequence - @SwapCount
            WHERE   ClassID IN ( SELECT ClassID
                                 FROM   @tempTable )
        END
    IF @ZIndex = 1 
        BEGIN
            UPDATE  CMS_ContentClass
            SET     Sequence = Sequence - @Count
            WHERE   ClassID = @swap_ContentClassID
                    OR Path LIKE '''' + @swap_Path + ''|%''
            SET @SwapCount = @@ROWCOUNT
            UPDATE  CMS_ContentClass
            SET     Sequence = Sequence + @SwapCount
            WHERE   ClassID IN ( SELECT ClassID
                                 FROM   @tempTable )
        END
	
    COMMIT TRAN
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_CMS_ContentClass_Create]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'CREATE PROCEDURE [sp_CMS_ContentClass_Create]
    (
      @ClassName VARCHAR(50) = NULL ,
      @ClassIndex INT = NULL ,
      @Sequence INT = NULL ,
      @State INT = NULL ,
      @AllowSubclass BIT ,
      @AllowAddContent BIT ,
      @ImageUrl NVARCHAR(200) ,
      @ParentID INT = NULL ,
      @Description VARCHAR(150) ,
      @Keywords VARCHAR(50) ,
      @ClassTypeID INT ,
      @ClassModel SMALLINT ,
      @PageModelName VARCHAR(200) ,
      @CreatedUserID INT ,
      @Remark VARCHAR(200),
      @Meta_Title VARCHAR(1000),
      @Meta_Description VARCHAR(1000),
      @Meta_Keywords VARCHAR(1000),
      @SeoUrl VARCHAR(300),
      @SeoImageAlt VARCHAR(300),
      @SeoImageTitle VARCHAR(300),
      @IndexChar  VARCHAR(200)
    )
AS 
    DECLARE @Err AS INT
    SELECT  @Err = 0

    SET XACT_ABORT ON
    BEGIN TRAN

    DECLARE @ContentClassID INT

    IF @Sequence IS NULL
        OR @Sequence <= 0 
        SET @Sequence = 1
	
    IF @ParentID IS NULL
        OR @ParentID < 0 
        SET @ParentID = 0
	
--通过现有记录获取栏目ID
    DECLARE @Depth AS INT

    CREATE TABLE #tempTable ( Sequence INT )
    DECLARE @subQuery NVARCHAR(4000)

    SELECT  @ContentClassID = MAX(ClassID)
    FROM    CMS_ContentClass
    IF @ContentClassID IS NOT NULL 
        SET @ContentClassID = @ContentClassID + 1
    ELSE 
        SET @ContentClassID = 1

--判断是否是顶级栏目，设置其Path和Order
    DECLARE @Path AS NVARCHAR(4000)
    DECLARE @Order AS INT

    IF @ParentID = 0 
        BEGIN
            SET @subQuery = ''SELECT TOP '' + LTRIM(RTRIM(STR(@Sequence)))
                + '' Sequence FROM CMS_ContentClass WHERE Depth = 1 ORDER BY Sequence ASC''
	
            INSERT  INTO #tempTable
                    EXEC sp_executesql @subQuery
            SELECT  @Order = MAX(Sequence)
            FROM    #tempTable
	
            IF @Order IS NULL 
                SET @Order = 1

            SET @Path = LTRIM(RTRIM(STR(@ContentClassID)))
            SET @Depth = 1
        END
    ELSE 
        BEGIN
	--获取父节点的路径和深度
            SELECT  @Path = [Path] ,
                    @Depth = Depth
            FROM    CMS_ContentClass
            WHERE   ClassID = @ParentID
            IF @Path IS NULL 
                BEGIN
                    SET @Err = 1
                    GOTO theEnd
                END

            SET @subQuery = ''SELECT TOP '' + LTRIM(RTRIM(STR(@Sequence)))
                + '' Sequence FROM CMS_ContentClass WHERE ParentID = ''
                + LTRIM(RTRIM(STR(@ParentID))) + '' ORDER BY Sequence ASC''
	

            INSERT  INTO #tempTable
                    EXEC sp_executesql @subQuery
            SELECT  @Order = MAX(Sequence)
            FROM    #tempTable
	
	
            IF @Order IS NULL 
                BEGIN 
                    SELECT  @Order = Sequence + 1
                    FROM    CMS_ContentClass
                    WHERE   ClassID = @ParentID
                END 

            SET @Path = @Path + ''|'' + LTRIM(RTRIM(STR(@ContentClassID)))
            SET @Depth = @Depth + 1
        END

--更新当前要插入节点后所有节点的序号
    UPDATE  CMS_ContentClass
    SET     Sequence = Sequence + 1
    WHERE   Sequence >= @Order

    INSERT  INTO CMS_ContentClass
            ( ClassName ,
              ClassIndex ,
              Sequence ,
              ParentId ,
              State ,
              AllowSubclass ,
              AllowAddContent ,
              ImageUrl ,
              Description ,
              Keywords ,
              ClassTypeID ,
              ClassModel ,
              PageModelName ,
              CreatedDate ,
              CreatedUserID ,
              Path ,
              Depth ,
              Remark,
              Meta_Title,
              Meta_Description,
              Meta_Keywords,
              SeoUrl,
              SeoImageAlt,
              SeoImageTitle,
              IndexChar
            )
    VALUES  ( @ClassName ,
              @ClassIndex ,
              @Order ,
              @ParentID ,
              @State,
              @AllowSubclass,
              @AllowAddContent,
              @ImageUrl,
              @Description,
              @Keywords,
              @ClassTypeID ,
              @ClassModel ,
              @PageModelName ,
              GETDATE() ,
              @CreatedUserID ,
              @Path,
              @Depth ,
              @Remark,
                @Meta_Title,
              @Meta_Description,
              @Meta_Keywords,
              @SeoUrl,
              @SeoImageAlt,
              @SeoImageTitle,
              @IndexChar
            )

    DROP TABLE #tempTable

    IF @@Error <> 0 
        BEGIN
            SET @Err = 1
            GOTO theEnd
        END

    theEnd:
    IF @Err = 0 
        BEGIN
            COMMIT TRAN
            RETURN @ContentClassID
        END
    ELSE 
        BEGIN
            ROLLBACK TRAN
            RETURN 0
        END
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_CMS_Category_Delete]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'
-- =============================================
-- Author:		<Author:Rock>
-- Create date: <Create Date:2012年6月21日 16:04:01>
-- Description:	<Description:删除内容分类>
-- =============================================
CREATE PROCEDURE [sp_CMS_Category_Delete]
    @ClassID INT ,
    @Status INT OUTPUT
AS 
    BEGIN
        DECLARE @Err AS INT ,
            @Count INT ,
            @DisplaySequence INT
        DECLARE @Path NVARCHAR(4000)
        SET XACT_ABORT ON
        BEGIN TRAN

        CREATE TABLE #tempTable ( ClassID INT )

        SELECT  @Err = 0 ,
                @Status = 99 ,
                @Path = Path ,
                @DisplaySequence = Sequence
        FROM    CMS_ContentClass
        WHERE   ClassID = @ClassID
        INSERT  INTO #tempTable
                SELECT  ClassID
                FROM    CMS_ContentClass
                WHERE   ClassID = @ClassID
                        OR Path LIKE '''' + @Path + ''|%''

        SET @Count = @@ROWCOUNT

-- 删除自身和所有子分类
        DELETE  FROM CMS_ContentClass
        WHERE   ClassID IN ( SELECT  ClassID
                                FROM    #tempTable )


        UPDATE  CMS_Content
        SET     ClassID = 0
        WHERE   ClassID IN ( SELECT  ClassID
                                FROM    #tempTable )

--更新其他记录的DisplaySequence
        UPDATE  CMS_ContentClass
        SET     Sequence = Sequence - @Count
        WHERE   Sequence > @DisplaySequence 

        DROP TABLE #tempTable

        COMMIT TRAN
        SET @Status = 0
    END

' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_cc_Category_Update]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'-- =============================================
-- Author:		<Author:Rock>
-- Create date: <Create Date:2012年6月20日 11:51:18>
-- Description:	<Description:更新分类信息,>
-- =============================================
CREATE PROCEDURE [sp_cc_Category_Update]
    @CategoryId INT ,
    @Name NVARCHAR(100) ,
    @MetaDescription NVARCHAR(1000) ,
    @MetaKeywords NVARCHAR(1000) ,
    @Description NVARCHAR(1000) ,
    @RewriteName NVARCHAR(50) ,
    @SKUPrefix NVARCHAR(10) ,
    @AssociatedProductType INT,
    @ImageUrl NVARCHAR(300),
    @Meta_Title NVARCHAR(1000)
AS 
    BEGIN
        UPDATE  Shop_Categories
        SET     Name = @Name ,
                Meta_Description = @MetaDescription ,
                Meta_Keywords = @MetaKeywords ,
                Description = @Description ,
                RewriteName = @RewriteName ,
                SKUPrefix = @SKUPrefix ,
                AssociatedProductType = @AssociatedProductType,
                Meta_Title=@Meta_Title,
                ImageUrl=@ImageUrl
        WHERE   CategoryId = @CategoryId
    END
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_ValidateLogin]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'

CREATE PROCEDURE [sp_Accounts_ValidateLogin]
    @UserName VARCHAR(50) = NULL ,
    @Email VARCHAR(100) = NULL ,
    @EncryptedPassword BINARY(20)
AS 
    DECLARE @UserID INT

    IF @Email IS NULL 
        BEGIN
            SELECT  @UserID = UserID
            FROM    Accounts_Users
            WHERE   UserName = @UserName
                    AND Password = @EncryptedPassword
        END
    ELSE 
        BEGIN
            SELECT  @UserID = UserID
            FROM    Accounts_Users
            WHERE   Email = @Email
                    AND Password = @EncryptedPassword
        END


    IF @UserID = NULL 
        RETURN -1
    ELSE 
        RETURN @UserID
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_UpdateUser]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'






CREATE PROCEDURE [sp_Accounts_UpdateUser]
@UserName varchar(50),
@Password binary(20),
@NickName varchar(50),
@TrueName varchar(50),
@Sex char(2),
@Phone varchar(20),
@Email varchar(100),
@EmployeeID int,
@DepartmentID varchar(15),
@Activity bit,
@UserType char(2),
@UserID int,
@Style int

AS
	UPDATE Accounts_Users SET
		UserName = @UserName,
		Password = @Password,
		NickName = @NickName,
		TrueName = @TrueName,
		Sex = @Sex,
		Phone = @Phone,
		Email = @Email,
		EmployeeID = @EmployeeID,
		DepartmentID = @DepartmentID,
		Activity = @Activity,
		UserType = @UserType,
		Style=@Style 
		WHERE UserID = @UserID
' 
END
GO
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER OFF
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_UpdateRole]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'






CREATE PROCEDURE [sp_Accounts_UpdateRole]
@RoleID int,
@Description varchar(50)
AS
	UPDATE Accounts_Roles SET Description = @Description WHERE RoleID = @RoleID






' 
END
GO
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER OFF
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_UpdatePermission]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'


CREATE PROCEDURE [sp_Accounts_UpdatePermission]
@PermissionID int,
@Description varchar(50)
AS
	UPDATE Accounts_Permissions SET Description = @Description WHERE PermissionID = @PermissionID


' 
END
GO
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER OFF
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_TestPassword]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'






CREATE PROCEDURE [sp_Accounts_TestPassword]
@UserID int,
@EncryptedPassword binary(20)
AS
     DECLARE @TempID int
     SELECT @TempID = UserID FROM Accounts_Users WHERE UserID = @UserID AND
	Password = @EncryptedPassword

     IF @TempID IS NULL
	RETURN 0
     ELSE
	RETURN 1






' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_SetPassword]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'
CREATE PROCEDURE [sp_Accounts_SetPassword]
@UserName varchar(50),
@EncryptedPassword binary(20)
AS

UPDATE Accounts_Users SET
Password = @EncryptedPassword
WHERE UserName = @UserName
' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_SendEmail]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'-- =============================================
-- Author:		<Rock>
-- Modify date: <2012年10月12日 11:33:23>
-- Description:	<加入队列>
-- =============================================
CREATE PROCEDURE [sp_Accounts_SendEmail]
    @UserType NVARCHAR(10) ,
    @UserName NVARCHAR(50) ,
    @EmailSubject NVARCHAR(1024) ,
    @EmailBody TEXT ,
    @EmailFrom NVARCHAR(256)
AS 
    BEGIN
        IF ( @UserName = '''' ) 
            BEGIN
                INSERT  INTO Accounts_EmailQueue
                        ( EmailPriority ,
                          IsBodyHtml ,
                          EmailTo ,
                          EmailCc ,
                          EmailBcc ,
                          EmailFrom ,
                          EmailSubject ,
                          EmailBody 
                        )
                        ( SELECT    0 ,
                                    0 ,
                                    Email ,
                                    NULL ,
                                    NULL ,
                                    @EmailFrom,
                                    @EmailSubject ,
                                    @EmailBody 
                          FROM      ( SELECT    Email
                                      FROM      Accounts_Users
                                      WHERE     UserType = @UserType
                                                AND Email <> ''''
                                                AND Activity = 1
                                    ) A
                        )
       
            END
        ELSE 
            BEGIN
                INSERT  INTO Accounts_EmailQueue
                        ( EmailPriority ,
                          IsBodyHtml ,
                          EmailTo ,
                          EmailCc ,
                          EmailBcc ,
                          EmailFrom ,
                          EmailSubject ,
                          EmailBody 
                        )
                        ( SELECT    0 ,
                                    0 ,
                                    Email ,
                                    NULL ,
                                    NULL,
                                    @EmailFrom ,
                                    @EmailSubject ,                         
                                    @EmailBody 
                          FROM      ( SELECT    Email
                                      FROM      Accounts_Users
                                      WHERE     UserName = @UserName
                                                AND Email <> ''''
                                                AND Activity = 1
                                    ) A
                        )
            END
    END
' 
END
GO
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER OFF
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_RemoveUserFromRole]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'






CREATE PROCEDURE [sp_Accounts_RemoveUserFromRole]
@UserID int,
@RoleID int
AS
	DELETE Accounts_UserRoles WHERE UserID = @UserID AND RoleID = @RoleID






' 
END
GO
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER OFF
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_RemovePermissionFromRole]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'






CREATE PROCEDURE [sp_Accounts_RemovePermissionFromRole]
@RoleID int,
@PermissionID int
AS
	DELETE Accounts_RolePermissions WHERE RoleID = @RoleID and PermissionID = @PermissionID






' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_GetUsersByType]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'CREATE PROCEDURE [sp_Accounts_GetUsersByType]
@UserType varchar(2),
@key varchar(50)
AS

SELECT * FROM Accounts_Users where UserType = ''''+@UserType+'''' and (UserName like ''%''+@key+''%'' or TrueName like ''%''+@key+''%'') order by UserID




' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_GetUsersByDepartUserType]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'CREATE PROCEDURE [sp_Accounts_GetUsersByDepartUserType]
@DepartmentID varchar(50),
@UserType varchar(2)
AS

SELECT * FROM Accounts_Users where DepartmentID = ''''+@DepartmentID+'''' and UserType = ''''+@UserType+'''' order by UserID


' 
END
GO
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER OFF
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_GetUsersByDepart]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'CREATE PROCEDURE [sp_Accounts_GetUsersByDepart]
    @DepartmentID VARCHAR(50) ,
    @key VARCHAR(50)
AS 
    SELECT  *
    FROM    Accounts_Users
    WHERE   DepartmentID = '''' + @DepartmentID + ''''
            AND ( UserName LIKE ''%'' + @Key + ''%''
                  OR TrueName LIKE ''%'' + @Key + ''%''
                )
    ORDER BY UserID
' 
END
GO
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER OFF
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_GetUsers]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'




CREATE PROCEDURE [sp_Accounts_GetUsers]
@key varchar(50)
AS

SELECT * FROM Accounts_Users where 
UserName like ''%''+@key+''%'' or TrueName like ''%''+@key+''%''
order by UserID


' 
END
GO
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER OFF
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_GetUserRoles]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'






CREATE PROCEDURE [sp_Accounts_GetUserRoles]
@UserID int
AS
	SELECT ur.RoleID, r.Description FROM Accounts_UserRoles ur
		INNER JOIN Accounts_Roles r ON ur.RoleID = r.RoleID  WHERE ur.UserID = @UserID






' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_GetUserDetailsByUserName]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'
CREATE PROCEDURE [sp_Accounts_GetUserDetailsByUserName]
@UserName varchar(100)
AS
	SELECT * FROM Accounts_Users WHERE UserName = @UserName

' 
END
GO
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER OFF
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_GetUserDetails]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'






CREATE PROCEDURE [sp_Accounts_GetUserDetails]
@UserID int
AS
	SELECT * FROM Accounts_Users WHERE UserID = @UserID






' 
END
GO
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER OFF
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_GetRoleDetails]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'






CREATE PROCEDURE [sp_Accounts_GetRoleDetails]
@RoleID int
AS
	SELECT RoleID, Description FROM Accounts_Roles WHERE RoleID = @RoleID






' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_GetRegionID]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'-- =============================================
-- Author:		<Rock>
-- Create date: <2012年4月12日 09:58:49>
-- Description:	<根据regionID获取所有父ID>
-- =============================================
CREATE  PROCEDURE [sp_Accounts_GetRegionID]
    @Region INT ,
    @Count INT OUTPUT
AS 
    BEGIN
	
        DECLARE @strPath NVARCHAR(50)  
        SELECT  @strPath = [Path]
        FROM    Ms_Regions
        WHERE   RegionId = @Region
        
        SELECT  *
        FROM    F_SplitToString(@strPath, '','')
        WHERE   UnitString <> ''0''
                AND UnitString <> ''''
                

        SELECT  @Count = COUNT(1)
        FROM    F_SplitToString(@strPath, '','')
        WHERE   UnitString <> ''0''
                AND UnitString <> ''''
    END' 
END
GO
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER OFF
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_GetPermissionsInCategory]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'





CREATE PROCEDURE [sp_Accounts_GetPermissionsInCategory]
@CategoryID int
AS
	SELECT * FROM Accounts_Permissions where CategoryID=@CategoryID ORDER BY Description


' 
END
GO
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER OFF
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_GetPermissionList]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'






CREATE PROCEDURE [sp_Accounts_GetPermissionList]
@RoleID int
AS
	IF @RoleID IS NULL
		SELECT PermissionID, Description, CategoryID FROM Accounts_Permissions ORDER BY Description
	ELSE
		SELECT ap.PermissionID, ap.Description, ap.CategoryID FROM Accounts_Permissions ap INNER JOIN
		Accounts_RolePermissions apr ON ap.PermissionID = apr.PermissionID WHERE
		apr.RoleID = @RoleID ORDER BY ap.Description






' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_GetPermissionDetails]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'


CREATE PROCEDURE [sp_Accounts_GetPermissionDetails]
@PermissionID int
AS
	SELECT * FROM Accounts_Permissions WHERE PermissionID = @PermissionID







' 
END
GO
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_GetPermissionCategoryDetails]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'






CREATE PROCEDURE [sp_Accounts_GetPermissionCategoryDetails]
@CategoryID int
AS
	SELECT CategoryID, Description FROM Accounts_PermissionCategories WHERE CategoryID = @CategoryID






' 
END
GO
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER OFF
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_GetPermissionCategories]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'





CREATE PROCEDURE [sp_Accounts_GetPermissionCategories]
AS
	SELECT * FROM Accounts_PermissionCategories





' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_GetNoPermissionList]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'




CREATE PROCEDURE [sp_Accounts_GetNoPermissionList]
@RoleID int
AS
	IF @RoleID IS NULL
		SELECT PermissionID, Description, CategoryID FROM Accounts_Permissions ORDER BY Description
	ELSE
		SELECT PermissionID, Description, CategoryID 
		FROM Accounts_Permissions
		where PermissionID not in(select PermissionID from Accounts_RolePermissions WHERE RoleID = @RoleID )
		ORDER BY Description




' 
END
GO
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER OFF
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_GetEffectivePermissionListID]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'






CREATE PROCEDURE [sp_Accounts_GetEffectivePermissionListID]
@UserID int
AS
   SELECT DISTINCT PermissionID FROM Accounts_RolePermissions
	 where RoleID IN
	(SELECT RoleID FROM Accounts_UserRoles WHERE UserID = @UserID)


' 
END
GO
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER OFF
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_GetEffectivePermissionList]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'






CREATE PROCEDURE [sp_Accounts_GetEffectivePermissionList]
@UserID int
AS
   SELECT DISTINCT Accounts_Permissions.PermissionID,Accounts_Permissions.Description,Accounts_Permissions.CategoryID FROM Accounts_RolePermissions
	 inner join Accounts_Permissions on 
	Accounts_RolePermissions.PermissionID=Accounts_Permissions.PermissionID WHERE RoleID IN
	(SELECT RoleID FROM Accounts_UserRoles WHERE UserID = @UserID)

' 
END
GO
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER OFF
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_GetAllRoles]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'






CREATE PROCEDURE [sp_Accounts_GetAllRoles]
AS
	SELECT RoleID, Description FROM Accounts_Roles ORDER BY Description ASC






' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_DeleteUser]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'





CREATE PROCEDURE [sp_Accounts_DeleteUser]
@UserID int
AS
     DELETE Accounts_UserRoles WHERE UserId = @UserId
     DELETE ACcounts_Users WHERE UserId = @UserId





' 
END
GO
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER OFF
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_DeleteRole]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'






CREATE PROCEDURE [sp_Accounts_DeleteRole]
@RoleID int
AS
	BEGIN TRANSACTION
		DELETE Accounts_RolePermissions WHERE RoleID = @RoleID
		DELETE Accounts_UserRoles WHERE RoleID = @RoleID
		DELETE Accounts_Roles WHERE RoleID = @RoleID
	COMMIT TRANSACTION






' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_DeletePermissionCategory]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'




CREATE PROCEDURE [sp_Accounts_DeletePermissionCategory]
@CategoryID int
AS
	BEGIN TRANSACTION
		DELETE Accounts_Permissions WHERE CategoryID = @CategoryID
		DELETE Accounts_PermissionCategories WHERE CategoryID = @CategoryID
	COMMIT TRANSACTION




' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_DeletePermission]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'




CREATE PROCEDURE [sp_Accounts_DeletePermission]
@PermissionID int
AS
	BEGIN TRANSACTION
		DELETE Accounts_Permissions WHERE PermissionID = @PermissionID
		DELETE Accounts_RolePermissions WHERE PermissionID = @PermissionID
	COMMIT TRANSACTION




' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_CreateUser]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'






CREATE PROCEDURE [sp_Accounts_CreateUser]
@UserName varchar(50),
@Password binary(20),
@NickName varchar(50),
@TrueName varchar(50),
@Sex char(2),
@Phone varchar(20),
@Email varchar(100),
@EmployeeID int,
@DepartmentID varchar(15),
@Activity bit,
@UserType char(2),
@UserID int output,
@Style int,
@User_iCreator int,
@User_dateCreate datetime,
@User_cLang varchar(10),
@User_dateValid datetime
AS
	INSERT INTO Accounts_Users(UserName, Password, NickName, TrueName, Sex, Phone, Email,
		EmployeeID, DepartmentID, Activity, UserType,Style,User_iCreator,User_dateCreate,User_cLang,User_dateValid)
	VALUES(@UserName, @Password, @NickName, @TrueName, @Sex, @Phone, @Email,
		@EmployeeID, @DepartmentID, @Activity, @UserType,@Style,@User_iCreator,@User_dateCreate,@User_cLang,@User_dateValid)
	
	SET @UserID = @@IDENTITY

	RETURN 1
' 
END
GO
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER OFF
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_CreateRole]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'






CREATE PROCEDURE [sp_Accounts_CreateRole]
@Description varchar(50)
AS
	INSERT INTO Accounts_Roles(Description) VALUES(@Description)
	RETURN @@IDENTITY






' 
END
GO
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER OFF
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_CreatePermissionCategory]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'






CREATE PROCEDURE [sp_Accounts_CreatePermissionCategory]
@Description varchar(50)
AS
	INSERT INTO Accounts_PermissionCategories(Description) VALUES(@Description)
	RETURN @@IDENTITY




' 
END
GO
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER OFF
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_CreatePermission]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'






CREATE PROCEDURE [sp_Accounts_CreatePermission]
@CategoryID int,
@Description varchar(50)
AS
	INSERT INTO Accounts_Permissions(CategoryID,Description) VALUES(@CategoryID,@Description)
	RETURN @@IDENTITY




' 
END
GO
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER OFF
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_ClearPermissionsFromRole]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'






CREATE PROCEDURE [sp_Accounts_ClearPermissionsFromRole]
@RoleID int
AS
	DELETE Accounts_RolePermissions WHERE RoleID = @RoleID






' 
END
GO
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER OFF
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_AddUserToRole]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'






CREATE PROCEDURE [sp_Accounts_AddUserToRole]
@UserID int,
@RoleID int
AS
	DECLARE @Count int
	
	SELECT @Count = Count(UserID) FROM Accounts_UserRoles WHERE
		RoleID = @RoleID AND UserID = @UserID

	IF @Count = 0
		INSERT INTO Accounts_UserRoles(UserID, RoleID)
		VALUES(@UserID, @RoleID)






' 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sp_Accounts_AddPermissionToRole]') AND type in (N'P', N'PC'))
BEGIN
EXEC sp_executesql @statement = N'






CREATE PROCEDURE [sp_Accounts_AddPermissionToRole]
@RoleID int,
@PermissionID int
AS
	DECLARE @Count int

	SELECT @Count = Count(PermissionID) FROM Accounts_RolePermissions WHERE
		RoleID = @RoleID and PermissionID = @PermissionID
	
	IF @Count = 0
		INSERT INTO Accounts_RolePermissions(RoleID, PermissionID)
		VALUES(@RoleID, @PermissionID)






' 
END
GO
