SQL Server Interview Questions
Questions Answers Views Company eMail

What do u mean by orphan users, how will u list them in the DB

IBM,

2 5694

What is the use of MOVE keyword in restore command

IBM,

3 4900

How will u find the query which is running in some other machine

CarrizalSoft Technologies, IBM,

4 5516

What is the role that is required for killing a process What is the role that is required for creating a linked server

CarrizalSoft Technologies, IBM,

1 3620

1.How to check the backup file details if we do not have access to that folder 2.how to check the backup file size without connecting to the folder

CarrizalSoft Technologies, IBM,

3 6608

There is table like Events...in that name ,startdate ,enddate,location are the column names write a stored Procedure for this table to get events by Months "GetEventsByMonths"

2 3278

Hi Friends, I have a table in which there are thousands of records and in city field there is NULL value for all records now i want to change that null value with distinct values in each record say delhi, bihar, agra, jaipur etc, what will be the query for that????? its not possible to update thousands of records one by one. is there any alternative ...? Plz help ... its urgent Thanx in advance

1 3065

How to get the count of distinct records. Please give me the query?

Value Labs,

8 10895

Please give me the SP for the below scenario. I have two tables named Table1 and Table2...I need to fetch record by record from Table1 and insert the record in to table2 where the value in the sno column of the table1 is even number.

Value Labs,

4 6401

Please give me queries for the following 1. To get the count of duplicate records. 2. A query to delete the duplicate records.

247Customer,

3 5605

Hi SQL gurus, i am working for an MNC... My team is having a problem in sql server. when user slects date prompts from jan 1st to april 30, it should display all months data like : jan aa feb bb mar cc but when it comes to april its taking data like : jan aa feb bb mar cc apr dd...and so on means its taking data again from jan to april which we dont want. we want the data only april month as we are getting jan, feb and mar... can any one write the code to relsove the issue please would be greatful if you can send to shiva_sans@yahoo.co.in and also please send your email also ...so that we will be in touch for any kind of queries ... Thanks a lot in Advance !!!

1 3187

how to count datewise data in sqlserver

CarrizalSoft Technologies, IndusInd Bank,

4 13688

how we can count records as a group of days like sum of records for(four mondays),(four tuesday)........ in a month. group the column for weekdays.

1 3180

please tell me the query to get details of the employee having the second largest salary

247Customer,

11 11014

What is excution Plan in sql server

CarrizalSoft Technologies, TCS,

1 5684


Un-Answered Questions { SQL Server }

Can you index views?

494


What is wide table?

525


Tell me the phases a transaction has to undergo?

542


What will be query used to get the list of triggers in a database?

538


what is the difference between a primary key and a unique key? : Sql server database administration

523






What is row_number()?

568


How to view existing indexes on an given table using sys.indexes?

590


What is trace flag in sql server?

512


How do you delete a trigger?

572


What is temporary table in sql server? Why we use temp table?

508


How do you clear a log file?

505


Do you know what is lock escalation?

574


What are different types of views?

545


Explain sub-query?

561


What are the new features of sql server 2008 r2 reporting service?

110