question

george avatar image
george asked

stored procedure

which it the solution for that?

Write a stored procedure for Microsoft SQL Server that will accomplish the following: We have a script that runs on the mail server and processes emails that are bounced back to us (incorrect email address, account inactive, etc.). The script will return the email address and the reason the email failed (SMTP code). We then need to use the email address and flag the corresponding account from a database table named 'accounts'. Write a stored procedure that takes as input the following: 1) email address, and 2) SMTP failure code. This stored procedure should then return the following result codes: 1 (account was removed from DB successfully), or 0 (an error occurred and the account was not removed). Here are the DB specifics: DB Name: online_db Affected tables: Table Fields accounts id, name, email, status, smtp_code account_status id, code (where id = 1/code = active), 2/unsubscribed, 3/flagged)

stored-procedures
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.