Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Copying tables with SQL Server 2005

 
Goto page Previous  1, 2
   Database Forums (Home) -> Tools RSS
Next:  Database Size Limiting  
Author Message
Russell Fields

External


Since: Feb 21, 2007
Posts: 457



(Msg. 16) Posted: Wed Mar 12, 2008 8:57 am
Post subject: Re: Copying tables with SQL Server 2005 [Login to view extended thread Info.]
Archived from groups: microsoft>public>sqlserver>tools (more info?)

Yes, this gets the table structure and the data. It does not get any
indexes, constraints, etc. that it might also be desirable to have.

RLF

"Samson J. Loo" wrote in message

> You can use the SELECT INTO statement
> --BEGIN TRANSACTION
> SELECT * INTO Database2.dbo.Contacts FROM Database1.dbo.Contacts
>
> Verify the table
> SELECT * FROM Database2.dbo.Contacts
>
> The run the following if everything is correct
> -- COMMIT TRANSACTION
> or Roll it back if that is not what you are looking for.
> -- ROLLBACK TRANSACTION
>
>
> Samson
>
>
> "Parrot" wrote in message
>
>> How do you copy a table from one database to another database using SQL
>> Server Management Studio Express for SQL Server 2005? I was able to do
>> this
>> easily with the Import/Export function in SQL Server 2000 but have failed
>> to
>> find the equivalent in SQL Server Management Studio Express. Do I need
>> other
>> software to do this?
>> Dave
>

 >> Stay informed about: Copying tables with SQL Server 2005 
Back to top
Login to vote
Samson J. Loo

External


Since: Mar 08, 2008
Posts: 3



(Msg. 17) Posted: Sun Mar 16, 2008 6:21 pm
Post subject: Re: Copying tables with SQL Server 2005 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

If that is the case, then the Export Data will not work either...



"Russell Fields" wrote in message

> Yes, this gets the table structure and the data. It does not get any
> indexes, constraints, etc. that it might also be desirable to have.
>
> RLF
>
> "Samson J. Loo" wrote in message
>
>> You can use the SELECT INTO statement
>> --BEGIN TRANSACTION
>> SELECT * INTO Database2.dbo.Contacts FROM Database1.dbo.Contacts
>>
>> Verify the table
>> SELECT * FROM Database2.dbo.Contacts
>>
>> The run the following if everything is correct
>> -- COMMIT TRANSACTION
>> or Roll it back if that is not what you are looking for.
>> -- ROLLBACK TRANSACTION
>>
>>
>> Samson
>>
>>
>> "Parrot" wrote in message
>>
>>> How do you copy a table from one database to another database using SQL
>>> Server Management Studio Express for SQL Server 2005? I was able to do
>>> this
>>> easily with the Import/Export function in SQL Server 2000 but have
>>> failed to
>>> find the equivalent in SQL Server Management Studio Express. Do I need
>>> other
>>> software to do this?
>>> Dave
>>
>
>

 >> Stay informed about: Copying tables with SQL Server 2005 
Back to top
Login to vote
Samson J. Loo

External


Since: Mar 08, 2008
Posts: 3



(Msg. 18) Posted: Sun Mar 16, 2008 6:22 pm
Post subject: Re: Copying tables with SQL Server 2005 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

If that is the case, then the Export Data will not work either...

Samson


"Russell Fields" wrote in message

> Yes, this gets the table structure and the data. It does not get any
> indexes, constraints, etc. that it might also be desirable to have.
>
> RLF
>
> "Samson J. Loo" wrote in message
>
>> You can use the SELECT INTO statement
>> --BEGIN TRANSACTION
>> SELECT * INTO Database2.dbo.Contacts FROM Database1.dbo.Contacts
>>
>> Verify the table
>> SELECT * FROM Database2.dbo.Contacts
>>
>> The run the following if everything is correct
>> -- COMMIT TRANSACTION
>> or Roll it back if that is not what you are looking for.
>> -- ROLLBACK TRANSACTION
>>
>>
>> Samson
>>
>>
>> "Parrot" wrote in message
>>
>>> How do you copy a table from one database to another database using SQL
>>> Server Management Studio Express for SQL Server 2005? I was able to do
>>> this
>>> easily with the Import/Export function in SQL Server 2000 but have
>>> failed to
>>> find the equivalent in SQL Server Management Studio Express. Do I need
>>> other
>>> software to do this?
>>> Dave
>>
>
>
 >> Stay informed about: Copying tables with SQL Server 2005 
Back to top
Login to vote
Russell Fields

External


Since: Feb 21, 2007
Posts: 457



(Msg. 19) Posted: Mon Mar 17, 2008 9:49 am
Post subject: Re: Copying tables with SQL Server 2005 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Quite right. I was assuming that the table definition already existed.
Perhaps not true! - RLF

