I have a SQL Script File Which contains database creation, its related tables creation and other things. The database name is decided from client side. So is there any way that I can run that script file where Database name is passed from my code?
I know a way where i take some special pattern in place of database name and then in c# code I do replace it with client side added Database name. But is there any better way to do it?