博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
DZ!NT论坛 3.6.711删除用户各种错解决方案
阅读量:6526 次
发布时间:2019-06-24

本文共 5618 字,大约阅读时间需要 18 分钟。

首先删除一个用户~ado.net报错

对象名  'dnt_spaceposts' 无效。

对象名  'dnt_spaceconfigs' 无效。

对象名  'dnt_photocomments' 无效。

对象名  'dnt_photos' 无效。

对象名  'dnt_albums' 无效。

 

各种错误!!!我是利用向导安装的居然还来这么一出!!!!fuck !shit!

好吧手动添加建表脚本如下:

CREATE TABLE [dnt_spaceposts] (	[postid] [int] IDENTITY (1, 1) NOT NULL ,	[author] [nvarchar] (40)  NOT NULL ,	[uid] [int] NOT NULL ,	[postdatetime] [datetime] NOT NULL ,	[content] [ntext]  NOT NULL ,	[title] [nvarchar] (120)  NOT NULL ,	[category] [varchar] (255)  NOT NULL ,	[poststatus] [tinyint] NOT NULL ,	[commentstatus] [tinyint] NOT NULL ,	[postupdatetime] [datetime] NOT NULL ,	[commentcount] [int] NOT NULL ,	[views] [int] NOT NULL CONSTRAINT [DF_dnt_spaceposts_views] DEFAULT (0),	CONSTRAINT [PK_dnt_spaceposts] PRIMARY KEY  CLUSTERED 	(		[postid]	)  ON [PRIMARY] ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]GOCREATE TABLE [dnt_spaceconfigs] (	[spaceid] [int] IDENTITY (1, 1) NOT NULL ,	[userid] [int] NOT NULL ,	[spacetitle] [nchar] (100)  NOT NULL CONSTRAINT [DF_dnt_spaceconfig_spacetitle] DEFAULT (''),	[description] [nchar] (200)  NOT NULL CONSTRAINT [DF_dnt_spaceconfig_description] DEFAULT (''),	[blogdispmode] [tinyint] NOT NULL CONSTRAINT [DF_dnt_spaceconfig_blogdispmode] DEFAULT (0),	[bpp] [int] NOT NULL CONSTRAINT [DF_dnt_spaceconfig_bpp] DEFAULT (16),	[commentpref] [tinyint] NOT NULL CONSTRAINT [DF_dnt_spaceconfig_commentpref] DEFAULT (0),	[messagepref] [tinyint] NOT NULL CONSTRAINT [DF_dnt_spaceconfig_messagepref] DEFAULT (0),	[rewritename] [char] (100)  NOT NULL CONSTRAINT [DF_dnt_spaceconfig_rewritename] DEFAULT (''),	[themeid] [int] NOT NULL CONSTRAINT [DF_dnt_spaceconfig_theme] DEFAULT (0),	[themepath] [nchar] (50)  NOT NULL CONSTRAINT [DF_dnt_spaceconfig_template] DEFAULT (''),	[postcount] [int] NOT NULL CONSTRAINT [DF_dnt_spaceconfigs_postcount] DEFAULT (0),	[commentcount] [int] NOT NULL CONSTRAINT [DF_dnt_spaceconfigs_commentcount] DEFAULT (0),	[visitedtimes] [int] NOT NULL CONSTRAINT [DF_dnt_spaceconfigs_visitedtimes] DEFAULT (0),	[createdatetime] [smalldatetime] NOT NULL CONSTRAINT [DF_dnt_spaceconfigs_createdatetime] DEFAULT (getdate()),	[updatedatetime] [smalldatetime] NOT NULL CONSTRAINT [DF_dnt_spaceconfigs_updatedatetime] DEFAULT (getdate()),	[defaulttab] [int] NOT NULL CONSTRAINT [DF_dnt_spaceconfigs_defaulttab] DEFAULT (0),	[status] [int] NOT NULL CONSTRAINT [DF_dnt_spaceconfigs_status] DEFAULT (0),	CONSTRAINT [PK_dnt_spaceconfig] PRIMARY KEY  CLUSTERED 	(		[spaceid]	)  ON [PRIMARY] ) ON [PRIMARY]GOCREATE TABLE [dnt_photocomments] (	[commentid] [int] IDENTITY (1, 1) NOT NULL ,	[photoid] [int] NOT NULL ,	[username] [nvarchar] (20)  NOT NULL ,	[userid] [int] NOT NULL ,	[ip] [varchar] (100)  NOT NULL CONSTRAINT [DF_dnt_photocomments_ip] DEFAULT (''),	[postdatetime] [smalldatetime] NOT NULL ,	[content] [nvarchar] (2000)  NOT NULL ) ON [PRIMARY]GOCREATE TABLE [dnt_photos] (	[photoid] [int] IDENTITY (1, 1) NOT NULL ,	[filename] [char] (255)  NOT NULL ,	[attachment] [nchar] (255)  NOT NULL ,	[filesize] [int] NOT NULL ,	[title] [nchar] (20)  NOT NULL ,	[description] [nchar] (200)  NOT NULL CONSTRAINT [DF_dnt_spacephoto_description] DEFAULT (''),	[postdate] [datetime] NOT NULL CONSTRAINT [DF_dnt_spacephoto_postdate] DEFAULT (getdate()),	[albumid] [int] NOT NULL ,	[userid] [int] NOT NULL ,	[username] [nchar] (20)  NOT NULL CONSTRAINT [DF_dnt_photos_username] DEFAULT (''),	[views] [int] NOT NULL CONSTRAINT [DF_dnt_photos_viewcount] DEFAULT (0),	[commentstatus] [tinyint] NOT NULL CONSTRAINT [DF_dnt_photos_commentstatus] DEFAULT (0),	[tagstatus] [tinyint] NOT NULL CONSTRAINT [DF_dnt_photos_tagstatus] DEFAULT (0),	[comments] [int] NOT NULL CONSTRAINT [DF_dnt_photos_comments] DEFAULT (0),	[isattachment] [int] NOT NULL CONSTRAINT [DF_dnt_photos_isattachment] DEFAULT (0),	[width] [int] NULL ,	[height] [int] NULL ,	CONSTRAINT [PK_dnt_spacephoto] PRIMARY KEY  CLUSTERED 	(		[photoid]	)  ON [PRIMARY] ) ON [PRIMARY]GOCREATE TABLE [dnt_albums] (	[albumid] [int] IDENTITY (1, 1) NOT NULL ,	[albumcateid] [int] NOT NULL ,	[userid] [int] NOT NULL CONSTRAINT [DF_dnt_spacealbums_userid] DEFAULT ((-1)),	[username] [nchar] (20)  NOT NULL CONSTRAINT [DF_dnt_albums_username] DEFAULT (''),	[title] [nchar] (50)  NOT NULL CONSTRAINT [DF_dnt_spacealbums_title] DEFAULT (''),	[description] [nchar] (200)  NOT NULL CONSTRAINT [DF_dnt_spacealbums_description] DEFAULT (''),	[logo] [nchar] (255)  NOT NULL CONSTRAINT [DF_dnt_spacealbums_logo] DEFAULT (''),	[password] [nchar] (50)  NOT NULL CONSTRAINT [DF_dnt_spacealbums_password] DEFAULT (''),	[imgcount] [int] NOT NULL CONSTRAINT [DF_dnt_spacealbums_imgcount] DEFAULT (0),	[views] [int] NOT NULL CONSTRAINT [DF_dnt_spacealbums_views] DEFAULT (0),	[type] [int] NOT NULL CONSTRAINT [DF_dnt_spacealbums_type] DEFAULT (0),	[createdatetime] [datetime] NOT NULL CONSTRAINT [DF_dnt_spacealbums_createdatetime] DEFAULT (getdate()),	CONSTRAINT [PK_dnt_spacealbums] PRIMARY KEY  CLUSTERED 	(		[albumid]	)  ON [PRIMARY] ) ON [PRIMARY]GO CREATE  UNIQUE  INDEX [userid] ON [dnt_spaceconfigs]([userid]) ON [PRIMARY]GO CREATE  INDEX [postiduid] ON [dnt_spaceposts]([postid], [uid]) ON [PRIMARY]GO CREATE  INDEX [postidcommentcount] ON [dnt_spaceposts]([postid], [commentcount]) ON [PRIMARY]GO CREATE  INDEX [albumid] ON [dnt_photos]([albumid]) ON [PRIMARY]GO CREATE  INDEX [photoiduserid] ON [dnt_photos]([photoid], [userid]) ON [PRIMARY]GO CREATE  INDEX [userid] ON [dnt_photos]([userid]) ON [PRIMARY]GO CREATE INDEX [list_albumcateid] ON [dnt_albums]([imgcount], [albumcateid], [albumid]) ON [PRIMARY]GO CREATE INDEX [list_userid] ON [dnt_albums]([type], [imgcount], [userid], [albumid]) ON [PRIMARY]

  然后就解决了!注意好DZ!NT版本~~我这是3.6.711

转载地址:http://ievbo.baihongyu.com/

你可能感兴趣的文章
通过匿名管道获取CMD运行结果
查看>>
Ubuntu安装Chrome
查看>>
手机端公告文本回滚(简单的jq代码)
查看>>
火狐对IE6,IE7用户的态度值得学习
查看>>
计数排序
查看>>
个人Vue-1.0学习笔记
查看>>
使用@JsonFormat引起的时间比正常时间慢8小时解决方法
查看>>
LOJ#2095 选数
查看>>
Ubuntu 16.04 Steam
查看>>
Turbo Boost是什么?最高睿频是什么?
查看>>
onScrollChanged()
查看>>
c#多态
查看>>
单独使用bable插件
查看>>
// 查询字符串转json
查看>>
第四十天笔记
查看>>
4、动态代理
查看>>
Loj #6073.「2017 山东一轮集训 Day5」距离
查看>>
我的TCP/IP学习笔记
查看>>
刷碗效应
查看>>
ie7下<a></a>标签中<input />时不反应
查看>>