sql server database

How can I deploy an application that uses a SQL Server 2005 database?
I developed a winform application that uses a SQL Server 2005 database. When the application was deployed (using the deploy wizard in Visual Studio .NET 2005) and installed on the user's machine, the application failed to run because the database file(.mdf) was not installed along with the application. I guess this was because the SQL server 2005 database was not included in the deployment folder.
So I want to know how I can deploy the application together with the database and I would also like to know whether SQL Server Express Edition should be installed on the user's machine in order to use this database. Thank you very much.
my friend said I can use the ClickOnce and XCopy feature but I could not find how to use them. (by the way, the XCopy feature is the xcopy dos command? )
I have SQL Server 2005 express edition and Visual Studio .NET 2005 installed on my machine.
Use the Microsoft Deployment tools
Recover SQL Server Database File
Microsoft SQL Server is the most widely used database application in small as well as large organizations because of its stability, effectiveness, reliability, robustness, consistency, and security features. The sql repair software stores the information in SQL database file (.MDF), which like other computer files is also susceptible to damage or corruption. There can be many reasons for .MDF file corruption like abrupt system shut down, hard disk failure, cache problem, invalid database file header, internal program errors, etc.
Whatever be the reason for .MDF file damage, it leaves you in strenuous and dreadful situation. A large amount of data comprising client’s information, inventory details, etc. is no more accessible. Most of the software applications that communicate with .MDF file for data retrieval and update are not able to properly work. Damage of the .MDF file may halt the working of whole organization. And if the data stored on .MDF file is not recovered soon or the data gets permanently lost than it can result in a big loss for the organization. But, you do not need to worry if come across such a horrific incident.
Today, recovering data from the damaged .MDF file is not a big deal. Lots of SQL database recovery programs are available in the market that can help you recover data within minutes. These programs perform quick SQL recovery and consistently recover the data stored in damaged .MDF file. You can easily find an efficient, cost-effective, and fast SQL recovery program by spending some time on search engines like Google, Yahoo, and MSN. Most of the software organizations that deal in SQL recovery programs provide such software for free trial so that you can verify the software quality before purchasing.
However, selecting good SQL Repair software totally depends on you. Before purchasing the software, you should examine its trial version for data consistency and integrity. If the software recovers the data but does not maintain data consistency and data integrity then the software is not worthy. You should check that whether the software supports the SQL server version in which the damaged .MDF file was created or not. If the software does not support the required version then go for another SQL database recovery software. Once you find the suitable and cost-effective SQL recovery software, purchase it, and get all of your data back.
About the Author
Author of the article is an. expertise in Data recovery Software, email recovery, email migration, hard drive recovery, password recovery fields.
sql server database
2 Methods - Creating SQL Server Database!