I was just browsing through questions on stack overflow, and i've come up to a post where it suggests of deploying database by simply copying the mdf file in the app_data folder and modifying your connection string.
I know that some people do create an mdf file in the app_code during development, but for going life, Is this realy a viable way and a good practice to deploy your database?
What I usualy do during development time is to have written my own sql script file to build the database, and run it on my local sql server. When site is about to go life I ran the script on the target server and set my site to talk to the database. To be honest I've never utilize the app_code folder for storing the database, I usually use it to store my data access layer logic..
Am I doing the wrong thing here? Is it really a good practice to utilize the app_data folder to store your database? One problem that I can see with this method is that, deployment going to be slow. Transfering mdf file accross the internet will definately be much slower than running my sql script files. Looking forwards to hear your thoughts and experience on this matters. Cheers.
RWendi