5. Input Parameters: @AccountID, @CustomerID, @Transaction Amount. Once the procedure checks to see if the account is active and the transaction amount is greater than 0 new values are inserted into the Transactions table and the Balance in the Accounts table is updated.
6. Input Parameters: @AccountID, CustomerID, @TransactionAmount. This procedure validates to make sure the customer is associated with the account and to make sure the account is active. Once all the validations are checked new values are inserted into the Transactions table.
7. Input Parameters: @AccountID, @CustomerID, @UpdateType, @NewBalance, @SpecificOverdraftAccountID, GeneralOverdraft. Output Parameters: @CustomerAccountID. Validations: 1)Do not allow for a customer to be added to an account more than once. 2) Account cannot be reopen with less than $20. 3) Account cannot be closed unless balance is $0. Inserts: CustomerAccount table. Updates: AccountStatus
8. The vBalance view is called by the GetBalance Stored Procedure to show the current balance with the last 5 transactions. The vCustomerAccountInfo view is called by the CustomerAccountInfo stored procedure to obtain statements by either CustomerID or AccountNumber. The vTransactionsView is called by the GetTransactions stored procedure to show transactions on a particular account for the past 30 days.
9. Use DDL triggers to prevent customer accounts and transactions from being accidently deleted.
10.
11. Create a new filegroup, EmployeeWorkHistoryFG, containing one file, EmpWorkHist.ndf, in the default data directory of the default SQL Server 2008 instance. The data file should have an initial size of 100MB and should not allow for autogrowth.
12. You have been assigned the task of creating a database snapshot that will allow the database to be recovered from the database snapshot, often referred to as reverting to the database snapshot.
13. Riley is the first employee hired that will need access to select records from all tables in the Sales schema. In the upcoming weeks, several other Sales Managers will be hired, all of which will require the same access as Riley Using the principle of least privilege, give Riley and her future colleagues the minimal permissions necessary to perform their tasks.
14. The Adventureworks company has decided that Production.Product data should be maintained at all three locations. The headquarters office, which is the default instance, should be the publisher and distributor. SQLInstance2 and SQLInstance3 will be subscribers in a transactional replication scenario that supports immediate updating subscribers.