Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
SQL Server 2014 (major build version 12.0.xxxx). Please also tag sql-server.
3
votes
1
answer
1k
views
deadlock with repeatable read isolation level
Trying to understand deadlock that is occurring with repeatable read isolation level when the stored proc is invoked.
This is the deadlock xml :
<TextData>
<deadlock-list>
<deadlock victim="pro …
8
votes
Accepted
Compatibility mode change does not reflect on secondaries
Below
ALTER DATABASE database_name
SET COMPATIBILITY_LEVEL = { 150 | 140 | 130 | 120 | 110 | 100 | 90 }
is not propagated to secondaries in DB mirroring or AlwaysON since they ship log blocks vs tr …
2
votes
Querying system health data becomes slow as event volume increases
You should check out This is how to shred Extended Event XML faster.
The gist is to
Put the XML into a variable.
Shred the XML rows into a temp table.
Also, see below answer by Martin Smith
…
1
vote
Accepted
How to grant xp_delete_file to non-sysadmin login?
Deleting files on NAS should not be done by sql server. You should rather use powershell to do it.
You can use my function Clean-NASOldFiles which uses robocopy to scan files extremely fast and will …
10
votes
Accepted
Alternatives to Network Backup
The alternative you mentioned seems to be the best choice.
What you can do is a 2 step process :
Take native sql server backups with compression using Ola's backup solution locally.
Use Robocopy to d …
2
votes
Increase Max Memory setting on a SQL Server Production
I have a slightly different opinion.
If you are not experiencing memory pressure and your application is just working fine, why introduce an unknown variable (in your case - increasing sql server max …
2
votes
Accepted
SQL Server TDE Vs SQL Server Database Backups
Based on the comments so far -
SQL server has no knowledge of how EFS does encryption. Turning off EFS - the timing is reduced almost similar to pre-TDE timing (confirmed by OP).
This means that EF …
8
votes
Sql Server : How to query list of subscriptions and Articles (for a given publication) from ...
To get subscription list from a publisher database, you can run below tsql :
use publisherDB;
select
db_name() PublisherDB
, sp.name as PublisherName
, sa.name as TableName
, UPPER(srv.srvname) …
2
votes
Problem with Script to Synchronize Login on AlwaysON
I would suggest using dbatools - Sync-DbaAvailabilityGroup with -Exclude <-- exclude the settings that you dont need to sync.
Honestly, you should sync all e.g. sp_configure, logins, jobs, etc
5
votes
Creating Windows login/user for Mixed Always on Environment+ Instance without Always ON
My understanding is that you are not approaching this in the right way. you just copy the login using the same sid to all the secondary server. Users get replicated since db is part of AG.
Basically …
5
votes
Transaction deadlock during restore
There is no point in taking db into single user mode and then making it offline. background service like sql agent might try to connect to the db.
If you want to get more details of what process is …
1
vote
Accepted
Listener Port 1433 for Always on Availability Group
If the listener port is 1433 and the clients also gets connected through port 1433 to the reporting server that is part of the Availability group will there be any port conflict.
If 1433 is just ded …
3
votes
SQL Server service start automatically only after Windows Shutdown, how can I make restart a...
You can set the service property to restart it (service properties --> recovery --> first / second / third failure and have a delay between each restarts e.g. 1 min). You should also, have the service …
2
votes
SQL Server 2014 SP2, backup and restore with powershell
You can use dbatools which is powershell based.
For your case you need to have a 2 step approach.
use the cmdlets in Backup and Restore – Certificates
Backup-DbaDbCertificate
Backup-DbaDbMasterKey
…
0
votes
Restore master database
You have to shutdown sql server and start it in single user mode (in configuration manager, you specify -m as start up parameter) and then restore master database. See : this mssql tip for more detail …