backup and restore program
Backup & Restore of SQL Server database using VB.NET[
^]
Attach and detach program
1: conn.connectionstring = ?
2: conn.open
3: cmd.CommandType = CommandType.StoredProcedure
4: cmd.CommandText = "sp_attach_db "lms' "
5: cmd.connection=conn
6: cmd.executenonquery
connection string using username and pass
"Data Source=SQLSERVERNAME; INITIAL CATALOG=master; uid=sa; pwd=sa;".
Hope this helps if yes then accept and vote the answer otherwise revert back with your answer
--Rahul D.