Click here to Skip to main content
15,893,161 members
Please Sign up or sign in to vote.
5.00/5 (2 votes)
See more:
Hi,

I am using Visual Studio and SQL Server Management Studio 2005/8 is not installed in my PC. I have two queries,

1. How to copy already created database, only structure and not data
2. How to backup database at some location in hard disk, i.e structure + data (full database)

I tried Google but most of the solutions I got, suggesting use of SQL Server Management Studio.

Thanks in advance
Posted

Answers :-

1. You have to make script of all the database objects and then execute that at a new database.

Create Script to Copy Database

2. You have to follow the process of taking database backup, like the usual way we follow to take the database backup.

Create a Full Database Backup (SQL Server)
 
Share this answer
 
v2
You can do structre/data comparison using visual studio database projects (VSDB). You can do everything that you do in SSMS using the SQLCMD.exe in command line.

But what prevents you from installing SQL Server Management Studio? Just use right tool for right job.
 
Share this answer
 
Comments
[no name] 10-Apr-12 4:16am    
I agree. I should use right tool for right job. But problem is I am using Windows 7 64 bit OS. I don't know why, but I was unable to install SSMS on my PC

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