SQL Server Interview Questions
Questions Answers Views Company eMail

What is Index Segmentation ?


1 4561

hi, how to match retrieve the unmatched records from 2 tables in which we dont have any primary key. example : table1 has 1,2,3,4,5 and table2 has 1,2,3,4,5,6,7,8,9,10 and i want the numbers from 6 to 10 to be displayed and should not come as null. i need the numbers. please reply as soon as possible.

4 4692

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.


1.can we set the more than 1 primary keys for a table? 2.please give me the difference between Cluster Index and non-Clustered Index 3.can we use query like this "Select * from Table1,Table2;"

8 3824

CREATE TABLE [dbo].[HPMS_CompetencyTypes](CompetencyType varchar(50) ) go create trigger hpms_create_Insert on HPMS_CompetencyTypes for insert as if Exists ( select * from [HPMS_CompetencyTypes] where CompetencyType=(select * from [HPMS_CompetencyTypes])) begin Rollback tran Raiserror ('duplicate value',12,6) go insert HPMS_CompetencyTypes (CompetencyType) values ('new') I'm new to trigger can any one tell me where is the issue. Please.

2 1666

which one will take 1st priority in case of insert statement and select statement???


2 3750

i want to create procedure for create table in sql server 2005 for example create procedure create_table @table varchar(20) as create @table( id int, name char(20) ) but it will get error what is solution?


5 3866

How to handle errors in Stored Procedures. I want to display a message to the user in the .aspx page that is calling a stored procedure in it's code behind. please help me.


2 2168

What is the difference between local table and global table

Polaris, CarrizalSoft Technologies,

1 5353

What is SQL Profiler and the use of it?


2 2396

What are SQL Jobs, please mention the use of it and how to create them.


1 2823

What is the difference between truncate and delete statement?

CTS, CarrizalSoft Technologies,

6 3636

What is the difference between UNION and UNIONALL?

CTS, CarrizalSoft Technologies,

5 8167


CTS, CarrizalSoft Technologies,

2 3668

What is the order in which the SQL query is executed? list them in order.

Oracle, CTS, CarrizalSoft Technologies,

5 6993

Post New SQL Server Questions

Un-Answered Questions { SQL Server }

How do we upgrade from SQL Server 6.5 to 7.0 and 7.0 to 2000?


IF more than one Site is accessing the same Database server and I want to move the DB with Minimum down time? How will you do


what is the Ticketing tool used in Wipro technologies at Bangalore...???


You are doing log shipping due to some reasons it is failing. How you will proceed from there


Scalability, Availability, Integration with internet, etc.)?


1.how to find the dead lock in sql server? 2.How to fine the memory leaks in sql server? 3.suppose transaction log file increasing what action will take ?


What is log shipping? Can we do logshipping with SQL Server 7.0 - Logshipping is a new feature of SQL Server 2000. We should have two SQL Server - Enterprise Editions. From Enterprise Manager we can configure the logshipping. In logshipping the transactional log file from one server is automatically updated into the backup database on the other server. If one server fails, the other server will have the same db and we can use this as the DR (disaster recovery) plan.


1. Tell me your daily activities 2. If sql server installation fails at time installation what will do 3. Where does the sql server installation log details are stored 4. After the installation what will you do for memory configuration 5. What is the difference between SQL max maximum memory and AWE memory 6. How will you configure AWE memory 7. How will setup an email alert for the backup job 8. After the SQL installation what are the jobs will you configure 9. What does –g mean in the sql startup parameter 10. What is the difference between Bulked log and Full recovery model 11. What is the difference between mirroring and log shipping 12. What are the steps to be followed before in-place up gradation 13. After installing the patch the sql server does not start and application team tells to rollback the changes .In this scenario what will you do


What is the difference between MVC and Teir Architecher? Plz explain with Layyered Programming example...? Thanks


Working with TLogs


how can you attach more than 20 ldf files in sql server


optimization techinques


what is difference between view and Dip.


Explain Capacity planning to create a database? and how to monitor it?


whats the maximum size of view state??