<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3696343872442188554</id><updated>2026-06-01T11:54:02.798+02:00</updated><category term="Oracle"/><category term="PL/SQL"/><category term=".NET"/><category term="git"/><category term="mvc"/><category term="centos7"/><category term="gitolite"/><category term="IIS"/><category term="JQuery"/><category term="SQL SERVER"/><category term="Visual Studio"/><category term="asp.net"/><category term="cmd"/><category term="tfs"/><title type='text'>Ayuda en Programación</title><subtitle type='html'>Blog creado con la finalidad de ayudar a nuevos programadores</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ayudaenprogramacionaa.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://ayudaenprogramacionaa.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>AA+</name><uri>http://www.blogger.com/profile/08683961603580889031</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>20</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3696343872442188554.post-8459265125069680433</id><published>2016-09-13T18:05:00.001+02:00</published><updated>2022-04-13T15:59:47.158+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><title type='text'>Abortar conexión SQL SERVER desde .NET</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://static.wikia.nocookie.net/logopedia/images/c/c7/Microsoft_.NET_StartupImage.svg/revision/latest/scale-to-width-down/200?cb=20210721191943&amp;amp;path-prefix=es&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;200&quot; data-original-width=&quot;200&quot; height=&quot;200&quot; src=&quot;https://static.wikia.nocookie.net/logopedia/images/c/c7/Microsoft_.NET_StartupImage.svg/revision/latest/scale-to-width-down/200?cb=20210721191943&amp;amp;path-prefix=es&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
En ocasiones, las consultas a
base de datos quedan en ejecución o en espera ocupando recursos de los
servidores SQL e incluso bloqueando la base de datos, por ello, es recomendable
configurar el timeout para cada consulta según su tiempo de ejecución.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
En el siguiente ejemplo se
muestra como configurar el timeout a través de SqlCommand:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: rgb(13, 13, 13); margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: black; color: #569cd6; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;Try&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: rgb(13, 13, 13); margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: rgb(13, 13, 13); margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: #608b4e; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;//Consulta
SQL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: rgb(13, 13, 13); margin-bottom: 0.0001pt; text-indent: 35.4pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: #569cd6; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;var&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;sql&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: #b4b4b4; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;=&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: #d69d85; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;&quot;SELECT
* FROM USUARIO&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: rgb(13, 13, 13); margin-bottom: 0.0001pt; text-indent: 35.4pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: #608b4e; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;//Conexión
SQL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: rgb(13, 13, 13); margin-bottom: 0.0001pt; text-indent: 35.4pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: #569cd6; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;using&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;
(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: #4ec9b0; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;SqlConnection&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;connection&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: #b4b4b4; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;=&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: #569cd6; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;new&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: #4ec9b0; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;SqlConnection&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;(connString))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: rgb(13, 13, 13); margin-bottom: 0.0001pt; text-indent: 35.4pt;&quot;&gt;
&lt;span style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: rgb(13, 13, 13); margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: black; color: #608b4e; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;//Comando para ejecutar la consulta&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: rgb(13, 13, 13); margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: #569cd6; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; using&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;
(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: #4ec9b0; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;SqlCommand&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;command&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: #b4b4b4; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;=&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: #569cd6; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;new&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: #4ec9b0; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;SqlCommand&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;sql&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;,
&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;connection&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: rgb(13, 13, 13); margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: rgb(13, 13, 13); margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: black; color: #608b4e; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;//Configuración del Timeout&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: rgb(13, 13, 13); margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;command&lt;/span&gt;&lt;span style=&quot;background: black; color: #b4b4b4; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;CommandTimeout&lt;/span&gt;&lt;span style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: black; color: #b4b4b4; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: black; color: #b5cea8; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;; &lt;/span&gt;&lt;span style=&quot;background: black; color: #608b4e; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;// En segundos &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: rgb(13, 13, 13); margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: black; color: #608b4e; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;//Ejecución del comando&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: rgb(13, 13, 13); margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: black; color: #4ec9b0; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;SqlDataReader&lt;/span&gt;&lt;span style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;dataReader&lt;/span&gt;&lt;span style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: black; color: #b4b4b4; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;command&lt;/span&gt;&lt;span style=&quot;background: black; color: #b4b4b4; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;ExecuteReader&lt;/span&gt;&lt;span style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: rgb(13, 13, 13); margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: rgb(13, 13, 13); margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: rgb(13, 13, 13); margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: rgb(13, 13, 13); margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: black; color: #569cd6; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;catch&lt;/span&gt;&lt;span style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;background: black; color: #4ec9b0; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;Exception&lt;/span&gt;&lt;span style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;ex&lt;/span&gt;&lt;span style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: rgb(13, 13, 13); margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: rgb(13, 13, 13); margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: black; color: #608b4e; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Al
generarse una excepción por exceder el timeout, automáticamente se cancela &amp;nbsp;&amp;nbsp;&amp;nbsp;la consulta a base de datos&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; line-height: 115%;&quot;&gt;}&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; line-height: 115%;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 15.75pt; margin-bottom: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-align: justify; vertical-align: baseline;&quot;&gt;
En el ejemplo anterior, se ha configurado el “CommandTimeout”
en 1 segundo, si la consulta tarda más tiempo se generará una excepción y
automáticamente se cancelará la consulta a nivel de aplicación y de base de
datos.&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 15.75pt; margin-bottom: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 15.75pt; margin-bottom: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-align: justify; vertical-align: baseline;&quot;&gt;
Para no dejar conexiones o consultas abiertas, es
recomendable usar “using” que automáticamente, ejecuta las sentencias close y
dispose.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 15.75pt; margin-bottom: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 15.75pt; margin-bottom: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;u&gt;Consideraciones&lt;/u&gt;&lt;/b&gt;:
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;line-height: 15.75pt; margin-bottom: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-align: justify; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &amp;quot;symbol&amp;quot;; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Si se configura el CommandTimeout a 0, el
timeout será infinito.&amp;nbsp; El tiempo de
espera será el configurado en la base de datos (Generalmente 10 minutos).&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;line-height: 15.75pt; margin-bottom: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-align: justify; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &amp;quot;symbol&amp;quot;; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;En caso de no configurar el timeout, el valor
por defecto es de 30 segundos.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 15.75pt; margin-bottom: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 15.75pt; margin-bottom: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-align: justify; vertical-align: baseline;&quot;&gt;
Para cerrar físicamente la conexión a base de datos,
se podría utilizar “ClearPool”, en el siguiente ejemplo se usa el comando
dentro del catch para que cierre la conexión si se produce algún error en la
aplicación.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 15.75pt; margin-bottom: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: rgb(13, 13, 13); margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: #569cd6; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;catch&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;
(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: #4ec9b0; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;Exception&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;ex&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: rgb(13, 13, 13); margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: rgb(13, 13, 13); margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: #4ec9b0; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;SqlConnection&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: #b4b4b4; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;.&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;ClearPool&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;connection&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; line-height: 115%;&quot;&gt;

























&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: rgb(13, 13, 13); line-height: 15.75pt; margin-bottom: 0cm; mso-background-themecolor: text1; mso-background-themetint: 242; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;background: black; color: gainsboro; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/8459265125069680433'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/8459265125069680433'/><link rel='alternate' type='text/html' href='http://ayudaenprogramacionaa.blogspot.com/2016/09/abortar-conexion-sql-server-desde-net.html' title='Abortar conexión SQL SERVER desde .NET'/><author><name>AA+</name><uri>http://www.blogger.com/profile/08683961603580889031</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3696343872442188554.post-2395619363872320687</id><published>2016-09-13T16:12:00.004+02:00</published><updated>2022-04-13T15:59:07.526+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="git"/><category scheme="http://www.blogger.com/atom/ns#" term="gitolite"/><title type='text'>Gestión de repositorios GIT con GITOLITE</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://www.pixelninja.me/wp-content/uploads/2016/05/git-logo.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;300&quot; data-original-width=&quot;700&quot; height=&quot;86&quot; src=&quot;https://www.pixelninja.me/wp-content/uploads/2016/05/git-logo.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Para la creación de repositorios, existe un archivo llamado
gitolite.conf que contiene toda la información de los repositorios y los
permisos según un usuario o un grupo de usuarios.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Para la gestionar los repositorios, es necesario iniciar
sesión con el usuario gitolite3, para ello:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;su gitolite3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;[SIN CONTRASEÑA]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Ahora debemos abrir el archivo gitolite.conf:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;vi ~/gitolite-admin/conf/gitolite.conf&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
En el archivo aparecerán los diferentes repositorios con los
permisos correspondientes a usuarios o grupos de usuarios:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background-color: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 16px; line-height: 18.4px;&quot;&gt;repo gitolite-admin &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background-color: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 16px; line-height: 18.4px;&quot;&gt;&amp;nbsp; &amp;nbsp; RW+ &amp;nbsp;= &amp;nbsp; gitadmin &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background-color: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 16px; line-height: 18.4px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background-color: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 16px; line-height: 18.4px;&quot;&gt;repo testing &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background-color: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 16px; line-height: 18.4px;&quot;&gt;&amp;nbsp; &amp;nbsp; RW+ &amp;nbsp;= &amp;nbsp; @all &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background-color: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 16px; line-height: 18.4px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background-color: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 16px; line-height: 18.4px;&quot;&gt;repo prueba &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background-color: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 16px; line-height: 18.4px;&quot;&gt;&amp;nbsp; &amp;nbsp;RW+ = usuario1 &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background-color: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 16px; line-height: 18.4px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background-color: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 16px; line-height: 18.4px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Se encuentran creados los siguientes repositorios:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -18pt;&quot;&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;symbol&amp;quot;; text-indent: -18pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-indent: -18pt;&quot;&gt;Gitolite-admin: El usuario gitadmin tiene
permisos totales.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;symbol&amp;quot;; text-indent: -18pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-indent: -18pt;&quot;&gt;Testing: Todos los usuarios tienen permisos
totales.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;symbol&amp;quot;; text-indent: -18pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-indent: -18pt;&quot;&gt;Prueba: Solo el usuario “usuario1” tiene
permisos totales.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;!--[if !supportLists]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -18pt;&quot;&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -18pt;&quot;&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;NOTA:&lt;/b&gt; Para crear
un nuevo repositorio se deberá crear una nueva línea en el archivo con el
formato que se encuentra en la imagen anterior. Los permisos para cada
repositorio se configuran con los mismos comandos que Linux (R:Solo lectura,
RW: Lectura y escritura, etc.) &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Se deberán guardar los cambios en el archivo.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Ahora, vamos a gitolite-admin&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;a href=&quot;https://www.server-world.info/en/command/html/cd.html&quot;&gt;&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%; text-decoration: none;&quot;&gt;cd&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;&amp;nbsp;~/gitolite-admin&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Hacemos commit de los cambios efectuados:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;git commit -a -m &quot;Se ha agregado el repositorio &amp;lt;nombre_repo&amp;gt;&quot;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;git push&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/2395619363872320687'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/2395619363872320687'/><link rel='alternate' type='text/html' href='http://ayudaenprogramacionaa.blogspot.com/2016/09/gestion-de-repositorios-git-con-gitolite.html' title='Gestión de repositorios GIT con GITOLITE'/><author><name>AA+</name><uri>http://www.blogger.com/profile/08683961603580889031</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3696343872442188554.post-2910409255375490671</id><published>2016-09-13T16:04:00.003+02:00</published><updated>2022-04-13T15:58:43.973+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="git"/><title type='text'>Clonar repositorios GIT</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://www.pixelninja.me/wp-content/uploads/2016/05/git-logo.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;300&quot; data-original-width=&quot;700&quot; height=&quot;86&quot; src=&quot;https://www.pixelninja.me/wp-content/uploads/2016/05/git-logo.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Para clonar un reposito de git, debemos iniciar sesión con
el usuario que trabajará con el repositorio, para ello:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;su &amp;lt;nombre_usuario&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;[Ingresar contraseña]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Establecer conexión con el servidor de git:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;ssh &amp;lt;Servidor_Git&amp;gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Clonar el repositorio deseado:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;git clone ssh://&lt;span style=&quot;line-height: 18.4px;&quot;&gt;&amp;lt;Servidor_Git&amp;gt;&lt;/span&gt;/&amp;lt;Nombre_Repositorio&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/2910409255375490671'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/2910409255375490671'/><link rel='alternate' type='text/html' href='http://ayudaenprogramacionaa.blogspot.com/2016/09/clonar-repositorios-git.html' title='Clonar repositorios GIT'/><author><name>AA+</name><uri>http://www.blogger.com/profile/08683961603580889031</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3696343872442188554.post-1812715310976876255</id><published>2016-09-13T16:02:00.002+02:00</published><updated>2022-04-13T15:58:30.857+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="centos7"/><category scheme="http://www.blogger.com/atom/ns#" term="git"/><category scheme="http://www.blogger.com/atom/ns#" term="gitolite"/><title type='text'>Instalar GITOLITE en CentOs7</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://www.pixelninja.me/wp-content/uploads/2016/05/git-logo.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;300&quot; data-original-width=&quot;700&quot; height=&quot;86&quot; src=&quot;https://www.pixelninja.me/wp-content/uploads/2016/05/git-logo.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;h2&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;_Toc460855836&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Instalar el repositorio EPEL(Extra Packages for
Enterprise Linux):&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/h2&gt;
&lt;div style=&quot;background: rgb(5, 30, 48); border-left: solid #289FF4 3.0pt; border: 1pt solid rgb(40, 159, 244); mso-border-alt: solid #289FF4 .75pt; mso-border-left-alt: solid #289FF4 3.0pt; mso-element: para-border-div; padding: 8pt 8pt 8pt 14pt;&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; line-height: 14.25pt; margin-bottom: 0.0001pt; padding: 0cm; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;border: 1pt none; color: white; font-family: &amp;quot;inherit&amp;quot; , &amp;quot;serif&amp;quot;; font-size: 10pt; padding: 0cm;&quot;&gt;## RHEL/CentOS 7 64-Bit ##&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: white; font-family: &amp;quot;courier&amp;quot;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; line-height: 14.25pt; margin-bottom: 0.0001pt; padding: 0cm; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: white; font-family: &amp;quot;courier&amp;quot;; font-size: 10pt;&quot;&gt;# wget
http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-8.noarch.rpm&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; line-height: 14.25pt; margin-bottom: 0.0001pt; padding: 0cm; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: white; font-family: &amp;quot;courier&amp;quot;; font-size: 10pt;&quot;&gt;# rpm -ivh epel-release-7-8.noarch.rpm&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h2&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;_Toc460855837&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Instalar
Gitolite&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;a href=&quot;https://www.server-world.info/en/command/html/yum.html&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , &amp;quot;sans-serif&amp;quot;&quot; style=&quot;background: black; color: yellow; font-size: 10pt; letter-spacing: 0.75pt; line-height: 115%;&quot;&gt;yum&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , &amp;quot;sans-serif&amp;quot;&quot; style=&quot;background: black; color: #66ff99; letter-spacing: 0.75pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , &amp;quot;sans-serif&amp;quot;&quot; style=&quot;background: black; color: #66ff99; font-size: 10pt; letter-spacing: 0.75pt; line-height: 115%;&quot;&gt;--enablerepo=epel -y
install gitolite3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , &amp;quot;sans-serif&amp;quot;&quot; style=&quot;background: black; color: #66ff99; font-size: 10pt; letter-spacing: 0.75pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Para configurar Gitolite3, debemos iniciar sesión con el
usuario gitolite3:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;a href=&quot;https://www.server-world.info/en/command/html/su.html&quot;&gt;&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%; text-decoration: none;&quot;&gt;su&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;&amp;nbsp;- gitolite3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;[SIN CONTRASEÑA]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Generar la clave ssh para el administrador de GIT:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;ssh-keygen -f ~/.ssh/gitadmin&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;gitolite setup -pk ~/.ssh/gitadmin.pub&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Configuramos el servidor de Git para el usuario:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;a href=&quot;https://www.server-world.info/en/command/html/vi.html&quot;&gt;&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%; text-decoration: none;&quot;&gt;vi&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;&amp;nbsp;~/.ssh/config&lt;/span&gt;&lt;span style=&quot;color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Agregamos lo siguiente y guardamos:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;host GitServer (Cambiar)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;user gitolite3 &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;hostname 10.10.8.120 (Cambiar)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;port 22 (Cambiar)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;identityfile ~/.ssh/gitadmin&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Ejecutamos los siguientes comandos:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;a href=&quot;https://www.server-world.info/en/command/html/chmod.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%; text-decoration: none;&quot;&gt;chmod&lt;/span&gt;&lt;/a&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;&amp;nbsp;600 ~/.ssh/config&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;git config --global user.name
&quot;gitolite3&quot;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;git config --global user.email
&quot;gitolite3@srv.world&quot;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;git config --global push.default
simple&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Para finalizar clonamos el repositorio para el
administrador:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;git clone
ssh://GitServer/gitolite-admin&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/1812715310976876255'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/1812715310976876255'/><link rel='alternate' type='text/html' href='http://ayudaenprogramacionaa.blogspot.com/2016/09/instalar-gitolite-en-centos7.html' title='Instalar GITOLITE en CentOs7'/><author><name>AA+</name><uri>http://www.blogger.com/profile/08683961603580889031</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3696343872442188554.post-4048713519847110963</id><published>2016-09-13T15:58:00.001+02:00</published><updated>2022-04-13T15:58:02.465+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="centos7"/><category scheme="http://www.blogger.com/atom/ns#" term="git"/><title type='text'>Instalar GIT en CentOs7</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://www.pixelninja.me/wp-content/uploads/2016/05/git-logo.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;300&quot; data-original-width=&quot;700&quot; height=&quot;86&quot; src=&quot;https://www.pixelninja.me/wp-content/uploads/2016/05/git-logo.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;
Para instalar GIT en un servidor Linux bajo CentOs 7,
debemos seguir los siguientes pasos:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Actualizamos los paquetes existentes, para que la última
versión de GIT funcione correctamente:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;yum -y update&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Instalamos GIT:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;yum -y install git&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Configuramos el user.name y el user.email:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;git config --global user.name &quot;&amp;lt;nombre_usuario&amp;gt;&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;git config --global user.email &quot;&amp;lt;correo&amp;gt;&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Podemos ver la configuración de git:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;git config –list&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background: black; color: white; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/4048713519847110963'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/4048713519847110963'/><link rel='alternate' type='text/html' href='http://ayudaenprogramacionaa.blogspot.com/2016/09/instalar-git-en-centos7.html' title='Instalar GIT en CentOs7'/><author><name>AA+</name><uri>http://www.blogger.com/profile/08683961603580889031</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3696343872442188554.post-8761473471181594787</id><published>2016-04-27T11:01:00.001+02:00</published><updated>2022-04-13T15:57:36.432+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cmd"/><category scheme="http://www.blogger.com/atom/ns#" term="IIS"/><title type='text'>Configurar IIS App cmd</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
En ocasiones es necesario desplegar la configuración IIS de
una aplicación o servicio a través de comandos app cmd.&amp;nbsp; En el siguiente ejemplo, vamos a desplegar la
configuración IIS de una aplicación llamada “&lt;b&gt;App&lt;/b&gt;” desplegada en el “&lt;b&gt;Default
Web Site&lt;/b&gt;”&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiofsivQ_OzZCMz7KG3Px46jFcYGBgcOjnAaMfR3-0Sg58x1ArgllXd_nkeL-eZ4t27bELaYisKrKs49UrWXquBZFkz8scK7c7lXdbVien4EKtWAKkVlZFIxkJRh5OROJNdlwIvRTK_VYM/s1600/Sin+t%25C3%25ADtulo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiofsivQ_OzZCMz7KG3Px46jFcYGBgcOjnAaMfR3-0Sg58x1ArgllXd_nkeL-eZ4t27bELaYisKrKs49UrWXquBZFkz8scK7c7lXdbVien4EKtWAKkVlZFIxkJRh5OROJNdlwIvRTK_VYM/s1600/Sin+t%25C3%25ADtulo.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
A continuación, se presentarán un conjunto de comandos para
configurar el IIS, en los que se deberá cambiar &lt;i&gt;&quot;Default Web Site/App&quot; &lt;/i&gt;por el nombre de la aplicación que
se deseamos configurar.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;u&gt;Autenticación:&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;mso-list: l2 level1 lfo1; text-indent: -18.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &amp;quot;symbol&amp;quot;; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;Autenticación
Windows (Windows Authentication):&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #A6A6A6; mso-background-themecolor: background1; mso-background-themeshade: 166;&quot;&gt;
&lt;i&gt;&lt;span lang=&quot;EN-US&quot;&gt;appcmd unlock config
/section:windowsAuthentication&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #A6A6A6; mso-background-themecolor: background1; mso-background-themeshade: 166;&quot;&gt;
&lt;i&gt;&lt;span lang=&quot;EN-US&quot;&gt;appcmd set config &quot;Default Web
Site/App&quot; /section:windowsAuthentication /enabled:true&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;mso-list: l2 level1 lfo1; text-indent: -18.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;symbol&amp;quot;; mso-ansi-language: EN-US; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;Autenticación Básica (Basic
Authentication):&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #A6A6A6; mso-background-themecolor: background1; mso-background-themeshade: 166;&quot;&gt;
&lt;i&gt;&lt;span lang=&quot;EN-US&quot;&gt;appcmd unlock config /section:basicAuthentication&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #A6A6A6; mso-background-themecolor: background1; mso-background-themeshade: 166;&quot;&gt;
&lt;i&gt;&lt;span lang=&quot;EN-US&quot;&gt;appcmd set config &quot;Default Web
Site/App&quot; /section: basicAuthentication /enabled:true&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;mso-list: l2 level1 lfo1; text-indent: -18.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;symbol&amp;quot;; mso-ansi-language: EN-US; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;Autenticación Anónima (Anonymous Authentication):&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #A6A6A6; mso-background-themecolor: background1; mso-background-themeshade: 166;&quot;&gt;
&lt;i&gt;&lt;span lang=&quot;EN-US&quot;&gt;appcmd unlock config /section:anonymousAuthentication&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #A6A6A6; mso-background-themecolor: background1; mso-background-themeshade: 166;&quot;&gt;
&lt;i&gt;&lt;span lang=&quot;EN-US&quot;&gt;appcmd set config &quot;Default Web
Site/App&quot; /section:anonymousAuthentication /enabled:true&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;mso-list: l2 level1 lfo1; text-indent: -18.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;symbol&amp;quot;; mso-ansi-language: EN-US; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;Autenticación Forms (Forms Authentication):&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #A6A6A6; mso-background-themecolor: background1; mso-background-themeshade: 166;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;appcmd
set config &quot;Default Web Site/App&quot; /commit:WEBROOT /section:system.web/authentication
/mode:Forms&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;span lang=&quot;EN-US&quot;&gt;Certificado de cliente (SSL):&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #A6A6A6; mso-background-themecolor: background1; mso-background-themeshade: 166;&quot;&gt;
&lt;i&gt;&lt;span lang=&quot;EN-US&quot;&gt;appcmd set config &quot;Default Web
Site/App&quot; -section:system.webServer/security/access /sslFlags:&quot;&lt;span style=&quot;color: #e46c0a; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-color: #E46C0A; mso-style-textfill-fill-colortransforms: lumm=75000; mso-style-textfill-fill-themecolor: accent6; mso-themecolor: accent6; mso-themeshade: 191;&quot;&gt;Opcion&lt;/span&gt;&quot;
/commit:apphost&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;Debemos
sustituir &lt;i&gt;&lt;span style=&quot;color: #e46c0a; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-color: #E46C0A; mso-style-textfill-fill-colortransforms: lumm=75000; mso-style-textfill-fill-themecolor: accent6; mso-themecolor: accent6; mso-themeshade: 191;&quot;&gt;Opcion&lt;/span&gt;&lt;/i&gt; por:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;mso-list: l0 level1 lfo2; text-indent: -18.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;symbol&amp;quot;; mso-ansi-language: EN-US; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;Sin Certificado SSL:&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot;&gt; &lt;i&gt;&lt;span style=&quot;color: #e46c0a; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-color: #E46C0A; mso-style-textfill-fill-colortransforms: lumm=75000; mso-style-textfill-fill-themecolor: accent6; mso-themecolor: accent6; mso-themeshade: 191;&quot;&gt;None&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo2; text-indent: -18.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;symbol&amp;quot;; mso-ansi-language: EN-US; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;Con Certificado SSL:&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot;&gt; &lt;i&gt;&lt;span style=&quot;color: #e46c0a; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-color: #E46C0A; mso-style-textfill-fill-colortransforms: lumm=75000; mso-style-textfill-fill-themecolor: accent6; mso-themecolor: accent6; mso-themeshade: 191;&quot;&gt;Ssl&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo2; text-indent: -18.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;symbol&amp;quot;; mso-ansi-language: EN-US; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;Aceptar Certificado:&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot;&gt; &lt;i&gt;&lt;span style=&quot;color: #e46c0a; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-color: #E46C0A; mso-style-textfill-fill-colortransforms: lumm=75000; mso-style-textfill-fill-themecolor: accent6; mso-themecolor: accent6; mso-themeshade: 191;&quot;&gt;SslNegotiateCert&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;mso-list: l0 level1 lfo2; text-indent: -18.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;symbol&amp;quot;; mso-ansi-language: EN-US; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;Requerir Certificado:&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot;&gt; &lt;i&gt;&lt;span style=&quot;color: #e46c0a; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-color: #E46C0A; mso-style-textfill-fill-colortransforms: lumm=75000; mso-style-textfill-fill-themecolor: accent6; mso-themecolor: accent6; mso-themeshade: 191;&quot;&gt;SslRequireCert&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
También podremos combinar opciones, por ejemplo:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;mso-list: l1 level1 lfo3; text-indent: -18.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &amp;quot;symbol&amp;quot;; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;Con
Certificado y Requerir Certificado:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #A6A6A6; mso-background-themecolor: background1; mso-background-themeshade: 166;&quot;&gt;
&lt;i&gt;&lt;span lang=&quot;EN-US&quot;&gt;appcmd set config &quot;Default Web
Site/App&quot; -section:system.webServer/security/access /sslFlags:&quot;&lt;span style=&quot;color: #e46c0a; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-color: #E46C0A; mso-style-textfill-fill-colortransforms: lumm=75000; mso-style-textfill-fill-themecolor: accent6; mso-themecolor: accent6; mso-themeshade: 191;&quot;&gt;Ssl, SslRequireCert&lt;/span&gt;
&quot; /commit:apphost&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;mso-list: l1 level1 lfo3; text-indent: -18.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &amp;quot;symbol&amp;quot;; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;Con
Certificado y Aceptar Certificado:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #A6A6A6; mso-background-themecolor: background1; mso-background-themeshade: 166;&quot;&gt;
&lt;i&gt;&lt;span lang=&quot;EN-US&quot;&gt;appcmd set config &quot;Default Web
Site/App&quot; -section:system.webServer/security/access /sslFlags:&quot;&lt;span style=&quot;color: #e46c0a; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-color: #E46C0A; mso-style-textfill-fill-colortransforms: lumm=75000; mso-style-textfill-fill-themecolor: accent6; mso-themecolor: accent6; mso-themeshade: 191;&quot;&gt;Ssl, SslNegotiateCert&lt;/span&gt;
&quot; /commit:apphost&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;span lang=&quot;EN-US&quot;&gt;Página de Inicio:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Para establecer una página de inicio en la aplicación
debemos utilizar el siguiente comando:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #A6A6A6; mso-background-themecolor: background1; mso-background-themeshade: 166;&quot;&gt;
&lt;i&gt;&lt;span lang=&quot;EN-US&quot;&gt;appcmd set config &quot;Default Web
Site/App&quot; /section:defaultDocument /enabled:true /+files.[value=&lt;span style=&quot;color: #e46c0a; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-color: #E46C0A; mso-style-textfill-fill-colortransforms: lumm=75000; mso-style-textfill-fill-themecolor: accent6; mso-themecolor: accent6; mso-themeshade: 191;&quot;&gt;&#39;NombrePaginaInicio&#39;&lt;/span&gt;]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Debemos sustituir &lt;i&gt;&lt;span style=&quot;color: #e46c0a; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-color: #E46C0A; mso-style-textfill-fill-colortransforms: lumm=75000; mso-style-textfill-fill-themecolor: accent6; mso-themecolor: accent6; mso-themeshade: 191;&quot;&gt;&#39;NombrePaginaInicio&#39;
&lt;/span&gt;&lt;/i&gt;por el nombre de la página que queremos establecer como inicio
(Ejemplo: Inicio.aspx, Inicio.php, etc).&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Para cualquier otra configuración, envíanos un comentario
con tus dudas.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/8761473471181594787'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/8761473471181594787'/><link rel='alternate' type='text/html' href='http://ayudaenprogramacionaa.blogspot.com/2016/04/en-ocasiones-es-necesario-desplegar-la.html' title='Configurar IIS App cmd'/><author><name>AA+</name><uri>http://www.blogger.com/profile/08683961603580889031</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiofsivQ_OzZCMz7KG3Px46jFcYGBgcOjnAaMfR3-0Sg58x1ArgllXd_nkeL-eZ4t27bELaYisKrKs49UrWXquBZFkz8scK7c7lXdbVien4EKtWAKkVlZFIxkJRh5OROJNdlwIvRTK_VYM/s72-c/Sin+t%25C3%25ADtulo.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3696343872442188554.post-5740909473042685572</id><published>2016-03-21T12:29:00.002+01:00</published><updated>2022-04-13T15:57:21.682+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="tfs"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio"/><title type='text'>Eliminar Elementos de Trabajo del TFS</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://ahorasomos.izertis.com/globetesting/wp-content/uploads/2019/01/42dc845639f2d265d9f16bcc201110b3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;450&quot; data-original-width=&quot;450&quot; height=&quot;200&quot; src=&quot;https://ahorasomos.izertis.com/globetesting/wp-content/uploads/2019/01/42dc845639f2d265d9f16bcc201110b3.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
En algunas ocasiones necesitamos eliminar un elemento de trabajo, que hemos creado con algún error.&lt;br /&gt;
&lt;br /&gt;
Para ello, debemos seguir los siguientes pasos:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;b&gt;&lt;u&gt;&amp;nbsp;Abrir la consola de Visual Studio&lt;/u&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt;
Todos los programas -&amp;gt; Microsoft Visual Studio X -&amp;gt; Visual Studio Tools -&amp;gt; Símbolo de 
Sistema para Visual Studio X&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; 2. &lt;b&gt;&lt;u&gt;Utilizar el comando&amp;nbsp;witadmin destroywi&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;background-color: lightgrey;&quot;&gt;witadmin destroywi 
/collection:&lt;span style=&quot;color: #365f91;&quot;&gt; URLColeccion&lt;/span&gt; /id:&lt;span style=&quot;color: #365f91;&quot;&gt;id&lt;/span&gt;&lt;/span&gt; &lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Sustituimos &quot;URLColeccion&quot; y &quot;Id&quot; con el url de la colección en la que se encuentra el elemento de trabajo que deseamos eliminar y su Id.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Ejemplo:&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: silver;&quot;&gt;&lt;strong&gt;witadmin destroywi 
/collection:&lt;/strong&gt; &lt;a href=&quot;http://vsrv30.mityc.age:8080/tfs/ad%20horizontales&quot;&gt;&lt;span style=&quot;color: #365f91;&quot;&gt;&lt;strong&gt;http://serv1:8080/tfs/Apps%20Negocio&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style=&quot;color: #365f91;&quot;&gt;&amp;nbsp;&lt;/span&gt;/id:&lt;span style=&quot;color: #365f91;&quot;&gt;4&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;strong&gt; &lt;/strong&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: silver;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: #365f91;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;El ejemplo anterior eliminar el elemento de trabajo con Id &quot;4&quot;, de la colección &quot;Apps Negocio&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;background-color: lightgrey;&quot;&gt;&lt;span style=&quot;color: #365f91;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;background-color: lightgrey;&quot;&gt;&lt;span style=&quot;color: #365f91;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/5740909473042685572'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/5740909473042685572'/><link rel='alternate' type='text/html' href='http://ayudaenprogramacionaa.blogspot.com/2016/03/eliminar-elementos-de-trabajo-del-tfs.html' title='Eliminar Elementos de Trabajo del TFS'/><author><name>AA+</name><uri>http://www.blogger.com/profile/08683961603580889031</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3696343872442188554.post-1903995060560380034</id><published>2016-02-04T10:31:00.003+01:00</published><updated>2022-04-13T15:56:16.555+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><title type='text'>Pasar constantes o variables del servidor a javascript</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://www.programandoamedianoche.com/wp-content/uploads/2008/09/asp.net_.logo_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;400&quot; data-original-width=&quot;526&quot; height=&quot;152&quot; src=&quot;https://www.programandoamedianoche.com/wp-content/uploads/2008/09/asp.net_.logo_.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;
En algunos casos necesitamos pasar constantes o variables de servidor a javascript.&lt;br /&gt;
&lt;br /&gt;
Por ejemplo:&lt;br /&gt;
&lt;br /&gt;
Tenemos en el code behind una propiedad que deseamos pasar a javascript:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;public string IDIdioma&amp;nbsp;{ get; set; }&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
El IDIdioma se declara y su valor es asignado en un aspx.cs, ahora en el .aspx debemos crear una variable en javascript y asignarle el valor de IDIdioma:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var constantes = {&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; idIdioma: &amp;lt;%= IdIdioma %&amp;gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;lt;/script&amp;gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Una vez asignado el valor a&amp;nbsp;&lt;b&gt;idIdioma&lt;/b&gt;a través de&amp;nbsp;&lt;b&gt;&amp;lt;%= IdIdioma %&amp;gt; &lt;/b&gt;podemos utilizar la constante en cualquier .js externo.&lt;br /&gt;
&lt;br /&gt;
Si tenemos &lt;b&gt;funciones.js&lt;/b&gt; importado en nuestro aspx:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;&amp;lt;%= Page.ResolveUrl(&quot;~/Scripts/funciones.js&quot;) %&amp;gt;&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
Podemos tener acceso a la constante con el siguiente código:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;constantes.idIdioma&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
Así podremos pasar variables, propiedades y constantes desde el servidor a nuestros archivos javascript.&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/1903995060560380034'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/1903995060560380034'/><link rel='alternate' type='text/html' href='http://ayudaenprogramacionaa.blogspot.com/2016/02/pasar-constantes-o-variables-del.html' title='Pasar constantes o variables del servidor a javascript'/><author><name>AA+</name><uri>http://www.blogger.com/profile/08683961603580889031</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3696343872442188554.post-2949160580783651029</id><published>2015-01-29T08:55:00.002+01:00</published><updated>2022-04-13T15:53:33.751+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><category scheme="http://www.blogger.com/atom/ns#" term="mvc"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL SERVER"/><title type='text'>Cadena de conexión (Connection String) Web.config (.NET – SQL SERVER)</title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;img src=&quot;https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcRPVl4wOiRkKuatdKHiw1zk0j5M2CIVwOO2Vsoe38s1VikpoWXdQA&quot; /&gt;&lt;/div&gt;
Para conectarnos a base de datos necesitamos agregar la cadena de conexión en el web.config, y si estamos trabajando en un proyecto con múltiples entornos, es posible, que tengamos una base de datos de desarrollo, mantenimiento y producción.&lt;br /&gt;
&lt;br /&gt;
En el siguiente ejemplo, tendremos tres (3) cadenas de conexión que agregaremos en el web.config: &lt;connectionstrings&gt;&lt;/connectionstrings&gt;

&lt;br /&gt;
&lt;div class=&quot;codigo-fuente&quot;&gt;
&lt;pre class=&quot;cscode&quot;&gt;&lt;code&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;cscode&quot;&gt;&lt;code&gt;&amp;lt;connectionStrings&amp;gt;
    &amp;lt;add name=&lt;span class=&quot;str&quot;&gt;&quot;Desarrollo&quot;&lt;/span&gt; connectionString=&lt;span class=&quot;str&quot;&gt;&quot;&amp;lt;Cadena-de-conexion&amp;gt;&quot;&lt;/span&gt;/&amp;gt;
    &amp;lt;add name=&lt;span class=&quot;str&quot;&gt;&quot;Mantenimiento&quot;&lt;/span&gt; connectionString=&lt;span class=&quot;str&quot;&gt;&quot;&amp;lt;Cadena-de-conexion&amp;gt;&quot;&lt;/span&gt;/&amp;gt;
    &amp;lt;add name=&lt;span class=&quot;str&quot;&gt;&quot;Produccion&quot;&lt;/span&gt; connectionString=&lt;span class=&quot;str&quot;&gt;&quot;&amp;lt;Cadena-de-conexion&amp;gt;&quot;&lt;/span&gt;/&amp;gt;
&amp;lt;/connectionStrings&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
Ahora podemos ingresar cada uno de nuestras cadenas de conexión como un appSettings&lt;br /&gt;
&lt;pre class=&quot;cscode&quot;&gt;&lt;code&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;cscode&quot;&gt;&lt;code&gt;&amp;lt;appSettings&amp;gt;
    &amp;lt;add key=&lt;span class=&quot;str&quot;&gt;&quot;EntornoDesarrollo&quot;&lt;/span&gt; value=&lt;span class=&quot;str&quot;&gt;&quot;Desarrollo&quot;&lt;/span&gt;/&amp;gt;
    &amp;lt;add key=&lt;span class=&quot;str&quot;&gt;&quot;EntornoMantenimiento&quot;&lt;/span&gt; value=&lt;span class=&quot;str&quot;&gt;&quot;Mantenimiento&quot;&lt;/span&gt;/&amp;gt;
    &amp;lt;add key=&lt;span class=&quot;str&quot;&gt;&quot;EntornoProducción&quot;&lt;/span&gt; value=&lt;span class=&quot;str&quot;&gt;&quot;Producción&quot;&lt;/span&gt;/&amp;gt;
&amp;lt;/appSettings&amp;gt;

&lt;/code&gt;&lt;/pre&gt;
Y para obtener la cadena de conexión de la base de datos que deseemos:
&lt;br /&gt;
&lt;pre class=&quot;cscode&quot;&gt;&lt;code&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;cscode&quot;&gt;&lt;code&gt;String entornoDesarrollo;
String entornoMantenimiento;
String entornoProducción;
String cadenaConexion;

&lt;span class=&quot;com&quot;&gt;//Entorno de desarrollo&lt;/span&gt;
entornoDesarrollo = ConfigurationManager.AppSettings[&lt;span class=&quot;str&quot;&gt;&quot;EntornoDesarrollo&quot;&lt;/span&gt;];
cadenaConexion = ConfigurationManager.ConnectionStrings[entornoDesarrollo].ConnectionString;
&lt;span class=&quot;com&quot;&gt;//Entorno de mantenimiento&lt;/span&gt;
entornoMantenimiento = ConfigurationManager.AppSettings[&lt;span class=&quot;str&quot;&gt;&quot;EntornoMantenimiento&quot;&lt;/span&gt;];
cadenaConexion = ConfigurationManager.ConnectionStrings[entornoMantenimiento].ConnectionString;
&lt;span class=&quot;com&quot;&gt;//Entorno de producción&lt;/span&gt;
entornoProducción = ConfigurationManager.AppSettings[&lt;span class=&quot;str&quot;&gt;&quot;EntornoProducción &quot;&lt;/span&gt;];
cadenaConexion = ConfigurationManager.ConnectionStrings[entornoProducción].ConnectionString;
&lt;/code&gt;&lt;/pre&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/2949160580783651029'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/2949160580783651029'/><link rel='alternate' type='text/html' href='http://ayudaenprogramacionaa.blogspot.com/2015/01/cadena-de-conexion-connection-string.html' title='Cadena de conexión (Connection String) Web.config (.NET – SQL SERVER)'/><author><name>AA+</name><uri>http://www.blogger.com/profile/08683961603580889031</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3696343872442188554.post-3359216974437472306</id><published>2015-01-20T19:45:00.001+01:00</published><updated>2022-04-13T15:53:10.613+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><category scheme="http://www.blogger.com/atom/ns#" term="mvc"/><title type='text'>Importar librerías - .NET MVC RAZOR</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcRPVl4wOiRkKuatdKHiw1zk0j5M2CIVwOO2Vsoe38s1VikpoWXdQA&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcRPVl4wOiRkKuatdKHiw1zk0j5M2CIVwOO2Vsoe38s1VikpoWXdQA&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Para importar librerías en un proyecto de&amp;nbsp;.NET MVC RAZOR, es muy recomendable utilizar Url.Content para resolver las rutas relativas.&lt;br /&gt;
&lt;br /&gt;
A continuación el ejemplo:&lt;br /&gt;
&lt;br /&gt;
Si queremos importar una librería de JQuery:&lt;br /&gt;
&amp;lt;script src=&quot;@Url.Content(&quot;~/Scripts/jquery-1.8.2.intellisense.js&quot;)&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Si queremos importar un archivo css:&lt;br /&gt;
&amp;lt;link href=&quot;@Url.Content(&quot;~/Content/Site.css&quot;)&quot; rel=&quot;stylesheet&quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Así nos olvidamos de jugar con rutas relativas y mucho menos, de poner rutas absolutas.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/3359216974437472306'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/3359216974437472306'/><link rel='alternate' type='text/html' href='http://ayudaenprogramacionaa.blogspot.com/2015/01/importar-librerias-net-mvc-razor.html' title='Importar librerías - .NET MVC RAZOR'/><author><name>AA+</name><uri>http://www.blogger.com/profile/08683961603580889031</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3696343872442188554.post-6988559450765518965</id><published>2015-01-20T19:36:00.001+01:00</published><updated>2022-04-13T15:52:53.130+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><category scheme="http://www.blogger.com/atom/ns#" term="mvc"/><title type='text'>_Layout.cshtml - .NET MVC RAZOR</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcRPVl4wOiRkKuatdKHiw1zk0j5M2CIVwOO2Vsoe38s1VikpoWXdQA&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcRPVl4wOiRkKuatdKHiw1zk0j5M2CIVwOO2Vsoe38s1VikpoWXdQA&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Cuando empezamos un proyecto web en&amp;nbsp;.NET MVC, y comenzamos a diseñar nuestras vistas debemos saber que es el _Layout.&lt;br /&gt;
&lt;br /&gt;
De una manera sencilla, el _Layout es una página maestra (Padre) de la cual descienden todas las vistas (Hijos) que deseemos.&lt;br /&gt;
&lt;br /&gt;
Si por ejemplo, queremos que el header y footer aparezcan en nuestras todas nuestras vistas, no es necesario copiar y pegar en cada una de ellas. &amp;nbsp;Para ello, declaramos nuestro header y footer en el _Layout y creamos nuestras vistas utilizando de página maestra al _Layout.&lt;br /&gt;
&lt;br /&gt;
Por ejemplo:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!DOCTYPE html&amp;gt;&lt;br /&gt;
&amp;lt;html lang=&quot;es&quot;&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;meta charset=&quot;utf-8&quot; /&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;title&amp;gt;@ViewBag.Title - Mi aplicación ASP.NET MVC&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;link href=&quot;~/favicon.ico&quot; rel=&quot;shortcut icon&quot; type=&quot;image/x-icon&quot; /&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;link href=&quot;//netdna.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css&quot; rel=&quot;stylesheet&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;meta name=&quot;viewport&quot; content=&quot;width=device-width&quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div id=&quot;header&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;h3&amp;gt;Mi aplicación .NET MVC&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div id=&quot;body&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;content-wrapper main-content clear-fix&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;@RenderBody()&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div id=&quot;footer&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;content-wrapper&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;float-left&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;&amp;amp;copy; @DateTime.Now.Year - Mi aplicación ASP.NET MVC&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Como podemos ver, tenemos nuestro _Layout con el header, body y footer. &lt;br /&gt;
&lt;br /&gt;
Ahora... En que parte del _Layout se hace referencia al contenido de nuestras vistas? En&amp;nbsp;&lt;b&gt;@RenderBody()&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
Al cargar una vista por pantalla, el _Layout siempre tendrá fijo el header y el footer, mientras que el body irá cambiando según la vista que se muestre a través del&amp;nbsp;&lt;b&gt;@RenderBody()&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/6988559450765518965'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/6988559450765518965'/><link rel='alternate' type='text/html' href='http://ayudaenprogramacionaa.blogspot.com/2015/01/layoutcshtml-net-mvc-razor.html' title='_Layout.cshtml - .NET MVC RAZOR'/><author><name>AA+</name><uri>http://www.blogger.com/profile/08683961603580889031</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3696343872442188554.post-2645866484133837213</id><published>2015-01-20T19:07:00.002+01:00</published><updated>2022-04-13T15:52:38.837+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><category scheme="http://www.blogger.com/atom/ns#" term="mvc"/><title type='text'>Diferencias entre ViewBag y ViewData - .NET MVC RAZOR</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcRPVl4wOiRkKuatdKHiw1zk0j5M2CIVwOO2Vsoe38s1VikpoWXdQA&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcRPVl4wOiRkKuatdKHiw1zk0j5M2CIVwOO2Vsoe38s1VikpoWXdQA&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Cuando nos iniciamos en .NET MVC , surge la primera duda... Pasar datos desde el controlador a la vista.&lt;br /&gt;
&lt;br /&gt;
Para ello debemos conocer ViewData y ViewBag, que son &quot;sacos&quot; para pasar información entre el controlador y la vista. &lt;br /&gt;
&lt;br /&gt;
Ahora veamos un ejemplo para el controlador &quot;Index&quot;:&lt;br /&gt;
&lt;br /&gt;
public ActionResult Index()&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ViewBag.Mensaje= &quot;Mi primer mensaje en MVC&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ViewData[&quot;Mensaje&quot;] = &quot;Mi primer mensaje en MVC&quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return View();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
Ahora, tenemos dos opciones para pasar el mismo valor. Que utilizamos? ViewBag ó ViewData?&lt;br /&gt;
&lt;br /&gt;
Aunque ambas tienen la misma funcionalidad, suelo utilizar el ViewBag por dos razones:&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;El código queda más limpio y es más rápido de escribir, evitando corchetes [].&lt;/li&gt;
&lt;li&gt;El ViewData es de tipo Object y hay que hacer cast en la vista para utilizarlo, mientras que el ViewBag se genera dinámicamente con el tipo de dato asignado.&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
Ahora, para completar el ejemplo veamos la vista:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;p&amp;gt;@ViewBag.Mensaje&amp;lt;/p&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;p&amp;gt;@ViewData[&quot;Mensaje&quot;]&amp;lt;/p&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/2645866484133837213'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/2645866484133837213'/><link rel='alternate' type='text/html' href='http://ayudaenprogramacionaa.blogspot.com/2015/01/diferencias-entre-viewbag-y-viewdata.html' title='Diferencias entre ViewBag y ViewData - .NET MVC RAZOR'/><author><name>AA+</name><uri>http://www.blogger.com/profile/08683961603580889031</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3696343872442188554.post-2850554767415769793</id><published>2015-01-12T08:58:00.004+01:00</published><updated>2022-04-13T15:50:55.422+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JQuery"/><title type='text'>Traducir al español JQuery UI - Datepicker</title><content type='html'>&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://brand.jquery.org/resources/jquery-mark-dark.gif&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;129&quot; src=&quot;http://brand.jquery.org/resources/jquery-mark-dark.gif&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
En muchos casos agregamos el JQuery Datepicker a nuestros
proyectos y no sabemos cómo traducir los textos al español.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Para empezar, debemos tener agregado a nuestro proyecto la
librería de JQuery Datepicker (&lt;a href=&quot;http://jqueryui.com/datepicker/&quot;&gt;http://jqueryui.com/datepicker/&lt;/a&gt;)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
En el código HTML debemos crear un campo de texto con la
clase &lt;i&gt;mi-fecha &lt;/i&gt;(Pueden poner el
nombre que deseen a la clase):&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&amp;lt;input class=&quot;&lt;i&gt;mi-fecha&lt;/i&gt;&quot; name=&quot;fecha&quot; value=&quot;&quot;
/&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
En el código JAVASCRIPT:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
//Código para realizar las traducciones:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;i&gt;$(document).ready(function
() {&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;i&gt;$.datepicker.regional[&#39;es&#39;] = {&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; closeText: &#39;Cerrar&#39;,&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; prevText: &#39;&amp;lt;Ant&#39;,&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nextText: &#39;Sig&amp;gt;&#39;,&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; currentText: &#39;Hoy&#39;,&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; monthNames: [&#39;Enero&#39;, &#39;Febrero&#39;,
&#39;Marzo&#39;, &#39;Abril&#39;, &#39;Mayo&#39;, &#39;Junio&#39;, &#39;Julio&#39;, &#39;Agosto&#39;, &#39;Septiembre&#39;, &#39;Octubre&#39;, &#39;Noviembre&#39;,
&#39;Diciembre&#39;],&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; monthNamesShort: [&#39;Ene&#39;, &#39;Feb&#39;,
&#39;Mar&#39;, &#39;Abr&#39;, &#39;May&#39;, &#39;Jun&#39;, &#39;Jul&#39;, &#39;Ago&#39;, &#39;Sep&#39;, &#39;Oct&#39;, &#39;Nov&#39;, &#39;Dic&#39;],&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dayNames: [&#39;Domingo&#39;, &#39;Lunes&#39;,
&#39;Martes&#39;, &#39;Miércoles&#39;, &#39;Jueves&#39;, &#39;Viernes&#39;, &#39;Sábado&#39;],&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dayNamesShort: [&#39;Dom&#39;, &#39;Lun&#39;,
&#39;Mar&#39;, &#39;Mié&#39;, &#39;Juv&#39;, &#39;Vie&#39;, &#39;Sáb&#39;],&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dayNamesMin: [&#39;Do&#39;, &#39;Lu&#39;,
&#39;Ma&#39;, &#39;Mi&#39;, &#39;Ju&#39;, &#39;Vi&#39;, &#39;Sá&#39;],&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; weekHeader: &#39;Sm&#39;,&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dateFormat: &#39;dd/mm/yy&#39;,&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; firstDay: 1,&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; isRTL: false,&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; showMonthAfterYear: false,&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yearSuffix: &#39;&#39;&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $.datepicker.setDefaults($.datepicker.regional[&#39;es&#39;]);&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
//Código para indicar que la clase &lt;i&gt;mi-fecha &lt;/i&gt;es un datepicker:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;i&gt;$(&quot;.mi-fecha&quot;).datepicker();&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;i&gt;});&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Con el ejemplo, obtendremos el calendario traducido al
español.&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/2850554767415769793'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/2850554767415769793'/><link rel='alternate' type='text/html' href='http://ayudaenprogramacionaa.blogspot.com/2015/01/agregar-y-traducir-al-espanol-jquery-ui.html' title='Traducir al español JQuery UI - Datepicker'/><author><name>AA+</name><uri>http://www.blogger.com/profile/08683961603580889031</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3696343872442188554.post-1210636723032297130</id><published>2011-09-08T04:34:00.001+02:00</published><updated>2022-04-13T15:50:18.565+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Oracle"/><category scheme="http://www.blogger.com/atom/ns#" term="PL/SQL"/><title type='text'>Triggers en PL/SQL</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://www.link.uma.es/wp-content/uploads/2018/01/oracle-logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;437&quot; data-original-width=&quot;800&quot; height=&quot;109&quot; src=&quot;https://www.link.uma.es/wp-content/uploads/2018/01/oracle-logo.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;Triggers en PL/SQL&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcRvpNOv79gNGe7bxjiHVjMmSOIIgm6o_z8uZZoIqjYIhC-tSe8B&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcRvpNOv79gNGe7bxjiHVjMmSOIIgm6o_z8uZZoIqjYIhC-tSe8B&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
En muchos casos es necesario la utilización de triggers, uno de los casos mas comunes&lt;br /&gt;
es la validación de los datos antes de ser insertados en la base de datos, la utilidad&lt;br /&gt;
de esto es dejar dicha carga de validación a los servidores donde se encuentra la base&lt;br /&gt;
de datos, y liberar la lógica del sistema de estas tareas.&lt;br /&gt;
&lt;br /&gt;
Declaración de un trigger&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;CREATE [OR REPLACE] TRIGGER &amp;lt;nombre_trigger&amp;gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;{BEFORE|AFTER}&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{DELETE|INSERT|UPDATE [OF col1, col2, ..., colN]&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[OR {DELETE|INSERT|UPDATE [OF col1, col2, ..., colN]...]}&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;ON &amp;lt;nombre_tabla&amp;gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;[FOR EACH ROW [WHEN (&amp;lt;condicion&amp;gt;)]]&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;DECLARE&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; -- variables locales&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;BEGIN&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; -- Sentencias&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;[EXCEPTION]&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; -- Sentencias control de excepcion &amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;END &amp;lt;nombre_trigger&amp;gt;;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Los triggers pueden definirse para las operaciones INSERT, UPDATE o DELETE, y pueden ejecutarse antes o después de la operación. &amp;nbsp; El modificador BEFORE AFTER indica que el trigger se ejecutará antes o después de ejecutarse la sentencia SQL definida por DELETE INSERT &amp;nbsp;UPDATE. Si incluimos el modificador OF el trigger solo se ejecutará cuando la sentencia SQL afecte a los campos incluidos en la lista.&lt;br /&gt;
&lt;br /&gt;
El alcance de los disparadores puede ser la fila o de orden. El modificador FOR EACH ROW indica que el trigger se disparará cada vez que se realizan operaciones sobre una fila de la tabla. Si se acompaña del modificador WHEN, se establece una restricción; el trigger solo actuará, sobre las filas que satisfagan la restricción.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;INSERT, DELETE, UPDATE&lt;/b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Define qué tipo de orden DML provoca la activación del disparador.&lt;br /&gt;
&lt;b&gt;BEFORE , AFTER&lt;/b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Define si el disparador se activa antes o después de que se ejecute la orden.&lt;br /&gt;
&lt;b&gt;FOR EACH ROW&lt;/b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Los disparadores con nivel de fila se activan una vez por cada fila afectada por la orden que provocó el disparo. Los disparadores con nivel de orden se activan sólo una vez, antes o después de la orden. Los disparadores con nivel de fila se identifican por la cláusula FOR EACH ROW en la definición del disparador.&lt;br /&gt;
&lt;br /&gt;
Fuente:&amp;nbsp;&lt;a href=&quot;http://www.devjoker.com/contenidos/Tutorial-PLSQL/54/Triggers-en-PLSQL.aspx&quot;&gt;http://www.devjoker.com/contenidos/Tutorial-PLSQL/54/Triggers-en-PLSQL.aspx&lt;/a&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/1210636723032297130'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/1210636723032297130'/><link rel='alternate' type='text/html' href='http://ayudaenprogramacionaa.blogspot.com/2011/09/triggers-en-plsql.html' title='Triggers en PL/SQL'/><author><name>AA+</name><uri>http://www.blogger.com/profile/08683961603580889031</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3696343872442188554.post-8718237902544605183</id><published>2011-09-08T04:28:00.001+02:00</published><updated>2022-04-13T15:49:20.847+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Oracle"/><category scheme="http://www.blogger.com/atom/ns#" term="PL/SQL"/><title type='text'>Vistas PL/SQL</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://www.link.uma.es/wp-content/uploads/2018/01/oracle-logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;437&quot; data-original-width=&quot;800&quot; height=&quot;109&quot; src=&quot;https://www.link.uma.es/wp-content/uploads/2018/01/oracle-logo.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;Vistas en PL/SQL&lt;br /&gt;
&lt;br /&gt;
A continuación, veremos la creación de una vista en PL/SQL, vamos a suponer&lt;br /&gt;
que tenemos la tabla &quot;CLIENTE&quot; con los atributos Nombre, Identificacion,&lt;br /&gt;
FechaNac, Historial y Moroso,&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;CREATE VIEW CLIENTES_MOROSOS&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;AS&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;(SELECT Nombre, Identificacion&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp;FROM CLIENTE&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp;WHERE Moroso = 1;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;);&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Con este código crearemos una vista con los clientes morosos (Moroso = 1) en donde&lt;br /&gt;
se muestra su nombre y numero de identificación,&lt;br /&gt;
&lt;br /&gt;
Ahora, si queremos eliminar la vista creada utilizaremos el siguiente código:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;DROP VIEW CLIENTES_MOROSOS;&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;b&gt;&lt;a href=&quot;https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcRvpNOv79gNGe7bxjiHVjMmSOIIgm6o_z8uZZoIqjYIhC-tSe8B&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcRvpNOv79gNGe7bxjiHVjMmSOIIgm6o_z8uZZoIqjYIhC-tSe8B&quot; /&gt;&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/8718237902544605183'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/8718237902544605183'/><link rel='alternate' type='text/html' href='http://ayudaenprogramacionaa.blogspot.com/2011/09/vistas-plsql.html' title='Vistas PL/SQL'/><author><name>AA+</name><uri>http://www.blogger.com/profile/08683961603580889031</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3696343872442188554.post-106378392064609751</id><published>2011-09-08T04:16:00.001+02:00</published><updated>2022-04-13T15:48:34.969+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Oracle"/><category scheme="http://www.blogger.com/atom/ns#" term="PL/SQL"/><title type='text'>Excepciones PL/SQL</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://www.link.uma.es/wp-content/uploads/2018/01/oracle-logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;437&quot; data-original-width=&quot;800&quot; height=&quot;109&quot; src=&quot;https://www.link.uma.es/wp-content/uploads/2018/01/oracle-logo.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;/pre&gt;&lt;pre&gt;Excepciones en PL/SQL

Las excepciones en PL/SQL son muy útiles a la hora de canalizar errores
que pueden ocurrir en un bloque de código, a continuación se mostrara un
ejemplo:

&lt;b&gt;DECLARE
 -- Declaraciones
BEGIN
  -- Ejecución
EXCEPTION
WHEN NO_DATA_FOUND THEN
  -- Se ejecuta cuando ocurre una excepción de tipo NO_DATA_FOUND
WHEN ZERO_DIVIDE THEN
  -- Se ejecuta cuando ocurre una excepción de tipo ZERO_DIVIDE

WHEN OTHERS THEN
  -- Se ejecuta cuando ocurre una excepción de un tipo no tratado
  -- en los bloques anteriores

END;  &lt;/b&gt;

En el ejemplo anterior podemos ver tres como utilizar tres tipos de excepciones, 
en un procedimiento o función, a parte de las mostradas anteriormente existen 
las siguientes excepciones:

&lt;b&gt;ACCESS_INTO_NULL&lt;/b&gt; El programa intentó asignar valores a los atributos de un objeto no inicializado -6530
&lt;b&gt;COLLECTION_IS_NULL&lt;/b&gt; El programa intentó asignar valores a una tabla anidada aún no inicializada -6531
&lt;b&gt;CURSOR_ALREADY_OPEN&lt;/b&gt; El programa intentó abrir un cursor que ya se encontraba abierto. Recuerde que un cursor de ciclo FOR automáticamente lo abre y ello no se debe especificar con la sentencia OPEN -6511
&lt;b&gt;DUP_VAL_ON_INDEX&lt;/b&gt; El programa intentó almacenar valores duplicados en una columna que se mantiene con restricción de integridad de un índice único (unique index) -1
&lt;b&gt;INVALID_CURSOR&lt;/b&gt; El programa intentó efectuar una operación no válida sobre un cursor -1001
&lt;b&gt;INVALID_NUMBER&lt;/b&gt; En una sentencia SQL, la conversión de una cadena de caracteres hacia un número falla cuando esa cadena no representa un número válido -1722
&lt;b&gt;LOGIN_DENIED&lt;/b&gt; El programa intentó conectarse a Oracle con un nombre de usuario o password inválido -1017
&lt;b&gt;NO_DATA_FOUND&lt;/b&gt; Una sentencia SELECT INTO no devolvió valores o el programa referenció un elemento no inicializado en una tabla indexada 100
&lt;b&gt;NOT_LOGGED_ON&lt;/b&gt; El programa efectuó una llamada a Oracle sin estar conectado -1012
&lt;b&gt;PROGRAM_ERROR&lt;/b&gt; PL/SQL tiene un problema interno -6501
&lt;b&gt;ROWTYPE_MISMATCH&lt;/b&gt; Los elementos de una asignación (el valor a asignar y la variable que lo contendrá) tienen tipos incompatibles. También se presenta este error cuando un parámetro pasado a un subprograma no es del tipo esperado -6504
&lt;b&gt;SELF_IS_NULL&lt;/b&gt; El parámetro SELF (el primero que es pasado a un método MEMBER) es nulo -30625
&lt;b&gt;STORAGE_ERROR&lt;/b&gt; La memoria se terminó o está corrupta -6500
&lt;b&gt;SUBSCRIPT_BEYOND_COUNT&lt;/b&gt; El programa está tratando de referenciar un elemento de un arreglo indexado que se encuentra en una posición más grande que el número real de elementos de la colección -6533
&lt;b&gt;SUBSCRIPT_OUTSIDE_LIMIT&lt;/b&gt; El programa está referenciando un elemento de un arreglo utilizando un número fuera del rango permitido (por ejemplo, el elemento “-1”) -6532
&lt;b&gt;SYS_INVALID_ROWID&lt;/b&gt; La conversión de una cadena de caracteres hacia un tipo rowid falló porque la cadena no representa un número -1410
&lt;b&gt;TIMEOUT_ON_RESOURCE&lt;/b&gt; Se excedió el tiempo máximo de espera por un recurso en Oracle -51
&lt;b&gt;TOO_MANY_ROWS&lt;/b&gt; Una sentencia SELECT INTO devuelve más de una fila -1422
&lt;b&gt;VALUE_ERROR&lt;/b&gt; Ocurrió un error aritmético, de conversión o truncamiento. Por ejemplo, sucede cuando se intenta calzar un valor muy grande dentro de una variable más pequeña -6502
&lt;b&gt;ZERO_DIVIDE&lt;/b&gt; El programa intentó efectuar una división por cero -1476

Ahora veremos un ejemplo con la excepción NO_DATA_FOUND, tomaremos como ejemplo para realizar un SELECT la tabla &quot;PRODUCTO&quot; cuyos atributos son Nombre y Precio

&lt;b&gt;PROCEDURE LISTAR_PRODUCTOS AS
DECLARE
 MI_PRODUCTO PRODUCTO%%ROWTYPE; 
BEGIN
 SELECT *
 INTO MI_PRODUCTO
 FROM PRODUCTO
 WHERE Precio = 200;
 EXCEPTION
  WHEN NO_DATA_FOUND THEN
  BEGIN
   &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;--No Existe el producto con precio 200&lt;/span&gt;
  END;
END LISTAR_PRODUCTOS;
/&lt;/b&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-family: Tahoma, &amp;quot;Trebuchet MS&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Verdana, Arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/pre&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcRvpNOv79gNGe7bxjiHVjMmSOIIgm6o_z8uZZoIqjYIhC-tSe8B&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcRvpNOv79gNGe7bxjiHVjMmSOIIgm6o_z8uZZoIqjYIhC-tSe8B&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcRvpNOv79gNGe7bxjiHVjMmSOIIgm6o_z8uZZoIqjYIhC-tSe8B&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcRvpNOv79gNGe7bxjiHVjMmSOIIgm6o_z8uZZoIqjYIhC-tSe8B&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;pre style=&quot;font-family: Tahoma, &amp;quot;Trebuchet MS&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Verdana, Arial, sans-serif; font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: navy;&quot;&gt;&lt;b&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/106378392064609751'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/106378392064609751'/><link rel='alternate' type='text/html' href='http://ayudaenprogramacionaa.blogspot.com/2011/09/excepciones-plsql.html' title='Excepciones PL/SQL'/><author><name>AA+</name><uri>http://www.blogger.com/profile/08683961603580889031</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3696343872442188554.post-7596346805513997265</id><published>2011-09-08T03:48:00.001+02:00</published><updated>2022-04-13T15:47:39.479+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Oracle"/><category scheme="http://www.blogger.com/atom/ns#" term="PL/SQL"/><title type='text'>Cursores en PL/SQL</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://www.link.uma.es/wp-content/uploads/2018/01/oracle-logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;437&quot; data-original-width=&quot;800&quot; height=&quot;109&quot; src=&quot;https://www.link.uma.es/wp-content/uploads/2018/01/oracle-logo.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Cursores en ORACLE - PL/SQL&lt;/div&gt;
&lt;br /&gt;
Cuando nos vemos en la necesidad de recorrer la información de un select una de las&lt;br /&gt;
mejores opciones es la utilización de un cursor, en el próximo ejemplo aprenderemos&lt;br /&gt;
de manera sencilla su utilización.&lt;br /&gt;
&lt;br /&gt;
Vamos a tomar como ejemplo inicial la tabla &quot;CLIENTE&quot; cuyos atributos&lt;br /&gt;
son Nombre e NumIdentificacion,&lt;br /&gt;
&lt;br /&gt;
A continuación se explicara el ejemplo mediante un procedimiento:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;PROCEDURE LISTAR_CLIENTES AS&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;DECLARE&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;CURSOR CLIENTES IS&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;SELECT *&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;FROM CLIENTES;&lt;/b&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;NOMBRE_CLIENTE VARCHAR(100);&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;ID_CLIENTE&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;nbsp; VARCHAR(15);&lt;/b&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;BEGIN&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;FOR MI_CLIENTE IN CLIENTES LOOP&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;NOMBRE_CLIENTE := MI_CLIENTE.Nombre;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;ID_CLIENTE&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;nbsp; := MI_CLIENTE.NumIdentificacion;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;END LOOP;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;END BUSCAR_CLIENTE;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;/&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
En el código anterior podemos ver la declaración del cursor: CURSOR CLIENTES IS&lt;br /&gt;
y luego del BEGIN construimos un FOR para recorrer el cursor que contiene a todos&lt;br /&gt;
nuestros clientes, vemos que el for es el siguiente: FOR MI_CLIENTE IN CLIENTES LOOP&lt;br /&gt;
y nos podemos referir a los atributos dentro del cursor a través de MI_CLIENTE.&amp;lt;atributo&amp;gt;&lt;br /&gt;
en nuestro ejemplo tomamos los atributos Nombre y NumIdentificacion..&lt;br /&gt;
&lt;br /&gt;
La utilización de los cursores puede variar según la necesidad y el estilo de programación,&lt;br /&gt;
en mi caso, el ejemplo mas practico es el presentado anteriormente... Para mas información buscar la documentación&amp;nbsp;de ORACLE...&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcRvpNOv79gNGe7bxjiHVjMmSOIIgm6o_z8uZZoIqjYIhC-tSe8B&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcRvpNOv79gNGe7bxjiHVjMmSOIIgm6o_z8uZZoIqjYIhC-tSe8B&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/7596346805513997265'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/7596346805513997265'/><link rel='alternate' type='text/html' href='http://ayudaenprogramacionaa.blogspot.com/2011/09/cursores-en-oracle.html' title='Cursores en PL/SQL'/><author><name>AA+</name><uri>http://www.blogger.com/profile/08683961603580889031</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3696343872442188554.post-7898256522891173955</id><published>2011-09-08T03:33:00.001+02:00</published><updated>2022-04-13T15:46:22.667+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Oracle"/><category scheme="http://www.blogger.com/atom/ns#" term="PL/SQL"/><title type='text'>Crear un paquete (PACKAGE) en ORACLE PL/SQL</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://www.link.uma.es/wp-content/uploads/2018/01/oracle-logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;437&quot; data-original-width=&quot;800&quot; height=&quot;109&quot; src=&quot;https://www.link.uma.es/wp-content/uploads/2018/01/oracle-logo.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
Crear un paquete(PACKAGE) en ORACLE&lt;br /&gt;
&lt;br /&gt;
A veces es necesario distribuir nuestros procesos en paquetes&lt;br /&gt;
para dar una mejor estructura al proyecto en el que estamos trabajando, para&lt;br /&gt;
empezar un paquete tiene dos niveles (Declaración y Cuerpo), en la declaración&lt;br /&gt;
solo declaramos los procedimientos con sus parámetros, y en el cuerpo desarrollamos&lt;br /&gt;
el código de nuestros procedimientos. (Para mas información consultar documentación&lt;br /&gt;
de ORACLE)&lt;br /&gt;
&lt;br /&gt;
Ahora vamos con nuestro ejemplo:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;CREATE OR REPLACE PACKAGE &quot;OPERACIONES_BASICAS&quot; AS&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;PROCEDURE SUMAR(A NUMBER,B NUMBER);&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;PROCEDURE RESTAR(A NUMBER,B NUMBER);&lt;/b&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;END OPERACIONES_BASICAS;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;/&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Con el código anterior construimos el nivel declarativo de nuestro paquete, solo falta crear nuestro&lt;br /&gt;
nivel cuerpo para completar nuestro paquete&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;b&gt;CREATE OR REPLACE PACKAGE BODY &quot;OPERACIONES_BASICAS&quot; AS&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;PROCEDURE SUMAR(A NUMBER,B NUMBER) AS&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;RESULTADO NUMBER(10);&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;BEGIN&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;RESULTADO := A + B;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;END SUMAR;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;PROCEDURE RESTAR(A NUMBER,B NUMBER) AS&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;RESULTADO NUMBER(10);&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;BEGIN&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;RESULTADO := A - B;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;END RESTAR;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;END OPERACIONES_BASICAS;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;/&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Con el código anterior tenemos nuestro paquete creado, ahora veremos como llamar a los procedimientos&lt;br /&gt;
dentro de dicho paquete:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&amp;gt;&amp;gt;OPERACIONES_BASICAS.SUMAR(11,3);&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;gt;&amp;gt;OPERACIONES_BASICAS.RESTAR(11,3);&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;b&gt;&lt;a href=&quot;https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcRvpNOv79gNGe7bxjiHVjMmSOIIgm6o_z8uZZoIqjYIhC-tSe8B&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcRvpNOv79gNGe7bxjiHVjMmSOIIgm6o_z8uZZoIqjYIhC-tSe8B&quot; /&gt;&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/7898256522891173955'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/7898256522891173955'/><link rel='alternate' type='text/html' href='http://ayudaenprogramacionaa.blogspot.com/2011/09/crear-un-paquete-package-en-oracle.html' title='Crear un paquete (PACKAGE) en ORACLE PL/SQL'/><author><name>AA+</name><uri>http://www.blogger.com/profile/08683961603580889031</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3696343872442188554.post-6480483279591175480</id><published>2011-09-08T03:08:00.005+02:00</published><updated>2022-04-22T11:16:13.738+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Oracle"/><category scheme="http://www.blogger.com/atom/ns#" term="PL/SQL"/><title type='text'>Creación de TYPE en ORACLE</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://www.link.uma.es/wp-content/uploads/2018/01/oracle-logo.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;437&quot; data-original-width=&quot;800&quot; height=&quot;109&quot; src=&quot;https://www.link.uma.es/wp-content/uploads/2018/01/oracle-logo.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;Creación de TYPES en ORACLE&lt;br /&gt;
&lt;br /&gt;
En muchas ocasiones es necesario la creación de un TYPE para luego utilizarlo&lt;br /&gt;
como un atributo en alguna tabla, para la creación de un TYPE se debe utilizar&lt;br /&gt;
el siguiente código:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&amp;gt;&amp;gt;create or replace type TELEFONO as object (&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;CodArea &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NUMBER(10),&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;Numero &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NUMBER(10)&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;gt;&amp;gt;);&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&amp;gt;&amp;gt;create or replace type TELEFONOS as VARRAY(16) of TELEFONO;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
En el código anterior creamos el TYPE TELEFONO, cuyos atributos son CodArea y&lt;br /&gt;
Numero, y creamos un arrecho llamado TELEFONOS al cual le asignamos el TYPE TELEFONO&lt;br /&gt;
ahora veremos como agregarlo como atributo a una tabla:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&amp;gt;&amp;gt;create table BAR(&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;gt;&amp;gt; &amp;nbsp; IdBar &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NUMBER(4) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NOT NULL,&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;gt;&amp;gt; &amp;nbsp; IdLugar &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NUMBER(4) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NOT NULL,&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;gt;&amp;gt; &amp;nbsp; Nombre &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;VARCHAR2(50) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NOT NULL,&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;gt;&amp;gt; &amp;nbsp; Tlf&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TELEFONOS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NOT NULL,&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;gt;&amp;gt; &amp;nbsp; Direccion &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; VARCHAR2(100) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NOT NULL,&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;gt;&amp;gt; &amp;nbsp; constraint PK_BAR primary key (IdBar)&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;gt;&amp;gt;);&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
En el código anterior creamos la tabla &quot;BAR&quot; cuyo atributo Telf. corresponde a un&lt;br /&gt;
arreglo del tipo TELEFONO.&lt;br /&gt;
&lt;br /&gt;
Muchos se preguntaran, como insertar una nueva fila en la tabla BAR,&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&amp;gt;&amp;gt;INSERT INTO BAR VALUES (IDBAR.NEXTVAL,2,&#39;Bar do Chico&#39;,TELEFONOS(TELEFONO(092,3232161)),&#39;Av. Leonardo Malcher, Rua Luiz Antony&#39;);&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Ahora para eliminar los types creados podemos utilizar:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&amp;gt;&amp;gt;drop type TELEFONOS;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;gt;&amp;gt;drop type TELEFONO;&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcRvpNOv79gNGe7bxjiHVjMmSOIIgm6o_z8uZZoIqjYIhC-tSe8B&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcRvpNOv79gNGe7bxjiHVjMmSOIIgm6o_z8uZZoIqjYIhC-tSe8B&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/6480483279591175480'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/6480483279591175480'/><link rel='alternate' type='text/html' href='http://ayudaenprogramacionaa.blogspot.com/2011/09/creacion-de-type-en-oracle.html' title='Creación de TYPE en ORACLE'/><author><name>AA+</name><uri>http://www.blogger.com/profile/08683961603580889031</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3696343872442188554.post-7370394677345662668</id><published>2011-09-08T02:56:00.004+02:00</published><updated>2022-04-13T15:44:43.447+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Oracle"/><category scheme="http://www.blogger.com/atom/ns#" term="PL/SQL"/><title type='text'>Creación de Tablas en ORACLE</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://www.link.uma.es/wp-content/uploads/2018/01/oracle-logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;437&quot; data-original-width=&quot;800&quot; height=&quot;109&quot; src=&quot;https://www.link.uma.es/wp-content/uploads/2018/01/oracle-logo.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;Creación de tablas en ORACLE&lt;br /&gt;
&lt;br /&gt;
Para crear una nueva tabla en ORACLE, el código a utilizar es el siguiente:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&amp;gt;&amp;gt;CREATE TABLE LUGAR &amp;nbsp;(&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;gt;&amp;gt; &amp;nbsp; IdLugar &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NUMBER(4)&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;not null,&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;gt;&amp;gt; &amp;nbsp; Capital&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;VARCHAR2(35)&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;null,&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;gt;&amp;gt; &amp;nbsp; Moneda&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;VARCHAR2(35)&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;null,&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;gt;&amp;gt; &amp;nbsp; constraint PK_LUGAR primary key (IdLugar)&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;gt;&amp;gt;);&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Con el código anterior creamos la tabla &quot;LUGAR&quot;, cuyos atributos son&lt;br /&gt;
IdLugar, Capital y Moneda. &amp;nbsp;Para indicar el Primary Key o la clave&lt;br /&gt;
primaria de la tabla utilizamos el código: constraint PK_LUGAR primary key (IdLugar)&lt;br /&gt;
&lt;br /&gt;
Ahora, en muchas ocasiones necesitamos que la clave primaria se incremente automáticamente,&lt;br /&gt;
para ello, debemos crear una secuencia (SEQUENCE) con el siguiente código:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&amp;gt;&amp;gt;CREATE SEQUENCE IdLugar INCREMENT BY 1 START WITH 1;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Con el código anterior indicamos que la clave primaria IdLugar se incremente automáticamente..&lt;br /&gt;
&lt;br /&gt;
Si deseamos borrar la tabla creada utilizamos el siguiente código:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&amp;gt;&amp;gt;DROP TABLE LUGAR cascade constraint;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Ahora solo nos falta eliminar la secuencia creada:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&amp;gt;&amp;gt;DROP SEQUENCE IdLugar;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
He tenido muchas dudas a la hora de insertar una fila en una tabla cuando su clave primaria&lt;br /&gt;
es declarada para incrementarse automáticamente, por ello, muestro un ejemplo de como insertar&lt;br /&gt;
en la tabla creada en el ejemplo anterior:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&amp;gt;&amp;gt;INSERT INTO LUGAR (IdLugar, Capital, Moneda) VALUES (IDLUGAR.NEXTVAL, &#39;España&#39;, Euro&#39;);&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Con el código anterior indicamos que se inserte la clave primaria con el valor siguiente, por ejemplo&lt;br /&gt;
si la clave primaria de la ultima fila insertada es 5, la nueva fila tendrá el valor de 6&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcRvpNOv79gNGe7bxjiHVjMmSOIIgm6o_z8uZZoIqjYIhC-tSe8B&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcRvpNOv79gNGe7bxjiHVjMmSOIIgm6o_z8uZZoIqjYIhC-tSe8B&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/7370394677345662668'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3696343872442188554/posts/default/7370394677345662668'/><link rel='alternate' type='text/html' href='http://ayudaenprogramacionaa.blogspot.com/2011/09/creacion-de-tablas-en-oracle.html' title='Creación de Tablas en ORACLE'/><author><name>AA+</name><uri>http://www.blogger.com/profile/08683961603580889031</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry></feed>