SQL Server Transact Basic to Expert - Get Current SQL Server Instance NameKarthikeyan Anbarasan15yPublished Jun 20, 2011, 12:00 AMUpdated Jun 20, 2011, 8:17 AM4.6k00Reactions×25BlogThis blog shows how to get the current sessions Server Instance name in SQL ServerExample:SELECT @@SERVERNAME Server NameCommentsJoin the conversation! Your thoughts help the community grow.Sign in to leave a commentIt is the same account you read, post and publish with — and you will come straight back to this page.Sign inCreate an account
Join the conversation! Your thoughts help the community grow.