Put PlaceHolder inside the Panel, where you would want to add the Button. When you create the button, add it to PlaceHolder's Controls collection
Dim objButton As New Button()
objHolder.Controls.Add(objButton)
Why would you use osql in case you do it from remote machine? Couldn't tou just use ADO.NET and run procedures against master db?
here's about osql's syntax:
S server_name[\instance_name]
Specifies the instance of Microsoft® SQL Server� 2000 to connect to. Specify server_name to connect to the default instance of SQL Server on that server. Specify server_name\instance_name to connect to a named instance of SQL Server 2000 on that server. If no server is specified, osql connects to the default instance of SQL Server on the local computer. This option is required when executing osql from a remote computer on the network.
Shadowing might be near what you are looking for although it does not actually remove the inherited type members.
"A derived type shadows the name of an inherited type member by redeclaring it. Shadowing a name does not remove the inherited type members with that name; it merely makes all of the inherited type members with that name unavailable in the derived class. The shadowing declaration may be any type of entity.
"
If you use Windows Forms, then you'd use ADO.NET to connect to the db. In that case I would use sp_attach_db and sp_detach_db procedures. Just note that they are run agains master database and you need to be sa to do it.
It can be done using same commands as with normal SQL 2000 db. Go to http://msdn.microsoft.com/sqlserver and find the SQL 2k documentation.
Find there commands:
BACKUP
RESTORE
For attaching/detaching db look for procedures:
sp_attach_db
sp_detach_db