Originally posted by Ardesco
View Post
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Reply to: T-SQL question
Collapse
You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:
- You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
- You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
- If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Logging in...
Previously on "T-SQL question"
Collapse
-
-
Originally posted by lightng View PostEh up! By calling me a grandad or grandma, you are also making sexual orientation assumptions.
You can be gay and still a grandparent (a few years marriage as a when you were young that resulted in children before you realised that men/women were not for you, or the same again for your partner)
HTH
Leave a comment:
-
No great sql genius but using views is BAAD.
Works fine then the owner of the view asks for the view to be changed to restrict xyz data then your beautiful sql is broken and you have no idea how to fix it. You wrote it two years ago.
Indexing is your friend 10 times speed improvements very normal.
Take as little data as you need then work with it, the first cut is the deepest.
Leave a comment:
-
Originally posted by k2p2 View PostSorry grandad (or grandma - no gender assumptions!) No offence meant. I wasn't making assumptions about your age, merely lamenting my own!
Leave a comment:
-
I find execution plans can be a bit hit and miss unless your really careful/clever with how you structure your SQL Statements.
Leave a comment:
-
Originally posted by lightng View PostJoking aside, the assumptions you make about my age are WILDLY inaccurate. If I wasn't such a cool and hip oldie, I would have probably found your comments mildly offensive, at least briefly, and then, I would have dismissed them as a product of senile dementia.
Leave a comment:
-
Originally posted by Zippy View PostThe success of projects run using agile methodologies is predicated on having a team of highly skilled individuals who can not only gather requirements and design applications, but who will re-write code where they find it to be deficient. Dynamic requirements are no excuse young man.
Leave a comment:
-
Originally posted by lightng View PostIn the old SSADM days you had the luxury of designing up front. SSADM - I think I read about that in an old computer studies history e-book. :-P
Most of my work involves changing requirements in an agile environment with dynamic requirements. Its not always ideal but thats the world we young 'uns who have just come out of college operate. The way the data is consumed and populated can change from iteration to iteration.
Joking aside, the assumptions you make about my age are WILDLY inaccurate. If I wasn't such a cool and hip oldie, I would have probably found your comments mildly offensive, at least briefly, and then, I would have dismissed them as a product of senile dementia.
Leave a comment:
-
Originally posted by k2p2 View PostWay back in the olden days, programmers designed queries, not DBAs.
Originally posted by k2p2 View PostIt is a different skill to designing code.
Many a time I've rewritten other peoples code to remove cursor loops which although functionally correct are very inefficient and go against the whole ethos of SQL query writing. Typically a stored procedure which uses a cursor and takes 10 minutes to run can be rewritten as a single query which will run in a fraction of a second.
Originally posted by k2p2 View PostDo they still teach students stuff like 3NF at college?
Originally posted by k2p2 View PostIt really is worth learning the basics of how indexes work and how to read a query execution plan - it will make a huge difference to how your queries run.
Leave a comment:
-
Originally posted by k2p2 View PostAgreed - willy nilly indexes can be counter productive. The point is that you can (and, with complex queries, should) design your queries - in the old SSADM days, you'd know what indexes you needed before you touched the database.
Most of my work involves changing requirements in an agile environment with dynamic requirements. Its not always ideal but thats the world we young 'uns who have just come out of college operate. The way the data is consumed and populated can change from iteration to iteration.
Joking aside, the assumptions you make about my age are WILDLY inaccurate. If I wasn't such a cool and hip oldie, I would have probably found your comments mildly offensive, at least briefly, and then, I would have dismissed them as a product of senile dementia.
Leave a comment:
-
Originally posted by lightng View PostNormalisation forms: The key, the whole key and nothing but the key etc. Of course, all basic stuff. You can only read a query execution plan once you have a query and therefore it is only then that you know where indexes should be.
So saying that indexes are the first thing that should be considered is not necessarily true.
Too many indexes are just as bad as not enough. There are performance implications both ways. Thats why I don't just chuck in indexes willy nilly at the start.
Leave a comment:
-
Originally posted by k2p2 View PostWay back in the olden days, programmers designed queries, not DBAs. It is a different skill to designing code. Do they still teach students stuff like 3NF at college? It really is worth learning the basics of how indexes work and how to read a query execution plan - it will make a huge difference to how your queries run.
So saying that indexes are the first thing that should be considered is not necessarily true.
Too many indexes are just as bad as not enough. There are performance implications both ways. Thats why I don't just chuck in indexes willy nilly at the start.Last edited by lightng; 17 February 2010, 21:52.
Leave a comment:
-
Way back in the olden days, programmers designed queries, not DBAs. It is a different skill to designing code. Do they still teach students stuff like 3NF at college? It really is worth learning the basics of how indexes work and how to read a query execution plan - it will make a huge difference to how your queries run.
Leave a comment:
-
Originally posted by lightng View PostOne thing I would like to see are namespaces, folders or some way of organising mssql objects rather than having to create a custom naming convention.
Leave a comment:
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- Gary Lineker and HMRC broker IR35 settlement on the hush Today 09:10
- IT contractor jobs market sinks to four-year low in November Yesterday 09:30
- Joke of the Day Dec 9 14:57
- How company directors can offset employer NIC rising to 15% Dec 9 10:30
- Contractors, seen Halifax’s 18-month fixed rate remortgage? Dec 5 09:59
- Contractors, don’t be fooled by HMRC Spotlight 67 on MSCs Dec 4 09:20
- HMRC warns IT consultants and others of 12 ‘payroll entities’ Dec 3 09:15
- How you think you look on LinkedIn vs what recruiters see Dec 2 09:00
- Reports of umbrella companies’ death are greatly exaggerated Nov 28 10:11
- A new hiring fraud hinges on a limited company, a passport and ‘Ade’ Nov 27 09:21
Leave a comment: