{"id":23,"date":"2012-02-22T23:55:51","date_gmt":"2012-02-23T01:55:51","guid":{"rendered":"http:\/\/www.ctasoftware.com.br\/blog\/?p=23"},"modified":"2012-02-22T23:55:51","modified_gmt":"2012-02-23T01:55:51","slug":"drop-user-the-database-principal-owns-a-schema-in-the-database-and-cannot-be-dropped","status":"publish","type":"post","link":"https:\/\/www.ctasoftware.com.br\/blog\/drop-user-the-database-principal-owns-a-schema-in-the-database-and-cannot-be-dropped\/","title":{"rendered":"Drop User: The database principal owns a schema in the database, and cannot be dropped"},"content":{"rendered":"<p>Na tentativa de excluir um usu\u00e1rio de um SCHEMA do SQL Server podemos nos deparar com a seguinte mensagem &#8220;Drop User: The database principal owns a schema in the database, and cannot be dropped&#8221;.<\/p>\n<p>Para resolver este problema devemos utilizar o ALTER AUTHORIZATION, movendo o usu\u00e1rio do banco para um outro usu\u00e1rio.<\/p>\n<p>ALTER AUTHORIZATION ON SCHEMA::db_owner TO db_owner<\/p>\n<p>Podemos alterar para qualquer um outro usu\u00e1rio utilizando o seguinte comando<\/p>\n<p>ALTER AUTHORIZATION ON SCHEMA::&lt;theSchema&gt; TO userName<\/p>\n<p>Essa \u00e9 uma forma r\u00e1pida e eficaz de resolver um problema que as vezes quebramos a cabe\u00e7a durante horas.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Na tentativa de excluir um usu\u00e1rio de um SCHEMA do SQL Server podemos nos deparar com a seguinte mensagem &#8220;Drop User: The database principal owns a schema in the database, and cannot be dropped&#8221;. Para resolver este problema devemos utilizar o ALTER AUTHORIZATION, movendo o usu\u00e1rio do banco para um outro usu\u00e1rio. ALTER AUTHORIZATION ON [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[4],"tags":[5],"jetpack_publicize_connections":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Drop User: The database principal owns a schema in the database, and cannot be dropped - CTASoftware Blog<\/title>\n<meta name=\"description\" content=\"CTASoftware Blog Drop User: The database principal owns a schema in the database, and cannot be dropped\" \/>\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.ctasoftware.com.br\/blog\/drop-user-the-database-principal-owns-a-schema-in-the-database-and-cannot-be-dropped\/\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Drop User: The database principal owns a schema in the database, and cannot be dropped - CTASoftware Blog\" \/>\n<meta property=\"og:description\" content=\"CTASoftware Blog Drop User: The database principal owns a schema in the database, and cannot be dropped\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.ctasoftware.com.br\/blog\/drop-user-the-database-principal-owns-a-schema-in-the-database-and-cannot-be-dropped\/\" \/>\n<meta property=\"og:site_name\" content=\"CTASoftware Blog\" \/>\n<meta property=\"article:published_time\" content=\"2012-02-23T01:55:51+00:00\" \/>\n<meta name=\"author\" content=\"Everton Gon\u00e7alves\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Everton Gon\u00e7alves\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. tempo de leitura\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minuto\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.ctasoftware.com.br\/blog\/drop-user-the-database-principal-owns-a-schema-in-the-database-and-cannot-be-dropped\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.ctasoftware.com.br\/blog\/drop-user-the-database-principal-owns-a-schema-in-the-database-and-cannot-be-dropped\/\"},\"author\":{\"name\":\"Everton Gon\u00e7alves\",\"@id\":\"https:\/\/www.ctasoftware.com.br\/blog\/#\/schema\/person\/34f7fa2c76834d8410f6dd43e26fd3e4\"},\"headline\":\"Drop User: The database principal owns a schema in the database, and cannot be dropped\",\"datePublished\":\"2012-02-23T01:55:51+00:00\",\"dateModified\":\"2012-02-23T01:55:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.ctasoftware.com.br\/blog\/drop-user-the-database-principal-owns-a-schema-in-the-database-and-cannot-be-dropped\/\"},\"wordCount\":120,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.ctasoftware.com.br\/blog\/#organization\"},\"keywords\":[\"SQL Server\"],\"articleSection\":[\"SQL\"],\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.ctasoftware.com.br\/blog\/drop-user-the-database-principal-owns-a-schema-in-the-database-and-cannot-be-dropped\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.ctasoftware.com.br\/blog\/drop-user-the-database-principal-owns-a-schema-in-the-database-and-cannot-be-dropped\/\",\"url\":\"https:\/\/www.ctasoftware.com.br\/blog\/drop-user-the-database-principal-owns-a-schema-in-the-database-and-cannot-be-dropped\/\",\"name\":\"Drop User: The database principal owns a schema in the database, and cannot be dropped - CTASoftware Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.ctasoftware.com.br\/blog\/#website\"},\"datePublished\":\"2012-02-23T01:55:51+00:00\",\"dateModified\":\"2012-02-23T01:55:51+00:00\",\"description\":\"CTASoftware Blog Drop User: The database principal owns a schema in the database, and cannot be dropped\",\"breadcrumb\":{\"@id\":\"https:\/\/www.ctasoftware.com.br\/blog\/drop-user-the-database-principal-owns-a-schema-in-the-database-and-cannot-be-dropped\/#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.ctasoftware.com.br\/blog\/drop-user-the-database-principal-owns-a-schema-in-the-database-and-cannot-be-dropped\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.ctasoftware.com.br\/blog\/drop-user-the-database-principal-owns-a-schema-in-the-database-and-cannot-be-dropped\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/www.ctasoftware.com.br\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Drop User: The database principal owns a schema in the database, and cannot be dropped\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.ctasoftware.com.br\/blog\/#website\",\"url\":\"https:\/\/www.ctasoftware.com.br\/blog\/\",\"name\":\"CTASoftware Blog\",\"description\":\"Para Desenvolvedores De Software\",\"publisher\":{\"@id\":\"https:\/\/www.ctasoftware.com.br\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.ctasoftware.com.br\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"pt-BR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.ctasoftware.com.br\/blog\/#organization\",\"name\":\"CTASoftware\",\"url\":\"https:\/\/www.ctasoftware.com.br\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/www.ctasoftware.com.br\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.ctasoftware.com.br\/blog\/wp-content\/uploads\/2023\/06\/logocta.png?fit=225%2C44&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.ctasoftware.com.br\/blog\/wp-content\/uploads\/2023\/06\/logocta.png?fit=225%2C44&ssl=1\",\"width\":225,\"height\":44,\"caption\":\"CTASoftware\"},\"image\":{\"@id\":\"https:\/\/www.ctasoftware.com.br\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.ctasoftware.com.br\/blog\/#\/schema\/person\/34f7fa2c76834d8410f6dd43e26fd3e4\",\"name\":\"Everton Gon\u00e7alves\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/www.ctasoftware.com.br\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3e5e7fe964521f618a2b09d3fbb7800f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3e5e7fe964521f618a2b09d3fbb7800f?s=96&d=mm&r=g\",\"caption\":\"Everton Gon\u00e7alves\"},\"description\":\"http:\/\/www.ctasoftware.com.br\",\"sameAs\":[\"http:\/\/www.ctasoftware.com.br\"],\"url\":\"https:\/\/www.ctasoftware.com.br\/blog\/author\/everton-goncalves\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Drop User: The database principal owns a schema in the database, and cannot be dropped - CTASoftware Blog","description":"CTASoftware Blog Drop User: The database principal owns a schema in the database, and cannot be dropped","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.ctasoftware.com.br\/blog\/drop-user-the-database-principal-owns-a-schema-in-the-database-and-cannot-be-dropped\/","og_locale":"pt_BR","og_type":"article","og_title":"Drop User: The database principal owns a schema in the database, and cannot be dropped - CTASoftware Blog","og_description":"CTASoftware Blog Drop User: The database principal owns a schema in the database, and cannot be dropped","og_url":"https:\/\/www.ctasoftware.com.br\/blog\/drop-user-the-database-principal-owns-a-schema-in-the-database-and-cannot-be-dropped\/","og_site_name":"CTASoftware Blog","article_published_time":"2012-02-23T01:55:51+00:00","author":"Everton Gon\u00e7alves","twitter_misc":{"Escrito por":"Everton Gon\u00e7alves","Est. tempo de leitura":"1 minuto"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.ctasoftware.com.br\/blog\/drop-user-the-database-principal-owns-a-schema-in-the-database-and-cannot-be-dropped\/#article","isPartOf":{"@id":"https:\/\/www.ctasoftware.com.br\/blog\/drop-user-the-database-principal-owns-a-schema-in-the-database-and-cannot-be-dropped\/"},"author":{"name":"Everton Gon\u00e7alves","@id":"https:\/\/www.ctasoftware.com.br\/blog\/#\/schema\/person\/34f7fa2c76834d8410f6dd43e26fd3e4"},"headline":"Drop User: The database principal owns a schema in the database, and cannot be dropped","datePublished":"2012-02-23T01:55:51+00:00","dateModified":"2012-02-23T01:55:51+00:00","mainEntityOfPage":{"@id":"https:\/\/www.ctasoftware.com.br\/blog\/drop-user-the-database-principal-owns-a-schema-in-the-database-and-cannot-be-dropped\/"},"wordCount":120,"commentCount":0,"publisher":{"@id":"https:\/\/www.ctasoftware.com.br\/blog\/#organization"},"keywords":["SQL Server"],"articleSection":["SQL"],"inLanguage":"pt-BR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.ctasoftware.com.br\/blog\/drop-user-the-database-principal-owns-a-schema-in-the-database-and-cannot-be-dropped\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.ctasoftware.com.br\/blog\/drop-user-the-database-principal-owns-a-schema-in-the-database-and-cannot-be-dropped\/","url":"https:\/\/www.ctasoftware.com.br\/blog\/drop-user-the-database-principal-owns-a-schema-in-the-database-and-cannot-be-dropped\/","name":"Drop User: The database principal owns a schema in the database, and cannot be dropped - CTASoftware Blog","isPartOf":{"@id":"https:\/\/www.ctasoftware.com.br\/blog\/#website"},"datePublished":"2012-02-23T01:55:51+00:00","dateModified":"2012-02-23T01:55:51+00:00","description":"CTASoftware Blog Drop User: The database principal owns a schema in the database, and cannot be dropped","breadcrumb":{"@id":"https:\/\/www.ctasoftware.com.br\/blog\/drop-user-the-database-principal-owns-a-schema-in-the-database-and-cannot-be-dropped\/#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.ctasoftware.com.br\/blog\/drop-user-the-database-principal-owns-a-schema-in-the-database-and-cannot-be-dropped\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.ctasoftware.com.br\/blog\/drop-user-the-database-principal-owns-a-schema-in-the-database-and-cannot-be-dropped\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/www.ctasoftware.com.br\/blog\/"},{"@type":"ListItem","position":2,"name":"Drop User: The database principal owns a schema in the database, and cannot be dropped"}]},{"@type":"WebSite","@id":"https:\/\/www.ctasoftware.com.br\/blog\/#website","url":"https:\/\/www.ctasoftware.com.br\/blog\/","name":"CTASoftware Blog","description":"Para Desenvolvedores De Software","publisher":{"@id":"https:\/\/www.ctasoftware.com.br\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.ctasoftware.com.br\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"pt-BR"},{"@type":"Organization","@id":"https:\/\/www.ctasoftware.com.br\/blog\/#organization","name":"CTASoftware","url":"https:\/\/www.ctasoftware.com.br\/blog\/","logo":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.ctasoftware.com.br\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.ctasoftware.com.br\/blog\/wp-content\/uploads\/2023\/06\/logocta.png?fit=225%2C44&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.ctasoftware.com.br\/blog\/wp-content\/uploads\/2023\/06\/logocta.png?fit=225%2C44&ssl=1","width":225,"height":44,"caption":"CTASoftware"},"image":{"@id":"https:\/\/www.ctasoftware.com.br\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.ctasoftware.com.br\/blog\/#\/schema\/person\/34f7fa2c76834d8410f6dd43e26fd3e4","name":"Everton Gon\u00e7alves","image":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.ctasoftware.com.br\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/3e5e7fe964521f618a2b09d3fbb7800f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3e5e7fe964521f618a2b09d3fbb7800f?s=96&d=mm&r=g","caption":"Everton Gon\u00e7alves"},"description":"http:\/\/www.ctasoftware.com.br","sameAs":["http:\/\/www.ctasoftware.com.br"],"url":"https:\/\/www.ctasoftware.com.br\/blog\/author\/everton-goncalves\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6ACmG-n","jetpack-related-posts":[{"id":80,"url":"https:\/\/www.ctasoftware.com.br\/blog\/criar-tabelas-temporarias-sql-server\/","url_meta":{"origin":23,"position":0},"title":"Criar Tabelas Tempor\u00e1rias SQL Server","author":"Everton Gon\u00e7alves","date":"23 de agosto de 2012","format":false,"excerpt":"As vezes nos deparamos com a situa\u00e7\u00e3o que devemos criar uma tabela tempor\u00e1ria no SQL Server em seguida descartar. Neste caso criamos a tabela da seguinte maneira CREATE TABLE #NomeTabelaTemporaria( campo1 INT NOT NULL; campo2 VARCHAR(250) NULL; ... ); Ap\u00f3s a cria\u00e7\u00e3o da tabela poderemos realizar nossas a\u00e7\u00f5es. Vale a\u2026","rel":"","context":"Em &quot;SQL&quot;","block_context":{"text":"SQL","link":"https:\/\/www.ctasoftware.com.br\/blog\/category\/sql\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":91,"url":"https:\/\/www.ctasoftware.com.br\/blog\/listar-tabelas-banco-de-dados-sql-server\/","url_meta":{"origin":23,"position":1},"title":"Listar Tabelas Banco de Dados SQL Server","author":"Everton Gon\u00e7alves","date":"25 de janeiro de 2013","format":false,"excerpt":"Uma das d\u00favidas de quem trabalha com o SQL Server \u00e9 \"como listar todas as tabelas do banco?!\" os desenvolvedores que utilizam o banco de dados MySQL tem o recurso SHOW Tables; que lista para o usu\u00e1rio todas as tabelas do banco. No caso do SQL Server temos que realizar\u2026","rel":"","context":"Em &quot;SQL&quot;","block_context":{"text":"SQL","link":"https:\/\/www.ctasoftware.com.br\/blog\/category\/sql\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":327,"url":"https:\/\/www.ctasoftware.com.br\/blog\/push-envio-de-notificacao-firebase-para-usuario-especifico\/","url_meta":{"origin":23,"position":2},"title":"Push Envio de Notifica\u00e7\u00e3o Firebase Para Usu\u00e1rio Espec\u00edfico","author":"Everton Gon\u00e7alves","date":"11 de setembro de 2018","format":false,"excerpt":"H\u00e1 em nossas aplica\u00e7\u00f5es mobile sempre a necessidade de enviar notifica\u00e7\u00f5es push aos usu\u00e1rios dos nossos app. O Google vem mudando recentemente o GCM para FCM (Firebase Cloud Messassing). Neste post mostro como realizar o envio atrav\u00e9s do PostMan. Voc\u00ea ir\u00e1 enviar um POST para a URL https:\/\/fcm.googleapis.com\/fcm\/send Atribuir o\u2026","rel":"","context":"Em &quot;Dicas&quot;","block_context":{"text":"Dicas","link":"https:\/\/www.ctasoftware.com.br\/blog\/category\/dicas\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.ctasoftware.com.br\/blog\/wp-content\/uploads\/2018\/09\/postman-push-ctasoftware.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.ctasoftware.com.br\/blog\/wp-content\/uploads\/2018\/09\/postman-push-ctasoftware.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.ctasoftware.com.br\/blog\/wp-content\/uploads\/2018\/09\/postman-push-ctasoftware.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.ctasoftware.com.br\/blog\/wp-content\/uploads\/2018\/09\/postman-push-ctasoftware.png?resize=700%2C400 2x"},"classes":[]},{"id":70,"url":"https:\/\/www.ctasoftware.com.br\/blog\/evitar-sql-injection-usando-prepared-statements-no-php\/","url_meta":{"origin":23,"position":3},"title":"Evitar SQL Injection usando Prepared Statements no PHP","author":"Everton Gon\u00e7alves","date":"19 de julho de 2012","format":false,"excerpt":"Venho postando uma s\u00e9rie de informa\u00e7\u00f5es relacionados a PDO e esclarecimentos sobre o uso do Prepared Statements, consequentemente\u00a0reca\u00edmos\u00a0sobre a preven\u00e7\u00e3o de ataques de inje\u00e7\u00e3o SQL. Muitos s\u00e3o os programadores que n\u00e3o tomam qualquer preven\u00e7\u00e3o em suas aplica\u00e7\u00f5es ou sites para evitar ataques t\u00e3o usuais e f\u00e1ceis de se precaver, n\u00e3o\u2026","rel":"","context":"Em &quot;MySQL&quot;","block_context":{"text":"MySQL","link":"https:\/\/www.ctasoftware.com.br\/blog\/category\/mysql\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":430,"url":"https:\/\/www.ctasoftware.com.br\/blog\/desabilitar-e-reabilitar-constraint-sql-server\/","url_meta":{"origin":23,"position":4},"title":"Desabilitar e Reabilitar constraint SQL Server","author":"Everton Gon\u00e7alves","date":"15 de dezembro de 2021","format":false,"excerpt":"Para habilitar utilize o comando: ALTER TABLE tableName NOCHECK CONSTRAINT ALL Para reabilitar utilize o comando: ALTER TABLE tableName WITH CHECK CHECK CONSTRAINT ALL Obs: substituir o tableName pelo nome da sua tabela.","rel":"","context":"Em &quot;SQL&quot;","block_context":{"text":"SQL","link":"https:\/\/www.ctasoftware.com.br\/blog\/category\/sql\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":150,"url":"https:\/\/www.ctasoftware.com.br\/blog\/criar-classe-de-entidade-a-partir-de-tabela-sql-server\/","url_meta":{"origin":23,"position":5},"title":"Criar classe de entidade a partir de tabela SQL Server","author":"Everton Gon\u00e7alves","date":"31 de mar\u00e7o de 2015","format":false,"excerpt":"Disponibilizo abaixo um script para gera\u00e7\u00e3o de classes de entidade (BO, BE, VO) como comumente s\u00e3o chamadas atrav\u00e9s de script SQL Server. CREATE PROCEDURE [dbo].[GeraVO] @tabela varchar(250) AS BEGIN SET NOCOUNT ON; declare @TableName sysname = @tabela declare @Result varchar(max) = 'public class ' + @TableName + ' {' select\u2026","rel":"","context":"Em &quot;.NET&quot;","block_context":{"text":".NET","link":"https:\/\/www.ctasoftware.com.br\/blog\/category\/net\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.ctasoftware.com.br\/blog\/wp-json\/wp\/v2\/posts\/23"}],"collection":[{"href":"https:\/\/www.ctasoftware.com.br\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ctasoftware.com.br\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ctasoftware.com.br\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ctasoftware.com.br\/blog\/wp-json\/wp\/v2\/comments?post=23"}],"version-history":[{"count":2,"href":"https:\/\/www.ctasoftware.com.br\/blog\/wp-json\/wp\/v2\/posts\/23\/revisions"}],"predecessor-version":[{"id":25,"href":"https:\/\/www.ctasoftware.com.br\/blog\/wp-json\/wp\/v2\/posts\/23\/revisions\/25"}],"wp:attachment":[{"href":"https:\/\/www.ctasoftware.com.br\/blog\/wp-json\/wp\/v2\/media?parent=23"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ctasoftware.com.br\/blog\/wp-json\/wp\/v2\/categories?post=23"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ctasoftware.com.br\/blog\/wp-json\/wp\/v2\/tags?post=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}