RE: Copying specific company data to a new database...

2007-01-30 Thread Russ
] Sent: Monday, January 29, 2007 7:09 PM To: CF-Talk Subject: RE: Copying specific company data to a new database... I use a tool called ApexSQL Diff. It's really useful for scripting changes between two databases (both data a structure). Therefore making it relatively easy when moving

Copying specific company data to a new database...

2007-01-29 Thread Dan G. Switzer, II
I have a MSSQL database w/a lot of tables. I've got to copy all of a company's data from one database into a brand new database. The database should have all its foreign keys/primary key relationships defined (with one exception.) I can write scripts by hand, but that will take a while. There's a

Re: Copying specific company data to a new database...

2007-01-29 Thread Doug Brown
specific company data to a new database... I have a MSSQL database w/a lot of tables. I've got to copy all of a company's data from one database into a brand new database. The database should have all its foreign keys/primary key relationships defined (with one exception.) I can write

RE: Copying specific company data to a new database...

2007-01-29 Thread Dan G. Switzer, II
Doug, Here is a little something that I found. http://www.sharewareconnection.com/export-schema-to-sql-for-sql-server.htm I can copy the entire database w/no problem. The issue is that I need to take our database and create a copy that only contains the records from a specific company. So

Re: Copying specific company data to a new database...

2007-01-29 Thread Jim Wright
Dan G. Switzer, II wrote: I have a MSSQL database w/a lot of tables. I've got to copy all of a company's data from one database into a brand new database. The database should have all its foreign keys/primary key relationships defined (with one exception.) I can write scripts by hand, but

Re: Copying specific company data to a new database...

2007-01-29 Thread Doug Brown
: Copying specific company data to a new database... Doug, Here is a little something that I found. http://www.sharewareconnection.com/export-schema-to-sql-for-sql-server.htm I can copy the entire database w/no problem. The issue is that I need to take our database and create a copy that only

RE: Copying specific company data to a new database...

2007-01-29 Thread houseoffusion
Niall. -Original Message- From: Doug Brown [mailto:[EMAIL PROTECTED] Sent: 29 January 2007 14:24 To: CF-Talk Subject: Re: Copying specific company data to a new database... Well, you could copy the entire database over then do a delete where the company does not equal the company you want

Re: Copying specific company data to a new database...

2007-01-29 Thread Scott Weikert
I've got a script (used as a custom tag) that is built for SQL Server, that will do a cascading database delete, calling itself as often as necessary, based on the original record you want to delete. It requires that the DB tables be properly set up with foreign keys etc. The script digs