Knight Data Access Layer
Change Database VB.NET
Basic Tasks VB.NET > Database Commands > Change Database VB.NET

For non file based databases such as MySQL, Oracle, and SQL Server, the database can be changed.

 

'Get the current instance of the helper

Dim db As IDataHelper = DataHelper.SessionFactory()

  

db.ChangeDatabase("InvoiceDatabase")