Deploy SQL Server databases easily with an Installer class

Posted by Yogarajan under ASP.NET on 8/10/2009 | Views : 1777 | Status : [Member] | Replies : 1
I am develop website
it is convert to web setup project
when i am click install it is automatic create virtual directory and create database
one function working fine (virtual directory created fine) but db create i got error

i am collect source file in

and i am add install.txt and uninstall.txt Properties change to "Build Action" property to "Embeded Resources".

now i am got "object refernce not set to an instance of an object"

pls help me


Posted by: Yogarajan on: 8/11/2009 [Member] Starter

hi friend

i find out the error

i am change to my code

my new code is

if (Context.Parameters["db1"].Length > 0 &&
Context.Parameters["db2"].Length > 0 &&
Context.Parameters["db3"].Length > 0)
conStr = GetLogin(databaseserver, databaseuserid, databasepwd,"master");


Yogarajan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response