Say I have a database like this:
Users
-----
ID int PK Identity
Name vchar(max)
Sales
-----
UserID int FK
Description vchar(max)
And some data:
Users
1, "Daniel"
2, "Barnie"
3, "Frank"
Sales
2, "New computer"
2, "Rubber duck"
3, "Cabbage"
There are also several other tables that reference this primary key. Now there is a requirement that only some users want to get a backup, for example, I want to export data and all related data for users 2 and 3.
:
1) .bak, ? , .
2) .bak , ? csv INSERT sql script, . , , . ? filestreaming , , .
. SQL Server 2008.