get first two characters string sql server code example Example: sql server substring SELECT SUBSTRING('SQL Tutorial', 1, 3) AS ExtractString;