Viewing 15 posts - 166 through 180 (of 5,393 total)
Exactly.
Moreover, you don't even have to have a login for [DomainA\GroupA] in the server.
Users such as [DomainA\GroupA] can be created in a database without a mapping login, but they...
-- Gianluca Sartori
February 26, 2016 at 5:05 am
I'm assuming a lot of things here that you did not say.
1) I'm assuming MachineID is the primary key of all your tables
2) I'm assuming you already have some data...
-- Gianluca Sartori
February 26, 2016 at 5:03 am
An exception is windows groups existing as users in databases and members of the group existing as logins in the server. In this case user and login won't match, but...
-- Gianluca Sartori
February 26, 2016 at 2:54 am
Hi and welcome to the forums.
Which one is the target table? Test1? Test2?
Please post table scripts, sample data in a consumable format and the expected results.
Guidelines here: http://spaghettidba.com/2015/04/24/how-to-post-a-t-sql-question-on-a-public-forum/
-- Gianluca Sartori
February 26, 2016 at 2:41 am
LogShipping does not replicate server level objects such as logins, so your user will be unable to log in to the secondary server when you switch roles.
You can migrate existing...
-- Gianluca Sartori
February 26, 2016 at 2:24 am
This is a great place to start:
-- Gianluca Sartori
February 25, 2016 at 10:51 am
DBCC is a disk-intensive operation. I suspect that the database becomes unresponsive due to resource contention rather than "locking up".
Try investigating blocking (set up an extended events session for the...
-- Gianluca Sartori
February 25, 2016 at 7:46 am
Log records are written first in memory and then to disk.
Every RDBMS uses WAL (Write-Ahead-Logging) to ensure consistency, so every operation that generates log records is said to be...
-- Gianluca Sartori
February 25, 2016 at 4:58 am
As far as I can remember, it has always been like that. At least from 2005.
You can reproduce the behaviour easily:
1. Create a windows group 'testGroup' in lusrmgr.msc
2. Create a...
-- Gianluca Sartori
February 25, 2016 at 3:24 am
This seems to be slightly snappier:
SELECT Id, CASE WHEN MIN(Ranks) OVER(PARTITION BY ID) <> MAX(Ranks) OVER(PARTITION BY ID) THEN 'XXXX' ELSE Code END
FROM (
SELECT
DENSE_RANK() OVER(Partition By ID ORDER BY ID,code)...
-- Gianluca Sartori
February 25, 2016 at 2:16 am
Please post data in a consumable way. See http://spaghettidba.com/2015/04/24/how-to-post-a-t-sql-question-on-a-public-forum/ for guidelines.
How do you calculate the ranks? Please clarify.
-- Gianluca Sartori
February 25, 2016 at 1:33 am
If you're on Enterprise Edition, you can use an audit to detect trigger enable/disable events: http://solutioncenter.apexsql.com/how-to-audit-your-auditing-in-sql-server-tracking-when-triggers-are-disabled/
-- Gianluca Sartori
February 24, 2016 at 10:54 am
No magic at all. All I do is dump this...
SELECT *
FROM sys.dm_exec_cached_plans
CROSS APPLY sys.dm_exec_query_plan(plan_handle) AS p
... to a a file with BCP.
Than I BCP in the file to my local...
-- Gianluca Sartori
February 24, 2016 at 10:45 am
It's a great way to start a love letter.
Please, go ahead 🙂
Just joking, don't take offense. 🙂
If you hit "post" too early, you can go back and edit your post.
-- Gianluca Sartori
February 24, 2016 at 7:24 am
Actually, I never perform cache analysis in production.
I usually dump the whole cache to a table in my local sql server and start from there.
-- Gianluca Sartori
February 24, 2016 at 4:35 am
Viewing 15 posts - 166 through 180 (of 5,393 total)