03 2014 档案
摘要:integrated security=true 的意思是集成验证,也就是说使用Windows验证的方式去连接到数据库服务器。这样方式的好处是不需要在连接字符串中编写用户名和密码,从一定程度上说提高了安全性。 在Windows应用程序中 是用当前用户的身份。但是在asp.net中就不是了: 如果是ASP.NET应用程序(网站或者服务),那么根据其运行宿主环境的不一样,可能会有差异 ...
阅读全文
摘要:drop database dbName, 但有时候会碰到error,提示DB in use(cannot drop database XXX because it is currently in use) solution: use master go alter database dbName set single_user with rollback immediate...
阅读全文
摘要:在SQL Server Services下出现错误The remote procedure call failed. [0x800706be],发现SQL Server (MSSQLSERVER) 服务压根没起来(连看都看不到,所以才会出现上面的第一步错误) 问题原因猜测 本机上软件的安装顺序为VS 2008 -> SQL Server 2008 R2...
阅读全文
摘要:http://jingyan.baidu.com/article/6c67b1d6ca06f02787bb1ed1.html
阅读全文
摘要:本地server insert db1..table1 select * from db2..table2 --如果表结构不全一样的话,要做到字段对应。 insert db1..table1(col1,col2,col3...) select col1,col2,col3... from db2..table2 --如果表有主键不能重复插入的话 insert db1..tab...
阅读全文
摘要:- 打开 VS,新建一个xml, - XML-> Schemas - 找到相应的schemas, 也可以通过“添加”本地的xsd文件,然后作为schemas Refer to: http://stackoverflow.com/questions/3161224/xml-validation-with-xsd-in-visual-studio-ide
阅读全文
摘要:The CHECK_POLICY and CHECK_EXPIRATION options cannot be turned OFF when MUST_CHANGE is ON. 1. In the below step I am giving the same password, to fix “User Must Change Password” flag. USE Mast...
阅读全文
摘要:1. 新建一个Table CREATE TABLE TestTable( ID int, Name NVARCHAR(10) ) 2. New query BULK Insert TestTable from ‘D:\info.txt’ WITH( fieldterminator = ',', rowtermi...
阅读全文

浙公网安备 33010602011771号