<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Dudas de Programación - Preguntas recientes en SQL Server</title>
<link>https://dudasprogramacion.com/questions/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>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>Web service no puede conectarse a servidor SQL Server</title>
<link>https://dudasprogramacion.com/2120/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/2120/web-service-no-puede-conectarse-a-servidor-sql-server</guid>
<pubDate>Tue, 13 Jun 2017 21:49:45 +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>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</link>
<description></description>
<category>SQL Server</category>
<guid isPermaLink="true">https://dudasprogramacion.com/1559/estimados-configurar-server-2008-enviar-correos-gmail-error</guid>
<pubDate>Fri, 04 Mar 2016 18:03:53 +0000</pubDate>
</item>
<item>
<title>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</link>
<description>import java.sql.Connection;&lt;br /&gt;
import java.sql.DriverManager;&lt;br /&gt;
import javax.swing.JOptionPane;&lt;br /&gt;
&lt;br /&gt;
/**&lt;br /&gt;
&amp;nbsp;*&lt;br /&gt;
&amp;nbsp;* @author user&lt;br /&gt;
&amp;nbsp;*/&lt;br /&gt;
class conectar {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Connection cn=null;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public &amp;nbsp;Connection conexion (){&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;try {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Class.forName(&amp;quot;com.mysql.jdbc.Driver&amp;quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cn=DriverManager.getConnection(&amp;quot;jdbc:mysql//localhost:3306/sistema&amp;quot;,&amp;quot;root&amp;quot;,&amp;quot;090306533&amp;quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(&amp;quot;conexion establecida&amp;quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;JOptionPane.showMessageDialog(null, &amp;quot;conexion establecida&amp;quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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;&amp;nbsp;&amp;nbsp;System.out.println(&amp;quot;error de conexion&amp;quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;JOptionPane.showMessageDialog(null, &amp;quot;error de conexion &amp;quot;+e);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&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;return cn;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
}</description>
<category>SQL Server</category>
<guid isPermaLink="true">https://dudasprogramacion.com/1517/como-puedo-conectar-datos-mysql-workbench-programa-netbeans</guid>
<pubDate>Tue, 16 Feb 2016 23:53:17 +0000</pubDate>
</item>
<item>
<title>Ayuda! :)</title>
<link>https://dudasprogramacion.com/596/ayuda</link>
<description>Hola comunidad, apenas estoy empezando con esto de las BD y tengo un problema; la maestra del curso me dejo hacer diferentes tablas para una BD por medio de codigo, pero a la hora de enseñárselo me dijo que estaba mal, la verdad no se por que, es por eso que acudo a ustedes para ver si me pueden asesorar. De antemano gracias, linda noche.&lt;br /&gt;
&lt;br /&gt;
CREATE DATABASE Practica2&lt;br /&gt;
&lt;br /&gt;
CREATE TABLE Institucion &lt;br /&gt;
(&lt;br /&gt;
&amp;nbsp;&amp;nbsp;Nombre_i nvarchar (50) NOT NULL,&lt;br /&gt;
&amp;nbsp;CONSTRAINT PK_Institucion PRIMARY KEY CLUSTERED (Nombre_i)&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
CREATE TABLE Alumno &lt;br /&gt;
(&lt;br /&gt;
&amp;nbsp;&amp;nbsp;No_control nvarchar (50) NOT NULL,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;Nombre nvarchar (50) NOT NULL,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;Apellidop nvarchar (50) NOT NULL,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;Apellidom nvarchar (50) NOT NULL,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;Especialidad nvarchar (50) NOT NULL,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;Estado nvarchar (50) NOT NULL,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;Nombre_i nvarchar (50) NOT NULL,&lt;br /&gt;
&amp;nbsp;CONSTRAINT PK_Alumno PRIMARY KEY CLUSTERED(No_control),&lt;br /&gt;
&amp;nbsp;CONSTRAINT FK_Alumno FOREIGN KEY(Nombre_i) REFERENCES Institucion(Nombre_i)&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
CREATE TABLE Profesor &lt;br /&gt;
(&lt;br /&gt;
&amp;nbsp;&amp;nbsp;Nombre_p nvarchar (50) NOT NULL,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;Apellidop nvarchar (50) NOT NULL,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;Apellidom nvarchar (50) NOT NULL,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;Deprtamento nvarchar (50) NOT NULL,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;Nombre_i nvarchar (50) NOT NULL,&lt;br /&gt;
&amp;nbsp;CONSTRAINT PK_Profesor PRIMARY KEY CLUSTERED(Nombre_p),&lt;br /&gt;
&amp;nbsp;CONSTRAINT FK_Profesor FOREIGN KEY(Nombre_i) REFERENCES Institucion(Nombre_i)&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
CREATE TABLE Cursos&lt;br /&gt;
(&lt;br /&gt;
&amp;nbsp;&amp;nbsp;Num_curso nvarchar (50) NOT NULL,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;Titulo nvarchar (50) NOT NULL, &lt;br /&gt;
&amp;nbsp;CONSTRAINT PK_Cursos PRIMARY KEY CLUSTERED(Num_curso)&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
CREATE TABLE Alumnos_Cursos&lt;br /&gt;
(&lt;br /&gt;
&amp;nbsp;&amp;nbsp;No_control nvarchar (50) NOT NULL,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;Num_curso nvarchar (50) NOT NULL,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;Calificacion char (50) NOT NULL,&lt;br /&gt;
&amp;nbsp;CONSTRAINT PK_Alumnos_Cursos PRIMARY KEY CLUSTERED(No_control, Num_curso),&lt;br /&gt;
&amp;nbsp;CONSTRAINT FK_Alumnos_Cursos FOREIGN KEY(No_control) REFERENCES Alumno(No_control),&lt;br /&gt;
&amp;nbsp;CONSTRAINT FK_Alumnos_Cursos_1 FOREIGN KEY(Num_curso) REFERENCES Cursos(Num_curso)&lt;br /&gt;
)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;br /&gt;
CREATE TABLE Profesor_Curso&lt;br /&gt;
(&lt;br /&gt;
&amp;nbsp;&amp;nbsp;Nombre_p nvarchar (50) NOT NULL,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;Num_curso nvarchar (50) NOT NULL,&lt;br /&gt;
&amp;nbsp;CONSTRAINT PK_Profesor_Curso PRIMARY KEY CLUSTERED(Nombre_p, Num_curso),&lt;br /&gt;
&amp;nbsp;CONSTRAINT FK_Profesor_Curso FOREIGN KEY(Num_curso) REFERENCES Cursos(Num_curso),&lt;br /&gt;
&amp;nbsp;CONSTRAINT FK_Profesor_Curso2 FOREIGN KEY(Nombre_p) REFERENCES Profesor(Nombre_p)&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
</description>
<category>SQL Server</category>
<guid isPermaLink="true">https://dudasprogramacion.com/596/ayuda</guid>
<pubDate>Fri, 29 Jan 2016 04:14:25 +0000</pubDate>
</item>
<item>
<title>Como hacer Conexion a Base de Datos</title>
<link>https://dudasprogramacion.com/591/como-hacer-conexion-a-base-de-datos</link>
<description>Hola, disculpen quisiera que me ayuden a hacer una conexion desde mi netbeans al sql 2012 &lt;br /&gt;
me seria de mu cha ayuda por favor gracias</description>
<category>SQL Server</category>
<guid isPermaLink="true">https://dudasprogramacion.com/591/como-hacer-conexion-a-base-de-datos</guid>
<pubDate>Fri, 29 Jan 2016 04:14:14 +0000</pubDate>
</item>
</channel>
</rss>