﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 - General  / can I get the cuerry of an existing table...??? / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Fri, 24 May 2013 06:33:43 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: can I get the cuerry of an existing table...???</title><link>http://www.sqlservercentral.com/Forums/Topic1379194-391-1.aspx</link><description>[center][b][size="4"]:exclamation:Indeed I don't need SSMSToolsPack [/size][/b][/center][center][b][size="6"];-)this was a tremendous help thank you so much and works JUST FINE :-)[/size][/b][/center][quote][b]Sean Lange (10/31/2012)[/b][hr]You don't need SSMSToolsPack to generate a script for the data. You can right click the database Taks -&amp;gt; Generate Scripts to bring up the Script wizard. On the Set Scripting Options section click the Advanced button. The last option in the first section of options (General) is "Types of data to script". By default this is set to Schema only. You can change that to Data only or Schema and data. If you choose the last one it will generate your create object script and inserts for all of the data.--EDIT--Of course SSMS Tools pack is a pretty darn handy extension though.[/quote]</description><pubDate>Mon, 05 Nov 2012 00:49:51 GMT</pubDate><dc:creator>Ahmed_07</dc:creator></item><item><title>RE: can I get the cuerry of an existing table...???</title><link>http://www.sqlservercentral.com/Forums/Topic1379194-391-1.aspx</link><description>You don't need SSMSToolsPack to generate a script for the data. You can right click the database Taks -&amp;gt; Generate Scripts to bring up the Script wizard. On the Set Scripting Options section click the Advanced button. The last option in the first section of options (General) is "Types of data to script". By default this is set to Schema only. You can change that to Data only or Schema and data. If you choose the last one it will generate your create object script and inserts for all of the data.--EDIT--Of course SSMS Tools pack is a pretty darn handy extension though.</description><pubDate>Wed, 31 Oct 2012 07:55:16 GMT</pubDate><dc:creator>Sean Lange</dc:creator></item><item><title>RE: can I get the cuerry of an existing table...???</title><link>http://www.sqlservercentral.com/Forums/Topic1379194-391-1.aspx</link><description>I could have done this... but my B server is a remote server, that don't accespt IMPORT db...Create a linked server on 1 of the machines then use a cross server query to pull out the data, something like [code="sql"]select * into destinationdb.dbo.tablename from linkedservername.sourcedb.dbo.tablename[/code]thankx will try the other options too</description><pubDate>Wed, 31 Oct 2012 04:33:58 GMT</pubDate><dc:creator>Ahmed_07</dc:creator></item><item><title>RE: can I get the cuerry of an existing table...???</title><link>http://www.sqlservercentral.com/Forums/Topic1379194-391-1.aspx</link><description>Another option is to use SSIS or the Import wizard to pull the data over from the other server. </description><pubDate>Wed, 31 Oct 2012 03:40:12 GMT</pubDate><dc:creator>Jason-299789</dc:creator></item><item><title>RE: can I get the cuerry of an existing table...???</title><link>http://www.sqlservercentral.com/Forums/Topic1379194-391-1.aspx</link><description>IF u don't wish to connect the two databases BCP in/out will be a good solution for you.Perform a BCP out operation on the source and get the data on a file.Then insert the data in the file onto a database using BCP in command.</description><pubDate>Wed, 31 Oct 2012 03:13:29 GMT</pubDate><dc:creator>mwagh</dc:creator></item><item><title>RE: can I get the cuerry of an existing table...???</title><link>http://www.sqlservercentral.com/Forums/Topic1379194-391-1.aspx</link><description>A number of ways to do this.Create a linked server on 1 of the machines then use a cross server query to pull out the data, something like [code="sql"]select * into destinationdb.dbo.tablename from linkedservername.sourcedb.dbo.tablename[/code]Use the import export data wizard to copy the data from one place to anotherCreate a custom SSIS package which does what you needGet a copy of SSMSTools Pack, and use the generate data scripts functionality to script out the data.BCP Out and then BCP In</description><pubDate>Wed, 31 Oct 2012 02:44:20 GMT</pubDate><dc:creator>anthony.green</dc:creator></item><item><title>can I get the cuerry of an existing table...???</title><link>http://www.sqlservercentral.com/Forums/Topic1379194-391-1.aspx</link><description>I wanted to copy a table and its data to another db in another pc.... I was wondering wether there is a way to generate a query that holds all the data of original table so I could just execute it to the other 2nd table and have exact data.thank you</description><pubDate>Wed, 31 Oct 2012 02:30:12 GMT</pubDate><dc:creator>Ahmed_07</dc:creator></item></channel></rss>