"Samson J. Loo" wrote in message

> If that is the case, then the Export Data will not work either...
>
> Samson
>
>
> "Russell Fields" wrote in message
>
>> Yes, this gets the table structure and the data. It does not get any
>> indexes, constraints, etc. that it might also be desirable to have.
>>
>> RLF
>>
>> "Samson J. Loo" wrote in message
>>
>>> You can use the SELECT INTO statement
>>> --BEGIN TRANSACTION
>>> SELECT * INTO Database2.dbo.Contacts FROM Database1.dbo.Contacts
>>>
>>> Verify the table
>>> SELECT * FROM Database2.dbo.Contacts
>>>
>>> The run the following if everything is correct
>>> -- COMMIT TRANSACTION
>>> or Roll it back if that is not what you are looking for.
>>> -- ROLLBACK TRANSACTION
>>>
>>>
>>> Samson
>>>
>>>
>>> "Parrot" wrote in message
>>>
>>>> How do you copy a table from one database to another database using SQL
>>>> Server Management Studio Express for SQL Server 2005? I was able to do
>>>> this
>>>> easily with the Import/Export function in SQL Server 2000 but have
>>>> failed to
>>>> find the equivalent in SQL Server Management Studio Express. Do I need
>>>> other
>>>> software to do this?
>>>> Dave
>>>
>>
>>
>
 >> Stay informed about: Copying tables with SQL Server 2005 
Back to top
Login to vote
Tibor Karaszi

External


Since: Jan 29, 2004
Posts: 891



(Msg. 20) Posted: Mon Mar 17, 2008 3:17 pm
Post subject: Re: Copying tables with SQL Server 2005 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> If that is the case, then the Export Data will not work either...

It depends on what you mean by "the Export Data". If you mean the Import or Export *Wizard* and also
refer to SQL Server Management Studio, then you are correct.

However, SQL Server 2000 (Enterprise Manager) has a third option in the Wizard "Copy Objects and
Data Between SQL Server Databases". This option *do* include whatever you want (constraints,
permissions etc). This option isn't available in the 2005 SSMS *Wizard*. It is however available if
you design an SSIS package in Business Intelligence Developer Studio.

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi


"Samson J. Loo" wrote in message

> If that is the case, then the Export Data will not work either...
>
> Samson
>
>
> "Russell Fields" wrote in message
>
>> Yes, this gets the table structure and the data. It does not get any indexes, constraints, etc.
>> that it might also be desirable to have.
>>
>> RLF
>>
>> "Samson J. Loo" wrote in message
>>
>>> You can use the SELECT INTO statement
>>> --BEGIN TRANSACTION
>>> SELECT * INTO Database2.dbo.Contacts FROM Database1.dbo.Contacts
>>>
>>> Verify the table
>>> SELECT * FROM Database2.dbo.Contacts
>>>
>>> The run the following if everything is correct
>>> -- COMMIT TRANSACTION
>>> or Roll it back if that is not what you are looking for.
>>> -- ROLLBACK TRANSACTION
>>>
>>>
>>> Samson
>>>
>>>
>>> "Parrot" wrote in message
>>>
>>>> How do you copy a table from one database to another database using SQL
>>>> Server Management Studio Express for SQL Server 2005? I was able to do this
>>>> easily with the Import/Export function in SQL Server 2000 but have failed to
>>>> find the equivalent in SQL Server Management Studio Express. Do I need other
>>>> software to do this?
>>>> Dave
>>>
>>
>>
>
 >> Stay informed about: Copying tables with SQL Server 2005 
Back to top
Login to vote
Samson

External


Since: Jul 20, 2006
Posts: 4



(Msg. 21) Posted: Mon Mar 17, 2008 3:17 pm
Post subject: Re: Copying tables with SQL Server 2005 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Yes, you are correct. I was referring to the Export Wizard.

--
Regards,

Samson



"Tibor Karaszi" wrote:

> > If that is the case, then the Export Data will not work either...
>
> It depends on what you mean by "the Export Data". If you mean the Import or Export *Wizard* and also
> refer to SQL Server Management Studio, then you are correct.
>
> However, SQL Server 2000 (Enterprise Manager) has a third option in the Wizard "Copy Objects and
> Data Between SQL Server Databases". This option *do* include whatever you want (constraints,
> permissions etc). This option isn't available in the 2005 SSMS *Wizard*. It is however available if
> you design an SSIS package in Business Intelligence Developer Studio.
>
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://sqlblog.com/blogs/tibor_karaszi
>
>
> "Samson J. Loo" wrote in message
>
> > If that is the case, then the Export Data will not work either...
> >
> > Samson
> >
> >
> > "Russell Fields" wrote in message
> >
> >> Yes, this gets the table structure and the data. It does not get any indexes, constraints, etc.
> >> that it might also be desirable to have.
> >>
> >> RLF
> >>
> >> "Samson J. Loo" wrote in message
> >>
> >>> You can use the SELECT INTO statement
> >>> --BEGIN TRANSACTION
> >>> SELECT * INTO Database2.dbo.Contacts FROM Database1.dbo.Contacts
> >>>
> >>> Verify the table
> >>> SELECT * FROM Database2.dbo.Contacts
> >>>
> >>> The run the following if everything is correct
> >>> -- COMMIT TRANSACTION
> >>> or Roll it back if that is not what you are looking for.
> >>> -- ROLLBACK TRANSACTION
> >>>
> >>>
> >>> Samson
> >>>
> >>>
> >>> "Parrot" wrote in message
> >>>
> >>>> How do you copy a table from one database to another database using SQL
> >>>> Server Management Studio Express for SQL Server 2005? I was able to do this
> >>>> easily with the Import/Export function in SQL Server 2000 but have failed to
> >>>> find the equivalent in SQL Server Management Studio Express. Do I need other
> >>>> software to do this?
> >>>> Dave
> >>>
> >>
> >>
> >
>
>
>
 >> Stay informed about: Copying tables with SQL Server 2005 
Back to top
Login to vote
mary jo lenzing

External


Since: Feb 21, 2011
Posts: 2



