Questions tagged as 'sql-server'

3
answers

Protecting the connection string in a .NET Winforms application?

I have a .NET Windows Forms application that connects to a SQL Server server directly, without the use of an intermediate layer like a WebService > or WebAPI , by SqlConnection . This application is installed on the client's compute...
asked by 07.02.2014 / 18:47
1
answer

Storing Variables of type List in a SQL Server Database

Good Night Personal, I'm developing an application that makes a relationship between a Player and one or more games (online games), the problem is that a game can have a one more different skills, I wonder if you have a way to leave the new d...
asked by 09.05.2018 / 03:42
1
answer

Count / Dense_rank grouped sql

I'm trying to group the rows by group in sqlserver and as a result I want to: CICLO | CODFIL | CODITPROD | ROW 1 | 1 | 10 | 1 11 | 1 | 10 | 2 12 | 1 | 10 | 3 1 | 2 | 10 | 1 11...
asked by 23.05.2018 / 16:17
2
answers

Concatenate the field and group the remainder

I have the following query: SELECT finempe.data_empenho , finempe.num_empenho , finhisem.quantidade , finhisem.historico , finhisem.valor , finhisem.valor_total FROM finempe RIGHT JOIN finhisem ON (finhis...
asked by 26.04.2018 / 18:14
2
answers

Hello everyone. Can anyone tell me why the result of the query below is bringing in the first 4 records the Zeroing Balance?

Can anyone tell me why the result of the query below is bringing the Balance to zero in the first 4 records? I'm calculating the inputs plus the outputs. Calculates correctly if there are values in the two columns, but when there is no value in...
asked by 02.03.2018 / 21:44
4
answers

Compare one field of a table with another table

I am trying to create a query in SQL Server to know if the city that was filled at the time of registration that the person did, is equal to a city field of another table that already has all the municipalities of Brazil, how can I do This?...
asked by 27.12.2017 / 11:43
1
answer

What is the difference between Integrated Security and Persist Security?

In SQL Server connection strings I usually see the options Integrated Security and Persist Security , what does each mean and what values can they receive? This question came to me by seeing the comments of the following questio...
asked by 31.07.2018 / 16:22
1
answer

LiveChart - Fill Cartesian Graph with Query Data Sql Server

I have a DataContext set in a CartesianChart that does not display data ... no error is displayed, just guess I am making wrong use of the DataContext and I can not fix it, I'm using the LiveChart-WPF package Xaml: <lvc:Cart...
asked by 13.12.2017 / 22:46
1
answer

SQL - Search for the names of the patients who had more appointments in the month of January 2016

Hello, I would like to know how to do this query: "Search for the names of the patients who had more consultations in January 2016." select * from PACIENTES select * from CONSULTAS These are the photos from my table     
asked by 19.11.2017 / 16:34
2
answers

Divide a query

I need your help, I have a query in my system, which has 4 cases SELECT TOP 3 * FROM ( SELECT Title, SUM(Count) AS Count FROM ( SELECT CASE WHEN EstadoId = EstadoIdAutor AND EstadoId = Meddoc1 AND Estado...
asked by 03.10.2017 / 14:07