<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Dudas de Programación - Preguntas y respuestas recientes en SQL Server</title>
<link>https://dudasprogramacion.com/qa/bases-de-datos/sql-server</link>
<description>Powered by Question2Answer</description>
<item>
<title>Obtener datos que retorne un SP</title>
<link>https://dudasprogramacion.com/2454/obtener-datos-que-retorne-un-sp</link>
<description>Buenas tardes:&lt;br /&gt;
&lt;br /&gt;
Tengo un StoreProcedure en SQLserver que consulta los registros de una tabla x con los campos Nombre, Apellido y ID.&lt;br /&gt;
&lt;br /&gt;
Execute sp_TableUsers&lt;br /&gt;
&lt;br /&gt;
¿Como puedo manipular esos datos en SQLserver?&lt;br /&gt;
¿Se puede crear algun CTE para almacenar la información consultada?&lt;br /&gt;
gracias</description>
<category>SQL Server</category>
<guid isPermaLink="true">https://dudasprogramacion.com/2454/obtener-datos-que-retorne-un-sp</guid>
<pubDate>Fri, 29 May 2020 23:01:28 +0000</pubDate>
</item>
<item>
<title>CRUD en capas C# con sql server</title>
<link>https://dudasprogramacion.com/2200/crud-en-capas-c-con-sql-server</link>
<description>Hola podrian ayudarme en mi proyecto, no me muestra nada en el dataGridview, no se si sean mis consultas o que es, favor de ayudar a corregirlo. GRACIAS!!!&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://drive.google.com/open?id=1461tSLcmki02l0a1wtZoGRb2AJYxKUuh&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://drive.google.com/open?id=1461tSLcmki02l0a1wtZoGRb2AJYxKUuh&lt;/a&gt;</description>
<category>SQL Server</category>
<guid isPermaLink="true">https://dudasprogramacion.com/2200/crud-en-capas-c-con-sql-server</guid>
<pubDate>Fri, 24 May 2019 23:05:18 +0000</pubDate>
</item>
<item>
<title>Select sql server tabla con 2 valores en campo</title>
<link>https://dudasprogramacion.com/2192/select-sql-server-tabla-con-2-valores-en-campo</link>
<description>&lt;p&gt;Hola a todos&lt;/p&gt;&lt;p&gt;Tengo que realizar una consulta pero no se por&amp;nbsp;donde empezar ya que me confunde un doble valor&amp;nbsp;que tiene un campo en un registro. Tengo las&amp;nbsp;siguientes 5 tablas:&lt;/p&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; style=&quot;border-collapse:collapse; width:131pt; border-spacing: 0px;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;95&quot; style=&quot;mso-width-source:userset;mso-width-alt:3474;width:71pt&quot;&gt;&lt;col width=&quot;80&quot; style=&quot;width:60pt&quot;&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;height:15.0pt; width:131pt; height: 20px; width: 175px;&quot; class=&quot;xl65&quot;&gt;Registro_Llamadas&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;height:15.0pt; height: 20px;&quot; class=&quot;xl66&quot;&gt;id_registro&lt;/td&gt;&lt;td style=&quot;border-left:none; height:15.0pt&quot; class=&quot;xl66&quot;&gt;nombre&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border-top:none; height:15.0pt; height: 20px;&quot; class=&quot;xl67&quot;&gt;2537687&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl67&quot;&gt;Juan Perez&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border-top:none; height:15.0pt; height: 20px;&quot; class=&quot;xl67&quot;&gt;2534454&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl67&quot;&gt;Maria Flores&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;&lt;/p&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; style=&quot;border-collapse:collapse; width:351pt; border-spacing: 0px;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;95&quot; span=&quot;3&quot; style=&quot;mso-width-source:userset;mso-width-alt:3474;  width:71pt&quot;&gt;&lt;col width=&quot;104&quot; style=&quot;mso-width-source:userset;mso-width-alt:3803;width:78pt&quot;&gt;&lt;col width=&quot;80&quot; style=&quot;width:60pt&quot;&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td colspan=&quot;5&quot; style=&quot;height:15.0pt; width:351pt; height: 20px; width: 469px;&quot; class=&quot;xl66&quot;&gt;Historico_acciones&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border-top:none; height:15.0pt; height: 20px;&quot; class=&quot;xl67&quot;&gt;id_historico&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl65&quot;&gt;fecha&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl65&quot;&gt;id_registro&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl67&quot;&gt;id_accion&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl67&quot;&gt;cod_accion&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border-top:none; height:15.0pt; height: 20px;&quot; class=&quot;xl68&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl69&quot;&gt;10/04/2019&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl68&quot;&gt;2537687&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl68&quot;&gt;33&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl68&quot;&gt;356&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border-top:none; height:15.0pt; height: 20px;&quot; class=&quot;xl68&quot;&gt;2&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl69&quot;&gt;10/04/2019&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl68&quot;&gt;2537687&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl68&quot;&gt;20&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl68&quot;&gt;3&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border-top:none; height:15.0pt; height: 20px;&quot; class=&quot;xl68&quot;&gt;3&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl69&quot;&gt;11/04/2019&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl68&quot;&gt;2534454&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl68&quot;&gt;33&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl68&quot;&gt;567&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border-top:none; height:15.0pt; height: 20px;&quot; class=&quot;xl68&quot;&gt;4&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl69&quot;&gt;11/04/2019&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl68&quot;&gt;2534454&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl68&quot;&gt;20&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl68&quot;&gt;4&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; style=&quot;border-collapse:collapse; width:126pt; border-spacing: 0px;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;80&quot; style=&quot;width:60pt&quot;&gt;&lt;col width=&quot;88&quot; style=&quot;mso-width-source:userset;mso-width-alt:3218;width:66pt&quot;&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;height:15.0pt; width:126pt; height: 20px; width: 168px;&quot; class=&quot;xl65&quot;&gt;Lista_bases&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;height:15.0pt; height: 20px;&quot; class=&quot;xl67&quot;&gt;id_base&lt;/td&gt;&lt;td style=&quot;border-left:none; height:15.0pt&quot; class=&quot;xl67&quot;&gt;descrip_base&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border-top:none; height:15.0pt; height: 20px;&quot; class=&quot;xl68&quot;&gt;56&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl66&quot;&gt;Base1&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border-top:none; height:15.0pt; height: 20px;&quot; class=&quot;xl68&quot;&gt;98&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl66&quot;&gt;Base2&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;&lt;/p&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; style=&quot;border-collapse:collapse; width:126pt; border-spacing: 0px;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;80&quot; style=&quot;width:60pt&quot;&gt;&lt;col width=&quot;88&quot; style=&quot;mso-width-source:userset;mso-width-alt:3218;width:66pt&quot;&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;height:15.0pt; width:126pt; height: 20px; width: 168px;&quot; class=&quot;xl65&quot;&gt;Estatus_llamada&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;height:15.0pt; height: 20px;&quot; class=&quot;xl66&quot;&gt;id_est&lt;/td&gt;&lt;td style=&quot;border-left:none; height:15.0pt&quot; class=&quot;xl66&quot;&gt;estatus&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border-top:none; height:15.0pt; height: 20px;&quot; class=&quot;xl67&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl67&quot;&gt;Contactado&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border-top:none; height:15.0pt; height: 20px;&quot; class=&quot;xl67&quot;&gt;2&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl67&quot;&gt;Buzon&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border-top:none; height:15.0pt; height: 20px;&quot; class=&quot;xl67&quot;&gt;3&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl67&quot;&gt;No contesta&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border-top:none; height:15.0pt; height: 20px;&quot; class=&quot;xl67&quot;&gt;4&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl67&quot;&gt;Agendado&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;de las cuales tengo que generar el siguiente&amp;nbsp;resultado por rango de fecha&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; style=&quot;border-collapse:collapse; width:308pt; border-spacing: 0px;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;80&quot; span=&quot;2&quot; style=&quot;width:60pt&quot;&gt;&lt;col width=&quot;91&quot; style=&quot;mso-width-source:userset;mso-width-alt:3328;width:68pt&quot;&gt;&lt;col width=&quot;80&quot; span=&quot;2&quot; style=&quot;width:60pt&quot;&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;height:15.0pt; width:60pt; height: 20px; width: 80px;&quot; class=&quot;xl65&quot;&gt;Fecha&lt;/td&gt;&lt;td style=&quot;border-left:none; height:15.0pt; width:60pt; width: 80px;&quot; class=&quot;xl65&quot;&gt;id_registro&lt;/td&gt;&lt;td style=&quot;border-left:none; height:15.0pt; width:68pt; width: 91px;&quot; class=&quot;xl65&quot;&gt;nombre&lt;/td&gt;&lt;td style=&quot;border-left:none; height:15.0pt; width:60pt; width: 80px;&quot; class=&quot;xl66&quot;&gt;base&lt;/td&gt;&lt;td style=&quot;border-left:none; height:15.0pt; width:60pt; width: 80px;&quot; class=&quot;xl66&quot;&gt;estatus&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border-top:none; height:15.0pt; height: 20px;&quot; class=&quot;xl69&quot;&gt;10/04/2019&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl68&quot;&gt;2537687&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl68&quot;&gt;Juan Perez&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl67&quot;&gt;Base1&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl68&quot;&gt;No contesta&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border-top:none; height:15.0pt; height: 20px;&quot; class=&quot;xl69&quot;&gt;11/04/2019&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl68&quot;&gt;2534454&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl68&quot;&gt;Maria Flores&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl67&quot;&gt;Base2&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl68&quot;&gt;Agendado&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; style=&quot;border-collapse:collapse; width:308pt; border-spacing: 0px;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;80&quot; span=&quot;2&quot; style=&quot;width:60pt&quot;&gt;&lt;col width=&quot;91&quot; style=&quot;mso-width-source:userset;mso-width-alt:3328;width:68pt&quot;&gt;&lt;col width=&quot;80&quot; span=&quot;2&quot; style=&quot;width:60pt&quot;&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;height:15.0pt; width:60pt; height: 20px; width: 80px;&quot; class=&quot;xl65&quot;&gt;&lt;/td&gt;&lt;td style=&quot;border-left:none; height:15.0pt; width:60pt; width: 80px;&quot; class=&quot;xl65&quot;&gt;&lt;/td&gt;&lt;td style=&quot;border-left:none; height:15.0pt; width:68pt; width: 91px;&quot; class=&quot;xl65&quot;&gt;&lt;/td&gt;&lt;td style=&quot;border-left:none; height:15.0pt; width:60pt; width: 80px;&quot; class=&quot;xl66&quot;&gt;&lt;/td&gt;&lt;td style=&quot;border-left:none; height:15.0pt; width:60pt; width: 80px;&quot; class=&quot;xl66&quot;&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border-top:none; height:15.0pt; height: 20px;&quot; class=&quot;xl69&quot;&gt;&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl68&quot;&gt;&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl68&quot;&gt;&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl68&quot;&gt;&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl68&quot;&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;el problema es con el campo id_action de la tabla&amp;nbsp;historico_accion ya que al momento de hacer la&amp;nbsp;consulta no se como indicarle que me traiga los&amp;nbsp;valores de las 2 opciones (33 y 20) en un solo&amp;nbsp;registro (una sola fila) y es que dependiendo del&amp;nbsp;numero seleccionado en id_action el numero de&amp;nbsp;campo cod_accion trae el valor de la base (si el&amp;nbsp;id_accion es 33) o trae el valor del estatus (si&amp;nbsp;el id_accion es 20). al momento de intentar crear&amp;nbsp;el select me crea duplicado de la siguiente manera:&lt;/p&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; style=&quot;border-collapse:collapse; width:308pt; border-spacing: 0px;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;80&quot; span=&quot;2&quot; style=&quot;width:60pt&quot;&gt;&lt;col width=&quot;91&quot; style=&quot;mso-width-source:userset;mso-width-alt:3328;width:68pt&quot;&gt;&lt;col width=&quot;80&quot; span=&quot;2&quot; style=&quot;width:60pt&quot;&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;height:15.0pt; width:60pt; height: 20px; width: 80px;&quot; class=&quot;xl65&quot;&gt;Fecha&lt;/td&gt;&lt;td style=&quot;border-left:none; height:15.0pt; width:60pt; width: 80px;&quot; class=&quot;xl65&quot;&gt;id_registro&lt;/td&gt;&lt;td style=&quot;border-left:none; height:15.0pt; width:68pt; width: 91px;&quot; class=&quot;xl65&quot;&gt;nombre&lt;/td&gt;&lt;td style=&quot;border-left:none; height:15.0pt; width:60pt; width: 80px;&quot; class=&quot;xl66&quot;&gt;base&lt;/td&gt;&lt;td style=&quot;border-left:none; height:15.0pt; width:60pt; width: 80px;&quot; class=&quot;xl66&quot;&gt;estatus&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border-top:none; height:15.0pt; height: 20px;&quot; class=&quot;xl69&quot;&gt;10/04/2019&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl68&quot;&gt;2537687&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl68&quot;&gt;Juan Perez&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl67&quot;&gt;Base1&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl68&quot;&gt;null&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border-top:none; height:15.0pt; height: 20px;&quot; class=&quot;xl69&quot;&gt;10/04/2019&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl68&quot;&gt;2537687&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl68&quot;&gt;Juan Perez&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl68&quot;&gt;null&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl68&quot;&gt;No contesta&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border-top:none; height:15.0pt; height: 20px;&quot; class=&quot;xl69&quot;&gt;11/04/2019&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl68&quot;&gt;2534454&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl68&quot;&gt;Maria Flores&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl67&quot;&gt;Base2&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl68&quot;&gt;null&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border-top:none; height:15.0pt; height: 20px;&quot; class=&quot;xl69&quot;&gt;11/04/2019&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl68&quot;&gt;2534454&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl68&quot;&gt;Maria Flores&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl68&quot;&gt;null&lt;/td&gt;&lt;td style=&quot;border-left:none; border-top:none; height:15.0pt&quot; class=&quot;xl68&quot;&gt;Agendado&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;es decir, se crean 2 filas por registro pero deben estar en una sola por id_interaccion espero que me puedan ayudar, muchas gracias.&amp;nbsp;&lt;/p&gt;</description>
<category>SQL Server</category>
<guid isPermaLink="true">https://dudasprogramacion.com/2192/select-sql-server-tabla-con-2-valores-en-campo</guid>
<pubDate>Sun, 14 Apr 2019 23:19:17 +0000</pubDate>
</item>
<item>
<title>Respondido: Web service no puede conectarse a servidor SQL Server</title>
<link>https://dudasprogramacion.com/2120/web-service-no-puede-conectarse-a-servidor-sql-server?show=2122#a2122</link>
<description>Pregunta repetida, responder aquí:&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://dudasprogramacion.com/2121/web-service-no-puede-conectarse-a-servidor-sql-server&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://dudasprogramacion.com/2121/web-service-no-puede-conectarse-a-servidor-sql-server&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
No sé cómo eliminar este post repetido :S</description>
<category>SQL Server</category>
<guid isPermaLink="true">https://dudasprogramacion.com/2120/web-service-no-puede-conectarse-a-servidor-sql-server?show=2122#a2122</guid>
<pubDate>Tue, 13 Jun 2017 21:55:31 +0000</pubDate>
</item>
<item>
<title>Web service no puede conectarse a servidor SQL Server</title>
<link>https://dudasprogramacion.com/2121/web-service-no-puede-conectarse-a-servidor-sql-server</link>
<description>&lt;p&gt;Hola a todos:&lt;/p&gt;&lt;p&gt;Tengo este problema: Estoy creando un web service (usando Visual Basic .NET) para conectarse a una base de datos SQL Server Express 2014. Tanto el servidor IIS como SQL Server están instalados en la misma PC. Al probarlo, sin embargo, me aparece este error:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;El servidor no puede procesar la solicitud. ---&amp;gt; Error relacionado con la red o específico de la instancia mientras se establecía una conexión con el servidor SQL Server. No se encontró el servidor o éste no estaba accesible. Compruebe que el nombre de la instancia es correcto y que SQL Server está configurado para admitir conexiones remotas. (provider: Named Pipes Provider, error: 40 - No se pudo abrir una conexión con SQL Server) ---&amp;gt; No se ha encontrado la ruta de acceso de la red&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;He buscado en Internet sobre este tipo de problemas, y he intentando todas las alternativas de solución, incluyendo:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Verificar que los servicios de SQL Server (SQLEXPRESS) y SQL Server Browser estén en ejecución.&lt;/li&gt;&lt;li&gt;Verificar que esté activado el protocolo TCP/IP.&lt;/li&gt;&lt;li&gt;Verificar que esté activada la opción de Permitir conexiones remotas en la instancia de SQL Server.&lt;/li&gt;&lt;li&gt;Verificar que el nombre de la instancia de SQL Server sea el correcto (en mi caso PC-DQL\SQLEXPRESS) y coincida con el indicado en el web service.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Un detalle es que el web service creado me lo pasó otra persona, que dice que lo probó en su PC y sí le funciona. Probé cambiando el nombre de mi PC (PC-DQL), por si había algún problema con el uso de guiones al referirme a la instancia de SQL Server, y editando este mismo nombre en el archivo XML de datos de conexión del web service. También cambié el nombre de la base de datos en el archivo XML para que coincida con el nombre de la BD instalada en mi PC.&lt;/p&gt;&lt;p&gt;Nada de esto ha funcionado. Una y otra vez me sigue mandando el mensaje de &quot;No se ha encontrado la ruta de acceso de la red.&lt;/p&gt;&lt;p&gt;¿Qué podría estar pasando?&lt;/p&gt;&lt;p&gt;De antemano gracias por su ayuda.&lt;/p&gt;</description>
<category>SQL Server</category>
<guid isPermaLink="true">https://dudasprogramacion.com/2121/web-service-no-puede-conectarse-a-servidor-sql-server</guid>
<pubDate>Tue, 13 Jun 2017 21:52:18 +0000</pubDate>
</item>
<item>
<title>Reporte del Registro DML de una tabla</title>
<link>https://dudasprogramacion.com/2095/reporte-del-registro-dml-de-una-tabla</link>
<description>Lo que requiero es saber cuantos insert, update y delete hay en una tabla de mi base de datos, manualmente, sin requerir de software adicional y leer dicho registro... Alguna idea de como hacerlo en SQL, pues este no almacena un registro concreto de ello?</description>
<category>SQL Server</category>
<guid isPermaLink="true">https://dudasprogramacion.com/2095/reporte-del-registro-dml-de-una-tabla</guid>
<pubDate>Wed, 19 Apr 2017 18:46:20 +0000</pubDate>
</item>
<item>
<title>como modificar un nombre,reemplazar las vocales por la vocal siguiente ejemplo: LEONARDO modificado seria LIUNERDU</title>
<link>https://dudasprogramacion.com/1909/modificar-reemplazar-siguiente-leonardo-modificado-liunerdu</link>
<description>Buenas noches, escribo con el fin de obtener una guia o colaboracion con un tema, tengo en una tabla &amp;quot;SQL SERVER&amp;quot; 5 campos(nombre1,nombre2,apellido1,apellido2,nombre completo) los cuales son de tipo de dato varchar en ellos guardo los nombres, apellidos y nombre completo, necesito crear un script en SQL SERVER el cual me modifique los registros de los campos de la siguiente manera reemplazar las vocales por la vocal siguiente me explico tengo en el campo1 el valor de LEONARDO con la modificacion el valor del campo deberia quedar LIUNERDU esto lo debo hacer con los demas campos mencionados. Agradezco a la persona que me pueda dar alguna idea ayuda o colaboracion con el tema, muchas gracias</description>
<category>SQL Server</category>
<guid isPermaLink="true">https://dudasprogramacion.com/1909/modificar-reemplazar-siguiente-leonardo-modificado-liunerdu</guid>
<pubDate>Thu, 01 Sep 2016 00:39:59 +0000</pubDate>
</item>
<item>
<title>Respondido: como puedo conectar una base de datos mysql workbench a un programa en java netbeans 8.0.1?</title>
<link>https://dudasprogramacion.com/1517/como-puedo-conectar-datos-mysql-workbench-programa-netbeans?show=1883#a1883</link>
<description>Hey hola!!&lt;br /&gt;
&lt;br /&gt;
necesitas el conector de mysql lo puedes agregar como libreria desde netbeans, puedes descargar el conector en el siguiente link.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://dev.mysql.com/downloads/connector/j/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://dev.mysql.com/downloads/connector/j/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
saludos.</description>
<category>SQL Server</category>
<guid isPermaLink="true">https://dudasprogramacion.com/1517/como-puedo-conectar-datos-mysql-workbench-programa-netbeans?show=1883#a1883</guid>
<pubDate>Mon, 15 Aug 2016 01:42:48 +0000</pubDate>
</item>
<item>
<title>Respondido: Como hacer Conexion a Base de Datos</title>
<link>https://dudasprogramacion.com/591/como-hacer-conexion-a-base-de-datos?show=1835#a1835</link>
<description>&lt;p&gt;Hola&amp;nbsp;&lt;span style=&quot;color:rgb(52, 73, 94); font-family:ubuntu,helvetica,arial,freesans,sans-serif; font-size:12px&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color:rgb(52, 73, 94); font-family:ubuntu,helvetica,arial,freesans,sans-serif; font-size:12px&quot;&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;http://www.dudasprogramacion.com/user/Jeancarlo&quot;&gt;Jeancarlo&lt;/a&gt;....&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color:rgb(52, 73, 94); font-family:ubuntu,helvetica,arial,freesans,sans-serif; font-size:12px&quot;&gt;Bueno primeramente yo al crear&amp;nbsp;una conexion al gestor de base de datos creo una clase llamada conexion la cual me ayuda a crear un crud o en este caso un formulario te comparto mi codigo el cual utilizo al conectar mi programa al gestor de base de datos a continuacion te muestro mi codigo, donde recbo tres objetos la cual es la url donde ponemos el nombre de la base de datos el segundo que es el usuario y el tercero que es la contraseña si es que el usuaro tiene contraseña para ingresar al gestor de base de datos.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;public class conexion {&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;public static final String URL = &quot;jdbc:mysql://localhost:3306/registro&quot;;&lt;br&gt;&amp;nbsp; &amp;nbsp; public static final String USERNAME = &quot;root&quot;;&lt;br&gt;&amp;nbsp; &amp;nbsp; public static final String PASSWORD = &quot;pedro&quot;;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; public static Connection getConnection() {&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Connection connection = null;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try {&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Class.forName(&quot;com.mysql.jdbc.Driver&quot;);&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; connection = DriverManager.getConnection(URL, USERNAME, PASSWORD);&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } catch (Exception e) {&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(e);&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return connection;&lt;br&gt;&amp;nbsp; &amp;nbsp; }}&lt;/p&gt;</description>
<category>SQL Server</category>
<guid isPermaLink="true">https://dudasprogramacion.com/591/como-hacer-conexion-a-base-de-datos?show=1835#a1835</guid>
<pubDate>Mon, 18 Jul 2016 05:07:06 +0000</pubDate>
</item>
<item>
<title>Respondido: Ayuda! :)</title>
<link>https://dudasprogramacion.com/596/ayuda?show=1813#a1813</link>
<description>&lt;p&gt;Supongo q por la falta del punto y coma (;) al final de cada creacion de las tablas y puede ser que no era necesario el &lt;span style=&quot;color:rgb(52, 73, 94); font-family:ubuntu,helvetica,arial,freesans,sans-serif; font-size:16px&quot;&gt;CLUSTERED&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;</description>
<category>SQL Server</category>
<guid isPermaLink="true">https://dudasprogramacion.com/596/ayuda?show=1813#a1813</guid>
<pubDate>Mon, 11 Jul 2016 23:07:45 +0000</pubDate>
</item>
<item>
<title>Respondido: Estimados, por que al configurar el sql server 2008 r2 para enviar correos al GMAIL me sale un error!!</title>
<link>https://dudasprogramacion.com/1559/estimados-configurar-server-2008-enviar-correos-gmail-error?show=1561#a1561</link>
<description>Qué error te devuelve?</description>
<category>SQL Server</category>
<guid isPermaLink="true">https://dudasprogramacion.com/1559/estimados-configurar-server-2008-enviar-correos-gmail-error?show=1561#a1561</guid>
<pubDate>Sat, 05 Mar 2016 01:18:33 +0000</pubDate>
</item>
</channel>
</rss>