I have one SQL Server database table. I need to take backup of my table daily based on the date. For that I need to write a script. But I'm new to SQL Server can any one please help me.
Thanks in advance
You could copy it with command
select * into new_table1 from primarytable
This will create a table named new_table1
with data from primarytable
.
You must of course backup the whole database.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.