Guest User

Untitled

a guest
Dec 18th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. -- Create a mapping database
  2. CREATE DATABASE ArcMapping;
  3. GO
  4.  
  5. -- Optionally create a schema
  6. USE ArcMapping
  7. GO
  8. CREATE SCHEMA db1;
  9. GO
  10.  
  11. -- Create a synonym
  12. CREATE SYNONYM db1.myTable FOR extremely_verbose_database_name_example.dbo.myTable;
  13. GO
  14.  
  15. -- Or a view
  16. CREATE VIEW db1.MyTable_vw AS
  17. SELECT Something
  18. FROM extremely_verbose_database_name_example.dbo.myTable;
Add Comment
Please, Sign In to add comment