Ask a Question related to Coldfusion Database Access, Design and Development.
-
lther #1
Copying complete table from one MSSQL database toanother
I will soon have to move a complete table from one database to another (including the table structure and data in the table).
Is there an easy way to do this? Both are MSSQL databases.
Thanks!
lther Guest
-
table alias mssql problem
I get this error: The column prefix 'F' does not match with a table name or alias name used in the query. with the query below Any ideas as... -
copying a row from one table to another?
how do I copy a row from one table to another? I thought it might be something like SELECT...INTO, but I could be wrong. -
Trouble copying data from old table to new table
Hello all, I am working with a ColdFusion MX 6.1 frontend and a SQL Server 2000 backend - There is a "CUSTOMER_INFO" table for every month and... -
Forms...Copying data from one table to another
Using Access 2000, I have four tables and two forms. The first form will update the table "Master" with three fields, one of which is StudyNumber,... -
Copying entire table
Hi, I need to copy an entire table on MS SQL DB, along with all indexes and primary key. And I need to do this from an VC++ application that uses... -
mpwoodward *TMM* #2
Re: Copying complete table from one MSSQL database to another
lther wrote:
SQL Server's DTS functionality will handle this--you just point one> I will soon have to move a complete table from one database to another (including the table structure and data in the table).
>
> Is there an easy way to do this? Both are MSSQL databases.
>
> Thanks!
server to the other and it will copy straight over.
Matt
--
Matt Woodward
Team Macromedia - ColdFusion
mpwoodward *TMM* Guest
-
lther #3
Re: Copying complete table from one MSSQL database toanother
Thanks for the reply. I don't have access to the DTS Import/Export Wizard... Is there a way to do it through some sort of a query (either ColdFusion or MSSQL)?
lther Guest
-
paross1 #4
Re: Copying complete table from one MSSQL database toanother
Perhaps by using SELECT INTO (see SQL Server Books Online).
The SELECT INTO statement creates a new table and populates it with the result
set of the SELECT. The structure of the new table is defined by the attributes
of the expressions in the select list, for example:
SELECT Shippers.*, Link.Address, Link.City,
Link.Region, Link.PostalCode
INTO NewShippers
FROM Shippers
JOIN LinkServer.DB.dbo.Shippers AS Link
ON (Shippers.ShipperID = Link.ShipperID)
SELECT INTO can be used to combine data from several tables or views into one
table. It can also be used to create a new table containing data selected from
a linked server.
Phil
paross1 Guest
-
The ScareCrow #5
Re: Copying complete table from one MSSQL database toanother
I don't think Phil's solution will create the table with any keys or
identities. So you may need to do this manually.
The best/easist way is to use enterprise manager, just right click on the
table and export it.
Ken
The ScareCrow Guest
-
paross1 #6
Re: Copying complete table from one MSSQL database toanother
I agree. Of course, if he had access to Enterprise Manager, he would have access to DTS Import/Export Wizard, which, as previously stated, was not the case.
Phil
paross1 Guest
-
sameel85@gmail.com #7
Re: Copying complete table from one MSSQL database toanother
IN MSSQL Server Does not Support to IN BACKUP_TestDB but my sql is working. how can i resolve. Without that IN 'BACKUP_TestDB' we can copy the data into new table call PersonOrdered
SELECT P.FirstName, O.OrderNo
INTO PersonOrdered IN 'BACKUP_TestDB'
FROM Person AS P
INNER JOIN [Order] AS O
ON P.P_Id=O.P_Idsameel85@gmail.com Guest



Reply With Quote

