Showing posts with label selected. Show all posts
Showing posts with label selected. Show all posts

Tuesday, March 27, 2012

export db tables for use locally on another pc

Hi,
I've used SQL Enterprise Manager to Export my selected db's locally.
My main question is how do I move the export to another pc - which
files need to be moved, etc?

Thanks
LouisHi Louis,

How did you exactly export you databases?

Normally the easiest way to move databases is to backup, move the backup
file to the new PC, and then restore.

You could also use detach, copy the MDF and LDF files, then attach on the
new PC (but you have to attach back to the original PC too, if you need the
databases there). Not worth the trouble unless you do not have space to save
a backup file.

Alternatively you can script your database objects and export the data, then
apply the scripts to the new PC and import the data. This is manual approach
that is not needed unless you want to change structure for some objects
during the transfer, filter data, etc.

HTH,

Plamen Ratchev
http://www.SQLStudio.com|||On Dec 14, 1:05 pm, "Plamen Ratchev" <Pla...@.SQLStudio.comwrote:

Quote:

Originally Posted by

Hi Louis,
>
How did you exactly export you databases?
>
Normally the easiest way to move databases is to backup, move the backup
file to the new PC, and then restore.
>
You could also use detach, copy the MDF and LDF files, then attach on the
new PC (but you have to attach back to the original PC too, if you need the
databases there). Not worth the trouble unless you do not have space to save
a backup file.
>
Alternatively you can script your database objects and export the data, then
apply the scripts to the new PC and import the data. This is manual approach
that is not needed unless you want to change structure for some objects
during the transfer, filter data, etc.
>
HTH,
>
Plamen Ratchevhttp://www.SQLStudio.com


Hi Plamen,
Thanks for your email.
I've created a new local db and imported the tables from the live db.
This will fail when I choose to 'copy objects and data between SQL
Server databases' and then leave 'copy all objects' and 'use default
objects' and 'run immediately' in the next step, leaving 'save DTS'
unchecked. Would I need to take the live db offline before copying?
Thanks
Louis|||You could get different errors when using the Import/Export wizard to copy a
database. No, you do not need to have the live database off-line while doing
that.

Instead of using this method I would suggest to use backup and then restore
the backup file. It is easier and a lot more reliable.

Here is a good article that outlines the different approaches to move data
between SQL Server instances:
http://support.microsoft.com/kb/314546
See also the sections in the article that refer to transferring logins and
resolving orphaned users.

HTH,

Plamen Ratchev
http://www.SQLStudio.comsql

Friday, February 24, 2012

ExecutionLog Installation Problem

We are installing SQL2005 for the first time. We have selected all the
options on the installation. I'm trying to find the ExecutionLog information
and I can not.
I'm following Microsoft instructions at:
http://msdn2.microsoft.com/en-us/library/ms161561.aspx
Instructions say to: C:\Program Files\Microsoft SQL
Server\90\Samples\Reporting Services\Report Samples\Server Management Sample
Reports\Execution Log Sample Reports
We do not have the folder: C:\Program Files\Microsoft SQL Server\90\Samples\
We have ran the installation several times and still can not figure out is
wrong.
Please help.Hi Gary,
Is sql2005 is evaluation or original version. If Evaluation try copying in
your C: and then start installation. If you dont get the samples. go to setup
directory and search for file \Tools\Setup\sqlrun_tools.exe Just run that
file and install samples.
Amarnath.
"GaryC" wrote:
> We are installing SQL2005 for the first time. We have selected all the
> options on the installation. I'm trying to find the ExecutionLog information
> and I can not.
> I'm following Microsoft instructions at:
> http://msdn2.microsoft.com/en-us/library/ms161561.aspx
> Instructions say to: C:\Program Files\Microsoft SQL
> Server\90\Samples\Reporting Services\Report Samples\Server Management Sample
> Reports\Execution Log Sample Reports
> We do not have the folder: C:\Program Files\Microsoft SQL Server\90\Samples\
> We have ran the installation several times and still can not figure out is
> wrong.
> Please help.|||It is an original version. I'll try your suggestion.
Gary
"Amarnath" wrote:
> Hi Gary,
> Is sql2005 is evaluation or original version. If Evaluation try copying in
> your C: and then start installation. If you dont get the samples. go to setup
> directory and search for file \Tools\Setup\sqlrun_tools.exe Just run that
> file and install samples.
> Amarnath.
>
> "GaryC" wrote:
> > We are installing SQL2005 for the first time. We have selected all the
> > options on the installation. I'm trying to find the ExecutionLog information
> > and I can not.
> >
> > I'm following Microsoft instructions at:
> > http://msdn2.microsoft.com/en-us/library/ms161561.aspx
> >
> > Instructions say to: C:\Program Files\Microsoft SQL
> > Server\90\Samples\Reporting Services\Report Samples\Server Management Sample
> > Reports\Execution Log Sample Reports
> >
> > We do not have the folder: C:\Program Files\Microsoft SQL Server\90\Samples\
> >
> > We have ran the installation several times and still can not figure out is
> > wrong.
> >
> > Please help.