I've got a locally based SQL Server 2005 Express database that I need to upload to a web host. The web host doesn't support attaching an .mdf or restoring from a .bak file (well, they do, but I have to create a support ticket and I've got lots of instances of this database to attach and this may continue on a daily basis, so this isn't an ideal option for me).
So, what I'd like to be able to do is script the entire database and execute the script. This would have to include logins, users, sp's, functions, tables and any existing data (this is default data that the db needs). What options do I have in creating these scripts? From what I've tried, using SSMS, the generate script task won't include data, plus it doesn't seem to have any concept of the order in which to create objects (for example, it may create a view based on table before it created the table). Are there any built-in tools methods I can use to do what I need? Alternatively, are there any good 3rd party applications which do this well?
Thanks,
Mark
-------------------------------------------------------
Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
[URL unfurl="true"]http://weblogs.asp.net/marksmith[/url]
So, what I'd like to be able to do is script the entire database and execute the script. This would have to include logins, users, sp's, functions, tables and any existing data (this is default data that the db needs). What options do I have in creating these scripts? From what I've tried, using SSMS, the generate script task won't include data, plus it doesn't seem to have any concept of the order in which to create objects (for example, it may create a view based on table before it created the table). Are there any built-in tools methods I can use to do what I need? Alternatively, are there any good 3rd party applications which do this well?
Thanks,
Mark
-------------------------------------------------------
Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
[URL unfurl="true"]http://weblogs.asp.net/marksmith[/url]