Move records to another table

  • Hi,

    I am a beginer in SQL server. I have created a Customer Service database wherein i maintain tables for Service Contracts and visits made in the contract period. After a defined time period, the contract comes to an end. Within this period, certain visits are made for this contract. After the expiry of the contract, i want to move this data to another table.

     

    How do i do this.

    kesk

  • Use INSERT INTO ... SELECT to move the data and thereafter DELETE. Both syntax are explained in BOL.

    --
    Frank Kalis
    Microsoft SQL Server MVP
    Webmaster: http://www.insidesql.org/blogs
    My blog: http://www.insidesql.org/blogs/frankkalis/[/url]

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply