
SQL
王之誉
对微软的CodeFlow有一定研究可以独立开发架设此系统
展开
-
SQL 入门的一些资料
学习SQL的一些小材料。原创 2013-08-21 18:19:14 · 975 阅读 · 0 评论 -
[TroubleShooting]Neither the partner nor the witness server instance for database is availble
Problem:You are trying to setup a mirroring on a Database called xxxDB(SQL server 2012).You are getting this error while trying to setup mirroring.“Neither the partner nor the witness server ins原创 2014-04-28 11:31:53 · 1514 阅读 · 0 评论 -
SQL Mirroring[Hot back up with Double machine]
Background:It's fairly common for businesses to want to provide some high availability for their SQL Server databases, and one option is to have two SQL Server databases on separate machines with a SQL Server database mirrored.原创 2014-04-30 10:11:14 · 1333 阅读 · 1 评论 -
[TroubleShooting] The server network address can not be reached or does not exist
The server network address “TCP://myserverAddress:50221″ cannot be reached or does not exist.Check the network address name and that the ports for the local and remote endpoints are operational.(Microsoft SQL Server, Error: 1418)原创 2014-04-30 11:25:49 · 3210 阅读 · 0 评论 -
[TroubleShooting]'trn\bak' is incorrectly formed. SQL Server cannot process this media family.
SQL Server online consultants came across an interesting scenario where one of our client was unable to restore a native SQL Server backup successfully performed from one instance running on M原创 2014-05-04 10:47:03 · 2861 阅读 · 0 评论 -
[TroubleShootin]The backup set holds a backup of a database other than the existing 'xxdb' database.
One:he backup set holds a backup of a database other than the existing ‘xxdb’ databaseSometime when you try to restore the backup file on an existing database and receive the followi原创 2014-04-25 11:03:39 · 2109 阅读 · 0 评论 -
[TroubleShooting] The remote copy of database xx has not been rolled forward to a point in time
Steps:1. backup database DBmirror on SQL12. backup database log3. copy db and log backup files to SQL24. restore db with norecovery5. restore log with norecovery6. create endpoints on both原创 2014-04-29 18:54:37 · 1998 阅读 · 1 评论 -
SQL Server 修改主机名称
问题:我有一个包含SQL服务器的虚拟机,它包含一个复制...发布者和订阅者都在这同一个虚拟机...我已经克隆了这个生产虚拟机用于测试目的,然后我放弃了复制(在测试),然后再重新创建它,但复制将无法启动,当我尝试右击发布,然后选择属性,我得到了下面的错误:SQL server replication requires the actual server name to make a co原创 2013-12-24 15:10:36 · 2196 阅读 · 0 评论 -
Error: String or binary data would be truncated
How to solve Error: String or binary data would be truncated原创 2013-10-25 15:15:17 · 2424 阅读 · 0 评论 -
批量删除数据库的SQL语句
由于项目需要,每次运行case的时候都需要创建数据库。虽然每次执行结束都会删除,但是不保证每次都能删除成功(这里有许多原因,我就不列举了)。所以我写了个脚本去批量删除数据库。首先为确保我们的数据库是有用的,不被错删除的。所以就必须先备份在删除。备份数据库:DECLARE @name VARCHAR(50) -- database name DECLARE @path VARCHAR(2原创 2015-04-22 10:15:06 · 12940 阅读 · 1 评论