Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > BOOK: Beginning ASP.NET 2.0 and Databases
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 2.0 and Databases
This is the forum to discuss the Wrox book Beginning ASP.NET 2.0 and Databases by John Kauffman, Bradley Millington; ISBN: 9780471781349
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 2.0 and Databases section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 26th, 2009, 08:28 AM
bex bex is offline
Friend of Wrox
 
Join Date: Aug 2008
Location: london, , United Kingdom.
Posts: 154
Thanks: 7
Thanked 1 Time in 1 Post
Default How to pass data from Table1 to Table2 in SQl 2005

Hi there i need to pass the data in table1 into table2 and delete the same data in table1.

i need this to happend in buttonclick event and i have to use the Where Close.

the tables have the same data type and columns
i use vb SQL 2005 and VS 2005

any help apprisiated
__________________
bx
  #2 (permalink)  
Old February 27th, 2009, 05:25 AM
Imar's Avatar
Wrox Author
Points: 72,038, Level: 100
Points: 72,038, Level: 100 Points: 72,038, Level: 100 Points: 72,038, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,080
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Is this a homework assignment? (because of the "I have to use a WHERE clause"?

If so, you're better off posting here: http://p2p.wrox.com/need-help-your-homework-248/

To solve this problem, look in the Books On Line (BOL) of SQL Server for "INSERT INTO" and "DELETE"; they allow you to copy data from one table to another, and then delete the old records.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
  #3 (permalink)  
Old February 27th, 2009, 05:55 AM
bex bex is offline
Friend of Wrox
 
Join Date: Aug 2008
Location: london, , United Kingdom.
Posts: 154
Thanks: 7
Thanked 1 Time in 1 Post
Default

Hi Imar this is not a homework assignment,
i have posted something else this morning under Begin Aspnet 2.0 Basic, if u can have a look that will be great

thanks
__________________
bx
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Query Sql Server 2005, geographical data itHighway SQL Language 0 June 3rd, 2008 11:25 PM
Importing data into SQL Server 2005 Express rit01 SQL Server 2005 1 March 22nd, 2007 02:23 PM
Delete Data from a SQL Database using vb 2005 sahmed1983 VB Databases Basics 2 December 11th, 2006 03:16 PM
Querying table2 with results from table1 miamikk SQL Language 3 November 9th, 2006 09:22 AM
wrox resources to pass mcsd 2005 y_mmohd ASP.NET 2.0 Basics 0 April 3rd, 2006 08:41 AM



All times are GMT -4. The time now is 08:01 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.