nuct
Programmer
- Sep 5, 2001
- 103
Hi,
I am creating a helpdesk system with a web front end and an SQL Server back end, and my current problem is this:
Each request made the the helpdesk can consist of more than one task. First you enter the request, and then it lets you add more tasks on a different page, then finally you go back to the first page and add the request and all its tasks together.
I want to make it so that each request along with all its tasks is added in its entirety or not at all. Obviously I need to use a stored procedure with some explicit transaction statements in it so that things can be rolled back etc, but how on earth do I get all the requests and tasks into the same stored procedure. Can structures be passed into stored procedures, or arrays of structures?
Sorry if im rambling but its late. Any help would be most appreciated.
Cheers,
Simon.
I am creating a helpdesk system with a web front end and an SQL Server back end, and my current problem is this:
Each request made the the helpdesk can consist of more than one task. First you enter the request, and then it lets you add more tasks on a different page, then finally you go back to the first page and add the request and all its tasks together.
I want to make it so that each request along with all its tasks is added in its entirety or not at all. Obviously I need to use a stored procedure with some explicit transaction statements in it so that things can be rolled back etc, but how on earth do I get all the requests and tasks into the same stored procedure. Can structures be passed into stored procedures, or arrays of structures?
Sorry if im rambling but its late. Any help would be most appreciated.
Cheers,
Simon.