Last week I was writing web front end using PHP and SQL Server 2005, after finishing writing the application I planned to deploy the same over my client's web hosting provider.
While writing the application I forgot that this application is supposed to be deployed on a shared hosting environment where database attach is not possible and running SCRIPT is the only option available.
To make sure that the database will go AS-IS as part of deployment I tried using the SQL Server Scripting Wizard but :( instead of generating script for schema and data it simply generated the scheme, another bad luck.
Time was very limited so I had to find some option to make this happen as I worked very hard over the night to finish the application.
I searched over the internet and found "SQL Server Data Publishing Wizard", which generates single SQL script file which can be used not only re-create the database schema, objects but also populate the database with the data. The best part was that the publishing wizard can write directly to the target location instead of creating a script file.
Reference link: http://www.microsoft.com/download/en/confirmation.aspx?id=5498