(Msg. 22) Posted: Mon Feb 21, 2011 1:25 pm
Post subject: Re: It depends on what you mean by "the Export Data". [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"It is however available if
you design an SSIS package in Business Intelligence Developer Studio."

Is BIDS something that I have to install?

I am running Sql Server 2008 and wish to copy certain tables with data, keys and indexes.



> On Tuesday, February 26, 2008 3:30 PM Parro wrote:

> How do you copy a table from one database to another database using SQL
> Server Management Studio Express for SQL Server 2005? I was able to do this
> easily with the Import/Export function in SQL Server 2000 but have failed to
> find the equivalent in SQL Server Management Studio Express. Do I need other
> software to do this?
> Dave


>> On Tuesday, February 26, 2008 4:03 PM Russell Fields wrote:

>> Parrot,
>>
>> Right click on the database in Object Explore, Tasks \ Export Data ... and
>> choose your behaviors.
>>
>> RLF


>>> On Tuesday, February 26, 2008 6:18 PM Erland Sommarskog wrote:

>>> Parrot (Parrot@discussions.microsoft.com) writes:
>>>
>>> The easiest way would undoubtedly be to write an INSERT statement...
>>>
>>> I don't think the Import/Export tasks that Russell mentioned are available
>>> in Mgmt Studio Express. But maybe you could make use of what the
>>> Database Publishing Wizard produces. You find it at
>>> http://www.microsoft.com/downloads/details.aspx?familyid=56E5B1C5-BF17...E0-A410
>>>
>>>
>>> --
>>> Erland Sommarskog, SQL Server MVP, esquel.TakeThisOut@sommarskog.se
>>>
>>> Books Online for SQL Server 2005 at
>>> http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
>>> Books Online for SQL Server 2000 at
>>> http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx


>>>> On Tuesday, February 26, 2008 6:56 PM Parro wrote:

>>>> Thanks for your replies. It looks like the only way is to use an INSERT
>>>> command but I can't understand why the export/import function has been
>>>> removed from the Tasks menu. It seems like 2005 is a step down from 2000.
>>>> Dave
>>>>
>>>> "Erland Sommarskog" wrote:


>>>>> On Tuesday, February 26, 2008 6:57 PM Russell Fields wrote:

>>>>> Whoops. Must read more closely. The Database Publishing Wizard looks like it
>>>>> might be the thing.
>>>>>
>>>>> RLF


>>>>>> On Wednesday, February 27, 2008 7:05 AM Tibor Karaszi wrote:

>>>>>> SQL Server 2000's Enterprise Manager should be compared to 2005's SQL Server Management Studio. You
>>>>>> said you are using SQL Server Management Studio *Express* which is a *free* stripped SSMS. So, you
>>>>>> are basically comparing apples with oranges. The Wizard in question *is* available in the pay
>>>>>> version of Management Studio.
>>>>>>
>>>>>> --
>>>>>> Tibor Karaszi, SQL Server MVP
>>>>>> http://www.karaszi.com/sqlserver/default.asp
>>>>>> http://sqlblog.com/blogs/tibor_karaszi
>>>>>>
>>>>>>
>>>>>> "Parrot" wrote in message
>>>>>>


>>>>>>> On Wednesday, February 27, 2008 11:41 AM Parro wrote:

>>>>>>> I am not using SQL Server 2005 Express. I have the installation disk for SQL
>>>>>>> Server 2005 Standard Edition. Does it not have the 2005 SQL Server
>>>>>>> Management Studio like my SQL Server 2000 installation disk? If not, then
>>>>>>> that is a downgrade.
>>>>>>> Dave
>>>>>>>
>>>>>>> "Tibor Karaszi" wrote:


>>>>>>>> On Wednesday, February 27, 2008 11:56 AM Russell Fields wrote:

>>>>>>>> Then if you have the full SSMS then go back to my first answer. If you do
>>>>>>>> not see what I described, make sure that you are at least up to SP2 on your
>>>>>>>> SQL Server 2005 tools.
>>>>>>>>
>>>>>>>> RLF


>>>>>>>>> On Wednesday, February 27, 2008 2:20 PM Tibor Karaszi wrote:

>>>>>>>>> Below is a quote from your first post:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Can you see the contradiction between the two statements? Smile
>>>>>>>>>
>>>>>>>>> It might be so that you didn't install Management Studio from the CD. I.e., you installed SSMS from
>>>>>>>>> an Express download. I suggest that you in SSMS do Help, About to verify. I do know that the Import
>>>>>>>>> and Export wizards are available in the regular SSMS.
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Tibor Karaszi, SQL Server MVP
>>>>>>>>> http://www.karaszi.com/sqlserver/default.asp
>>>>>>>>> http://sqlblog.com/blogs/tibor_karaszi
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> "Parrot" wrote in message
>>>>>>>>>


>>>>>>>>>> On Wednesday, February 27, 2008 6:00 PM Parro wrote:

>>>>>>>>>> I am aware of the fact that I am using SQL Server Management Studio Express
>>>>>>>>>> rather than the regular Studio. The reason for that is that I couldn't find
>>>>>>>>>> SQL Server Management after installing SQL Server 2005 so I downloaded the
>>>>>>>>>> Express version. Are you saying that I can install SQL Server Mangement
>>>>>>>>>> Studio from my SQL Server 2005 installation disk and if so, do I just install
>>>>>>>>>> the server components part?
>>>>>>>>>> Dave
>>>>>>>>>>
>>>>>>>>>> "Tibor Karaszi" wrote:


>>>>>>>>>>> On Wednesday, February 27, 2008 6:07 PM Erland Sommarskog wrote:

>>>>>>>>>>> Parrot (Parrot@discussions.microsoft.com) writes:
>>>>>>>>>>>
>>>>>>>>>>> The tools ship with SQL 2005. However, if you have a single CD with
>>>>>>>>>>> SQL Server Standard, you don't have the tools, because they on CD 2.
>>>>>>>>>>> Which you also should have, unless some did it give you because of
>>>>>>>>>>> ignorance.
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Erland Sommarskog, SQL Server MVP, esquel.TakeThisOut@sommarskog.se
>>>>>>>>>>>
>>>>>>>>>>> Books Online for SQL Server 2005 at
>>>>>>>>>>> http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
>>>>>>>>>>> Books Online for SQL Server 2000 at
>>>>>>>>>>> http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx


>>>>>>>>>>>> On Wednesday, February 27, 2008 6:29 PM Parro wrote:

>>>>>>>>>>>> Yes, I do have the 2nd CD for SQL Server 2005. I don't know why it didn't
>>>>>>>>>>>> install the first time around. To install SQL Server Management Studio which
>>>>>>>>>>>> disk should I insert? I tried both disks and each time it acts like it wants
>>>>>>>>>>>> to reinstall SQL Server 2005 which I don't want to do and so I cancelled.
>>>>>>>>>>>> Can I install Server Management without re-installing SQL Server itself?
>>>>>>>>>>>> Dave
>>>>>>>>>>>>
>>>>>>>>>>>> "Erland Sommarskog" wrote:


>>>>>>>>>>>>> On Thursday, February 28, 2008 5:33 AM Tibor Karaszi wrote:

>>>>>>>>>>>>> Yes, pop in the right CD and specify to install the workstation components. It will not remove your
>>>>>>>>>>>>> existing database engine components. But you first need to remove SSMS Express, since SSMS express
>>>>>>>>>>>>> cannot co-exist with the "real" SSMS.
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>> Tibor Karaszi, SQL Server MVP
>>>>>>>>>>>>> http://www.karaszi.com/sqlserver/default.asp
>>>>>>>>>>>>> http://sqlblog.com/blogs/tibor_karaszi
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> "Parrot" wrote in message
>>>>>>>>>>>>>


>>>>>>>>>>>>>> On Thursday, February 28, 2008 5:55 PM Erland Sommarskog wrote:

>>>>>>>>>>>>>> Parrot (Parrot@discussions.microsoft.com) writes:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Yes. I would start with the first CD, and then select workstation
>>>>>>>>>>>>>> components only. If you were to select Database Engine, you would install
>>>>>>>>>>>>>> a second instance.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> But I have heard of people who have inserted the Tools disk and then
>>>>>>>>>>>>>> started the setup from there. I will have to admit that sounds a little
>>>>>>>>>>>>>> spooky to me, as the feature selection is on the first disk. Then again,
>>>>>>>>>>>>>> I guess you can run that setup from the command line.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> --
>>>>>>>>>>>>>> Erland Sommarskog, SQL Server MVP, esquel.TakeThisOut@sommarskog.se
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Books Online for SQL Server 2005 at
>>>>>>>>>>>>>> http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
>>>>>>>>>>>>>> Books Online for SQL Server 2000 at
>>>>>>>>>>>>>> http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx


>>>>>>>>>>>>>>> On Saturday, March 08, 2008 10:37 AM Samson J. Loo wrote:

>>>>>>>>>>>>>>> You can use the SELECT INTO statement
>>>>>>>>>>>>>>> --BEGIN TRANSACTION
>>>>>>>>>>>>>>> SELECT * INTO Database2.dbo.Contacts FROM Database1.dbo.Contacts
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Verify the table
>>>>>>>>>>>>>>> SELECT * FROM Database2.dbo.Contacts
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> The run the following if everything is correct
>>>>>>>>>>>>>>> -- COMMIT TRANSACTION
>>>>>>>>>>>>>>> or Roll it back if that is not what you are looking for.
>>>>>>>>>>>>>>> -- ROLLBACK TRANSACTION
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Samson
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> "Parrot" wrote in message
>>>>>>>>>>>>>>>


>>>>>>>>>>>>>>>> On Wednesday, March 12, 2008 8:57 AM Russell Fields wrote:

>>>>>>>>>>>>>>>> Yes, this gets the table structure and the data. It does not get any
>>>>>>>>>>>>>>>> indexes, constraints, etc. that it might also be desirable to have.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> RLF


>>>>>>>>>>>>>>>>> On Sunday, March 16, 2008 9:21 PM Samson J. Loo wrote:

>>>>>>>>>>>>>>>>> If that is the case, then the Export Data will not work either...


>>>>>>>>>>>>>>>>>> On Sunday, March 16, 2008 9:22 PM Samson J. Loo wrote:

>>>>>>>>>>>>>>>>>> If that is the case, then the Export Data will not work either...
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Samson


>>>>>>>>>>>>>>>>>>> On Monday, March 17, 2008 9:49 AM Russell Fields wrote:

>>>>>>>>>>>>>>>>>>> Quite right. I was assuming that the table definition already existed.
>>>>>>>>>>>>>>>>>>> Perhaps not true! - RLF


>>>>>>>>>>>>>>>>>>>> On Monday, March 17, 2008 10:17 AM Tibor Karaszi wrote:

>>>>>>>>>>>>>>>>>>>> It depends on what you mean by "the Export Data". If you mean the Import or Export *Wizard* and also
>>>>>>>>>>>>>>>>>>>> refer to SQL Server Management Studio, then you are correct.
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> However, SQL Server 2000 (Enterprise Manager) has a third option in the Wizard "Copy Objects and
>>>>>>>>>>>>>>>>>>>> Data Between SQL Server Databases". This option *do* include whatever you want (constraints,
>>>>>>>>>>>>>>>>>>>> permissions etc). This option isn't available in the 2005 SSMS *Wizard*. It is however available if
>>>>>>>>>>>>>>>>>>>> you design an SSIS package in Business Intelligence Developer Studio.
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>>>>>> Tibor Karaszi, SQL Server MVP
>>>>>>>>>>>>>>>>>>>> http://www.karaszi.com/sqlserver/default.asp
>>>>>>>>>>>>>>>>>>>> http://sqlblog.com/blogs/tibor_karaszi
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> "Samson J. Loo" wrote in message
>>>>>>>>>>>>>>>>>>>>


