Questions tagged as 'sql-server'

2
answers

Query with Left Join without returning duplicate value

I have the table tableA and tableB . I'm making a select of all fields from both tables by joining them together with left Join select * from tableA left join tableB on tableA.id = tableB.id But the relationship is...
asked by 18.10.2018 / 22:05
1
answer

Error using ISDATE in CASE WHEN

Hello everyone. I'm running the query below and it is displaying the error: "Operand type clash: int is incompatible with date". My intent when performing this query is to validate if the ORIGINAL_ORIGINAL field is a valid date, and if so, va...
asked by 22.10.2018 / 21:40
1
answer

Join Names in a row

Good afternoon, we use SQL SERVER 2008 as the official database server and have the following query: SELECT P.NOME AS [PROFESSOR], STIPOCURSO.NOME AS [NÍVEL DE ENSINO], SPL.CODPERLET AS [ANO], ST...
asked by 05.04.2018 / 19:45
0
answers

How to know the query failure in Sql Server profiler

I have an application, which performs the API tests by postman. Debugging the app, the test goes through all my layers and returns: 'status: 200 ok'. However, the object is not inserted into my table. I have tried to map a request to the Sql...
asked by 04.04.2018 / 01:57
0
answers

Make a filter in the datagridview (row filter)

I have a SQL database with two tables. One of these stores measures created ( table 1 ) and the other actions of these measures ( table 2 ). I inserted a datagridView with the data in table 1 and created a column named " SITUACAO...
asked by 15.08.2018 / 23:48
1
answer

Retrieve last inserted id and selected course [duplicate]

I have the following situation: In the same form, I enter a student: SqlCommand inserirAluno = new SqlCommand("INSERT INTO ALUNOS (Nome, DataNascimento, CPF, Endereco, Bairro, " + "CEP, Cidade, IdEstado, Sexo) " +...
asked by 11.03.2018 / 16:16
0
answers

How to list all parameters of a report automatically in SSRS?

Problem I need to generate a report usage LOG with the user, report name, date of use, and selected parameters. Most of the fields were obtained using the Built-In Faithful . However, I can not get a string with all report parameters ( nam...
asked by 02.01.2018 / 19:12
1
answer

Show NULL SQL values [duplicate]

Good evening, I'm new to SQL and I have a question. I have the following database: Mygoalistopresentthenamesoftheemployees,theirroleandthenameofthedepartmentwheretheywork,havingtobetheresultorderedbythenameofthedepartmentandwithinthedep...
asked by 11.10.2018 / 22:43
1
answer

Error Running Report in SQL Server Reporting Services

The following error is occurring when you run some Reporting Services report:    "Error in report processing. (rsProcessingAborted)   create a connection to the 'Production' data source.   (rsErrorOpeningConnection) A network-related or insta...
asked by 05.10.2018 / 13:36
2
answers

GROUP BY with 2 Tables

I need to do a select with JOIN on two tables but I can not group to not repeat the rows. Here is the SQL expression: SELECT Andamento.NumeroProcesso, Andamento.Chave, Andamento.Codigo, Andamento.DataAnda...
asked by 24.11.2017 / 13:54