Home / CSE MCQs / SQL Server MCQs :: SQL Server Developing with SQL Server

CSE MCQs :: SQL Server MCQs

  1. How many types of stored procedures are present in SQL Server ?
  2. A.
    3
    B.
    4
    C.
    5
    D.
    8

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. How many type of cursor is present in SQL Server ?
  4. A.
    3
    B.
    4
    C.
    5
    D.
    6

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Point out the correct statement :
  6. A.
    Logon triggers are special type of trigger that fire when LOGON event of Sql Server is raised
    B.
    DDL triggers are special type of trigger that fire when LOGON event of Sql Server is raised
    C.
    DML triggers are special type of trigger that fire when LOGON event of Sql Server is raised
    D.
    None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. DML triggers in SQL Server is applicable to :
  8. A.
    Insert
    B.
    Update
    C.
    Delete
    D.
    All of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Point out the wrong statement :
  10. A.
    The @stmt parameter in sp_executesql is a Unicode string containing valid SQL commands
    B.
    The input type @Type is passed as the first parameter to sp_executesql
    C.
    We can specify the parameters for both input and output in sp_executesql
    D.
    None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Which of the following statements can be checked for Errors ?
  12. A.
    CREATE
    B.
    DROP
    C.
    DELETE
    D.
    INSERT

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. Which of the following is a control flow keyword ?
  14. A.
    IF
    B.
    GO
    C.
    GOTO
    D.
    All of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Which of the following script is example of SQL injection attack ?
  16. A.

    var Shipcity;

    ShipCity = Request.form ("ShipCity");

    var SQL = "select * from OrdersTable where ShipCity = '" + ShipCity + "'";

    B.

    var Shipcity;

    ShipCity = Request.form ("ShipCity");

    C.

    var Shipcity;

    var SQL = "select * from OrdersTable where ShipCity = '" + ShipCity + "'";

    D.
    All of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. Data return using output parameter is :
  18. A.
    Return codes, which are always an integer value
    B.
    A global cursor that can be referenced outside the stored procedure
    C.
    A single cursor that can be referenced inside the stored procedure
    D.
    None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. Which of the following has support for transaction ?
  20. A.
    sp_monitor
    B.
    sp_bindsession
    C.
    sp_status
    D.
    All of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum