Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

running a stored procedure from a button

Status
Not open for further replies.

tezzyr

Programmer
Oct 6, 2006
21
GB
Hi,
I need to create a backup of a database whenever a user clicks on a button.
As I'm using sqlexpress, I'll need to run a stored procedure which contains code that tells the database to backup to a file (I've got examples of how to do this).
My problem is that I've never really had to run a stored procedure before and I'm not sure how to tell a database to run one based on a button event handler (or any event for that matter!)

How do I tell the database to run a stored procedure from my c++ application?

Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top