G
Guest
I'm working on my first SQL Server application using Access as the front-end.
As I do understand the most simple stored procedures and use defined
functions, I have some things I'm not quite sure how to handle. List below is
an example of what I need to do and my goal is to handle the IF/THEN clause
within a single Stored Procedure, as I think this would be best.
I have a table called, tblTableSub, which may or may not have a record in
it. This table will contain one record based on the "TableID" value. If a
current record does exist, then I need to update that record, ELSE, if no
record exists, I need to ADD a record. Can someone give me the basic syntax
to build the IF/THEN structure?
As I do understand the most simple stored procedures and use defined
functions, I have some things I'm not quite sure how to handle. List below is
an example of what I need to do and my goal is to handle the IF/THEN clause
within a single Stored Procedure, as I think this would be best.
I have a table called, tblTableSub, which may or may not have a record in
it. This table will contain one record based on the "TableID" value. If a
current record does exist, then I need to update that record, ELSE, if no
record exists, I need to ADD a record. Can someone give me the basic syntax
to build the IF/THEN structure?