<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; Insert Data From One Table to Another Table &#8211; INSERT INTO SELECT &#8211; SELECT INTO TABLE</title>
	<atom:link href="http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/</link>
	<description>Notes of a SQL Server MVP and Database Administrator</description>
	<lastBuildDate>Wed, 17 Mar 2010 18:05:10 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mandar Kavishwar</title>
		<link>http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-63039</link>
		<dc:creator>Mandar Kavishwar</dc:creator>
		<pubDate>Wed, 17 Mar 2010 05:38:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-63039</guid>
		<description>Hello Madhu,

i have created one test table say &#039;test&#039;  and i have inserted some records into it. Following is just sample of data that i have created..

ID    IsActive IsVisible

1	yes	       yes
2	no	       yes
3	yes	       no
4	no	       no
5	yes	       no
6	yes	       yes
7	no	       no
8	yes	       no
9	yes	       no
10	yes	       yes

Now write query as-

SELECT IsActive,CONVERT(VARCHAR(5),(COUNT(IsActive)*100)/(SELECT COUNT(ID) FROM test))+&#039;%&#039; AS PercentageWiseYes_No FROM test
GROUP BY IsActive

After executing this query i am getting result as follows-

IsActive       PercentageWiseYes_N0

  no	                   30%
  yes	                   70%

I think your requirement was like this.
I am also new in MS-SQL Server but i think this query helps you.

