摘要:
注意,一般SQL2000的备份文件还原后都会带有原来的用户控制权限,但如果关联到SQL2005的登录用户会出现程序访问数据库异常发生。所以建议删除架构和老的数据库管理用户。 --删除架构 drop schema allcom4 go --删除用户 drop user allcom4 go 阅读全文
摘要:
//检查是否存在该数据库strDatabase数据库名称 string strSqlName = "SELECT * FROM SysDatabases where [name]= '"+strDatabase+"'"; //获得bak文件的日志和数据文件的信息dirPath物理路径 string strSql="RESTORE FILELISTONLY FROM DISK ='"+dirPat... 阅读全文
摘要:
Select top 100 State,JoinState, (case when State=1 and Joinstate=0 then 2 when State=1 and JoinState=1 then 1 else 0 end) as usestate from UserInfo 阅读全文
摘要:
主页调用iFrame如下: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> iFrame页(子页)调用JS函数,可调整主页调用的iFrame的高度 Code highlighting produced by Actipro CodeHighlight... 阅读全文