SELECT CAST(RIGHT(CAST(Int AS VARCHAR(20)), [n]) AS BIGINT)
n left most numbers from an integer
SELECT CAST(LEFT(CAST(Int AS VARCHAR(20)), [n]) AS BIGINT)
world wide web development problems asp net php html xhtml css javascript jquery w3dproblems
SELECT CAST(RIGHT(CAST(Int AS VARCHAR(20)), [n]) AS BIGINT)
n left most numbers from an integer
SELECT CAST(LEFT(CAST(Int AS VARCHAR(20)), [n]) AS BIGINT)
public static bool IsValidImage(byte[] bytes) { try { using (MemoryStream ms = new MemoryStream(bytes)) System.Drawing.Image.FromStream(ms); } catch (ArgumentException) { return false; } return true; }
public static Guid Int2Guid(int value) { byte[] bytes = new byte[16]; BitConverter.GetBytes(value).CopyTo(bytes, 0); return new Guid(bytes); }SQL Server
CAST(CONVERT(BINARY(16), REVERSE(CONVERT(BINARY(16), 13))) AS uniqueidentifier)