I have to write a number of queries in SQL Server Management Studio, most of which, however, are not in my current database, but to a remote one. So, any simple select query looks like:
select * from [top_database].subdatabase.subsubdatabase.actualtable
where all I want to do is write
select * from actualtable
Is there any way that I can customize SQL Server so that I hit some hotkey or expand a very minimal text which will then give me
[top_database].subdatabase.subsubdatabase.
right after my cursor?
Thanks
You can create a synonym to your remote tables and use that synonym when you write queries. You can have a db at your server with all the synonyms you are likely to use. More work the first time you query a table but less work the next time.
Then you can do
Not really an answer to your question but it could be helpful.