Reputation: 87
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
Upvotes: 0
Views: 5729
Reputation: 94
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.
Upvotes: 2