Database Scripts
The following Azure SQL scripts create the customer table and store the procedures used in the examples in this section. These scripts should be executed against an existing database in your Azure SQL environment.
The following script creates a sample customer table in Microsoft Azure SQL.
The following script inserts sample customers into the table.
The following script creates a store procedure that will return all the customers in the customer table.
The following script will create a store procedure to return a single customer record for the provided customer id.
The following script creates a stored procedure that will add a new customer record if the customer id does not exist. It will update an existing customer if the id does exist.