23,898 reputation
33982
bio website blogs.msdn.com/b/sql_pfe_blog
location In the Ocean somewhere...
age
visits member for 3 years, 2 months
seen 9 mins ago

SQL Server Premier Field Engineer at Microsoft.

Twitter: @SQLife
Blog: http://blogs.msdn.com/b/sql_pfe_blog/
Email: sqlsalt [at] outlook [dot] com

Disclaimer
The views expressed on my posts on this site are mine alone and do not reflect the views of my company. All posts of mine are provided "AS IS" with no warranties, and confers no rights.

The following disclaimer applies to all code, scripts and demos available on my posts:

This Sample Code is provided for the purpose of illustration only and is not intended to be used in a production environment. THIS SAMPLE CODE AND ANY RELATED INFORMATION ARE PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. We grant You a nonexclusive, royalty-free right to use and modify the Sample Code and to reproduce and distribute the object code form of the Sample Code, provided that You agree: (i) to not use Our name, logo, or trademarks to market Your software product in which the Sample Code is embedded; (ii) to include a valid copyright notice on Your software product in which the Sample Code is embedded; and (iii) to indemnify, hold harmless, and defend Us and Our suppliers from and against any claims or lawsuits, including attorneys’ fees, that arise or result from the use or distribution of the Sample Code.


Feb
22
awarded  sql-server-2008
Feb
22
comment AlwaysOn Availability Groups: Confusion with some concepts
@UB01 Your comment about Joe having the Create Computer objects permission and therefore passing that onto Cluster1 is correct. Therefore, the Listener creation should be successful because Cluster1 has the necessary permissions.
Feb
22
comment Set up AlwaysOn in virtual environment: How to add nodes to domain?
In the settings of the network adapter, there is a place to put the IP Address of the DNS server. It's where you configure a static IP, subnet mask, etc.
Feb
22
comment Set up AlwaysOn in virtual environment: How to add nodes to domain?
I believe a DNS server is a requirement for a domain. Either way, without seeing the DC a server won't be able to join the domain.
Feb
22
comment Set up AlwaysOn in virtual environment: How to add nodes to domain?
Can your server see (ping) the Domain Controller? Also, can it hit the DNS server?
Feb
21
comment Automatically restart SQL Server 2008
No problem, Martin!
Feb
21
comment Automatically restart SQL Server 2008
@MartinSmith Testing it out on my local machine, yes it looks like it does. Though you need to use the -Force switch to restart the service when a dependent service exists.
Feb
21
revised Automatically restart SQL Server 2008
added 85 characters in body
Feb
21
comment Automatically restart SQL Server 2008
+1 I added my answer just to show the PowerShell way.
Feb
21
answered Automatically restart SQL Server 2008
Feb
19
comment Log all errors in queries
@carlo.borreo No problem, glad to help!
Feb
19
comment Log all errors in queries
@carlo.borreo I have modified my answer to include the predicate (WHERE ([severity] >= (11) )). Let me know if that works for you.
Feb
19
revised Log all errors in queries
added 70 characters in body
Feb
19
comment Log all errors in queries
@carlo.borreo Absolutely. You just need to specify a predicate for the event and have the severity set to 11 or higher.
Feb
19
comment Log all errors in queries
drop event session [EventSessionName] on server; Where [EventSessionName] is the name of your event session that you want to drop.
Feb
19
revised What are the implications of changing the SQL Server Service Logon Account?
edited tags
Feb
19
answered Log all errors in queries
Feb
19
revised AlwaysOn Availability Groups: Confusion with some concepts
added 35 characters in body
Feb
19
revised What are the implications of changing the SQL Server Service Logon Account?
added 815 characters in body
Feb
19
comment Log all errors in queries
You can capture the XE event error_reported. Create a session for that event, specify a predicate (unless you want this for all databases) and have a file as the target for later consumption/analysis.