SQL Server Interview Questions
Questions Answers Views Company eMail

How can I know what query is executing by by a particural user? (using sp id or any othe way.)

2 2827

what is the main difference between after trigger and instead trigger.

2 17040

I have to display ten columns values from diffrent ten tables. how many joins are require?

HCL, CarrizalSoft Technologies,

10 8374




What is Report Server,Report Manager and Report Builder in SSRS 2005?

1 15873

What is Peer to peer Replication?

HCL, CarrizalSoft Technologies,

1 4131

what is a cursor and what is its use?

L&T,

2 5506

what is syntex second or third highest salary. thanks & Regards Dhirendra sinha

7 4765

what is trigger

NIIT, CarrizalSoft Technologies,

1 2838




what is difference between nchar and char in Sql server ?

3 5200

How can we write or define DDL statements in Sql server and DML statements?

3 3652

i have a table #temp1(id, Name groupname ) and record like this 1 R1 S 2 R3 S 3 R2 S 4 R4 D 5 R5 D 6 R6 K 7 R7 K 8 R8 L 9 R9 L 10 R10 L 11 R11 K and i want to display record based on user defind sorting order e.g. 1 R4 D 2 R5 D 3 R6 K 4 R7 K 5 R11 K 6 R1 S 7 R3 S 8 R2 S 9 R8 L 10 R9 L 11 R10 L

8 3130

write down the code for "how we delete a table without using of Drop command " ?

Sonata, CarrizalSoft Technologies,

7 5781

9. Write a query to list a new column with the difference in temp of the cities Delhi and Mumbai, Mumbai and Jammu and soon. Consider the following table : City_id City Temp. 1 delhi 40 2 Mumbai 35 3 Jammu 32 4 Pune 18

2 2294

One table Test with single column. These are the values in the table a b c d e f g h I need a query (without using any variable) with output as - a b c d f f g h

1 2173

Please get the 4 th maximum salary from a table without using any sql keyword (TOP,MAX are mot allowed)

8 7734


Post New SQL Server Questions






Un-Answered Questions { SQL Server }

What is the difference between online clustering and Offline clustering?

1240


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?

1254


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

890


wat wil hapn if we give the both read and deny read permission to user?

955


how to overcome kernel isssues

480






tell me the disaster recovery plan

1301


If the job running very slow what is the action you do

732


your distribution database is full what will u do

970


Why we need to use secondry database file? though, we can do same work using primary database file also.

4251


System variable and temporary variables

994


application server is slow what may be the problem

1095


Can you give me some DBCC command options?(Database consistency check) - DBCC CHECKDB - Ensures that tables in the db and the indexes are correctly linked.and DBCC CHECKALLOC - To check that all pages in a db are correctly allocated. DBCC SQLPERF - It gives report on current usage of transaction log in percentage. DBCC CHECKFILEGROUP - Checks all tables file group for any damage.

1366


which backup strategy you are following at ur company

1009


1 01 101 01010

766


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

1661