Skip to content

Instantly share code, notes, and snippets.

@g-un--
Created November 5, 2012 12:57
Show Gist options
  • Save g-un--/4017071 to your computer and use it in GitHub Desktop.
Save g-un--/4017071 to your computer and use it in GitHub Desktop.
Insert geometry, geography from linked server
SELECT * INTO newschema.MyNewTableName
FROM OPENQUERY([MY_SOURCE_SERVER_NAME],
'SELECT * from [source_database_name].[schema_name].[TableName]');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment