Mit OSQL Datenbank anhängen
Hallo,
kann mir einer einen Tipp geben, wie ich mit OSQL (von MS SQL 2005) eine Datenbank anhängen kann?
Die Hilfe gibt das irgendwie nicht her...
Gruss
Achim
kann mir einer einen Tipp geben, wie ich mit OSQL (von MS SQL 2005) eine Datenbank anhängen kann?
Die Hilfe gibt das irgendwie nicht her...
Gruss
Achim
Please also mark the comments that contributed to the solution of the article
Content-Key: 108636
Url: https://administrator.de/contentid/108636
Printed on: April 20, 2024 at 00:04 o'clock
4 Comments
Latest comment
Suchen ist einfach, finden ist schwierig, aber such mal nach sp_attach_db
Aus der 2005 Hilfe:
sp_attach_db [ @dbname= ] 'dbname'
, [ @filename1= ] 'filename_n' [ ,...16 ]
Arguments
[ @dbname= ] ' dbname '
Is the name of the database to be attached to the server. The name must be unique. dbname is sysname, with a default of NULL.
[@filename1= ] ' filename_n '
Is the physical name, including path, of a database file. filename_n is nvarchar(260), with a default of NULL. Up to 16 file names can be specified. The parameter names start at @filename1 and increment to @filename16. The file name list must include at least the primary file. The primary file contains the system tables that point to other files in the database. The list must also include any files that were moved after the database was detached.
Aus der 2005 Hilfe:
sp_attach_db [ @dbname= ] 'dbname'
, [ @filename1= ] 'filename_n' [ ,...16 ]
Arguments
[ @dbname= ] ' dbname '
Is the name of the database to be attached to the server. The name must be unique. dbname is sysname, with a default of NULL.
[@filename1= ] ' filename_n '
Is the physical name, including path, of a database file. filename_n is nvarchar(260), with a default of NULL. Up to 16 file names can be specified. The parameter names start at @filename1 and increment to @filename16. The file name list must include at least the primary file. The primary file contains the system tables that point to other files in the database. The list must also include any files that were moved after the database was detached.