dbTalk Databases Forums  

Re: Access to SQL via ".sql" : path of least resistance?

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Re: Access to SQL via ".sql" : path of least resistance? in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Access to SQL via ".sql" : path of least resistance? - 12-11-2004 , 11:23 AM






My good friend Vyas has a great way to generate INSERTs

http://vyaskn.tripod.com/code.htm#inserts

You may want to investigate the licensing around your usage of EM and MSDE.

To import the script at the other end somebody is till going to have to run osql or such like.

What about a backup and asking the hosting provider to restore it for you?



--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - SQL Server 2005 Integration Services.
www.Konesans.com


"Aidan Whitehall" <aidan (AT) thenetprofits (DOT) co.uk> wrote

Quote:
A friend has an Access db (handful of tables with just data, no constraints,
etc) on his workstation and a hosting package which comes with SQL Server.
He can't connect to SQL Server remotely, but can upload ".sql" files to the
server. I've got a copy of MSDE running here and to help him out, figured it
would be easy to run the Access Upsize into MSDE, then use some Enterprise
Manager built-in functionality to spit out the db (schema and data INSERT
statements) in one ".sql" file.

Well, now it's in MSDE, it's easy enough to export the schema using
Enterprise Manager and get a ".sql" file with the necessary commands to
recreate the structure, but it doesn't contain the data.

If I go down the Export Data... Route and use DTS Import/Export Wizard, and
select SQL Server > Text file, the text file just contains the data, without
the required SQL statements to execute to import that data at the other end.
And, boning up on "bcp", it doesn't seem to provide an option that allows
you to dump the data with the required SQL to import it at the other end
either.

Please tell me there's an easy way to do this?



--
Aidan Whitehall
Macromedia ColdFusion Developer





Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Access to SQL via ".sql" : path of least resistance? - 12-11-2004 , 09:52 PM






You can only use SQL Server tools and services in conjunction with
MSDE if you acquired MSDE through SQL Server 2000 (Developer Edition,
Standard Edition, or Enterprise Edition), and if you are using MSDE in
conjunction with a properly licensed copy of SQL Server 2000. Visit the How
to Buy page for information on obtaining a valid SQL Server license.

Note: The tools and services included with SQL Server Developer
Edition may not be used to manage production server environments.

The following utilities are installed by the MSDE setup application
and are provided without restrictions for use with the copy of MSDE that is
installed by your application: bcp.exe, cnfgsvr.exe, dcomscm.exe, osql.exe,
sqlmaint.exe, sqlmangr.exe, scm.exe, sqladhlp.exe, and svrnetcn.exe. The
dtsrun.exe utility is also provided, but can only be used to run existing
Data Transformation Services (DTS) packages against the copy of MSDE
installed by your application; it cannot be used to develop new DTS
packages.


--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - SQL Server 2005 Integration Services.
www.Konesans.com


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
My good friend Vyas has a great way to generate INSERTs

http://vyaskn.tripod.com/code.htm#inserts

You may want to investigate the licensing around your usage of EM and MSDE.

To import the script at the other end somebody is till going to have to run osql or such like.

What about a backup and asking the hosting provider to restore it for you?



--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - SQL Server 2005 Integration Services.
www.Konesans.com


"Aidan Whitehall" <aidan (AT) thenetprofits (DOT) co.uk> wrote

A friend has an Access db (handful of tables with just data, no constraints,
etc) on his workstation and a hosting package which comes with SQL Server.
He can't connect to SQL Server remotely, but can upload ".sql" files to the
server. I've got a copy of MSDE running here and to help him out, figured it
would be easy to run the Access Upsize into MSDE, then use some Enterprise
Manager built-in functionality to spit out the db (schema and data INSERT
statements) in one ".sql" file.

Well, now it's in MSDE, it's easy enough to export the schema using
Enterprise Manager and get a ".sql" file with the necessary commands to
recreate the structure, but it doesn't contain the data.

If I go down the Export Data... Route and use DTS Import/Export Wizard, and
select SQL Server > Text file, the text file just contains the data, without
the required SQL statements to execute to import that data at the other end.
And, boning up on "bcp", it doesn't seem to provide an option that allows
you to dump the data with the required SQL to import it at the other end
either.

Please tell me there's an easy way to do this?



--
Aidan Whitehall
Macromedia ColdFusion Developer







Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.