Frequent use of attach and detach

From: Terris Linenbach (nospam_at_nospam.com)
Date: 03/16/04


Date: Tue, 16 Mar 2004 15:36:31 -0800

We are considering an architecture in which "detach" and "attach" are used
on a daily, automated basis for about 50 databases, each containing about 10
gigs of data.

We use network attached storage (Network Applicance).

We want to have a farm of load servers for a data warehouse. When a load
server in the farm is available, it "attach"es a local database to a raw
database file "F" and loads data. After loading data, the database is
detached. Another server later detaches its local database file and
attaches to file "F."

This scheme frees personnel from manually configuring servers around
unpredictable load times. It is virtually impossible for a human to
optimally allocate and schedule machines for this task.

We contacted MS tech support to get their feedback and they don't advise
such a strategy. The consequences of frequent use of "attach" and "detach"
are unknown, according to tech support. This seems a little strange to me,
since "attach" and "detach" are real features.

 Has anyone tried to do something like this?

Thank you.



Relevant Pages

  • Re: SQL 2000 location
    ... You can move the data files through a process known as Detach ... Detach the database ... Attach the database ... Real-world stuff I run across with SQL Server: ...
    (microsoft.public.sqlserver.setup)
  • Re: Attach norecovery database
    ... When you detach a db it rolls back any open trans so the answer is no. ... can attach it but it it will already have been put into recovery. ... > where the target database is in norecovery mode for continuous log files. ...
    (microsoft.public.sqlserver.server)
  • Re: Attach/Detach database
    ... The detach option is context-sensitive so you need to first select the ... You should not create a new database before attaching. ... and copy the files to the new server. ... In the Attach database dialog, ...
    (microsoft.public.sqlserver.connect)
  • Re: Attach/Detach database
    ... The detach option is context-sensitive so you need to first select the ... You should not create a new database before attaching. ... and copy the files to the new server. ... In the Attach database dialog, ...
    (microsoft.public.sqlserver.programming)
  • Re: Attach/Detach database
    ... The detach option is context-sensitive so you need to first select the ... You should not create a new database before attaching. ... and copy the files to the new server. ... In the Attach database dialog, ...
    (microsoft.public.sqlserver.setup)