marrowyung
asked on
learning how to tune T-SQL query ASAP
Dear all,
right now focusing on T-SQL tuning in order to make myself more as Application DBA and some expertist here suggest the following books for me on data modelling:
http://www.amazon.com/gp/product/1449316409/ref=ox_sc_act_title_3?ie=UTF8&psc=1&smid=ATVPDKIKX0DER
http://www.amazon.com/gp/product/012802044X/ref=ox_sc_act_title_4?ie=UTF8&psc=1&smid=ATVPDKIKX0DER
http://www.amazon.com/gp/product/1118530802/ref=ox_sc_act_title_5?ie=UTF8&psc=1&smid=ATVPDKIKX0DER
but all those is only focusing on data modelling but not quickly jump into turn the query ASAP and then let me have time to read logic and theory later on in order to catch up.
any Link/Books that make me dig into necessary detail ASAP and find out what index has to add and what the optimizer is looking for and implement that ASAP so that big boss is not complain anymore and then I will go back to the theory on how to change the SQL developer in a better way ( this can take months to change it but not at that moment),
LINk is hightly prefer as I can save paper but good books from beginning to expertist is welcome if no choice.
query indexing and query parallel execution is the one I want as it will be the direction, right?
right now focusing on T-SQL tuning in order to make myself more as Application DBA and some expertist here suggest the following books for me on data modelling:
http://www.amazon.com/gp/product/1449316409/ref=ox_sc_act_title_3?ie=UTF8&psc=1&smid=ATVPDKIKX0DER
http://www.amazon.com/gp/product/012802044X/ref=ox_sc_act_title_4?ie=UTF8&psc=1&smid=ATVPDKIKX0DER
http://www.amazon.com/gp/product/1118530802/ref=ox_sc_act_title_5?ie=UTF8&psc=1&smid=ATVPDKIKX0DER
but all those is only focusing on data modelling but not quickly jump into turn the query ASAP and then let me have time to read logic and theory later on in order to catch up.
any Link/Books that make me dig into necessary detail ASAP and find out what index has to add and what the optimizer is looking for and implement that ASAP so that big boss is not complain anymore and then I will go back to the theory on how to change the SQL developer in a better way ( this can take months to change it but not at that moment),
LINk is hightly prefer as I can save paper but good books from beginning to expertist is welcome if no choice.
query indexing and query parallel execution is the one I want as it will be the direction, right?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
HuaMinChen,
it seems that this one : https://technet.microsoft.com/en-us/library/ms365303.aspx only a very basic resource on how to write T-SQL , but not the best way to write it and turn it.
PadawanDBA,
I have some reference here, please tell me which one is necessary other than the one you propose, your is better or I need more by buying any of this below:
1) http://www.amazon.com/gp/product/1782172556/ref=ox_sc_sfl_title_2?ie=UTF8&psc=1&smid=ATVPDKIKX0DER
2) http://www.amazon.com/gp/product/1430259620/ref=ox_sc_sfl_title_6?ie=UTF8&psc=1&smid=ATVPDKIKX0DER
3) http://www.amazon.com/gp/product/1430237414/ref=ox_sc_sfl_title_9?ie=UTF8&psc=1&smid=ATVPDKIKX0DER
4) http://www.amazon.com/gp/product/1499321732/ref=ox_sc_sfl_title_2?ie=UTF8&psc=1&smid=ATVPDKIKX0DER
5) http://www.amazon.com/gp/product/1499529597/ref=ox_sc_sfl_title_8?ie=UTF8&psc=1&smid=ATVPDKIKX0DER
6) http://www.amazon.com/gp/product/0991638670/ref=ox_sc_sfl_title_10?ie=UTF8&psc=1&smid=ATVPDKIKX0DER
it seems that this one : https://technet.microsoft.com/en-us/library/ms365303.aspx only a very basic resource on how to write T-SQL , but not the best way to write it and turn it.
PadawanDBA,
I have some reference here, please tell me which one is necessary other than the one you propose, your is better or I need more by buying any of this below:
1) http://www.amazon.com/gp/product/1782172556/ref=ox_sc_sfl_title_2?ie=UTF8&psc=1&smid=ATVPDKIKX0DER
2) http://www.amazon.com/gp/product/1430259620/ref=ox_sc_sfl_title_6?ie=UTF8&psc=1&smid=ATVPDKIKX0DER
3) http://www.amazon.com/gp/product/1430237414/ref=ox_sc_sfl_title_9?ie=UTF8&psc=1&smid=ATVPDKIKX0DER
4) http://www.amazon.com/gp/product/1499321732/ref=ox_sc_sfl_title_2?ie=UTF8&psc=1&smid=ATVPDKIKX0DER
5) http://www.amazon.com/gp/product/1499529597/ref=ox_sc_sfl_title_8?ie=UTF8&psc=1&smid=ATVPDKIKX0DER
6) http://www.amazon.com/gp/product/0991638670/ref=ox_sc_sfl_title_10?ie=UTF8&psc=1&smid=ATVPDKIKX0DER
I think these
Expert Performance Indexing for SQL Server 2012
SQL Server 2014 Design & Programming
SQL Server Tuning Scripts: Performance Optimization Secrets (IT In-Focus)
are good
Expert Performance Indexing for SQL Server 2012
SQL Server 2014 Design & Programming
SQL Server Tuning Scripts: Performance Optimization Secrets (IT In-Focus)
are good
ASKER
but do you know the author ?
books from him/she is good ?
you know if your links or links here are enough , I should avoid to buy books to save tree, right?
books from him/she is good ?
you know if your links or links here are enough , I should avoid to buy books to save tree, right?
ASKER
no. I mean links to write T-sQL / SP/ UDF in a way that is much faster and SQL server prefer to see this query as it will be fastest (like no cursor , while loop to loop out record one by one but bulk insert/select)
and that's why I said query indexing and query parallel execution is the one I want as it will be the direction.
any other suggestion ?
In this way I will just search for lowest top x query and then site down with developer and provide guideline to them base on that.
and that's why I said query indexing and query parallel execution is the one I want as it will be the direction.
any other suggestion ?
In this way I will just search for lowest top x query and then site down with developer and provide guideline to them base on that.
I don't know any of the authors from those books. That doesn't necessarily mean anything, but I think the reviews on some of those are telling, however. I am totally biased, as I have built my T-SQL foundation from Ben-Gan books, but I think his material on T-SQL is by far the best available (fyi, the query tuning chapter in Ben-Gan's book is 140 pages). Like I said, I am totally biased in my opinion of T-SQL books, but Ben-Gan's window functions book is also a great, albeit more advanced, book on high performing T-SQL (http://www.amazon.com/Micr osoft-High -Performan ce-Functio ns-Develop er-Referen ce/dp/0735 658366/)
ASKER
PadawanDBA,
" high performing T-SQL (http://www.amazon.com/Microsoft-High-Performance-Functions-Developer-Reference/dp/0735658366/)'
Microsoft SQL Server 2012 High-Performance T-SQL Using Window Functions (Developer Reference)
mean call T-sQL from within Windows application and this books shows how can we make it as fast as we can ?
" high performing T-SQL (http://www.amazon.com/Microsoft-High-Performance-Functions-Developer-Reference/dp/0735658366/)'
Microsoft SQL Server 2012 High-Performance T-SQL Using Window Functions (Developer Reference)
mean call T-sQL from within Windows application and this books shows how can we make it as fast as we can ?
ASKER
PadawanDBA,
this one http://www.amazon.com/Microsoft-High-Performance-Functions-Developer-Reference/dp/0735658366/)' has one for SQL server 2014 ?
this one http://www.amazon.com/Microsoft-High-Performance-Functions-Developer-Reference/dp/0735658366/)' has one for SQL server 2014 ?
There were no changes to window functions in 2014, so it's all 100% valid.
ASKER
tks. very good.
but one thing in mind, that book is about pure Microsoft Development platform but not java, how about java application connect using JDBC, I tried this before and I don't know how to turn it.
but one thing in mind, that book is about pure Microsoft Development platform but not java, how about java application connect using JDBC, I tried this before and I don't know how to turn it.
ASKER
so that book is purely for Windows application developer on MS SQL server?
I'll have to defer to someone else on app dev in various environments, that's not really my thing. The books I mentioned are purely T-SQL querying on MS SQL Server.
ASKER
ok, tks,
so you are infrastruture side DB professional ?
as I am going to be an application DBA, I need many of this as reference.
any diff between your books and this http://www.amazon.com/gp/product/1449316409/ref=ox_sc_act_title_3?ie=UTF8&psc=1&smid=ATVPDKIKX0DER ?
so you are infrastruture side DB professional ?
as I am going to be an application DBA, I need many of this as reference.
any diff between your books and this http://www.amazon.com/gp/product/1449316409/ref=ox_sc_act_title_3?ie=UTF8&psc=1&smid=ATVPDKIKX0DER ?
ASKER
also the T-SQL query is about tuning query, any books about advance T-SQL Query tunning that make use of any special feature of SQL server 2008 R2 and afterwards that focus on the way to write T-SQL query, like parallel execution?
ASKER
any advance tuning guide/books for same function but less coding on T- SQL so faster model?
any guide for parallel execution T-SQL programming guide?
any guide for parallel execution T-SQL programming guide?
ASKER
sorry close very late and I am ready to buy them.
https://technet.microsoft.com/en-us/library/ms365303.aspx