SQL Server Interview Questions
Questions Answers Views Company eMail

What is a job?

3 3284

What are primary keys and foreign keys?

3 2956

How would you Update the rows which are divisible by 10, given a set of numbers in column?

3 7850




If a stored procedure is taking a table data type, how it looks?

1 4646

How m-m relationships are implemented?

2 5867

How do you know which index a table is using?

4 8714

How will oyu test the stored procedure taking two parameters namely first name and last name returning full name?

3 5445

How do you find the error, how can you know the number of rows effected by last SQL statement?

2 6447




How can you get @@error and @@rowcount at the same time?

9 15846

What are sub-queries? Give example? In which case sub-queries are not feasible?

Infosys,

4 7745

What are the type of joins? When do we use Outer and Self joins?

3 7466

Which virtual table does a trigger use?

TCS,

8 17716

How do you measure the performance of a stored procedure?

Infosys,

3 12621

Questions regarding Raiseerror?

1 5000

Questions on identity?

Infosys,

2 4359


Post New SQL Server Questions






Un-Answered Questions { SQL Server }

Any one plz send me SQL Server Developer/DBA resume for 4 years experience

1501


can any body tell me how to know the password of current user in sql server

919


This question asked during interview, 2) At the end of each month, a new table is created for each bank that contains monthly metrics consolidated at the account level. The table naming convention is bankX_YYYYMM where X represents the numeric designation of the bank and YYYYMM indicates the 4 digit year and 2 digit month. The tables contain the following fields: name data type description account text account number registered boolean indicates whether the account is registered num_trans integer number of transactions made during the time period spend numeric(9,2) total spend during the time period a) Write a SQL query that will display the total number of transactions and total spend for "Bank1" during the 4th quarter of 2009. b) Write a SQL query that will display the total number of transactions and total spend at "Bank1" and "Bank2", broken out by registered vs. non-registered accounts, during January 2010 not sure what is correct answer and how to solve?

1236


application server is slow what may be the problem

1084


What is data modeling and Reterminal integrity?

668






hi i am working as a testengineer , so i want to no the backend data base connection can any one tell mwe in detail

1144


on line cluster can we make if yes tell me the procedure

837


SQL Server Architecture ?

1133


System variable and temporary variables

980


hi, how to link a text file and a .rpt file in my tables of sql server and to retrieve those records for further use. reply me as soon as possible.

773


query processing

1000


what is checksum in sql server.........???

392


Insert syudents details in table.Current system date &time insert into joining time.How do insert?( in sysdate only return current system date how do add time?)

712


Delete duplicate rows without using rowid.

191


tell me the disaster recovery plan

1285