Hi,
Write code likes this in the click event
'Declare connectionstring'
'Declare connection'
'Declare command-object like this'
Dim objcommand as new sqlcommand(or oledbcommand)
objcommand.commandtype= commandtype.storedprocedure
'connection open'
objcommand.executenonquery("name of stored procedure")
'connection close'
That should do it !
I suppose your procedure knows which of the databases to backup !
Otherwise we are talking about a stored procedure with a parameter, and that takes a litte more code.
Regards
Finn
|