Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 1234»»»

Reading, Writing, and Riskmetic Expand / Collapse
Author
Message
Posted Wednesday, June 18, 2014 10:41 PM
SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: Moderators
Last Login: Tuesday, October 14, 2014 7:15 AM
Points: 6,785, Visits: 1,901
Comments posted to this topic are about the item Reading, Writing, and Riskmetic

Andy
SQLAndy - My Blog!
Connect with me on LinkedIn
Follow me on Twitter
Post #1583539
Posted Thursday, June 19, 2014 12:01 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 2:58 AM
Points: 13,258, Visits: 11,041
Nice question, thanks Andy!



How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1583544
Posted Thursday, June 19, 2014 12:59 AM


Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Monday, October 6, 2014 6:14 AM
Points: 564, Visits: 888
Another confusing question
A newly hired developer who works remotely has asked for permission to run Profiler so he can see the reads/writes used by his queries


Permission to run profiler

(Here answer should be Alter Trace)

OR

Require the smallest amount of additional permissions to be granted



However even I am not sure if SET STATISTICS IO is enough to check a best performing query.


--rhythmk
------------------------------------------------------------------
To post your question use below link

http://www.sqlservercentral.com/articles/Best+Practices/61537/
Post #1583558
Posted Thursday, June 19, 2014 1:03 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 2:58 AM
Points: 13,258, Visits: 11,041
rhythmk (6/19/2014)
Another confusing question
A newly hired developer who works remotely has asked for permission to run Profiler so he can see the reads/writes used by his queries


Permission to run profiler

(Here answer should be Alter Trace)

OR

Require the smallest amount of additional permissions to be granted



However even I am not sure if SET STATISTICS IO is enough to check a best performing query.


I think the motive behind the question is something like this:
the developer has no clue what actual permissions he needs, so he aims for the big guns and asks for profiler.
However, the question clearly states that he only wants to see reads/writes (in other words, IO). The question then says he has only read permissions on the database.

So the experienced DBA teaches the developer SET STATISTICS IO. It meets the requirements and doesn't require extra permissions.




How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1583560
Posted Thursday, June 19, 2014 1:11 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Today @ 3:12 AM
Points: 1,109, Visits: 3,562
I got one of Andy's right!!!!!!!




On two occasions I have been asked, "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" ... I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
—Charles Babbage, Passages from the Life of a Philosopher

How to post a question to get the most help
Post #1583565
Posted Thursday, June 19, 2014 1:28 AM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Tuesday, October 14, 2014 7:59 PM
Points: 1,756, Visits: 765
Thanks for the QoTD, must learn to read the question before rushing off to answer it.

Hope this helps...

Ford Fairlane
Rock and Roll Detective





Post #1583584
Posted Thursday, June 19, 2014 2:35 AM
SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Today @ 2:47 AM
Points: 1,602, Visits: 5,653
Yeah, I didn't put enough thought into this one...just thought "What's the minimum permission required to run Profiler?" rather than "What's the minimum required to do what the developer actually needs?". Heck, you'd think including SET STATISTICS IO as an answer would have been a big enough clue, but apparently not...
Post #1583634
Posted Thursday, June 19, 2014 2:49 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Monday, July 21, 2014 2:56 AM
Points: 2,603, Visits: 2,061
Thanks for interesting question Andy.

---------------------------------------------------
"Thare are only 10 types of people in the world:
Those who understand binary, and those who don't."
Post #1583641
Posted Thursday, June 19, 2014 2:53 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Today @ 2:55 AM
Points: 2,008, Visits: 3,435
I might start refusing to answer Andy's questions because I just get annoyed when I get them wrong!
Post #1583643
Posted Thursday, June 19, 2014 2:54 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 3:09 AM
Points: 40,180, Visits: 36,583
The problem, however, is that statistics IO lies any time there are scalar UDFs in use. The profiler trace doesn't.


Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1583644
« Prev Topic | Next Topic »

Add to briefcase 1234»»»

Permissions Expand / Collapse