Questions tagged as 'sql-server-2014'

1
answer

Concaten fields from a subquery

I have the following query in sql sever 2014 CREATE TABLE #TEMPTABLE ( ID INT, DATACOLUM VARCHAR(5) ) INSERT INTO #TEMPTABLE VALUES (1,'A'),(1,'B'),(1,'C'),(2,'D'),(3,'E'),(4,'F') SELECT TB.ID, STUFF((SELECT ',' + D...
asked by 24.05.2017 / 19:18
0
answers

Failed to restore SQL Server 2014.Bak file, send "is terminating abnormally" error

I have a development in visual studio that makes backups of the database of a SQL Server 2014 Standard Edition server, after making the backups there is a routine to be able to compress them and leave them as .Gz files: The backups are made w...
asked by 23.10.2018 / 19:22
0
answers

Error with SqlTableDependency when making requests every second

I am migrating to SqlTableDependency to get notifications of changes to the database on my asp.net mvc web system. Previously, I used SqlDependency to get the notifications, but I found it more useful to do that migration. The problem is a li...
asked by 31.10.2018 / 20:50
1
answer

Pass Array with numbers to SqlServer, split and insert the data

Here I bring my problem. I use SqlServer 2014 and VisualStudio 2015 I have an Object named CashRegister which has these attributes: public class CashRegister { private static CashRegister CashRegisterInstance; public int? Id...
asked by 16.02.2018 / 18:38
3
answers

Using IN or EXISTS in SQL SERVER

I'm doing a job for the university where I have to do a travel management system, where I have tables such as Pasajeros , Viaje , Boleto etc. Now I must make inquiries based on this basis that I created. A particular query...
asked by 09.06.2017 / 01:53
1
answer

how to generate a varchar sequence in sql server 2014?

I want to make this column ID that is a varchar field be generated automatically, when I insert the name, as if it were a sequence, help     
asked by 13.12.2017 / 19:12
1
answer

Trigger to subtract dates

Hello colleagues I have this query that works well to find the difference between two dates in days, hours, minutes and seconds but when I pass it to the trigger it does not work anymore I get a number 4873 I do not know what I'm doing wrong, my...
asked by 05.07.2017 / 16:20
2
answers

Create Stored Procedure to create a new table - SQLServer 2014

I need to create a procedure that creates a new table from the selection of one or several entities. The selection of 'IdEntity' I do from a gridView in the presentation layer in Visual Studio. What I have is this: CREATE PROCEDURE [dbo].[sp_...
asked by 06.07.2017 / 16:29
2
answers

download sql server 2014 w8.1 [closed]

I run out of a computer and I'm using another, one with window8.1 and I can not install sql server 2014. I open the microsoft page and the page is down ... I'll download and it's blank .. two days ago I'm wanting to install the sql server and I...
asked by 12.03.2017 / 07:03
1
answer

how can I concatenate records from the same column in sql server?

If you could help me, I have a table like this: identificativo fecha 72028586 11/05/2018 72028586 13/05/2018 72045976 17/05/2018 72063798 13/05/2018 and I need to make a query to show me th...
asked by 21.05.2018 / 18:07