WizIQ helps you learn and teach online - any subject you can think of!
Join for FREE

SQL Server Interview online Test


2
3
7
Statement will generate an error.
Create Index indexname On Employee (EmpID), What will be result of this Query?
Create a Clusterd index on EmpID Column of Employee Table.
Create a Non Clustered index on EmpID Column of Employee Table.
Create a Composite index On Employee table
Create a Unique Index on Employee Table.
Which of the following is not an aggregate function in SQL SERVER 2005?
MIN
MAX
AVG
COUNT
SUM
GROUP
What will happen when will execute the following SQL Query [Select ‘Customer’ + CustomerID FROM Tbl_Customer] CustomerID is an integer type Column in Tbl_Customer Table
The Query will generate Error
The Query Will generate Error and Can be Rewritten as Select ‘Customer’ + Convert(VACHAR,10, CustomerID) FROM Tbl_Customer
The SQL Server will use default conversion FROM Int to Varchar and will be executed successfully
The Query will be executed successfully
How many clustered indexes can be created on single table?
1
128
Up to number of columns in table
256
Which is not the type of JOIN in SQL SERVER 2005?
INNER
LEFT
CROSS
MULTIPLE
RIGHT
Which of the following is not a valid constraint in SQL SERVER?
DEFAULT
CHECK
DISTINCT
UNIQUE
_________ removes all rows from a table, but the table structure and its columns, constraints, indexes and so on remain. The counter used by an identity for new rows is reset to the seed for the column.
DELETE
TRUNCATE
DROP
ALTER
Choose the statement that best describes a composite index.
It physically sorts the rows in a table.
It contains multiple keys.
It logically sorts the rows in a table in both ascending and descending order.
It contains multiple columns in its key.
Omitting the WHERE clause from a TRUNCATE statement has which of the following effects?
The truncate statement will fail because there are no records to delete.
The truncate statement will prompt the user to enter criteria for the deletion
The truncate statement will fail because of syntax error.
The truncate statement will remove all records from the table.
In a SELECT statement that includes a WHERE clause, where is the GROUP BY clause placed?
before the WHERE clause
before the FROM clause
after the ORDER BY clause
after the WHERE clause
What statement could you use in the WHERE clause to select all the rows in a table where no price is defined?
WHERE price <>NULL
WHERE price != 0
WHERE price IS NULL
WHERE price IS NOT NULL
Referential integrity refers to what?
The enforced uniqueness of a row in a table
The enforced uniqueness of a column in a table
Ensuring that a Foreign Key attribute cannot be NULL
The enforced synchronization of Primary Key and Foreign Key values
Where the first name is Bobby or Bobbi. Choose all that apply.
WHERE name = ‘Bobby’ or name = ‘Bobbi’
WHERE name LIKE ‘Bobb_’
WHERE name LIKE ‘Bobb[iy]’
Above all
How many non clustered indexes can be there on single table in SQL Server 2005?
1
Multiple
A ________________ is a special type of index that reorders the way records in the table are physically stored.
clustered index
non – clustered index
composite index
You are transferring records from one database to another through app server. You need to decide on appropriate method to do bulk insert operation to transfer the records. What should you do?
Ensure that the source database is Microsoft SQL Server and use SqlBulkCopy class.
Use OpenXML method of Microsoft SQL Server.
Pass the data as string in the Stored procedure and Create a temporary table and use cursors to insert rows
Perform an insert operation for each record in the source object and in a foreach loop.
Description:

Objective type MS SQL Server 2005 interview questions (Indexes, SQL Queries, Database Structure and Normalization) for Software Engineer, DBA Database Developer.

Comments
bebo
By: bebo
711 days 2 hours 18 minutes ago

Really it's a good one. thanks for a nice set of questions.

hanuman
By: hanuman
706 days 11 hours 45 minutes ago

that's good

sri
By: sri
670 days 6 hours 41 minutes ago

good job

Rose Jehilan
By: Rose Jehilan
662 days 12 hours 50 minutes ago

In Q.N0:10, I don't thing the Answer is correct.

Rameshkumar
By: Rameshkumar
661 days 15 hours 39 minutes ago

Thanks for usefull questions. for 4 th question answer is option 1 if you want give option 2 as a answer give like this
select 'Customer' CONVERT(varchar(10),CustomerID) from Tbl_Customer

sunitha
By: sunitha
634 days 8 hours 2 minutes ago

Answer to Q 10 is not correct please check once

sunitha
By: anil
209 days 12 hours 44 minutes ago

right

praveena
By: praveena
633 days 17 hours 9 minutes ago

In Question 10.

I believe the given answer is wrong as Truncate statements doesnot require WHERE clause.

bhargava
By: bhargava
628 days 14 hours 26 minutes ago

Hey amn Great q

alan
By: alan
628 days 6 hours 6 minutes ago

Answer to question 2 is wrong. Since no clustered or nonclustered is specified in the create index, then by default a nonclustered index will be created.

Puja
By: Puja
604 days 9 hours 56 minutes ago

I think Question 10 is incorrect.

Correct answer is D

jitendra
By: jitendra
600 days 19 hours 43 minutes ago

Answer to question 2 is wrong. Since no clustered or nonclustered is specified in the create index, then by default a nonclustered index will be created.

Zaven
By: Zaven
593 days 16 hours 40 minutes ago

select * from employee
--where firstname = 'bobby' or firstname = 'bobbi'
--where firstname like 'bobb[iy]' --2
--where firstname like 'bobb_' --2
"ALL of the above" answer - meanin it will select records with name Bobby or Bobbi is incorrect.
If you have multiple records only first option and the following one will return all the records, Options 2 and 3 from the above only 2 - one of each (bobby and bobbi).

where firstname like 'bobb%_' --4

With all respect I find the test ineffective, redundant. It omits many mores important subjects - CASE, XML data type, sub queries, cursors, triggers. Covering those issues would make the test more useful, effective, in my view, then delegating 2 questiona to TRUNCATE statement or asking where GROUP BY clause should be placed.

ravikrishna
By: ravikrishna
584 days 14 hours 58 minutes ago

Very good one.. i got 12 questions correct...

NIHAR RANJAN NARENDRA
By: NIHAR RANJAN NARENDRA
367 days 11 hours 12 minutes ago

thanks 4 nice set of questions

Bandana
By: Bandana
327 days 7 hours 18 minutes ago

Good set of questions

Pankaj Gaikwad
By: Pankaj Gaikwad
283 days 15 hours 24 minutes ago

Thank u for this set of good questions

Aniruddh
By: Aniruddh
272 days 3 hours 45 minutes ago

Really Good.

kk
By: kk
254 days 13 hours 57 minutes ago

^_^

i got 10/17 on Ist attempt! can i go for DBA in SQL Server 2005

Aditya Kumar Bisoi
By: Aditya Kumar Bisoi
239 days 19 hours 4 minutes ago

i got 15/17 on Ist attempt! but still confuse some SQL Server 2005....topics....

sujith
By: sujith
221 days 4 hours 51 minutes ago

good one and quite tough

archana
By: archana
201 days 18 hours 23 minutes ago

its vwry usefull...thank you

shobhakar tiwari
By: shobhakar tiwari
153 days 4 hours 42 minutes ago

gud set of questions......

navin
By: navin
123 days 13 hours 34 minutes ago

really good one.

Want to learn?

Sign up and browse through relevant courses.

Name:
Your Email:
Password:
Country:
Contact no.:


Area code Number
Subject you are interested in:
Word verification: (Enter the text as in image)


Sign Up Already a member? Sign In
I agree to WizIQ's User Agreement & Privacy Policy
Gurjinder Singh Brar
IT, ASP.NET, Database, SEO, Management Consultant
User
2 Members Recommend
133 Followers

Your Facebook Friends on WizIQ

More Tests By Author

Microsoft.Net Framework, ASP.NET Interview
40 Questions | 12832 Attempts

Explore Similar Courses