SQL Server Interview Questions
Questions Answers Views Company eMail

how to give input dynamically to a insert statement in sqlserver

HCL,

3 5675

1. What are the grouping function in SQL ? 2. If base table of a view deleted means, what will happen while we querying on view ? will give any error ? 3. Difference between DROP, DELETE, TRUNCATE table ? 4. What is constraints and types ? 5. What is max size of nchar & nvarchar ? 6. Define ROLLBACK, COMMIT, SAVE POINT 7. How non-clustered better ? or rank the Clustered, Non-Clustered and Table scan in performance wise 8. Select 10 rows from a table ? 9. Define DML, DDL, DCL, DTL commands ? 10. What is mean by NULL value ? NULL means "" or 0 or undefined ? 11. Default constraints ? 12. Can we have more then primary Key in table ? 13. Type of integrity ? Entity, Referential, Domain ?

Perot Systems,

10 11221

What is the differecne between equi-join and inner-join and natural join..Is there any difference or all are same?

Microsoft,

8 45432




How can your resolve deadlocks?

IBM, IMS, Iron Mountain, NuWare,

4 11087

SYNTAX FOR VIEWS WITH EXAMPLE HOW TO LINK TWO TABLES

Microsoft,

1 3775

i want to join two queries....and i want to run them as one after another that is want output of first query then second , then again output of first query then second and so on...

2 3173

1.What is the deferece between DBMS & RDBMS? 2.How can you trouble shoot? If u will get error while installing sql server? 3.How can u trouble shoot slow running query? 4.how can u trouble log shipping errors? 5.why do we use merge replication instead of T.log replication?

Microsoft,

7 7242

write query for fourth maximum salary from employee table

Mind Tree, SP Software,

14 14921




What is the difference between temp table and table variable?

Microsoft,

8 21166

what are three different authentications to connect linked servers?

CitiGroup,

1 3365

What is deadlock and how to avoid the deadlocks.

TCS, Wipro,

3 7887

I have a huge amount of data which is displayed in a report. The data is viewed every day. Every day the data is displayed in 30 secs but suddenly today it is giving an timeout message today. Data has not been changed. The situation is same as yesterday. What might be the reason??? Please Answer.

Satyam,

4 4121

1.Describe way(s) to tune the SQL table in order to optimize performance. 2. Explain SQL Injection and how can you prevent them?

Techno Solutions,

1 2986

I have a website that allows customers to browse and place orders for certain products. I have 2 tables; Customers and Orders. The Customers table holds the customer records and the Orders table holds the orders placed by the customer. Both tables are tied based on the field Cust_ID. Example of the data is shown below: Cust_ID Cust_Name Cust_ID Product Amount Order_Date 1001 John Tan 1001 P-5211 $120.00 2/13/2006 1002 Michael Wong 1001 K-1428 $88.90 1/11/2006 1003 Mary Cheong 1003 C-0923 $82.50 1/27/2006 1004 Ahmad Suffian 1003 K-1428 $88.90 2/2/2006 Write a single SQL statement that extracts all purchase records with the following criteria: 1. Customer names starting with “M” only. 2. Orders placed within the current month only. 3. Amount does not exceed $100.00 The list must be sorted by order date with the latest order showing on top.

Techno Solutions,

3 3264

Let’s say the table in the database is named as TBL_Register. The fields in this table include: 1. User_Name, 2. User_Telephone, 3. Register_Date The field Register_Date stores the current date and time of the registration. Write the SQL statement that inserts the data into the table.

Techno Solutions,

2 2854


Post New SQL Server Questions






Un-Answered Questions { SQL Server }

Working with TLogs

735


Tell about MOM Tool(Microsoft Operator Manager)?

741


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

891


What is Fragmentation and Defragmentation? For 32GB Table,How can we do the fragmentation?

2813


In my application I have a process which picks the scanned files (tif format) from a shared location and it links to application and shown on it.The actuall issue is that my process picks the file before it is completly written or scanned which results in displaying few parts of the image or incomplete image.I need to check if the file is not completly scanned or written then do not link it to application.Please help if any body tell me that how can i check that file is in written phase or locked through DTS.thanking you in advance

926






How to trouble shoot if unable to connect SQL Server

832


You have modified 100 store procedures and want to replicate these changes from development to prodution, and production can have users using the Server/DB, how would you replicate without causing issues?

1099


plss anybody specify tha constrian management system in dbms

872


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

885


your distribution database is full what will u do

1014


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

889


how many no of arguments can be passed in procedures and functions

3597


role of sql sever 2005 in database rather than any other database

928


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.

1406


last function used in MS Access to convert sql what function will use in sql

913