How To Update Database Name?? Follow
I made ".btw" template "MyDatabase" refers to label formtat's database connection's name, but i need to set the OLEDB connection to another database name on same server through .Net coding.
OLEDB oleDB = new OLEDB("AnotherDatabase");
oledb.UserID = "Admin";
oleDB.SQLStatement = "SELECT `Calories` FROM `NutritionInformation`";
is it i need to create this new connection on the ".btw" template also?? it must match database name on .btw template and database we passed from code??
is there any way that I can change database of template through .Net code??
Please sign in to leave a comment.