Can I rename SQL Azure Database Name? [duplicate]
This question already has an answer here:
Rename SQL Azure database?
6 answers
How can i rename the database in sql Azure?
I am trying Alter database old_name {MODIFY NAME = new_name}
but not work.
rename is available in Azure or not?


marked as duplicate by rickvdbosch, Martin Brandl, David Makogon
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Jan 2 at 11:39
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
This question already has an answer here:
Rename SQL Azure database?
6 answers
How can i rename the database in sql Azure?
I am trying Alter database old_name {MODIFY NAME = new_name}
but not work.
rename is available in Azure or not?


marked as duplicate by rickvdbosch, Martin Brandl, David Makogon
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Jan 2 at 11:39
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
1
use link I will give you docs.microsoft.com/en-us/sql/relational-databases/databases/…
– user10862336
Feb 9 at 4:29
add a comment |
This question already has an answer here:
Rename SQL Azure database?
6 answers
How can i rename the database in sql Azure?
I am trying Alter database old_name {MODIFY NAME = new_name}
but not work.
rename is available in Azure or not?


This question already has an answer here:
Rename SQL Azure database?
6 answers
How can i rename the database in sql Azure?
I am trying Alter database old_name {MODIFY NAME = new_name}
but not work.
rename is available in Azure or not?
This question already has an answer here:
Rename SQL Azure database?
6 answers




asked Jan 2 at 11:02
PriteshPritesh
135111
135111
marked as duplicate by rickvdbosch, Martin Brandl, David Makogon
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Jan 2 at 11:39
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by rickvdbosch, Martin Brandl, David Makogon
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Jan 2 at 11:39
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
1
use link I will give you docs.microsoft.com/en-us/sql/relational-databases/databases/…
– user10862336
Feb 9 at 4:29
add a comment |
1
use link I will give you docs.microsoft.com/en-us/sql/relational-databases/databases/…
– user10862336
Feb 9 at 4:29
1
1
use link I will give you docs.microsoft.com/en-us/sql/relational-databases/databases/…
– user10862336
Feb 9 at 4:29
use link I will give you docs.microsoft.com/en-us/sql/relational-databases/databases/…
– user10862336
Feb 9 at 4:29
add a comment |
1 Answer
1
active
oldest
votes
https://docs.microsoft.com/en-us/sql/relational-databases/databases/rename-a-database?view=sql-server-2017#rename-a-database-using-transact-sql
ALTER DATABASE MyTestDatabase MODIFY NAME = MyTestDatabaseCopy ;
You can change the name, there are also some pre-reqs
Limitations and Restrictions
- System databases cannot be renamed.
- The database name cannot be changed while other users are accessing the database.
- In Azure SQL Database, you must make sure no other users have an open connection to the database to be renamed.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
https://docs.microsoft.com/en-us/sql/relational-databases/databases/rename-a-database?view=sql-server-2017#rename-a-database-using-transact-sql
ALTER DATABASE MyTestDatabase MODIFY NAME = MyTestDatabaseCopy ;
You can change the name, there are also some pre-reqs
Limitations and Restrictions
- System databases cannot be renamed.
- The database name cannot be changed while other users are accessing the database.
- In Azure SQL Database, you must make sure no other users have an open connection to the database to be renamed.
add a comment |
https://docs.microsoft.com/en-us/sql/relational-databases/databases/rename-a-database?view=sql-server-2017#rename-a-database-using-transact-sql
ALTER DATABASE MyTestDatabase MODIFY NAME = MyTestDatabaseCopy ;
You can change the name, there are also some pre-reqs
Limitations and Restrictions
- System databases cannot be renamed.
- The database name cannot be changed while other users are accessing the database.
- In Azure SQL Database, you must make sure no other users have an open connection to the database to be renamed.
add a comment |
https://docs.microsoft.com/en-us/sql/relational-databases/databases/rename-a-database?view=sql-server-2017#rename-a-database-using-transact-sql
ALTER DATABASE MyTestDatabase MODIFY NAME = MyTestDatabaseCopy ;
You can change the name, there are also some pre-reqs
Limitations and Restrictions
- System databases cannot be renamed.
- The database name cannot be changed while other users are accessing the database.
- In Azure SQL Database, you must make sure no other users have an open connection to the database to be renamed.
https://docs.microsoft.com/en-us/sql/relational-databases/databases/rename-a-database?view=sql-server-2017#rename-a-database-using-transact-sql
ALTER DATABASE MyTestDatabase MODIFY NAME = MyTestDatabaseCopy ;
You can change the name, there are also some pre-reqs
Limitations and Restrictions
- System databases cannot be renamed.
- The database name cannot be changed while other users are accessing the database.
- In Azure SQL Database, you must make sure no other users have an open connection to the database to be renamed.
answered Jan 2 at 11:33
JarnstromJarnstrom
32715
32715
add a comment |
add a comment |
1
use link I will give you docs.microsoft.com/en-us/sql/relational-databases/databases/…
– user10862336
Feb 9 at 4:29