>>>>>>>>>>>>>>>>>>>>> On Monday, March 17, 2008 11:09 AM Samso wrote:

>>>>>>>>>>>>>>>>>>>>> Yes, you are correct. I was referring to the Export Wizard.
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>>>>>>> Regards,
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Samson
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> "Tibor Karaszi" wrote:


>>>>>>>>>>>>>>>>>>>>> Submitted via EggHeadCafe
>>>>>>>>>>>>>>>>>>>>> SharePoint Tip / Thought of the Day WebPart
>>>>>>>>>>>>>>>>>>>>> http://www.eggheadcafe.com/tutorials/aspnet/14280ff8-3c9f-46bd-8214-92...613c8ec
 >> Stay informed about: Copying tables with SQL Server 2005 
Back to top
Login to vote
mary jo lenzing

External


Since: Feb 21, 2011
Posts: 2



(Msg. 23) Posted: Mon Feb 21, 2011 1:25 pm
Post subject: Re: It depends on what you mean by "the Export Data". [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"This option isn't available in the 2005 SSMS *Wizard*. It is however available if
you design an SSIS package in Business Intelligence Developer Studio."

Is BIDS something that I have to install?

I have SQL Server 2008 standard edition.


> On Tuesday, February 26, 2008 3:30 PM Parro wrote:

> How do you copy a table from one database to another database using SQL
> Server Management Studio Express for SQL Server 2005? I was able to do this
> easily with the Import/Export function in SQL Server 2000 but have failed to
> find the equivalent in SQL Server Management Studio Express. Do I need other
> software to do this?
> Dave


>> On Tuesday, February 26, 2008 4:03 PM Russell Fields wrote:

>> Parrot,
>>
>> Right click on the database in Object Explore, Tasks \ Export Data ... and
>> choose your behaviors.
>>
>> RLF


>>> On Tuesday, February 26, 2008 6:18 PM Erland Sommarskog wrote:

>>> Parrot (Parrot@discussions.microsoft.com) writes:
>>>
>>> The easiest way would undoubtedly be to write an INSERT statement...
>>>
>>> I don't think the Import/Export tasks that Russell mentioned are available
>>> in Mgmt Studio Express. But maybe you could make use of what the
>>> Database Publishing Wizard produces. You find it at
>>> http://www.microsoft.com/downloads/details.aspx?familyid=56E5B1C5-BF17...E0-A410
>>>
>>>
>>> --
>>> Erland Sommarskog, SQL Server MVP, esquel.RemoveThis@sommarskog.se
>>>
>>> Books Online for SQL Server 2005 at
>>> http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
>>> Books Online for SQL Server 2000 at
>>> http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx


>>>> On Tuesday, February 26, 2008 6:56 PM Parro wrote:

>>>> Thanks for your replies. It looks like the only way is to use an INSERT
>>>> command but I can't understand why the export/import function has been
>>>> removed from the Tasks menu. It seems like 2005 is a step down from 2000.
>>>> Dave
>>>>
>>>> "Erland Sommarskog" wrote:


>>>>> On Tuesday, February 26, 2008 6:57 PM Russell Fields wrote:

>>>>> Whoops. Must read more closely. The Database Publishing Wizard looks like it
>>>>> might be the thing.
>>>>>
>>>>> RLF


>>>>>> On Wednesday, February 27, 2008 7:05 AM Tibor Karaszi wrote:

>>>>>> SQL Server 2000's Enterprise Manager should be compared to 2005's SQL Server Management Studio. You
>>>>>> said you are using SQL Server Management Studio *Express* which is a *free* stripped SSMS. So, you
>>>>>> are basically comparing apples with oranges. The Wizard in question *is* available in the pay
>>>>>> version of Management Studio.
>>>>>>
>>>>>> --
>>>>>> Tibor Karaszi, SQL Server MVP
>>>>>> http://www.karaszi.com/sqlserver/default.asp
>>>>>> http://sqlblog.com/blogs/tibor_karaszi
>>>>>>
>>>>>>
>>>>>> "Parrot" wrote in message
>>>>>>


>>>>>>> On Wednesday, February 27, 2008 11:41 AM Parro wrote:

>>>>>>> I am not using SQL Server 2005 Express. I have the installation disk for SQL
>>>>>>> Server 2005 Standard Edition. Does it not have the 2005 SQL Server
>>>>>>> Management Studio like my SQL Server 2000 installation disk? If not, then
>>>>>>> that is a downgrade.
>>>>>>> Dave
>>>>>>>
>>>>>>> "Tibor Karaszi" wrote:


>>>>>>>> On Wednesday, February 27, 2008 11:56 AM Russell Fields wrote:

>>>>>>>> Then if you have the full SSMS then go back to my first answer. If you do
>>>>>>>> not see what I described, make sure that you are at least up to SP2 on your
>>>>>>>> SQL Server 2005 tools.
>>>>>>>>
>>>>>>>> RLF


>>>>>>>>> On Wednesday, February 27, 2008 2:20 PM Tibor Karaszi wrote:

>>>>>>>>> Below is a quote from your first post:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Can you see the contradiction between the two statements? Smile
>>>>>>>>>
>>>>>>>>> It might be so that you didn't install Management Studio from the CD. I.e., you installed SSMS from
>>>>>>>>> an Express download. I suggest that you in SSMS do Help, About to verify. I do know that the Import
>>>>>>>>> and Export wizards are available in the regular SSMS.
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Tibor Karaszi, SQL Server MVP
>>>>>>>>> http://www.karaszi.com/sqlserver/default.asp
>>>>>>>>> http://sqlblog.com/blogs/tibor_karaszi
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> "Parrot" wrote in message
>>>>>>>>>


>>>>>>>>>> On Wednesday, February 27, 2008 6:00 PM Parro wrote:

>>>>>>>>>> I am aware of the fact that I am using SQL Server Management Studio Express
>>>>>>>>>> rather than the regular Studio. The reason for that is that I couldn't find
>>>>>>>>>> SQL Server Management after installing SQL Server 2005 so I downloaded the
>>>>>>>>>> Express version. Are you saying that I can install SQL Server Mangement
>>>>>>>>>> Studio from my SQL Server 2005 installation disk and if so, do I just install
>>>>>>>>>> the server components part?
>>>>>>>>>> Dave
>>>>>>>>>>
>>>>>>>>>> "Tibor Karaszi" wrote:


>>>>>>>>>>> On Wednesday, February 27, 2008 6:07 PM Erland Sommarskog wrote:

>>>>>>>>>>> Parrot (Parrot@discussions.microsoft.com) writes:
>>>>>>>>>>>
>>>>>>>>>>> The tools ship with SQL 2005. However, if you have a single CD with
>>>>>>>>>>> SQL Server Standard, you don't have the tools, because they on CD 2.
>>>>>>>>>>> Which you also should have, unless some did it give you because of
>>>>>>>>>>> ignorance.
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Erland Sommarskog, SQL Server MVP, esquel.RemoveThis@sommarskog.se
>>>>>>>>>>>
>>>>>>>>>>> Books Online for SQL Server 2005 at
>>>>>>>>>>> http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
>>>>>>>>>>> Books Online for SQL Server 2000 at
>>>>>>>>>>> http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx


>>>>>>>>>>>> On Wednesday, February 27, 2008 6:29 PM Parro wrote:

>>>>>>>>>>>> Yes, I do have the 2nd CD for SQL Server 2005. I don't know why it didn't
>>>>>>>>>>>> install the first time around. To install SQL Server Management Studio which
>>>>>>>>>>>> disk should I insert? I tried both disks and each time it acts like it wants
>>>>>>>>>>>> to reinstall SQL Server 2005 which I don't want to do and so I cancelled.
>>>>>>>>>>>> Can I install Server Management without re-installing SQL Server itself?
>>>>>>>>>>>> Dave
>>>>>>>>>>>>
>>>>>>>>>>>> "Erland Sommarskog" wrote:


>>>>>>>>>>>>> On Thursday, February 28, 2008 5:33 AM Tibor Karaszi wrote:

>>>>>>>>>>>>> Yes, pop in the right CD and specify to install the workstation components. It will not remove your
>>>>>>>>>>>>> existing database engine components. But you first need to remove SSMS Express, since SSMS express
>>>>>>>>>>>>> cannot co-exist with the "real" SSMS.
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>> Tibor Karaszi, SQL Server MVP
>>>>>>>>>>>>> http://www.karaszi.com/sqlserver/default.asp
>>>>>>>>>>>>> http://sqlblog.com/blogs/tibor_karaszi
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> "Parrot" wrote in message
>>>>>>>>>>>>>


>>>>>>>>>>>>>> On Thursday, February 28, 2008 5:55 PM Erland Sommarskog wrote:

>>>>>>>>>>>>>> Parrot (Parrot@discussions.microsoft.com) writes:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Yes. I would start with the first CD, and then select workstation
>>>>>>>>>>>>>> components only. If you were to select Database Engine, you would install
>>>>>>>>>>>>>> a second instance.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> But I have heard of people who have inserted the Tools disk and then
>>>>>>>>>>>>>> started the setup from there. I will have to admit that sounds a little
>>>>>>>>>>>>>> spooky to me, as the feature selection is on the first disk. Then again,
>>>>>>>>>>>>>> I guess you can run that setup from the command line.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> --
>>>>>>>>>>>>>> Erland Sommarskog, SQL Server MVP, esquel.RemoveThis@sommarskog.se
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Books Online for SQL Server 2005 at
>>>>>>>>>>>>>> http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
>>>>>>>>>>>>>> Books Online for SQL Server 2000 at
>>>>>>>>>>>>>> http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx


>>>>>>>>>>>>>>> On Saturday, March 08, 2008 10:37 AM Samson J. Loo wrote:

>>>>>>>>>>>>>>> You can use the SELECT INTO statement
>>>>>>>>>>>>>>> --BEGIN TRANSACTION
>>>>>>>>>>>>>>> SELECT * INTO Database2.dbo.Contacts FROM Database1.dbo.Contacts
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Verify the table
>>>>>>>>>>>>>>> SELECT * FROM Database2.dbo.Contacts
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> The run the following if everything is correct
>>>>>>>>>>>>>>> -- COMMIT TRANSACTION
>>>>>>>>>>>>>>> or Roll it back if that is not what you are looking for.
>>>>>>>>>>>>>>> -- ROLLBACK TRANSACTION
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Samson
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> "Parrot" wrote in message
>>>>>>>>>>>>>>>


>>>>>>>>>>>>>>>> On Wednesday, March 12, 2008 8:57 AM Russell Fields wrote:

>>>>>>>>>>>>>>>> Yes, this gets the table structure and the data. It does not get any
>>>>>>>>>>>>>>>> indexes, constraints, etc. that it might also be desirable to have.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> RLF


>>>>>>>>>>>>>>>>> On Sunday, March 16, 2008 9:21 PM Samson J. Loo wrote:

>>>>>>>>>>>>>>>>> If that is the case, then the Export Data will not work either...


>>>>>>>>>>>>>>>>>> On Sunday, March 16, 2008 9:22 PM Samson J. Loo wrote:

>>>>>>>>>>>>>>>>>> If that is the case, then the Export Data will not work either...
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Samson


>>>>>>>>>>>>>>>>>>> On Monday, March 17, 2008 9:49 AM Russell Fields wrote:

>>>>>>>>>>>>>>>>>>> Quite right. I was assuming that the table definition already existed.
>>>>>>>>>>>>>>>>>>> Perhaps not true! - RLF


>>>>>>>>>>>>>>>>>>>> On Monday, March 17, 2008 10:17 AM Tibor Karaszi wrote:

>>>>>>>>>>>>>>>>>>>> It depends on what you mean by "the Export Data". If you mean the Import or Export *Wizard* and also
>>>>>>>>>>>>>>>>>>>> refer to SQL Server Management Studio, then you are correct.
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> However, SQL Server 2000 (Enterprise Manager) has a third option in the Wizard "Copy Objects and
>>>>>>>>>>>>>>>>>>>> Data Between SQL Server Databases". This option *do* include whatever you want (constraints,
>>>>>>>>>>>>>>>>>>>> permissions etc). This option isn't available in the 2005 SSMS *Wizard*. It is however available if
>>>>>>>>>>>>>>>>>>>> you design an SSIS package in Business Intelligence Developer Studio.
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>>>>>> Tibor Karaszi, SQL Server MVP
>>>>>>>>>>>>>>>>>>>> http://www.karaszi.com/sqlserver/default.asp
>>>>>>>>>>>>>>>>>>>> http://sqlblog.com/blogs/tibor_karaszi
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> "Samson J. Loo" wrote in message
>>>>>>>>>>>>>>>>>>>>


