Questions tagged as 'sql-server'

0
answers

PIVOT single row table and 10 columns

I am trying to transpose a table of a row with 10 columns and I use this but I get an error in the code: SELECT descripcion ,Check01 ,Check02 ,Check03 ,Check04 ,Check05 ,Check06 ,Check07 ,Check08 ,Check09...
asked by 22.05.2017 / 12:51
1
answer

How to create a trigger so that it does not erase a record if it contains certain characteristics in sql server

That is, create a trigger that prevents me from deleting a record from the 'person' table, but only if the name contains the following characters: 'JUAN' and print the message that can not be deleted CREATE TRIGGER borrar ON PERSONA INSTEAD OF...
asked by 16.05.2017 / 20:54
1
answer

ReportViewer with null values

I generate a report with area, Type, and two dates within which the area and the type can contain or not values, with the four parameters works correctly, but how can I get the query executed correctly when the value is null? ? Thanks!...
asked by 16.05.2017 / 20:55
1
answer

Know with which tables a view was created, SQL Server [closed]

I am analyzing a database and there is a view that I do not know where the information comes from, is there a sentence to know where the data is coming from?     
asked by 12.05.2017 / 10:15
1
answer

How to map a checkbox as bool (bit in SQL server)?

I know they always ask for code, but my question is basic. I also know that you can qualify it as "general knowledge" or "subjective response", but although it seems incredible, there are not many topics in Spanish that speak of the subject....
asked by 26.05.2017 / 08:34
2
answers

Table Pivot SQL Server

I have a query, which gives me the following results. **cedis validacion_clientes Totales** Celaya No visito a todos los clientes 17.33 Celaya Visito todos los cl...
asked by 12.05.2017 / 17:02
0
answers

I get an error when saving the data, Error: Can not find the stored procedure 'UpdateArticles'?

public partial class MantenimientoProducto : Mantenimiento { public MantenimientoProducto() { InitializeComponent(); } public override bool guardar() { try { string cmd = string.Format("EXEC...
asked by 14.04.2017 / 18:59
1
answer

Develver only different columns between two Sql Server logs

I have two tables with the same structure but I have to compare their contents to find differences. The records with differences I get back correctly but I would like to know if you can get back the columns that have different value. declare @...
asked by 10.04.2017 / 08:01
3
answers

Error, C # NullReferenceException was unhandled by user code

How can I solve this problem of NullReferenceException was unhandled by user code, where I have a table inserted and it tells me that the value that returns to me is null? using System; using System.Collections.Generic; using System.Linq;...
asked by 16.04.2017 / 23:15
1
answer

consume an asp.net service and import data into a sql table

I have a service which when entering a number of an invoice brings me some fields and information, what I need to do is insert those same fields with the information to a sql table I am what I have, the moment only brings me the data, but I d...
asked by 01.04.2017 / 09:15