Allows retrying a SQL script until a lock can be achieved necessary to do the work.
This file contains 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
DECLARE @a uniqueidentifier | |
DECLARE @b uniqueidentifier | |
SET @a = newid() | |
SET @b = newid() | |
DECLARE @t TABLE | |
( | |
a uniqueidentifier, | |
b uniqueidentifier |
This file contains 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
See: https://github.com/esendex/esendex-node-sdk |
This file contains 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
using com.esendex.sdk.inbox; | |
... | |
const int pageNumber = 1; | |
const int pageSize = 20; | |
var inboxService = new InboxService(USERNAME, PASSWORD); | |
try | |
{ |
This file contains 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
using com.esendex.sdk; | |
using com.esendex.sdk.messaging; | |
... | |
var credentials = new EsendexCredentials(USERNAME, PASSWORD); | |
var messagingService = new MessagingService(true, credentials); | |
try | |
{ | |
var message = new SmsMessage("447123456789", "This is a test message...", "<myAccountReference>"); |
This file contains 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
using com.esendex.sdk.sent; | |
... | |
const int pageNumber = 1; | |
const int pageSize = 20; | |
var sentService = new SentService(USERNAME, PASSWORD); | |
try | |
{ |
This file contains 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
using com.esendex.sdk.messaging; | |
using com.esendex.sdk.sent; | |
... | |
const int pageNumber = 1; | |
const int pageSize = 20; | |
var credentials = new EsendexCredentials(USERNAME, PASSWORD); | |
var sentService = new SentService(credentials); |
This file contains 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
DECLARE @s VARCHAR(8000) | |
SELECT @s = COALESCE(@s + ',', '') + '@Thing' + CONVERT(nvarchar,[number]) | |
FROM [master].[dbo].[spt_values] | |
WHERE [name] is null and [number] between 0 and 197 | |
SELECT @s |
This file contains 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 http = require('http'); | |
var server = http.createServer(function (req, res) { | |
var datas = []; | |
req.on('data', function (data) { | |
datas.push(data); | |
}); | |
req.on('end', function () { | |
console.log('>-------------------->'); | |
console.log(new Date); | |
console.log(req.method + " " + req.url); |