{"id":26510,"date":"2023-06-09T07:10:00","date_gmt":"2023-06-09T05:10:00","guid":{"rendered":"https:\/\/expert-only.com\/?p=26510"},"modified":"2023-08-09T16:11:09","modified_gmt":"2023-08-09T14:11:09","slug":"sql-server-cursors","status":"publish","type":"post","link":"https:\/\/expert-only.com\/en\/t-sql\/sql-server-cursors\/","title":{"rendered":"SQL Server Cursors (with examples)"},"content":{"rendered":"\n<p>SQL Server, a versatile relational database management system, comes packed with features that cater to developers and database administrators. One such feature, often debated in its utility, is the &#8220;cursor&#8221;. Here, we&#8217;ll explore how to effectively use cursors in SQL Server with hands-on examples.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 ez-toc-wrap-center counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/expert-only.com\/en\/t-sql\/sql-server-cursors\/#what-are-sql-cursors\" >What are SQL Cursors?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/expert-only.com\/en\/t-sql\/sql-server-cursors\/#why-use-cursors\" >Why Use Cursors?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/expert-only.com\/en\/t-sql\/sql-server-cursors\/#how-to-declare-and-use-a-sql-server-cursor\" >How to declare and use a SQL Server cursor?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/expert-only.com\/en\/t-sql\/sql-server-cursors\/#different-cursor-types-in-sql-server\" >Different cursor types in SQL Server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/expert-only.com\/en\/t-sql\/sql-server-cursors\/#common-pitfalls-and-best-practices\" >Common Pitfalls and Best Practices<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-what-are-sql-cursors\"><span class=\"ez-toc-section\" id=\"what-are-sql-cursors\"><\/span>What are SQL Cursors?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In SQL Server, a cursor is a database object that retrieves data from a result set one row at a time. Unlike the typical <code>SELECT<\/code> statement that returns all rows, a cursor fetches each row and lets you operate on it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-why-use-cursors\"><span class=\"ez-toc-section\" id=\"why-use-cursors\"><\/span>Why Use Cursors?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Before diving into examples, it&#8217;s vital to understand why you&#8217;d want to use a cursor. Consider scenarios where:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Data needs row-by-row processing.<\/li>\n\n\n\n<li>Complex logic applies to each row individually.<\/li>\n\n\n\n<li>Rows from one result set are used to manipulate other tables.<\/li>\n<\/ol>\n\n\n\n<p>However, remember, cursors can be slower due to their nature. It&#8217;s essential to use them judiciously.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-declare-and-use-a-sql-server-cursor\"><span class=\"ez-toc-section\" id=\"how-to-declare-and-use-a-sql-server-cursor\"><\/span>How to declare and use a SQL Server cursor?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Let&#8217;s move on to the practical part. Here\u2019s a basic example to start:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">DECLARE @Name VARCHAR(50)\nDECLARE cur CURSOR FOR \nSELECT Name FROM Employees WHERE Department = 'IT'\n\nOPEN cur\nFETCH NEXT FROM cur INTO @Name\n\nWHILE @@FETCH_STATUS = 0\nBEGIN\n   PRINT @Name\n   FETCH NEXT FROM cur INTO @Name\nEND\n\nCLOSE cur\nDEALLOCATE cur\n<\/pre>\n\n\n\n<p>In this example, we declare a cursor that selects names from an <code>Employees<\/code> table for those in the &#8216;IT&#8217; department. The results are then printed one by one.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-different-cursor-types-in-sql-server\"><span class=\"ez-toc-section\" id=\"different-cursor-types-in-sql-server\"><\/span>Different cursor types in SQL Server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>SQL Server offers different types of cursors:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Forward-Only<\/strong>: Moves forward in the result set.<\/li>\n\n\n\n<li><strong>Scroll<\/strong>: Can move backward and forward.<\/li>\n\n\n\n<li><strong>Static<\/strong>: Provides a snapshot of data.<\/li>\n\n\n\n<li><strong>Dynamic<\/strong>: Reflects changes to the data while the cursor is open.<\/li>\n\n\n\n<li><strong>Keyset<\/strong>: Data modifications are noted, but new additions or deletions aren\u2019t visible.<\/li>\n<\/ol>\n\n\n\n<p>Each type serves unique scenarios, so choose wisely!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-common-pitfalls-and-best-practices\"><span class=\"ez-toc-section\" id=\"common-pitfalls-and-best-practices\"><\/span>Common Pitfalls and Best Practices<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>While cursors have their place, it&#8217;s essential to avoid some common pitfalls:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Performance Issues<\/strong>: <a href=\"https:\/\/www.sqlshack.com\/sql-server-cursor-performance-problems\/\" target=\"_blank\" rel=\"noreferrer noopener\">Cursors can slow down operations<\/a>. Always look for set-based alternatives first.<\/li>\n\n\n\n<li><strong>Resource Consumption<\/strong>: Cursors might use more memory, so ensure to deallocate them once done.<\/li>\n\n\n\n<li><strong>Complex Logic<\/strong>: Ensure your logic inside the cursor loop is optimized.<\/li>\n<\/ol>\n\n\n\n<p>Best practices to remember:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Use cursors only when necessary.<\/li>\n\n\n\n<li>Always close and deallocate cursors.<\/li>\n\n\n\n<li>Opt for read-only cursors when updates aren&#8217;t required.<\/li>\n<\/ol>\n\n\n\n<p>To go further, consider reading the <a href=\"https:\/\/learn.microsoft.com\/en-us\/sql\/t-sql\/language-elements\/declare-cursor-transact-sql?view=sql-server-ver15\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">official documentation<\/a> on MS website.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-conclusion-on-cursor-use-in-t-sql-code\">Conclusion on cursor use in T-SQL code<\/h3>\n\n\n\n<p>Remember, while cursors offer row-by-row processing in SQL Server, it&#8217;s always important to evaluate if they are the best tool for the task at hand. Stick to set-based operations whenever possible for the best performance.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-other-sql-server-tutorials\">Other SQL Server tutorials<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/expert-only.com\/en\/t-sql\/sql-server-case-statement\/\">Use the conditional CASE statement in T-SQL<\/a>.<\/li>\n\n\n\n<li><a href=\"https:\/\/expert-only.com\/en\/t-sql\/sql-server-variables\/\">How to use SQL Server Variables?<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>SQL Server, a versatile relational database management system, comes packed with features that cater to developers and database administrators. One such feature, often debated in its utility, is the &#8220;cursor&#8221;. Here, we&#8217;ll explore how to effectively use cursors in <a class=\"mh-excerpt-more\" href=\"https:\/\/expert-only.com\/en\/t-sql\/sql-server-cursors\/\" title=\"SQL Server Cursors (with examples)\">&#8230;<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":10634,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[454],"tags":[],"class_list":{"0":"post-26510","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-t-sql"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.7 (Yoast SEO v26.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>SQL Server Cursors (with examples) - T-SQL<\/title>\n<meta name=\"description\" content=\"SQL Server cursors presentation, understanding their importance, types, practical use cases, and best practices with real-world examples.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/expert-only.com\/en\/t-sql\/sql-server-cursors\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SQL Server Cursors (with examples)\" \/>\n<meta property=\"og:description\" content=\"SQL Server cursors presentation, understanding their importance, types, practical use cases, and best practices with real-world examples.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/expert-only.com\/en\/t-sql\/sql-server-cursors\/\" \/>\n<meta property=\"og:site_name\" content=\"SQL and IT Tutorials\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ExpertOnlyCom\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-06-09T05:10:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-09T14:11:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/09\/earth-F0055E54F69_1920x1080.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Expert-Only\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@expert_only\" \/>\n<meta name=\"twitter:site\" content=\"@expert_only\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Expert-Only\" \/>\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\":\"Article\",\"@id\":\"https:\/\/expert-only.com\/en\/t-sql\/sql-server-cursors\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/expert-only.com\/en\/t-sql\/sql-server-cursors\/\"},\"author\":{\"name\":\"Expert-Only\",\"@id\":\"https:\/\/expert-only.com\/en\/#\/schema\/person\/406a9576b52944f018739a42046873ef\"},\"headline\":\"SQL Server Cursors (with examples)\",\"datePublished\":\"2023-06-09T05:10:00+00:00\",\"dateModified\":\"2023-08-09T14:11:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/expert-only.com\/en\/t-sql\/sql-server-cursors\/\"},\"wordCount\":421,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/expert-only.com\/en\/#organization\"},\"image\":{\"@id\":\"https:\/\/expert-only.com\/en\/t-sql\/sql-server-cursors\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/09\/earth-F0055E54F69_1920x1080.jpg\",\"articleSection\":[\"T-SQL\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/expert-only.com\/en\/t-sql\/sql-server-cursors\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/expert-only.com\/en\/t-sql\/sql-server-cursors\/\",\"url\":\"https:\/\/expert-only.com\/en\/t-sql\/sql-server-cursors\/\",\"name\":\"SQL Server Cursors (with examples) - T-SQL\",\"isPartOf\":{\"@id\":\"https:\/\/expert-only.com\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/expert-only.com\/en\/t-sql\/sql-server-cursors\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/expert-only.com\/en\/t-sql\/sql-server-cursors\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/09\/earth-F0055E54F69_1920x1080.jpg\",\"datePublished\":\"2023-06-09T05:10:00+00:00\",\"dateModified\":\"2023-08-09T14:11:09+00:00\",\"description\":\"SQL Server cursors presentation, understanding their importance, types, practical use cases, and best practices with real-world examples.\",\"breadcrumb\":{\"@id\":\"https:\/\/expert-only.com\/en\/t-sql\/sql-server-cursors\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/expert-only.com\/en\/t-sql\/sql-server-cursors\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/expert-only.com\/en\/t-sql\/sql-server-cursors\/#primaryimage\",\"url\":\"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/09\/earth-F0055E54F69_1920x1080.jpg\",\"contentUrl\":\"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/09\/earth-F0055E54F69_1920x1080.jpg\",\"width\":1920,\"height\":1080},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/expert-only.com\/en\/t-sql\/sql-server-cursors\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"en\",\"item\":\"https:\/\/expert-only.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SQL Server Cursors (with examples)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/expert-only.com\/en\/#website\",\"url\":\"https:\/\/expert-only.com\/en\/\",\"name\":\"SQL and IT Tutorials\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/expert-only.com\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/expert-only.com\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/expert-only.com\/en\/#organization\",\"name\":\"Expert-Only\",\"url\":\"https:\/\/expert-only.com\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/expert-only.com\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/expert-only.com\/wp-content\/uploads\/2017\/09\/cropped-logo_Expert-Only.jpg\",\"contentUrl\":\"https:\/\/expert-only.com\/wp-content\/uploads\/2017\/09\/cropped-logo_Expert-Only.jpg\",\"width\":381,\"height\":174,\"caption\":\"Expert-Only\"},\"image\":{\"@id\":\"https:\/\/expert-only.com\/en\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/ExpertOnlyCom\/\",\"https:\/\/x.com\/expert_only\",\"https:\/\/www.youtube.com\/channel\/UCMS5sR_FwAetB0FmciNvUaA\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/expert-only.com\/en\/#\/schema\/person\/406a9576b52944f018739a42046873ef\",\"name\":\"Expert-Only\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/expert-only.com\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/084b15660763ff5b13bb60b2f52f97bb?s=96&d=identicon&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/084b15660763ff5b13bb60b2f52f97bb?s=96&d=identicon&r=g\",\"caption\":\"Expert-Only\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"SQL Server Cursors (with examples) - T-SQL","description":"SQL Server cursors presentation, understanding their importance, types, practical use cases, and best practices with real-world examples.","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:\/\/expert-only.com\/en\/t-sql\/sql-server-cursors\/","og_locale":"en_US","og_type":"article","og_title":"SQL Server Cursors (with examples)","og_description":"SQL Server cursors presentation, understanding their importance, types, practical use cases, and best practices with real-world examples.","og_url":"https:\/\/expert-only.com\/en\/t-sql\/sql-server-cursors\/","og_site_name":"SQL and IT Tutorials","article_publisher":"https:\/\/www.facebook.com\/ExpertOnlyCom\/","article_published_time":"2023-06-09T05:10:00+00:00","article_modified_time":"2023-08-09T14:11:09+00:00","og_image":[{"width":1920,"height":1080,"url":"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/09\/earth-F0055E54F69_1920x1080.jpg","type":"image\/jpeg"}],"author":"Expert-Only","twitter_card":"summary_large_image","twitter_creator":"@expert_only","twitter_site":"@expert_only","twitter_misc":{"Written by":"Expert-Only","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/expert-only.com\/en\/t-sql\/sql-server-cursors\/#article","isPartOf":{"@id":"https:\/\/expert-only.com\/en\/t-sql\/sql-server-cursors\/"},"author":{"name":"Expert-Only","@id":"https:\/\/expert-only.com\/en\/#\/schema\/person\/406a9576b52944f018739a42046873ef"},"headline":"SQL Server Cursors (with examples)","datePublished":"2023-06-09T05:10:00+00:00","dateModified":"2023-08-09T14:11:09+00:00","mainEntityOfPage":{"@id":"https:\/\/expert-only.com\/en\/t-sql\/sql-server-cursors\/"},"wordCount":421,"commentCount":0,"publisher":{"@id":"https:\/\/expert-only.com\/en\/#organization"},"image":{"@id":"https:\/\/expert-only.com\/en\/t-sql\/sql-server-cursors\/#primaryimage"},"thumbnailUrl":"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/09\/earth-F0055E54F69_1920x1080.jpg","articleSection":["T-SQL"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/expert-only.com\/en\/t-sql\/sql-server-cursors\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/expert-only.com\/en\/t-sql\/sql-server-cursors\/","url":"https:\/\/expert-only.com\/en\/t-sql\/sql-server-cursors\/","name":"SQL Server Cursors (with examples) - T-SQL","isPartOf":{"@id":"https:\/\/expert-only.com\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/expert-only.com\/en\/t-sql\/sql-server-cursors\/#primaryimage"},"image":{"@id":"https:\/\/expert-only.com\/en\/t-sql\/sql-server-cursors\/#primaryimage"},"thumbnailUrl":"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/09\/earth-F0055E54F69_1920x1080.jpg","datePublished":"2023-06-09T05:10:00+00:00","dateModified":"2023-08-09T14:11:09+00:00","description":"SQL Server cursors presentation, understanding their importance, types, practical use cases, and best practices with real-world examples.","breadcrumb":{"@id":"https:\/\/expert-only.com\/en\/t-sql\/sql-server-cursors\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/expert-only.com\/en\/t-sql\/sql-server-cursors\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/expert-only.com\/en\/t-sql\/sql-server-cursors\/#primaryimage","url":"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/09\/earth-F0055E54F69_1920x1080.jpg","contentUrl":"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/09\/earth-F0055E54F69_1920x1080.jpg","width":1920,"height":1080},{"@type":"BreadcrumbList","@id":"https:\/\/expert-only.com\/en\/t-sql\/sql-server-cursors\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"en","item":"https:\/\/expert-only.com\/en\/"},{"@type":"ListItem","position":2,"name":"SQL Server Cursors (with examples)"}]},{"@type":"WebSite","@id":"https:\/\/expert-only.com\/en\/#website","url":"https:\/\/expert-only.com\/en\/","name":"SQL and IT Tutorials","description":"","publisher":{"@id":"https:\/\/expert-only.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/expert-only.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/expert-only.com\/en\/#organization","name":"Expert-Only","url":"https:\/\/expert-only.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/expert-only.com\/en\/#\/schema\/logo\/image\/","url":"https:\/\/expert-only.com\/wp-content\/uploads\/2017\/09\/cropped-logo_Expert-Only.jpg","contentUrl":"https:\/\/expert-only.com\/wp-content\/uploads\/2017\/09\/cropped-logo_Expert-Only.jpg","width":381,"height":174,"caption":"Expert-Only"},"image":{"@id":"https:\/\/expert-only.com\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/ExpertOnlyCom\/","https:\/\/x.com\/expert_only","https:\/\/www.youtube.com\/channel\/UCMS5sR_FwAetB0FmciNvUaA"]},{"@type":"Person","@id":"https:\/\/expert-only.com\/en\/#\/schema\/person\/406a9576b52944f018739a42046873ef","name":"Expert-Only","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/expert-only.com\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/084b15660763ff5b13bb60b2f52f97bb?s=96&d=identicon&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/084b15660763ff5b13bb60b2f52f97bb?s=96&d=identicon&r=g","caption":"Expert-Only"}}]}},"_links":{"self":[{"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/posts\/26510","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/comments?post=26510"}],"version-history":[{"count":0,"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/posts\/26510\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/media\/10634"}],"wp:attachment":[{"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/media?parent=26510"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/categories?post=26510"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/tags?post=26510"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}