Viewing 15 posts - 886 through 900 (of 5,393 total)
Duplicate post.
Repliese here please: http://www.sqlservercentral.com/Forums/FindPost1641346.aspx
-- Gianluca Sartori
December 4, 2014 at 2:10 am
It is expected. Triggers slow down writes to the table.
This is one of main downsides of merge replication.
-- Gianluca Sartori
December 4, 2014 at 2:03 am
If the cache is cleared, a new plan is needed for each statement.
If the stats are stale, the plans are compiled against stale stats. All the objects referenced by...
-- Gianluca Sartori
December 3, 2014 at 2:23 am
Stale statistics could be the cause.
Plans compiled against stale statistics are more likely to be sub-optimal.
-- Gianluca Sartori
December 2, 2014 at 4:21 pm
It depends on many factors.
Generally speaking, if the linked server is a SQL Server, the query CAN be executed as a pass-through query and the predicate is evaluated ad the...
-- Gianluca Sartori
December 2, 2014 at 3:25 pm
BWFC (12/2/2014)
As a genuine question on my part, why would a dynamic pivot be the first choice here?
Not sure it's the first choice, but I assumed the list of columns...
-- Gianluca Sartori
December 2, 2014 at 8:53 am
You need a dynamic PIVOT.
Looks like this does the trick:
DECLARE @sql nvarchar(max)
SELECT @sql = STUFF((
SELECT DISTINCT ',' + QUOTENAME(Metric)
FROM TEST
FOR XML PATH(''), TYPE).value('.','nvarchar(max)'),1,1,SPACE(0))
SET @sql = '
SELECT *
FROM TEST
PIVOT (SUM(Data) FOR...
-- Gianluca Sartori
December 2, 2014 at 8:32 am
Licensing is a complex matter and it's easy to get things wrong.
That said, as far as I know, if you have a MSDN subscription you should be entitled to a...
-- Gianluca Sartori
December 1, 2014 at 2:52 am
arooj300 (12/1/2014)
So any disadvantge to use Stand by Database for generating reports.
What comes to my mind is that all the sessions using the standby database have to be disconnected when...
-- Gianluca Sartori
December 1, 2014 at 2:01 am
Assuming the clients are connecting directly to the database, this should do:
SELECT client_net_address
FROM sys.dm_exec_connections
WHERE session_id = @@spid
If this is a web application or runs on any sort of application server,...
-- Gianluca Sartori
November 29, 2014 at 8:45 am
SQL Server Express has a limit of 10 GB per database.
Actually, in SQL Server 2005 the limit was 4 GB, so you must be using some version from 2008R2...
-- Gianluca Sartori
November 29, 2014 at 8:37 am
Voted... a couple of years ago 🙂
-- Gianluca Sartori
November 28, 2014 at 1:41 am
Yes, exactly as any other kind of query.
-- Gianluca Sartori
November 26, 2014 at 3:37 am
I have a Powershell script for that: http://spaghettidba.com/2013/02/08/manual-log-shipping-with-powershell/
Hope it helps
-- Gianluca Sartori
November 26, 2014 at 3:37 am
Use this:
@Databases = 'USER_DATABASES, -YourVLDB'
-- Gianluca Sartori
November 26, 2014 at 3:35 am
Viewing 15 posts - 886 through 900 (of 5,393 total)