Export table back up and restore

Shambhu Rai 1,406 Reputation points
2022-06-13T12:14:26.617+00:00

Hi Expert,

How i can take table backup and restore again in sql server when more data is available at the time of import

create table table2

(col1 date, col2 char)

insert into table2
values('2022-02-02',22)

then took backup
at the time of restore found 2 more incremental records in table2

insert into table2
values('2022-02-03',22),
('2022-02-04',22)

how it will restore and backup with dates with new records

how it will restore and backup with dates with new records

Azure SQL Database
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,637 questions
SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,790 questions
Transact-SQL
Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,547 questions
0 comments No comments
{count} votes

13 answers

Sort by: Most helpful
  1. Shambhu Rai 1,406 Reputation points
    2022-06-13T14:31:12.45+00:00

    How about backup and restore . will the backup store at same location where server is installed or how we can change it and after restoring bak file . will it store existing records or overwrite it


  2. Ronen Ariely 15,096 Reputation points
    2022-06-13T14:39:04.84+00:00

    Start with these documents if you must and you don't want to learn in an ordinary course:

    0 comments No comments

  3. Shambhu Rai 1,406 Reputation points
    2022-06-13T14:46:29.953+00:00

    Hi Expert,
    i just need a insert statement to be store in file where i will get following records for a table that sit

    insert into table2
    values('2022-02-02',22)
    ,('2022-02-03',22),
    ('2022-02-04',22)


  4. Shambhu Rai 1,406 Reputation points
    2022-06-13T15:03:04.457+00:00

    Hi Expert,

    How can i export insert statement from database table into file

    Expected output
    insert into table2
    values('2022-02-02',22)
    ,('2022-02-03',22),
    ('2022-02-04',22)

    0 comments No comments

  5. Shambhu Rai 1,406 Reputation points
    2022-06-13T16:32:52.27+00:00