{"id":940,"date":"2009-03-04T18:38:00","date_gmt":"2009-03-04T18:38:00","guid":{"rendered":"\/blogs\/paul\/post\/Mandatory-SQL-breathalyzer-test.aspx"},"modified":"2017-04-13T09:54:11","modified_gmt":"2017-04-13T16:54:11","slug":"mandatory-sql-breathalyzer-test","status":"publish","type":"post","link":"https:\/\/www.sqlskills.com\/blogs\/paul\/mandatory-sql-breathalyzer-test\/","title":{"rendered":"Mandatory SQL breathalyzer test"},"content":{"rendered":"<p>\n<font face=\"verdana,geneva\" size=\"2\">Today we&#39;ve spent a lot of the day in discussions with some folks about developers vs. DBAs, and how it&#39;s often the case that the two don&#39;t work together. Developers need to know the effect of their design choices on the database, and DBAs need to educate the developers. There should be a close working partnership between the two but bad communication and ignorance often get in the way &#8211; the DBAs don&#39;t know what the app devs want from them, and the app devs don&#39;t understand *why* the DBAs are so protective of the data tier. Neither side understands the day-to-day challenges&nbsp;of the other.&nbsp;Misunderstanding breeds conflict breeds animosity breeds intransigence and uncooperativeness. One of the eye-opening things sometimes is teaching DBA stuff to developers and vice-versa so they see the challenges and technology choice implications both ways.<\/font>\n<\/p>\n<p>\n<font face=\"verdana,geneva\" size=\"2\">We were pointed to this spoof video about a DBA-dev confrontation &#8211; <\/font><a href=\"http:\/\/www.benhblog.com\/2009\/03\/linq-dba-vs-developer.html\"><font face=\"verdana,geneva\" size=\"2\">http:\/\/www.benhblog.com\/2009\/03\/linq-dba-vs-developer.html<\/font><\/a><font face=\"verdana,geneva\" size=\"2\">&nbsp;&#8211; pretty funny.<\/font>\n<\/p>\n<p><font face=\"verdana,geneva\"><font size=\"2\">Kimberly was trawling around on that blog and found a quote: &quot;<em>I was surprised to learn that EF&nbsp;decided that since there was not a primary key it would just use all the non-nullable columns as a concatenated primary key.&nbsp; This might not be what you want.<\/em>&quot; (where EF = Entity Framework)<\/font> <\/font><font face=\"verdana,geneva\"><\/p>\n<p>\n<font size=\"+0\"><font face=\"verdana,geneva\" size=\"2\">Woah! Talk about the absolute worst key, and it does it automatically as the default! Kimberly blogged (see <\/font><a href=\"http:\/\/www.sqlskills.com\/blogs\/kimberly\/seriously-are-you-kidding-me\/\"><font face=\"verdana,geneva\" size=\"2\">Seriously, are you kidding me?<\/font><\/a><font face=\"verdana,geneva\" size=\"2\">) about why this is bad, so I won&#39;t repeat that here &#8211; although as you can see it&#39;s set us both off on rants.<\/font><\/font>\n<\/p>\n<p>\n<font face=\"verdana,geneva\" size=\"2\">And&nbsp;that&#39;s why sometimes you can understand why the DBA doesn&#39;t want the developers anywhere near the database without taking a SQL breathalyzer test first.<\/font>\n<\/p>\n<p><\/font><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today we&#39;ve spent a lot of the day in discussions with some folks about developers vs. DBAs, and how it&#39;s often the case that the two don&#39;t work together. Developers need to know the effect of their design choices on the database, and DBAs need to educate the developers. There should be a close working [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,44],"tags":[],"class_list":["post-940","post","type-post","status-publish","format-standard","hentry","category-bad-advice","category-general"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Mandatory SQL breathalyzer test - Paul S. Randal<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sqlskills.com\/blogs\/paul\/mandatory-sql-breathalyzer-test\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Mandatory SQL breathalyzer test - Paul S. Randal\" \/>\n<meta property=\"og:description\" content=\"Today we&#039;ve spent a lot of the day in discussions with some folks about developers vs. DBAs, and how it&#039;s often the case that the two don&#039;t work together. Developers need to know the effect of their design choices on the database, and DBAs need to educate the developers. There should be a close working [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sqlskills.com\/blogs\/paul\/mandatory-sql-breathalyzer-test\/\" \/>\n<meta property=\"og:site_name\" content=\"Paul S. Randal\" \/>\n<meta property=\"article:published_time\" content=\"2009-03-04T18:38:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-04-13T16:54:11+00:00\" \/>\n<meta name=\"author\" content=\"Paul Randal\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Paul Randal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/mandatory-sql-breathalyzer-test\/\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/mandatory-sql-breathalyzer-test\/\",\"name\":\"Mandatory SQL breathalyzer test - Paul S. Randal\",\"isPartOf\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#website\"},\"datePublished\":\"2009-03-04T18:38:00+00:00\",\"dateModified\":\"2017-04-13T16:54:11+00:00\",\"author\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/ffcec826c18782e1e0adf173826a7fce\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/mandatory-sql-breathalyzer-test\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.sqlskills.com\/blogs\/paul\/mandatory-sql-breathalyzer-test\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/mandatory-sql-breathalyzer-test\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mandatory SQL breathalyzer test\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#website\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/\",\"name\":\"Paul S. Randal\",\"description\":\"In Recovery...\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/ffcec826c18782e1e0adf173826a7fce\",\"name\":\"Paul Randal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0b6a266bba2f088f2551ef529293001bd73bf026bc1908b9866728c062beeeb6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0b6a266bba2f088f2551ef529293001bd73bf026bc1908b9866728c062beeeb6?s=96&d=mm&r=g\",\"caption\":\"Paul Randal\"},\"sameAs\":[\"http:\/\/3.209.169.194\/blogs\/paul\"],\"url\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/author\/paul\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Mandatory SQL breathalyzer test - Paul S. Randal","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sqlskills.com\/blogs\/paul\/mandatory-sql-breathalyzer-test\/","og_locale":"en_US","og_type":"article","og_title":"Mandatory SQL breathalyzer test - Paul S. Randal","og_description":"Today we&#39;ve spent a lot of the day in discussions with some folks about developers vs. DBAs, and how it&#39;s often the case that the two don&#39;t work together. Developers need to know the effect of their design choices on the database, and DBAs need to educate the developers. There should be a close working [&hellip;]","og_url":"https:\/\/www.sqlskills.com\/blogs\/paul\/mandatory-sql-breathalyzer-test\/","og_site_name":"Paul S. Randal","article_published_time":"2009-03-04T18:38:00+00:00","article_modified_time":"2017-04-13T16:54:11+00:00","author":"Paul Randal","twitter_misc":{"Written by":"Paul Randal","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/mandatory-sql-breathalyzer-test\/","url":"https:\/\/www.sqlskills.com\/blogs\/paul\/mandatory-sql-breathalyzer-test\/","name":"Mandatory SQL breathalyzer test - Paul S. Randal","isPartOf":{"@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#website"},"datePublished":"2009-03-04T18:38:00+00:00","dateModified":"2017-04-13T16:54:11+00:00","author":{"@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/ffcec826c18782e1e0adf173826a7fce"},"breadcrumb":{"@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/mandatory-sql-breathalyzer-test\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sqlskills.com\/blogs\/paul\/mandatory-sql-breathalyzer-test\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/mandatory-sql-breathalyzer-test\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sqlskills.com\/blogs\/paul\/"},{"@type":"ListItem","position":2,"name":"Mandatory SQL breathalyzer test"}]},{"@type":"WebSite","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#website","url":"https:\/\/www.sqlskills.com\/blogs\/paul\/","name":"Paul S. Randal","description":"In Recovery...","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sqlskills.com\/blogs\/paul\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/ffcec826c18782e1e0adf173826a7fce","name":"Paul Randal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0b6a266bba2f088f2551ef529293001bd73bf026bc1908b9866728c062beeeb6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0b6a266bba2f088f2551ef529293001bd73bf026bc1908b9866728c062beeeb6?s=96&d=mm&r=g","caption":"Paul Randal"},"sameAs":["http:\/\/3.209.169.194\/blogs\/paul"],"url":"https:\/\/www.sqlskills.com\/blogs\/paul\/author\/paul\/"}]}},"_links":{"self":[{"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/posts\/940","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/comments?post=940"}],"version-history":[{"count":0,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/posts\/940\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/media?parent=940"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/categories?post=940"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/tags?post=940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}