Viewing 3 posts - 1 through 3 (of 3 total)
BEGIN TRY
-- Generate a divide-by-zero error.
SELECT 1/0;
END TRY
BEGIN CATCH
SELECT
ERROR_NUMBER() AS...
February 16, 2015 at 8:11 am
#1777840
Long, long ago
February 16, 2015 at 7:18 am
#1777820
sql = "Select * from table where 1 = 1";
if (XXX)
{
sql = sql + " and a > 10";
}
February 16, 2015 at 7:08 am
#1777816