0 down vote i followed the procedure mentioned in http://sqldbpool.com/2008/09/03/how-to-change-sql-server-instance-name/like this For default instance sp_dropserver 'old_name'gosp_addserver 'new_name','local'go For named instance sp_drops
|
0down vote |
i followed the procedure mentioned in http://sqldbpool.com/2008/09/03/how-to-change-sql-server-instance-name/like this For default instance @@######@@For named instance @@######@@ |
|
down votefavorite
|
I installed VS2010 and it automatically installed SQL Server 2008 Express. Now, the installed instance is called SQLEXPRESS, therefore to connect to it I have to use 'localhost\SQLEXPRESS' or '.\SQLEXPRESS' or something like that. I want to rename the instance so I can connect using only my computer name or 'localhost'. How do I do this? |
I'm not sure of the express version of SQL Server bundled with VS 2010, but with the Standalone SQL Express 2008 (or R2), running the setup again will let you create a new instance.

<code>sp_dropserver 'old_name' go sp_addserver 'new_name','local' go </code>
<code>sp_dropserver 'Server Name\old_Instance_name' go sp_addserver 'ServerName\New Instance Name','local' go</code>
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号