If you are writing something that claims to be a replacement for Management Studio, find out what Management Studio does first.
, Management Studio Script "Script " , "".
SQL, Management Studio :
USE [master]
GO
EXEC xp_instance_regwrite N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'LoginMode', REG_DWORD, 2
GO
- Profiler.
Developer Edition.