Thanks.
Mandar Kavishwar.</description>
		<content:encoded><![CDATA[<p>Hello Madhu,</p>
<p>i have created one test table say &#8216;test&#8217;  and i have inserted some records into it. Following is just sample of data that i have created..</p>
<p>ID    IsActive IsVisible</p>
<p>1	yes	       yes<br />
2	no	       yes<br />
3	yes	       no<br />
4	no	       no<br />
5	yes	       no<br />
6	yes	       yes<br />
7	no	       no<br />
8	yes	       no<br />
9	yes	       no<br />
10	yes	       yes</p>
<p>Now write query as-</p>
<p>SELECT IsActive,CONVERT(VARCHAR(5),(COUNT(IsActive)*100)/(SELECT COUNT(ID) FROM test))+&#8217;%&#8217; AS PercentageWiseYes_No FROM test<br />
GROUP BY IsActive</p>
<p>After executing this query i am getting result as follows-</p>
<p>IsActive       PercentageWiseYes_N0</p>
<p>  no	                   30%<br />
  yes	                   70%</p>
<p>I think your requirement was like this.<br />
I am also new in MS-SQL Server but i think this query helps you.</p>
<p>Thanks.<br />
Mandar Kavishwar.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sradha</title>
		<link>http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-62975</link>
		<dc:creator>sradha</dc:creator>
		<pubDate>Mon, 15 Mar 2010 18:16:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-62975</guid>
		<description>hi,

I need to insert the data from table1 to table to.

Table1 has a primary key, and which is a foreign key in the table2. 
I want to retrieve the data of primary key from table1 and insert that to table2.

Also table2 has a independent columns , so I need to insert the all columns.

Kindly please reply,
sradha.</description>
		<content:encoded><![CDATA[<p>hi,</p>
<p>I need to insert the data from table1 to table to.</p>
<p>Table1 has a primary key, and which is a foreign key in the table2.<br />
I want to retrieve the data of primary key from table1 and insert that to table2.</p>
<p>Also table2 has a independent columns , so I need to insert the all columns.</p>
<p>Kindly please reply,<br />
sradha.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tejas Shah</title>
		<link>http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-62806</link>
		<dc:creator>Tejas Shah</dc:creator>
		<pubDate>Fri, 12 Mar 2010 10:13:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-62806</guid>
		<description>Hi Sharad,

If this is the case that you want to copy one column from one table to another table, then you can directly write an update statement, if there is one-to-one relation between these tables. Else you need to write custom logic, based on requirement.

You can use UPDATE in this case.

Thanks,

Tejas</description>
		<content:encoded><![CDATA[<p>Hi Sharad,</p>
<p>If this is the case that you want to copy one column from one table to another table, then you can directly write an update statement, if there is one-to-one relation between these tables. Else you need to write custom logic, based on requirement.</p>
<p>You can use UPDATE in this case.</p>
<p>Thanks,</p>
<p>Tejas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chaitanya kumar svs</title>
		<link>http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-62786</link>
		<dc:creator>chaitanya kumar svs</dc:creator>
		<pubDate>Fri, 12 Mar 2010 04:57:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-62786</guid>
		<description>i cant understood what u asked that question &quot;direct data&quot; means</description>
		<content:encoded><![CDATA[<p>i cant understood what u asked that question &#8220;direct data&#8221; means</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vikram</title>
		<link>http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-62753</link>
		<dc:creator>vikram</dc:creator>
		<pubDate>Thu, 11 Mar 2010 15:03:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-62753</guid>
		<description>I have 2 table in sql server freetrial and freetrial_backup, freetrial table contain startdate and enddate when enddate is over it should transfer all data to freetrial_backup table pls help me(startdate is registrationdate and enddate is 2days after registrationdate)</description>
		<content:encoded><![CDATA[<p>I have 2 table in sql server freetrial and freetrial_backup, freetrial table contain startdate and enddate when enddate is over it should transfer all data to freetrial_backup table pls help me(startdate is registrationdate and enddate is 2days after registrationdate)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan Scharf</title>
		<link>http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-62670</link>
		<dc:creator>Alan Scharf</dc:creator>
		<pubDate>Wed, 10 Mar 2010 17:38:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-62670</guid>
		<description>Hi.

I have 3 tables that I&#039;m working with.  I need to update all records in Table1 with the value from a similarly named column in Table3.  However, I need to use a value from a column in Table2 to get to the right record in Table3.  
The common column in Table1 and Table2 is recid.
The common column in Table2 and Table3 is VendorSKU.
Finally, I need to delete all the records from Table3

Will this work correctly in a Stored Procedure?

UPDATE Table1 SET Table1.Cost = Table3.Cost 
FROM Table3 c, Table2 p
INNER JOIN Table1 m ON m.recid = p.recid 
INNER JOIN Table2 ON p.VendorSKU = c.VendorSKU 
DELETE FROM Table3

Thanks,

Alan</description>
		<content:encoded><![CDATA[<p>Hi.</p>
<p>I have 3 tables that I&#8217;m working with.  I need to update all records in Table1 with the value from a similarly named column in Table3.  However, I need to use a value from a column in Table2 to get to the right record in Table3.<br />
The common column in Table1 and Table2 is recid.<br />
The common column in Table2 and Table3 is VendorSKU.<br />
Finally, I need to delete all the records from Table3</p>
<p>Will this work correctly in a Stored Procedure?</p>
<p>UPDATE Table1 SET Table1.Cost = Table3.Cost<br />
FROM Table3 c, Table2 p<br />
INNER JOIN Table1 m ON m.recid = p.recid<br />
INNER JOIN Table2 ON p.VendorSKU = c.VendorSKU<br />
DELETE FROM Table3</p>
<p>Thanks,</p>
<p>Alan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sharad Nagar</title>
		<link>http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-62522</link>
		<dc:creator>Sharad Nagar</dc:creator>
		<pubDate>Tue, 09 Mar 2010 13:32:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-62522</guid>
		<description>Sir ur Code is very Effective but I want to transfer the data from one column of one table to another column of another table in existing database.  without making any temporarily table 

kindly Please Reply</description>
		<content:encoded><![CDATA[<p>Sir ur Code is very Effective but I want to transfer the data from one column of one table to another column of another table in existing database.  without making any temporarily table </p>
<p>kindly Please Reply</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sharad Nagar</title>
		<link>http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-62520</link>
		<dc:creator>Sharad Nagar</dc:creator>
		<pubDate>Tue, 09 Mar 2010 13:30:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-62520</guid>
		<description>Sir ur Code is very Effective but I want to transfer the data from one column of one table to another column of another table in existing database. 

kindly Please Reply</description>
		<content:encoded><![CDATA[<p>Sir ur Code is very Effective but I want to transfer the data from one column of one table to another column of another table in existing database. </p>
<p>kindly Please Reply</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhu</title>
		<link>http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-62409</link>
		<dc:creator>Madhu</dc:creator>
		<pubDate>Mon, 08 Mar 2010 11:19:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-62409</guid>
		<description>hi ,
i have a table of 16 column in sql that i am  uploading excel file in using asp.net . all the column contains value either &#039;yes&#039; or &#039;no&#039;.
i need to calculate the percentage of &#039;yes&#039; in each column and i need to transfer the calculated percentage value to another table . 
and one more thing , that percentage will be calculated using the &quot;group by&quot; clause . 

please help me..</description>
		<content:encoded><![CDATA[<p>hi ,<br />
i have a table of 16 column in sql that i am  uploading excel file in using asp.net . all the column contains value either &#8216;yes&#8217; or &#8216;no&#8217;.<br />
i need to calculate the percentage of &#8216;yes&#8217; in each column and i need to transfer the calculated percentage value to another table .<br />
and one more thing , that percentage will be calculated using the &#8220;group by&#8221; clause . </p>
<p>please help me..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imran Mohammed</title>
		<link>http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-62362</link>
		<dc:creator>Imran Mohammed</dc:creator>
		<pubDate>Mon, 08 Mar 2010 06:32:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-62362</guid>
		<description>Wow...SQL is becoming more fun, 

Never heard of this before, is this new to SQL Server 2008. 

Another way of doing this would be to create Instead of/ For trigger on table 1 and insert data into table 1, trigger will insert data into table2.

~ IM.</description>
		<content:encoded><![CDATA[<p>Wow&#8230;SQL is becoming more fun, </p>
<p>Never heard of this before, is this new to SQL Server 2008. </p>
<p>Another way of doing this would be to create Instead of/ For trigger on table 1 and insert data into table 1, trigger will insert data into table2.</p>
<p>~ IM.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-62336</link>
		<dc:creator>Pinal Dave</dc:creator>
		<pubDate>Sun, 07 Mar 2010 15:32:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-62336</guid>
		<description>Hello Sarika,

You can insert into two tables using OUTPUT clause as below:

insert into MyTable1
output inserted.Col1, inserted.Col2 into MyTable2
values (10,&#039;wow&#039;)

Regards,
Pinal Dave</description>
		<content:encoded><![CDATA[<p>Hello Sarika,</p>
<p>You can insert into two tables using OUTPUT clause as below:</p>
<p>insert into MyTable1<br />
output inserted.Col1, inserted.Col2 into MyTable2<br />
values (10,&#8217;wow&#8217;)</p>
<p>Regards,<br />
Pinal Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sarika</title>
		<link>http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-62321</link>
		<dc:creator>Sarika</dc:creator>
		<pubDate>Sun, 07 Mar 2010 04:04:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-62321</guid>
		<description>here also we can insert multiple records through a single insert statement if we don&#039;t us where clause?</description>
		<content:encoded><![CDATA[<p>here also we can insert multiple records through a single insert statement if we don&#8217;t us where clause?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sarika</title>
		<link>http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-62320</link>
		<dc:creator>Sarika</dc:creator>
		<pubDate>Sun, 07 Mar 2010 04:01:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-62320</guid>
		<description>if i want to insert data in multiple tables in a single query then how it is possible?if yes then pls msg me in my emailid i  need this.</description>
		<content:encoded><![CDATA[<p>if i want to insert data in multiple tables in a single query then how it is possible?if yes then pls msg me in my emailid i  need this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sarika</title>
		<link>http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-62319</link>
		<dc:creator>Sarika</dc:creator>
		<pubDate>Sun, 07 Mar 2010 04:00:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-62319</guid>
		<description>if i want to insert data in multiple tables in a single query then how it is possible?</description>
		<content:encoded><![CDATA[<p>if i want to insert data in multiple tables in a single query then how it is possible?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sandeep</title>
		<link>http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-62252</link>
		<dc:creator>sandeep</dc:creator>
		<pubDate>Fri, 05 Mar 2010 14:34:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-62252</guid>
		<description>How to copy record one table and insert another table
  
syntax
:
insert into newtablename (new table feilds) select  feild1,feild2,feild3 from tablename 
example :

insert into employee_backupfile (id , name ,salary) select id, name, salary from emp2</description>
		<content:encoded><![CDATA[<p>How to copy record one table and insert another table</p>
<p>syntax<br />
:<br />
insert into newtablename (new table feilds) select  feild1,feild2,feild3 from tablename<br />
example :</p>
<p>insert into employee_backupfile (id , name ,salary) select id, name, salary from emp2</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sandeep</title>
		<link>http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-62250</link>
		<dc:creator>sandeep</dc:creator>
		<pubDate>Fri, 05 Mar 2010 13:53:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-62250</guid>
		<description>hello 
 i am sandeep (bigb)
i want to copy data in one table and insert aonther table.
this table have same feilds

can you give me a solustion.

thank you
bigb</description>
		<content:encoded><![CDATA[<p>hello<br />
 i am sandeep (bigb)<br />
i want to copy data in one table and insert aonther table.<br />
this table have same feilds</p>
<p>can you give me a solustion.</p>
<p>thank you<br />
bigb</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ve.Balakrishnan</title>
		<link>http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-61963</link>
		<dc:creator>Ve.Balakrishnan</dc:creator>
		<pubDate>Mon, 01 Mar 2010 08:58:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-61963</guid>
		<description>Hi Pinal,

How are you? I have one doubt.How can i do design the tables for country,state,city.i mean  these tables are separate.
Table Structure :
Country - Table
Con_Id
Con_Code
Con_Name

State - Table
Sta_Id
Sta_Name
Con_Id

City - Table
Ci_Id
Ci_Name
Sta_Id

Duplicates are not allowed.How can i write SP.
parameters (Con_Name,Sta_Name,Ci_Name)</description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>How are you? I have one doubt.How can i do design the tables for country,state,city.i mean  these tables are separate.<br />
Table Structure :<br />
Country &#8211; Table<br />
Con_Id<br />
Con_Code<br />
Con_Name</p>
<p>State &#8211; Table<br />
Sta_Id<br />
Sta_Name<br />
Con_Id</p>
<p>City &#8211; Table<br />
Ci_Id<br />
Ci_Name<br />
Sta_Id</p>
<p>Duplicates are not allowed.How can i write SP.<br />
parameters (Con_Name,Sta_Name,Ci_Name)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: samuel</title>
		<link>http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-61711</link>
		<dc:creator>samuel</dc:creator>
		<pubDate>Wed, 24 Feb 2010 16:04:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-61711</guid>
		<description>wat would be the query if i want to transfer data from one to another n also add some independent values in my other columns...

i.e if i have two tables A and B , say A wid  4 columns and B with 6 columns, transferrin values from 4 columns in A to B... and i want to insert some values into other 3 columns in B...</description>
		<content:encoded><![CDATA[<p>wat would be the query if i want to transfer data from one to another n also add some independent values in my other columns&#8230;</p>
<p>i.e if i have two tables A and B , say A wid  4 columns and B with 6 columns, transferrin values from 4 columns in A to B&#8230; and i want to insert some values into other 3 columns in B&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-61653</link>
		<dc:creator>Pinal Dave</dc:creator>
		<pubDate>Tue, 23 Feb 2010 16:28:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-61653</guid>
		<description>Hello Santu,

Time part is always remaiin associated with date value in datatime data type column. But you can remove the time value by storing 0 with convert function as below:
convert(varchar(10), getdate(),101)

Regards,
Pinal Dave</description>
		<content:encoded><![CDATA[<p>Hello Santu,</p>
<p>Time part is always remaiin associated with date value in datatime data type column. But you can remove the time value by storing 0 with convert function as below:<br />
convert(varchar(10), getdate(),101)</p>
<p>Regards,<br />
Pinal Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sAnTu...</title>
		<link>http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-61613</link>
		<dc:creator>sAnTu...</dc:creator>
		<pubDate>Tue, 23 Feb 2010 04:11:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-61613</guid>
		<description>i am using datetime datatype for the entity/column start_date
when i am inserting only date the default time also inserting..
i just want to insert date no need of time what i have to do sir
in sqlserver2005..</description>
		<content:encoded><![CDATA[<p>i am using datetime datatype for the entity/column start_date<br />
when i am inserting only date the default time also inserting..<br />
i just want to insert date no need of time what i have to do sir<br />
in sqlserver2005..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-61571</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Mon, 22 Feb 2010 08:41:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-61571</guid>
		<description>i have a main table, wherein i want to delete a row based on selection from user interface.
i want to move that row to duplicate table of main say (Main_Dup) 
my idea is to restore it when needed i.e., move gain the row from main)Dup to main table .

how to get this?</description>
		<content:encoded><![CDATA[<p>i have a main table, wherein i want to delete a row based on selection from user interface.<br />
i want to move that row to duplicate table of main say (Main_Dup)<br />
my idea is to restore it when needed i.e., move gain the row from main)Dup to main table .</p>
<p>how to get this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alex</title>
		<link>http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-61428</link>
		<dc:creator>alex</dc:creator>
		<pubDate>Thu, 18 Feb 2010 13:37:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-61428</guid>
		<description>why sql express edition cannot open the table i made.  i made a table named tblAlex, every time i open the table the error occur: This is the error:
  
 Unspecified error
 (MS Visual Database Tools)

------------------------------
Program Location:

   at Microsoft.VisualStudio.DataTools.Interop.IDTTableDesignerFactory.BrowseTable(Object dsRef, Object pServiceProvider)
   at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.OpenTableNode.CreateDesigner(IDTDocToolFactoryProvider factoryProvider, IVsDataConnection dataConnection)
   at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VsDataDesignerNode.CreateDesigner()
   at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VsDataDesignerNode.Open()
   at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VirtualProject.Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ISqlVirtualProject.CreateDesigner(Urn origUrn, DocumentType editorType, DocumentOptions aeOptions, IManagedConnection con)
   at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ISqlVirtualProject.CreateDesigner(Urn origUrn, DocumentType editorType, DocumentOptions aeOptions, IManagedConnection con)
   at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptFactory.CreateDesigner(DocumentType editorType, DocumentOptions aeOptions, Urn parentUrn, IManagedConnection mc)
   at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VsDocumentMenuItem.CreateDesignerWindow(IManagedConnection mc, DocumentOptions options)

How to solve this problem?</description>
		<content:encoded><![CDATA[<p>why sql express edition cannot open the table i made.  i made a table named tblAlex, every time i open the table the error occur: This is the error:</p>
<p> Unspecified error<br />
 (MS Visual Database Tools)</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Program Location:</p>
<p>   at Microsoft.VisualStudio.DataTools.Interop.IDTTableDesignerFactory.BrowseTable(Object dsRef, Object pServiceProvider)<br />
   at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.OpenTableNode.CreateDesigner(IDTDocToolFactoryProvider factoryProvider, IVsDataConnection dataConnection)<br />
   at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VsDataDesignerNode.CreateDesigner()<br />
   at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VsDataDesignerNode.Open()<br />
   at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VirtualProject.Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ISqlVirtualProject.CreateDesigner(Urn origUrn, DocumentType editorType, DocumentOptions aeOptions, IManagedConnection con)<br />
   at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ISqlVirtualProject.CreateDesigner(Urn origUrn, DocumentType editorType, DocumentOptions aeOptions, IManagedConnection con)<br />
   at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptFactory.CreateDesigner(DocumentType editorType, DocumentOptions aeOptions, Urn parentUrn, IManagedConnection mc)<br />
   at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VsDocumentMenuItem.CreateDesignerWindow(IManagedConnection mc, DocumentOptions options)</p>
<p>How to solve this problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marko Parkkola</title>
		<link>http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-61128</link>
		<dc:creator>Marko Parkkola</dc:creator>
		<pubDate>Sun, 14 Feb 2010 19:32:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-61128</guid>
		<description>Well you have at least two syntax errors in your stament. Here&#039;s the corrected version. Compare it to your version and you&#039;ll see where the problems are.

dbs.Execute “INSERT INTO FGResultsTable(SampleID,[ArtID],[SPID]) ” &amp; _
“SELECT FGSamplesTaken.[SampleID],FGSamplesTaken.[ArticleNo], FGSamplesTaken.[SPID] FROM FGSamplesTaken”</description>
		<content:encoded><![CDATA[<p>Well you have at least two syntax errors in your stament. Here&#8217;s the corrected version. Compare it to your version and you&#8217;ll see where the problems are.</p>
<p>dbs.Execute “INSERT INTO FGResultsTable(SampleID,[ArtID],[SPID]) ” &amp; _<br />
“SELECT FGSamplesTaken.[SampleID],FGSamplesTaken.[ArticleNo], FGSamplesTaken.[SPID] FROM FGSamplesTaken”</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: doglady</title>
		<link>http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-61121</link>
		<dc:creator>doglady</dc:creator>
		<pubDate>Sun, 14 Feb 2010 03:58:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-61121</guid>
		<description>Hello, I am desparate.  I have been working this insert statement for three days and I am just getting more confused.  I get one error, think I have it fixed, get another error, get that fixed and come back to the same error again. 

I am trying to set up a database to track lab samples.  I have a table for the SampleID (autonumber, ArtID (number), SamplePoint (Text), with a few other fields.  I am trying to insert the SampleID, ArtID and the SamplePoint into a table that the technicians will be using to enter their test results that will be tied back to the samples taken table.  Here is my latest code.

Private Sub Combo65_AfterUpdate()
Dim dbs As Database
Set dbs = CurrentDb
dbs.Execute &quot;INSERT INTO FGResultsTable.(SampleID,[ArtID],[SPID]);&quot; &amp; _
        &quot;SELECT FGSamplesTaken.[SampleID],FGSamplesTaken.[ArticleNo], FGSamplesTaken.[SPID] FROM FGSamplesTaken;&quot;
dbs.Close
End Sub

Please help me so I can stop screaming at my puppies.</description>
		<content:encoded><![CDATA[<p>Hello, I am desparate.  I have been working this insert statement for three days and I am just getting more confused.  I get one error, think I have it fixed, get another error, get that fixed and come back to the same error again. </p>
<p>I am trying to set up a database to track lab samples.  I have a table for the SampleID (autonumber, ArtID (number), SamplePoint (Text), with a few other fields.  I am trying to insert the SampleID, ArtID and the SamplePoint into a table that the technicians will be using to enter their test results that will be tied back to the samples taken table.  Here is my latest code.</p>
<p>Private Sub Combo65_AfterUpdate()<br />
Dim dbs As Database<br />
Set dbs = CurrentDb<br />
dbs.Execute &#8220;INSERT INTO FGResultsTable.(SampleID,[ArtID],[SPID]);&#8221; &amp; _<br />
        &#8220;SELECT FGSamplesTaken.[SampleID],FGSamplesTaken.[ArticleNo], FGSamplesTaken.[SPID] FROM FGSamplesTaken;&#8221;<br />
dbs.Close<br />
End Sub</p>
<p>Please help me so I can stop screaming at my puppies.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tweety</title>
		<link>http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-60960</link>
		<dc:creator>Tweety</dc:creator>
		<pubDate>Wed, 10 Feb 2010 18:37:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/#comment-60960</guid>
		<description>Thank you Pinal.....</description>
		<content:encoded><![CDATA[<p>Thank you Pinal&#8230;..</p>
]]></content:encoded>
	</item>
</channel>
</rss>
