随笔分类 - sqlserver
数据库操作
摘要:安装数据库时提示重启删除 以下注册信息则不用重启HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/Session Manager/PendingFileRenameOperations win8在运行软件的时候,我的出现下面这种情况:如果当前不是
阅读全文
摘要:打开“服务器管理器” ,在“功能”选项中选择“添加功能”并在“添加功能向导”中选择“.NET Framework 3.5”复选框(我的是第1个),添加所需的相关服务,直至安装完成即可。
阅读全文
摘要:public static string doQuery() { bool hasWhere = false; StringBuilder sql = new StringBuilder("select * from table"); if (true) { hasWhere = appendWhereIfNeed(sql, hasWhere); sql.AppendLine("FNumber between ' 工号文本框1内容 ' and '工号文本框2内容 '"); } if (true) { hasWhere =
阅读全文
摘要:在同一个数据库中对于已存在的表:insert into table_target(字段1,字段2....)select (字段1,字段2....) from table_source对于尚未建立的表:select (字段1,字段2....) into table_targetfrom table_source在两个数据库中最好两数据库拥有相同的登录名和密码不然比较麻烦insert into 目标数据库.dbo.目标表名(字段1...字段n) select 段1...字段n from 源数据库.dbo.源表名 或 select 段1...字段n into 目标数据库.dbo.目标表名 from
阅读全文