SQL Server – Find Stored Procedures User Can Access
Returns a report that has information about user permissions for an object, or statement permissions, in...
Returns a report that has information about user permissions for an object, or statement permissions, in...
Within a Stored Procedure, you may want the results of a particular query emailed to you,...
Source of info: http://www.mattbutton.com/2011/06/01/sql-profiler-templates-missing/ Upon trying to create a trace template in SQL Server Profiler, I was...
This is the basic query text to use whenever you need to loop through a result...
Do transactions apply in dynamic SQL, in SQL Server? In a word, yes. For proof, run...
Source: http://sqlserverplanet.com/dmvs/missing-indexes-dmv SELECT mid.statement ,migs.avg_total_user_cost * (migs.avg_user_impact / 100.0) * (migs.user_seeks + migs.user_scans) AS improvement_measure ,OBJECT_NAME(mid.Object_id)...
—- Allow advanced options to be changed. –EXEC sp_configure ‘show advanced options’, 1 –GO —- Update...
The basic syntax for sending a query to SQL Server using PowerShell. sqlcmd -S SERVER_NAME -d...
Show Date/Time Of Last Boot Get-WmiObject -class Win32_OperatingSystem | Select-Object __SERVER,@{label='LastBootUpTime';expression={$_.ConvertToDateTime($_.LastBootUpTime)}}