>>>>>>>>>>>>>>>>>>>>> On Monday, March 17, 2008 11:09 AM Samso wrote:

>>>>>>>>>>>>>>>>>>>>> Yes, you are correct. I was referring to the Export Wizard.
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>>>>>>> Regards,
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Samson
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> "Tibor Karaszi" wrote:


>>>>>>>>>>>>>>>>>>>>>> On Monday, February 21, 2011 12:21 PM mary jo lenzing wrote:

>>>>>>>>>>>>>>>>>>>>>> "It is however available if
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> you design an SSIS package in Business Intelligence Developer Studio."
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Is BIDS something that I have to install?
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> I am running Sql Server 2008 and wish to copy certain tables with data, keys and indexes.


>>>>>>>>>>>>>>>>>>>>>> Submitted via EggHeadCafe
>>>>>>>>>>>>>>>>>>>>>> Excel JSON Storing Data
>>>>>>>>>>>>>>>>>>>>>> http://www.eggheadcafe.com/tutorials/aspnet/233e58b3-72f4-4220-8d45-37...44e795e
 >> Stay informed about: Copying tables with SQL Server 2005 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
SQL Server 2005 - Server side trace script - Hi, I have been beating my head against the wall on this one, and am hoping someone can point out what I am doing wrong here. I am trying to set up a trace (using script) that will tracks all the "RPC:Completed" events and give me some of t...

Copying database between servers - I need to move a SQL 2005 database between 2 servers. But the 2 servers have different path structure due to language difference. One server has the databse installed under "c:\Program Files ..." and the other under "C:\Programmer...&quo...

Copying a database with the "Copy Database Wizard" - I am using the Copy Database wizard to copy an SQL 2000 database to a 2005 database on another server. When I get to the "Schedule the Package" wizard and click "Next>" I get an error that says "Proxy account has to be selec...

debugging in sql server 2005 - Can you 'step' through code in sql server 2005 express like you can in visual studio.net 2005? I want to be able to debug code on my own workstation since my company does not have a 'test' sql server for me to use. Does the developer's version of sql....

Manage SQL Server 2005 while keeping SQL Server 2000 - I've got SQL Server 2000 running on my PC, and I want to continue doing so. But now I also need to manage a remote SQL Server 2005 database. I think that I need to install SQL Server Management Studio to do so. (Please correct me if that's wrong.) Can...
   Database Forums (Home) -> Tools All times are: Pacific Time (US & Canada)
Goto page Previous  1, 2
Page 2 of 2

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]