Tag: databases
Questions Related to databases
Choose the correct statements about the union clause in ASE (Choose 2)
Which of the following are true about triggers? (Choose 2)
Table t and trigger trig are created as follows: create table t (a int) go create trigger trig on t for insert, update, delete as begin if @@rowcount > 1 rollback trigger end go The following transaction is now executed: begin tran insert t values (1) insert t values (2) insert t select * from t insert t values (3) commit go After completing this transaction, how many rows will table t contain?
What is the maximum number of characters that can be passed to a stored procedure through a single char or varchar parameter without being truncated?
The following trigger exists: create trigger trig on t for insert, update, delete as begin print 'This is 'trig' ' end The following command is now executed: create trigger trig on t for insert as begin print 'This is 'trig' ' end After executing this command, for which DML actions on table 't' will a trigger be fired?