Vous êtes sur la page 1sur 2

1.What is a stored procedure? Why might it be a useful entity? 2.What is a trigger? 3.

What are the two security models supported by MS SQL Server? 4.Name two ways in which you can get a value returned from a stored procedure. 5.What are the types of indexes available with SQL Server? 6.When do we use the UPDATE_STATISTICS command? 7.How to rename a DB using TSQL query? 8.Can you explain the types of Joins that we can have with Sql Server? 9.When do you use SQL Profiler? 10.What is a Linked Server? 11.Can you link only other SQL Servers or any database servers such as Oracle? 12.Which stored procedures will you be running to add a linked server? 13.How do you troubleshoot SQL Server if its running very slow? 14.Lets say due to N/W or Security issues client is not able to connect to serve r or vice versa. How do you troubleshoot? 15.What is log shipping? Can we do logshipping with SQL Server 7.0 16.Let us say the SQL Server crashed and you are rebuilding the databases includ ing the master database what procedure to you follow? 17.What is cursors? 18.What is Collation? 19.What s the difference between a primary key and a unique key? 20.What is the difference between a HAVING CLAUSE and a WHERE CLAUSE?

1. 2. 3.Windows Authentication Mode and SQL Server Authentication Mode 4. Using Output parameter Use Return in the Stored procedure to return value (Also Select statemen t can be used to return value) and assign the returned value to a Rec ordset 5.Clustered and the Non-Clustered. 6.UPDATE_STATISTICS updates the indexes on tables,This command is basically used when we do a large processing of data. 7.sp_renamedb oldname , newname 8.Inner Join, Outer Join, Cross Join 9.SQL Profiler utility allows us to basically track connections to the SQL Serve r and also determine activities such as which SQL Scripts are running, failed jo bs etc.. 10.Linked Servers is a concept in SQL Server by which we can add other SQL Serve r to a Group and query both the SQL Server dbs using T-SQL Statements. 11.We can link any server provided we have the OLE-DB provider from Microsoft to allow a link. For Oracle we have a OLE-DB provider for oracle that microsoft pr ovides to add it as a linked server to the sql server group. 12.sp_addlinkedserver, sp_addlinkedsrvlogin 13.... 14.... 15.Logshipping is a new feature of SQL Server 2000. In logshipping the transacti onal log file from one server is automatically updated into the backup database on the other server. 16.... 17.Cursor is a database object used by applications to manipulate data in a set on a row-by-row basis 18.Collation refers to a set of rules that determine how data is sorted and comp ared. 19.Both primary key and unique enforce uniqueness of the column on which they ar

e defined. But by default primary key creates a clustered index on the column, w here are unique creates a nonclustered index by default. Another major differenc e is that, primary key doesn t allow NULLs, but unique key allows one NULL only 20.Specifies a search condition for a group or an aggregate.HAVING can be used o nly with the SELECT statement. HAVING is typically used in a GROUP BY clause. Wh en GROUP BY is not used, HAVING behaves like a WHERE clause. Having Clause is ba sically used only with the GROUP BY function in a query. WHERE Clause is applied to each row before they are part of the GROUP BY function in a query. HAVING cr iteria is applied after the the grouping of rows has occurred.

Vous aimerez peut-être aussi