Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server DTS
|
SQL Server DTS Discussion specific to Data Transformation Service with SQL Server. General SQL Server discussions should use the general SQL Server forum. Readers of the book Professional SQL Server 2000 DTS with questions specific to that book should post in that book forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server DTS section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 7th, 2004, 05:06 PM
Authorized User
 
Join Date: Jun 2003
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to planeswalk
Default Export SQL 2000 to MSDE

Hi,

Can anyone tell me how to export an SQL database to an MSDE engine? I'm trying to get this Windows 2003 server's MSDE populated with values from an existing SQL 2000 db but it's rejecting the .sql script I generated from the SQL 2000. Is there an easier way to do this other than going through the webadmin panel of the MSDE?

Many thanks!!!

Regards,
Marlon


Marlon Villarama
 
Old October 7th, 2004, 08:57 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc
Default

You can use the sql 2000 enterprise manager and connect to your MSDE Instance. Note: MSDE has a lot of limitation compared to full SQL 2000.

Make a backup of the SQL 2000 database and restore it to your MSDE instance.

Also post your script!

Jaime E. Maccou
Applications Analyst
 
Old October 12th, 2004, 03:33 PM
Authorized User
 
Join Date: Jun 2003
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to planeswalk
Default

Hi,

Thanks for the reply!

The sql script I was trying to import was just a regular generated SQL script from SQL 2000. One of its lines is:

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Articles]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Articles]
GO

However, I get the following error:

Line 1: Incorrect syntax near 'e'.
'.d.b.o.' is an invalid name because it contains a NULL character.
'.A.r.t.i.c.l.e.s.' is an invalid name because it contains a NULL character.

Has anyone encountered this error before? Any help would be greatly appreciated...

Many thanks!
Marlon




Marlon Villarama
 
Old October 12th, 2004, 08:33 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc
Default

try it this way

if exists (select * from dbo.sysobjects where id = object_id(N'[Articles]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [articles]

and make sure to run it from the master database

GO

Jaime E. Maccou
Applications Analyst





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to export SQL Server 2000 data in kwilliams XML 13 November 30th, 2005 10:20 AM
Using MSDE 2000 instead farsfar2 BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 0 March 23rd, 2005 07:09 PM
Export data in conditions - SQL server 2000 minhpx SQL Server 2000 1 March 19th, 2005 01:45 AM
Export SQL db to MSDE planeswalk SQL Server 2000 1 October 8th, 2004 03:44 PM
DTS Export Wizard (SQL to Access 2000) fails ctudose SQL Server 2000 2 June 13th, 2003 05:46 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.