Table Hints Table Hints relate only to tables and views for which they are specified. These hints are intended to determine the locking method, specify a particular index, and the method of data processing in tables, for example, scanning or searching. Syntax: Arguments: With the keyword
To add a comment to a table field in MSSQL, use: To change a comment to a table field in MSSQL, use: To delete a comment to a table field in MSSQL, use:
Example of adding an event to a Button using UnityEngine; using UnityEngine.UI; using UnityEngine.SceneManagement; public class PanelPaused : MonoBehaviour { public Button buttonContinue; public Button buttonExit; void Start() { buttonContinue…
To hide the cursor Cursor.lockState = CursorLockMode.Confined; Cursor.visible = false; To display the cursor Cursor.lockState = CursorLockMode.None; Cursor.visible = true;
Добавление описания к полю в таблице EXEC sp_addextendedproperty @name = N\'MS_Description\', @value = N\'Описание поля\', @level0type = N\'SCHEMA\', @level0name = N\'CRM\', -- Вместо \'dbo\' ставим название своей схемы если отличается @lev…
Examples of getting the query text by session identifier DECLARE @sqltext VARBINARY(128) SELECT @sqltext = sql_handle FROM sys.sysprocesses WHERE spid = (YourSessionID) SELECT TEXT FROM sys.dm_exec_sql_text(@sqltext) GO SELECT TEXT FROM sy…
Example of selecting fields from a temporary table with all parameters. Can be used for regular tables as well. #tmp - your temporary table
--generate disable deactivation SELECT 'exec msdb..sp_update_job @job_name = ''+NAME+'', @enabled = 0' FROM msdb..sysjobs --generate enable activation SELECT 'exec msdb..sp_update_job @job_name = ''+NAME+'', @enabled = 1'
Stopping Database Mail exec msdb.dbo.sysmail_stop_sp Cleaning the history of undelivered messages -- If the number of records in the msdb.sysmail_allitems table is very large, -- then use the @sent_before parameter to limit the deleted records exec msdb.dbo.sysmail_delete_mailitems_sp @sent_status =
A simple example of a simple Comparer for sorting //Descending Sort, Integer var queue = new PriorityQueue<int, int>(Comparer<int>.Create((x, y) => y - x)); //Ascending Sort, Object var queue = new PriorityQueue<ObjectA, ObjectB>(Comparer<Ob…