Viewing 15 posts - 28,051 through 28,065 (of 49,552 total)
Abrar Ahmad_ (1/31/2011)
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 31, 2011 at 2:18 am
p.s. You might want to spend some time validating and expanding the answers to your interview questions. Some are totally wrong, many are so vague as to not be answers.
eg:...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 31, 2011 at 2:16 am
It's very easy for a good interviewer to tell the difference between someone who's memorised answers and someone who know the topic.
Don't exaggerate your skills.
Don't lie to the interviewer
Don't...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 31, 2011 at 2:01 am
Abrar Ahmad_ (1/31/2011)
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 31, 2011 at 1:41 am
What version of SQL?
For normalisation, have a look at this series: http://michaeljswart.com/?p=1036. Also ask your DBA, he may know database design.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 31, 2011 at 12:52 am
Normally you'd start with a nonclustered index on the foreign key columns, then modify if necessary.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 31, 2011 at 12:48 am
Not in general. There are some cases where queries perform worse on 2008 than on 2000, they're generally a small minority and can often be rewritten. Make sure that you...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 31, 2011 at 12:44 am
avinash jobanputra (1/30/2011)
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 30, 2011 at 10:37 pm
Please note: 4 year old thread.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 30, 2011 at 10:25 pm
Make sure SQL Agent is stopped
Make sure any application that could connect is prevented from doing so
Make sure no one else is trying to connect
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 30, 2011 at 10:14 pm
What do you mean 'it doesn't work'?
What exact steps did you follow? What errors did you get?
Do you have a sysadmin account other than sa? A windows authentication one?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 30, 2011 at 10:01 am
chris.compton-977504 (1/29/2011)
OR is the table #T is actually written to disk?A glance at the 2005 docs seem to indicate that it could be written to disk, but it is unclear.
It...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 29, 2011 at 1:37 pm
Can't see a difference between queries 2 and 3. I can't tell which will run faster, you'll have to do that. Turn Statistics Time on and run them.
p.s. Why the...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 29, 2011 at 1:32 pm
Errr, why would you prefer a slow and inefficient while loop over a ranking function?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 29, 2011 at 12:43 pm
Cost is an estimate, it can be wrong, don't count on it. Usually the best query is the fastest one.
Post the actual execution plans, not pictures of them, there's lots...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 29, 2011 at 7:36 am
Viewing 15 posts - 28,051 through 28,065 (of 49,552 total)