Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. DECLARE @Route Geography
  2.  
  3. BEGIN TRY
  4. SELECT @Route = geography::STGeomFromText('LINESTRING(' + @i_Route + ')', 4269);
  5. END TRY
  6. BEGIN CATCH
  7. DECLARE @error Int, @message NVarChar(4000), @xstate Int;
  8. SELECT @error = ERROR_NUMBER(), @message = ERROR_MESSAGE(), @xstate = XACT_STATE();
  9.  
  10. PRINT CAST(@error AS NVarChar(10)) + ' - ' + @message
  11. END CATCH
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement