Difference between revisions of "ALTER DATABASE"

From wikieduonline
Jump to navigation Jump to search
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
ALTER DATABASE your_db OWNER TO your_user;
+
In [[SQL]] Server, this statement modifies a [[database]], or the [[files]] and [[filegroups]] associated with the database.
 +
 
 +
* <code>ALTER DATABASE your_db OWNER TO your_user;</code>
 
   
 
   
 +
[[ALTER]] DATABASE database_name CHARACTER SET character_set_name [[COLLATE]] collation;
 +
 +
ALTER DATABASE old_database_name [[RENAME TO]] new_database_name;
 +
  
 +
== Related ==
 +
* [[Parameter groups]]
 +
* <code>[[mv]]</code>
 +
* <code>[[ERROR: must be owner of database]]</code>
 +
* <code>[[DROP DATABASE]]</code>
  
 
== See also ==
 
== See also ==
* {{PostgreSQL}}
+
* {{SQL}}
 +
 
 +
[[Category:SQL]]

Latest revision as of 10:07, 4 November 2024

In SQL Server, this statement modifies a database, or the files and filegroups associated with the database.

  • ALTER DATABASE your_db OWNER TO your_user;
ALTER DATABASE database_name CHARACTER SET character_set_name COLLATE collation;
ALTER DATABASE old_database_name RENAME TO new_database_name;


Related[edit]

See also[edit]

Advertising: