SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Test:
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mikebird
Aged Yak Warrior

United Kingdom
518 Posts

Posted - 06/13/2012 :  04:22:39  Show Profile  Reply with Quote

Here are my answers. Can you tell me if I got anything right? It asked for True/False. I added comments as well, to redeem myself a bit more...

Thanks
Mike



SQL Server
1. The default transaction isolation level in SQL Server 2005 is REPEATABLE READ.

a. True . Setting NOLOCK is generally used

2. A foreign key column can allow nulls.

b. False. A key column needs to be unique

3. In Transact-SQL, the operators UNION and UNION ALL are equivalent.

c. False. UNION ALL fetches all values. UNION is more specific

4. It is a not good idea to create a clustered index on a column whose values are frequently updated.

d. True. This will slow performance during (OLTP)

5. It is generally advisable to use @@IDENTITY (pronounced “at at identity”) instead of SCOPE_IDENTITY() (pronounced “scope identity”) in a stored procedure to return the identity of the recently added row.

e. False.

nigelrivett
Flowing Fount of Yak Knowledge

United Kingdom
3328 Posts

Posted - 06/13/2012 :  04:32:13  Show Profile  Visit nigelrivett's Homepage  Reply with Quote
a is wrong.
b is wrong
d is probably what is wanted but is wrong. Depends on the system - it's sometimes the only choice.
e again probably what they want but depends on what you want to have returned.

==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000