Click here to Skip to main content
15,889,335 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
Hi all

i have created a login using vb.net code in my sql server.
Now please tell me how to connect that particular user and attach a .bak file to the login using vb.net.

Thank you
Posted

1 solution

Below is the procedure

SQL
USE AdventureWorks2008R2;
GO
BACKUP DATABASE AdventureWorks2008R2
TO DISK = 'Z:\SQLServerBackups\AdventureWorks2008R2.Bak'
   WITH FORMAT,
      MEDIANAME = 'Z_SQLServerBackups',
      NAME = 'Full Backup of AdventureWorks2008R2';
GO



for more please try to find in below links:

http://forums.asp.net/t/1840530.aspx[^]

http://sqlanddotnetdevelopment.blogspot.in/2011/04/sql-server-database-backup-and-restore.html[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900