I installed SQL Server but I forgot my server name and now that I install SQL Server Management Studio, it needs the server name.
How can I get server name again?
You can get your server name with Transact-SQL(T-SQL) as shown below:
SELECT @@SERVERNAME -- DESKTOP-OVPADTC\SQLEXPRESS
SELECT SERVERPROPERTY ('ServerName') -- DESKTOP-OVPADTC\SQLEXPRESS
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With