{"id":44425,"date":"2026-05-14T23:21:48","date_gmt":"2026-05-14T21:21:48","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/?p=44425"},"modified":"2026-05-14T23:50:20","modified_gmt":"2026-05-14T21:50:20","slug":"when-a-python-driver-configuration-issue-may-cause-blocking-in-sql-server","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/when-a-python-driver-configuration-issue-may-cause-blocking-in-sql-server\/","title":{"rendered":"When a Python driver configuration issue may cause blocking in SQL Server"},"content":{"rendered":"\n<p>One of our clients encountered blocking during their daily data load. The process loads several million rows and then performs an ALTER TABLE &#8230; SWITCH operation into a partitioned table. This operation usually takes some time, but in this case it became blocked.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-context\">Context<\/h2>\n\n\n\n<p>Initially, I did not have access to much information. The only element I received from the client was a extract of the output from the sp_WhoIsActive procedure.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"63\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/05\/image-28-1024x63.png\" alt=\"\" class=\"wp-image-44428\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/05\/image-28-1024x63.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/05\/image-28-300x18.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/05\/image-28-768x47.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/05\/image-28-1536x94.png 1536w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/05\/image-28.png 1880w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-initial-analysis\">Initial analysis<\/h2>\n\n\n\n<p>Based on this extract, we were able to perform a first-level analysis:<\/p>\n\n\n\n<p>A Python session executed a query against MyTable without applying a date filter. On a table containing approximately 244 million rows, this prevented proper partition elimination and forced SQL Server to read a much broader data set than necessary. Queries against partitioned tables only benefit from partition elimination when the predicate references the partitioning column without such a predicate, SQL Server may have to search or scan all partitions.<\/p>\n\n\n\n<p>The Python session eventually became sleeping but remained with open_tran_count = 1. This is a typical sign of an unclosed transaction on the client side: autocommit disabled, cursor not closed, result set not fully consumed, connection returned to the pool without a rollback\u2026<\/p>\n\n\n\n<p>Session 146 then attempted to perform the partition TRUNCATE\/SWITCH operation. However, TRUNCATE TABLE requires a schema modification lock, Sch-M, and ALTER TABLE &#8230; SWITCH also requires a Sch-M lock on both the source and target tables.<\/p>\n\n\n\n<p>This Sch-M lock could not be acquired while session 167 was still referencing the object. SQL Server documents Sch-M as the lock required to modify the schema and to ensure that no other session is referencing the object. Once the Sch-M request from session 146 was queued, new read queries were also blocked behind it. Even NOLOCK would not avoid this issue: queries still acquire Sch-S locks during compilation and execution, and Sch-S and Sch-M locks block each other.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-second-analysis\">Second analysis<\/h2>\n\n\n\n<p>After some time, we were able to access the client\u2019s environment. Query Store was enabled on the affected database, and an Extended Events session was configured on the SQL Server instance to track blocking.<\/p>\n\n\n\n<p>Querying the Extended Events session provided detailed information about the blocking events that occurred, and we were able to identify the specific blocking issue reported by the client.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"118\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/05\/image-27-1024x118.png\" alt=\"\" class=\"wp-image-44427\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/05\/image-27-1024x118.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/05\/image-27-300x35.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/05\/image-27-768x89.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/05\/image-27.png 1205w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>By looking more closely at this blocking issue, we found the following:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>EXEC &#091;STAGING_DB].&#091;ETL].&#091;sp_ETL_Exec]\n&nbsp;&nbsp;&nbsp; @ETL_StepIKs_List = '&#091;\"Exec-&#091;TARGET_DB].dbo.&#091;SP_Load_TargetTable]\"]',\n&nbsp;&nbsp;&nbsp; @StartAsJob = 0\n\nWhich is blocked by:\n\nWITH position AS\n(\n&nbsp;&nbsp;&nbsp; SELECT ...\n&nbsp;&nbsp;&nbsp; FROM &#091;SOURCE_DB].&#091;SCHEMA_NAME].&#091;LARGE_PARTITIONED_TABLE]\n&nbsp;&nbsp;&nbsp; ...\n)\n\n&lt;blocking-process&gt;\n&nbsp;&nbsp;&nbsp; spid=\"167\"\n&nbsp;&nbsp;&nbsp; status=\"sleeping\"\n&nbsp;&nbsp;&nbsp; trancount=\"1\"\n&nbsp;&nbsp;&nbsp; clientapp=\"python&#091;version]\"\n&nbsp;&nbsp;&nbsp; hostname=\"client-host-...\"\n&nbsp;&nbsp;&nbsp; loginname=\"user_account\"\n&nbsp;&nbsp;&nbsp; inputbuf=\"... WITH position AS ...\"\n&lt;\/blocking-process&gt;<\/code><\/pre>\n\n\n\n<p>However, the blocking report highlights an important point: session 167 was no longer actively executing the query at the time the report was captured:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>status = sleeping<\/li>\n\n\n\n<li>trancount = 1<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"85\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/05\/image-26-1024x85.png\" alt=\"\" class=\"wp-image-44429\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/05\/image-26-1024x85.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/05\/image-26-300x25.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/05\/image-26-768x64.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/05\/image-26.png 1119w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>However, by correlating this information with Query Store data, we were able to obtain additional details. By retrieving the corresponding query, we could better understand what was happening.<\/p>\n\n\n\n<p>The blocking report also showed that session 146 was requesting a Sch-M lock, meaning a Schema Modification Lock. This is a strong lock required for operations such as TRUNCATE, ALTER TABLE, and partition SWITCH.<\/p>\n\n\n\n<p>According to the data, session 146 waited for more than two hours, approximately 7,770,160 ms.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"773\" height=\"75\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/05\/image-29.png\" alt=\"\" class=\"wp-image-44426\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/05\/image-29.png 773w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/05\/image-29-300x29.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/05\/image-29-768x75.png 768w\" sizes=\"auto, (max-width: 773px) 100vw, 773px\" \/><\/figure>\n\n\n\n<p>However, by correlating this information with Query Store data, we were able to obtain additional details. Specifically, by retrieving the query:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"613\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/05\/image-30-1024x613.png\" alt=\"\" class=\"wp-image-44430\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/05\/image-30-1024x613.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/05\/image-30-300x180.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/05\/image-30-768x460.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/05\/image-30.png 1086w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>It was executed 30 times during the following time interval: 05-05-2026 from 2:00 PM to 3:00 PM. The average execution time was 49.1 seconds, with a maximum execution time of approximately 57 seconds. This represents a total of around 24 minutes of cumulative execution time over a one-hour period.<\/p>\n\n\n\n<p>Based on this data, the issue was therefore not caused by the performance of the query itself, but rather by the state of session 167. Indeed, the session left a transaction open, with an open_tran_count of 1, thereby locking the corresponding objects and preventing other sessions from accessing them.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-is-it-related-to-python-driver-configuration\">How is it related to Python driver configuration?<\/h2>\n\n\n\n<p>The observed blocking can likely be explained by a misconfiguration or misuse of the Python driver used to access SQL Server. The root session was a Python connection in a sleeping state, but with trancount = 1, which indicates that a transaction was still open even though the query was no longer actively running.<\/p>\n\n\n\n<p>In this situation, SQL Server may continue to hold transaction-related locks even if the application appears to have completed its work.<\/p>\n\n\n\n<p>If the Python driver was running with autocommit = 0, each SELECT statement could implicitly start a transaction that then had to be explicitly closed with a commit or rollback. If the cursor was not closed properly, the result set was not fully consumed, or a rollback was not issued before returning the connection to the pool, the session could remain open on the SQL Server side. This residual transaction likely prevented the related ETL process from acquiring the Sch-M lock required for the TRUNCATE or partition SWITCH operation.<\/p>\n\n\n\n<p>As a result the ETL session was not the initial root cause. It was waiting for a lock held by an idle Python connection.<\/p>\n\n\n\n<p>Next queries then accumulated behind the pending Sch-M lock request, creating the impression of a global outage.<\/p>\n\n\n\n<p>Switching to autocommit = 1 significantly reduces this risk, because read operations are no longer tied to an open transaction by default. Finally, preventing parallel pipeline execution helps avoid amplifying the issue when a job is delayed.<\/p>\n\n\n\n<p>Thank you. <a href=\"https:\/\/www.linkedin.com\/in\/amine-haloui-76968056\/\">Amine Haloui<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of our clients encountered blocking during their daily data load. The process loads several million rows and then performs an ALTER TABLE &#8230; SWITCH operation into a partitioned table. This operation usually takes some time, but in this case it became blocked. Context Initially, I did not have access to much information. The only [&hellip;]<\/p>\n","protected":false},"author":147,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[198,99],"tags":[1599,67,1089],"type_dbi":[2874],"class_list":["post-44425","post","type-post","status-publish","format-standard","hentry","category-database-management","category-sql-server","tag-blocking","tag-performance","tag-python","type-sql-server"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.6) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>When a Python driver configuration issue may cause blocking in SQL Server - dbi Blog<\/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.dbi-services.com\/blog\/when-a-python-driver-configuration-issue-may-cause-blocking-in-sql-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"When a Python driver configuration issue may cause blocking in SQL Server\" \/>\n<meta property=\"og:description\" content=\"One of our clients encountered blocking during their daily data load. The process loads several million rows and then performs an ALTER TABLE &#8230; SWITCH operation into a partitioned table. This operation usually takes some time, but in this case it became blocked. Context Initially, I did not have access to much information. The only [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/when-a-python-driver-configuration-issue-may-cause-blocking-in-sql-server\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-05-14T21:21:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-05-14T21:50:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/05\/image-28.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1880\" \/>\n\t<meta property=\"og:image:height\" content=\"115\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Amine Haloui\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Amine Haloui\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/when-a-python-driver-configuration-issue-may-cause-blocking-in-sql-server\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/when-a-python-driver-configuration-issue-may-cause-blocking-in-sql-server\\\/\"},\"author\":{\"name\":\"Amine Haloui\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/221331d69d49c63fca67069b49b813fe\"},\"headline\":\"When a Python driver configuration issue may cause blocking in SQL Server\",\"datePublished\":\"2026-05-14T21:21:48+00:00\",\"dateModified\":\"2026-05-14T21:50:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/when-a-python-driver-configuration-issue-may-cause-blocking-in-sql-server\\\/\"},\"wordCount\":859,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/when-a-python-driver-configuration-issue-may-cause-blocking-in-sql-server\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2026\\\/05\\\/image-28-1024x63.png\",\"keywords\":[\"blocking\",\"Performance\",\"Python\"],\"articleSection\":[\"Database management\",\"SQL Server\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/when-a-python-driver-configuration-issue-may-cause-blocking-in-sql-server\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/when-a-python-driver-configuration-issue-may-cause-blocking-in-sql-server\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/when-a-python-driver-configuration-issue-may-cause-blocking-in-sql-server\\\/\",\"name\":\"When a Python driver configuration issue may cause blocking in SQL Server - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/when-a-python-driver-configuration-issue-may-cause-blocking-in-sql-server\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/when-a-python-driver-configuration-issue-may-cause-blocking-in-sql-server\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2026\\\/05\\\/image-28-1024x63.png\",\"datePublished\":\"2026-05-14T21:21:48+00:00\",\"dateModified\":\"2026-05-14T21:50:20+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/221331d69d49c63fca67069b49b813fe\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/when-a-python-driver-configuration-issue-may-cause-blocking-in-sql-server\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/when-a-python-driver-configuration-issue-may-cause-blocking-in-sql-server\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/when-a-python-driver-configuration-issue-may-cause-blocking-in-sql-server\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2026\\\/05\\\/image-28.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2026\\\/05\\\/image-28.png\",\"width\":1880,\"height\":115},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/when-a-python-driver-configuration-issue-may-cause-blocking-in-sql-server\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"When a Python driver configuration issue may cause blocking in SQL Server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/221331d69d49c63fca67069b49b813fe\",\"name\":\"Amine Haloui\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/64707272207cd8d2667aefcb212f3ff5d19a15813da5aad6553f109d1f1afec1?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/64707272207cd8d2667aefcb212f3ff5d19a15813da5aad6553f109d1f1afec1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/64707272207cd8d2667aefcb212f3ff5d19a15813da5aad6553f109d1f1afec1?s=96&d=mm&r=g\",\"caption\":\"Amine Haloui\"},\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/author\\\/aminehaloui\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"When a Python driver configuration issue may cause blocking in SQL Server - dbi Blog","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.dbi-services.com\/blog\/when-a-python-driver-configuration-issue-may-cause-blocking-in-sql-server\/","og_locale":"en_US","og_type":"article","og_title":"When a Python driver configuration issue may cause blocking in SQL Server","og_description":"One of our clients encountered blocking during their daily data load. The process loads several million rows and then performs an ALTER TABLE &#8230; SWITCH operation into a partitioned table. This operation usually takes some time, but in this case it became blocked. Context Initially, I did not have access to much information. The only [&hellip;]","og_url":"https:\/\/www.dbi-services.com\/blog\/when-a-python-driver-configuration-issue-may-cause-blocking-in-sql-server\/","og_site_name":"dbi Blog","article_published_time":"2026-05-14T21:21:48+00:00","article_modified_time":"2026-05-14T21:50:20+00:00","og_image":[{"width":1880,"height":115,"url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/05\/image-28.png","type":"image\/png"}],"author":"Amine Haloui","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Amine Haloui","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/when-a-python-driver-configuration-issue-may-cause-blocking-in-sql-server\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/when-a-python-driver-configuration-issue-may-cause-blocking-in-sql-server\/"},"author":{"name":"Amine Haloui","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/221331d69d49c63fca67069b49b813fe"},"headline":"When a Python driver configuration issue may cause blocking in SQL Server","datePublished":"2026-05-14T21:21:48+00:00","dateModified":"2026-05-14T21:50:20+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/when-a-python-driver-configuration-issue-may-cause-blocking-in-sql-server\/"},"wordCount":859,"commentCount":0,"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/when-a-python-driver-configuration-issue-may-cause-blocking-in-sql-server\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/05\/image-28-1024x63.png","keywords":["blocking","Performance","Python"],"articleSection":["Database management","SQL Server"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/when-a-python-driver-configuration-issue-may-cause-blocking-in-sql-server\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/when-a-python-driver-configuration-issue-may-cause-blocking-in-sql-server\/","url":"https:\/\/www.dbi-services.com\/blog\/when-a-python-driver-configuration-issue-may-cause-blocking-in-sql-server\/","name":"When a Python driver configuration issue may cause blocking in SQL Server - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/when-a-python-driver-configuration-issue-may-cause-blocking-in-sql-server\/#primaryimage"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/when-a-python-driver-configuration-issue-may-cause-blocking-in-sql-server\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/05\/image-28-1024x63.png","datePublished":"2026-05-14T21:21:48+00:00","dateModified":"2026-05-14T21:50:20+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/221331d69d49c63fca67069b49b813fe"},"breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/when-a-python-driver-configuration-issue-may-cause-blocking-in-sql-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/when-a-python-driver-configuration-issue-may-cause-blocking-in-sql-server\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/when-a-python-driver-configuration-issue-may-cause-blocking-in-sql-server\/#primaryimage","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/05\/image-28.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/05\/image-28.png","width":1880,"height":115},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/when-a-python-driver-configuration-issue-may-cause-blocking-in-sql-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"When a Python driver configuration issue may cause blocking in SQL Server"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/221331d69d49c63fca67069b49b813fe","name":"Amine Haloui","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/64707272207cd8d2667aefcb212f3ff5d19a15813da5aad6553f109d1f1afec1?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/64707272207cd8d2667aefcb212f3ff5d19a15813da5aad6553f109d1f1afec1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/64707272207cd8d2667aefcb212f3ff5d19a15813da5aad6553f109d1f1afec1?s=96&d=mm&r=g","caption":"Amine Haloui"},"url":"https:\/\/www.dbi-services.com\/blog\/author\/aminehaloui\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/44425","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/147"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=44425"}],"version-history":[{"count":4,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/44425\/revisions"}],"predecessor-version":[{"id":44568,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/44425\/revisions\/44568"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=44425"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=44425"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=44425"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=44425"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}