2016-03-18
PowerShell – Query Database Remotely
The basic syntax for sending a query to SQL Server using PowerShell. sqlcmd -S SERVER_NAME -d...
The basic syntax for sending a query to SQL Server using PowerShell. sqlcmd -S SERVER_NAME -d...
http://msdn.microsoft.com/en-us/library/ms190310.aspx Returns a report that has information about user permissions for an object, or statement permissions,...
Occasionally, you discover something that you have been doing wrong for a long time. Sometimes it...
SELECT COL_TO_CHECK, COUNT(COL_TO_CHECK) FROM table1 GROUP BY COL_TO_CHECK HAVING COUNT(*) > 1 ORDER BY COUNT(*) If...