Quantcast
Browsing all 15889 articles
Browse latest View live

Transaction recovery during a Crash.

Hi All,I am somewhat confused with the transaction recovery during a system crash. I read that a Redo operation will be performed during a crash recovery whenThe LSN of transaction log record is...

View Article


Extended Event to alert log file size

I am trying to understand EX. There is a way to setup a EX to monitor log file growth, I was curious to know if we can tweak it to alert if the log file reaches a particular size, say 10GB, then...

View Article


Using job_id (in string format) to get job name

Sql Server Experts,I need some help on getting the job information from view sysjobs using job_idI get the job_id from the output of sp_who2 command by saving the result in a table.insert into #sp_who...

View Article

capture SP_EXECUTESQL in SQL 2008 profiler?

How do you get sql profiler to capture the actual dynamic sql used in SP_EXECUTESQL?  I am using the default profiler trace and it does not show up during my profiler session.

View Article

SQL 2012 SP1

I was going to install CU4 but Microsoft just came out with SP1 for SQL 2012. Use to be that Service packs contained all CUs upto the SP release but going to the Microsoft download site it states that...

View Article


What is the purpose of Transaction Log in Tempdb

Hi Experts,There are a lot of questions and blogs on truncating and reducing the transaction log of tempdb. But what I understand is that the purpose of transaction log is to recover database (on...

View Article

Resource Grovenor: Use of Workload Group?

The purpose of Resource Gorvenor is to limit the resources for requests. Here my question is about the design of it's functionality. In classifier function we specify a workload group to requests and...

View Article

Inconsist size of tempdb in Windows Explorer and SQL Server

Hi all,We are using SQL Server 2008 R2+SP1.The temdb(mdf) size in SSMS is 5MB but in Windows Explorer it's over 70GB.It does not shrink either.What's the reason and how can I shrink it?Many thanks in...

View Article


BCP performance issue

All,I would like to clarify on couple of BCP issues that I'm facing1. BCP xxx queryout -S xxx -T -N -m 0 is executing very fast when I run using my ID in command prompt, but when I execute the same as...

View Article


Missing Server Memory?

Ill keep this short and to the pointTarget Server Memory = 67108864Total Server Memory = 67108864so far so goodMaximum workspace memory = 50429880So where is the missing 67108864-50429880 = 16678984Kb...

View Article

How can you evenly distribute the load across 20 cores with SQL Server 2012...

After installing SQL Server Enterprise 2012 with the Server + Cal license model, on a computer with 2 processors each with 16 cores (and no hyperthreading involved) and putting the server under...

View Article

update script

Ihave a sql server 2008 r2. i need to create a query that will update a value on a table upon inactivty for x amount of time. this would be for access control. may sound a bit primitive but system does...

View Article

SQL Serve Agent job time schedule to exclude 1st of every month?

Hi, I have a requirement to create SQL Server 2008 R2 Agent job to create a new schedule that run ONLY from 2nd day of the month to last day of month. Any idea how to create a new agent schedule to...

View Article


Can't access table named SysMessages in SQL Server 2012

I have a table in my database named SysMessages that I use for storing custom error messages. I have been using this for years in SQL Server 2005/2008 with no problem, but in 2012 whenever I refer to...

View Article

DBCC Checktable and Snapshot

Does all DBCC Check* DB commands create internal snapshot?another question if i have to run DBCC checktable will it create snapshot of whole database or only that particular table and dependencies like...

View Article


SSMS Express

can i use SQL Server Management Studio Express to connect to SQL Server 2008 R2 full version?

View Article

Minimally logged and backup log size

In Bulk logged recovery model, tlog backup will be greater than actual data operations done?e.g. if bulk operation only inserted data|modified data only in 1 page, entire extent will be copied not...

View Article


Issue with VSS backups and SQL Server

I have been looking at an old problem with VSS backups and SQL Server.Consider this scenario:You have a SQL Server backup strategy with normal (non VSS) full and differential backups.Now you do a VSS...

View Article

Corrupted Database Error 3456

After a simple reboot of the file server one of the data bases in the Sql Server 2k of the SBS 2000 appears in enterprise manager as supect. I decided to detach and again to attach the db. I have never...

View Article

Why does try/catch in SPs ignore DDL/schema errors?

I've wondered about this since I first saw it a while back (I've seen it across numerous SP versions of SQL 2k8R2 so assuming it's not a bug)If you create a sproc with a transaction and a try/catch...

View Article
Browsing all 15889 articles
Browse latest View live