Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>First, since you're using SQL Server and you can use stored procedures, don't use a trigger. It's not necessary. If your teacher needs justification, here's an <a href="http://www.sqlpass.org/LinkClick.aspx?fileticket=bX8_hcbYJ7U%3d&amp;tabid=236&amp;mid=1275" rel="nofollow noreferrer">article from SQL Server MVP Tom LaRock which discusses issues with handling triggers</a>.</p> <p>Second, as far as how to write the stored procedures, think about how to handle all the functionality logically. You've said you need to do the following:</p> <ul> <li>Read existing hurricane information</li> <li>Update existing hurricane information</li> <li>Insert a new hurricane into the database</li> </ul> <p>Your application should handle all of those as separate paths. And you need to think about the functionality before you write your first bit of T-SQL code. That means you have to have an interface which presents existing information. You're going to have to display the hurricanes existing in the database. Then once the user selects the one to get more information on, you'll have to pull back the hurricane history information. So I know in that situation I have two different data retrievals based on user input. That tells me I need to build the GUI interface to handle that progression logically and display the information in a way the user can use. And it also tells me I've got to build two different stored procedures. The second one will be passed some information identifying the hurricane to retrieve data on (which would be the primary key).</p> <p>Now roll through the rest of the application's functionality. That should get you started.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload