This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cast([timeStamp] as date) = '2018-02-16' and | |
| cast([timeStamp] as time) >= '06:00:00.000' and cast([timeStamp] as time) <= '07:00:00.000' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| select* | |
| FROM TABLE | |
| WHERE username like '%\_del' ESCAPE '\' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var request = new XMLHttpRequest(); | |
| request.open('GET', 'https://api_deepli.nk', true); | |
| request.onload = function () { | |
| // Begin accessing JSON data here | |
| var data = JSON.parse(this.response); | |
| if (request.status >= 200 && request.status < 400) { | |
| data.forEach(movie => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| UPDATE s | |
| SET s.IsFreezed = 1 | |
| FROM [DBNAME].[dbo].[COLUMN] AS s | |
| INNER JOIN [DBNAME].[dbo].[COLUMN] AS m | |
| ON s.Id = m.StatusId | |
| WHERE m.Subject = 'xxxxx' | |
| AND s.HasSent = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- replaced the first old characters with new signs | |
| update [DATABASE].[dbo].[TABLE] set COLUMN = stuff(COLUMN, 1, 12, 'E:\Daten\LIVE\') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --offline | |
| USE master | |
| GO | |
| ALTER DATABASE dbname | |
| SET OFFLINE WITH ROLLBACK IMMEDIATE | |
| GO | |
| --online | |
| USE master | |
| GO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Use dbname; | |
| ALTER DATABASE dbname SET SINGLE_USER WITH ROLLBACK IMMEDIATE; | |
| Use master; | |
| DROP DATABASE dbname; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ALTER DATABASE [dbname] SET SINGLE_USER WITH ROLLBACK IMMEDIATE | |
| GO | |
| ALTER DATABASE [dbname] MODIFY NAME = [dbname_new] | |
| GO | |
| ALTER DATABASE [dbname_new] SET MULTI_USER; | |
| GO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public ActionResult Export(ViewModel model) | |
| { | |
| var fileData = _repo.GetFile(model...); | |
| var serializer = new JavaScriptSerializer { MaxJsonLength = Int32.MaxValue, RecursionLimit = 100 }; | |
| var dataJson = new DownloadAjaxResult(true) | |
| { | |
| File = fileData, | |
| Filename = model.Filename | |
| }; | |
| return new ContentResult() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //https://stackoverflow.com/a/17488875/119109 | |
| $.fn.serializeObject = function() | |
| { | |
| var o = {}; | |
| var a = this.serializeArray(); | |
| $.each(a, function() { | |
| if (o[this.name]) { | |
| if (!o[this.name].push) { | |
| o[this.name] = [o[this.name]]; | |
| } |