Correct Answer: Local : Only available to the current Db connection for current user and are cleared when connection is closed Multiple users can?t share a local temporary table Global: Available to any connection once created They are cleared when the last connection is closed Can be shared by multiple user sessions
Correct Answer: Log shipping defines the process for automatically taking backup of the database and transaction files on a SQL Server and then restoring them on a standby/backup server This keeps the two SQL Server instances in sync with each other In case production server fails, users simply need to be pointed to the standby/backup server Log shipping primarily consists of 3 operations: Backup transaction logs of the Production server Copy these logs on the standby/backup server Restore the log on standby/backup server
Correct Answer: Data Definition Language (DDL):- are the SQL statements that define the database structure Example: CREATE ALTER DROP TRUNCATE COMMENT RENAME
Correct Answer: XPath is an expressions to select a xml node in an XML document It allows the navigation on the XML document to the straight to the element where we need to reach and access the attributes
5. What is the purpose of SQL Profiler in SQL server?
Correct Answer: SQL profiler is a tool to monitor performance of various stored procedures It is used to debug the queries and procedures Based on performance, it identifies the slow executing queries Capture any problems by capturing the events on production environment so that they can be solved
6. A column defined as UNIQUE can contain Nulls while a column defined as PRIMARY KEY can't contain Nulls
Correct Answer: Foreign keys are the columns of a table that points to the primary key of another table They act as a cross-reference between tables In detail : A Foreign key is a field (or collection of fields) in one table that uniquely identifies a row of another table or the same table In simpler words, the foreign key is defined in a second table, but it refers to the primary key or a unique key in the first table
Correct Answer: The difference between Union and Union all is that Union all will not eliminate duplicate rows, instead it just pulls all rows from all tables fitting your query specifics and combines them into a table A UNION statement effectively does a SELECT DISTINCT on the results set
Correct Answer: A candidate key is a column, or set of columns, in a table that can uniquely identify any database record without referring to any other data Each table may have one or more candidate keys, but one candidate key is unique, and it is called the primary key
10. The SQL keyword(s) ________ is used with wildcards.