Copying Database Statistics and Schema to New Database
Host: SQL Server 2005 (32-bit) Standard EditionI'm tuning a query that is performing poorly in production. I want to (a) work with the query on a non-production server and (b) don't want to clone the...
View ArticleCDC Capture and Cleanup job issue
I enabled CDC on my databae 'ABC' and turn on cdc on several tables. It worked fine for several days but couple of weeks ago I noticed that transactional log was full and cdc.ABC_cleanup job had error...
View ArticleQuestion regarding memory info in error log after 701 error
We've been getting occasional 701 errors (SQL Server 2012 SP1 standard edition) 64 bit. This instance has 64 GB max server memory on a server with 128 GB of RAM. I'm trying to decode the errorlog...
View ArticleChange Tracking internals behave differently, SQL Server 2012 vs SQL Server 2008
<original post by Glenn Estrada> Reposting an issue from Stack Overflow that a coworker and I are dealing with. In trouble shooting an issue with synchronizing disconnected devices with a central...
View ArticleCan i rebuild indexes in chunks in a database?
Can i rebuild indexes in chunks?Thanks,Ron.
View ArticleResource_semaphore wait type not matching sys.dm_exec_query_memory_grants
We are using Red Gate's SQL Monitor to alert (every 5 minutes) when memory grants pending are greater than zero. Several times a day we are alerted on our Devel and Prod servers. However, when querying...
View ArticleHow to find old deadlock information on sql server 2008?
I need to find the detail deadlock information that happend one day ago. How to find it?
View ArticleMicrosoft Access Not finding correct Linked SqlServer records
Microsoft Access 2010 application is not returning the correct linked records from a SqlServer 2008 database.For simplicity on the Access side I have a query such as:column XYZ is defined on the...
View ArticleBecome our FIRST Microsoft TechNet SS DBE Guru of 2014!!
Happy New Year!Time for a fresh start!We're looking for the first Gurus of 2014!!This is your chance to make your mark on the Microsoft developer community.All you have to do is add an article to...
View ArticleMicrosoft SQL Server 2012 Standard Error 233 and 18456
SQL Server 2012 Standard on Windows Server 2012, all updates installed.When using Visual Studio SQL Server Management Studio and using the Connect button in an attempt to connect to the database engine...
View ArticleRestoring issue
Hi Hope you people are doing great.I am facing one issue when restoring.Issues is:I have backuped a database from SQL 2008R2 and restored it into SQL 2012.It was restored successfully but key columns...
View ArticleTask versus Request -- referring to sys.dm_os_tasks v/s sys.dm_exec_requests
Hello...I am struggling to understand the definition of and difference between a task and a request. My understanding isTask is something that is active and may or may not be executedin SQL Server...
View ArticleDatabase from scratch
Hi.I like someone to ask this question, just to get a little more informations and understanding about creating database or DBMS from scratch. You can found plenty books about OS internals, or...
View Articlet-log backup history
SELECT * FROM msdb.dbo.backupmediafamily INNER JOIN msdb.dbo.backupset ON msdb.dbo.backupmediafamily.media_set_id = msdb.dbo.backupset.media_set_id WHERE (CONVERT(datetime,...
View ArticleNot enough server storage is available to process this command
Hi experts i am getting below error while taking backup in Network driveMessage Executed as user: NT AUTHORITY\SYSTEM. 10 percent processed. [SQLSTATE 01000] (Message 3211) 20 percent processed....
View ArticleI want to change initial log file size to 1 GB.
Hi Team,I have a database whose log file initial size is specified as 140 GB.Now I want to change it to 1 GB.How Can I do?Thanks
View ArticleTriggers On ALL Server table name change
HI all, I would like to "create trigger trig_name on ALL Server for [event]..... as...."what't the event for table name changes ?I find Alter_table wont' trigger after table name changes.
View Articletempdb files
HiI have created new files for tempdb database, now I want the old temp files should be deleted upon the restart.Earlier I have two files in tempdb : tempdev.mdf and templog.ldf in X:\TEMPDBNow I...
View ArticleInconsistent LSNs after Full/Diff backup?
Hi all,On SQL Server 2008 R2-SP2 we have 10 databases. For one of them I realized that I'm unable to restore log backups if in the middle we have full or diff backup. The error was related to LSN chain...
View ArticleSQL Query for maintenance mode in SCOM
Hi allI was wondering if I can find a query about this request:- Found all the Servers that were restart without the maintenance mode were actived ?It's to make a Report To include in Reporting...
View Article