上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 102 下一页
摘要: --90兼容模式以上,2005+-- http://raresql.com/2012/10/24/sql-server-how-to-find-who-deleted-what-records-at-what-time/-- Script Name: Recover_Deleted_Data_With_UID_Date_Time_Proc-- Script Type : Recovery Procedure -- Develop By: Muhammad Imran-- Date Created: 24 Oct 2012-- Modify Date: -- Version : 1.2-- No 阅读全文
posted @ 2013-11-09 17:06 qanholas 阅读(656) 评论(0) 推荐(0)
摘要: DECLARE @dbNameSYSNAME,@schemaNameSYSNAME,@ObjectNameSYSNAME,@sqlNVARCHAR(max)SELECT @dbName='DBname',@schemaName='dbo',@ObjectName='tablename'SET @sql='SELECT COUNT(1) AS DataCount FROM '+@dbName+'.'+@schemaName+'.'+@ObjectName+' WITH (NOLOCK)' 阅读全文
posted @ 2013-11-09 15:32 qanholas 阅读(709) 评论(0) 推荐(0)
摘要: 最近遇到了一个看上去很奇怪,分析起来很有意思的死锁问题。这个死锁看上去难以理解。而分析过程中,又使用了很多分析SQL Server死锁的典型方法。记录下来整个分析过程还是很有意义的。问题重现步骤:经过提炼,问题重现的步骤非常简单,在SQL 2008上可以很容易地重现。1. 首先,创建一张表格,上面有一个clustered index,两个non-clustered index。createtablett(idintidentityprimarykey,achar(36),bchar(36),dvarchar(max))gocreateindexix_a_bcontt(a)include(d)c 阅读全文
posted @ 2013-11-09 15:29 qanholas 阅读(2703) 评论(1) 推荐(2)
摘要: Image baseImage = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height); Graphics g = Graphics.FromImage(baseImage); g.CopyFromScreen(new Point(0, 0), new Point(0, 0), Screen.AllScreens[0].Bounds.Size); g.Dispose(); baseImage.Save("baseImage.jpg", ImageFormat.Jp 阅读全文
posted @ 2013-11-06 11:29 qanholas 阅读(5507) 评论(0) 推荐(0)
摘要: 插入光盘后不要用autorun的安装,使用命令行安装!cd进安装光盘的根目录,输入命令:setup.exe /INSTALLSHAREDDIR="D://Program Files//Microsoft SQL Server//" /INSTALLSHAREDWOWDIR="D://Program Files (x86)//Microsoft SQL Server//"安装即可,其中INSTALLSHAREDDIR为x64部件安装的路径,INSTALLSHAREDWOWDIR为x32部件安装的路径。切记不可使用默认的setup.exe就安装的方式,一旦进 阅读全文
posted @ 2013-11-02 14:24 qanholas 阅读(7399) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 102 下一页