Guest User

Untitled

a guest
May 27th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. SELECT * FROM sys.servers AS s
  2.  
  3. EXEC sp_DROPSERVER 'USERNAME\MSSQLSERVER2012'
  4. EXEC sp_ADDSERVER 'USERNAME', 'local'
  5.  
  6. EXEC sp_serveroption 'USERNAME', 'DATA ACCESS', TRUE
  7.  
  8. SELECT * FROM sys.servers AS s
Add Comment
Please, Sign In to add comment