Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Browsing all 3145 articles
Browse latest View live

Table data records comparison based on transaction logs?

Hi, We are having a disaster recovery exercise and I need to validate the accuracy of the records in the backup database server against the production database server. Here's what has been done:1....

View Article


Stored Procedure and Output value

Hi,I have created a stored procedure with two outputs. The @RowsUpdated works fine, but I am struggling to get a value for @id_user. I have tried using   if EXISTS(SELECT @id_user = id_user from...

View Article


Insert to Clustered Index

Hello, I have a stored procedure that consists of a relatively simple INSERT INTO SELECT, the table being inserted into is a Clustered Index. The target table is truncated before being inserted with...

View Article

CTE Group By not grouping results correctly

I have the following CTE that is doing a SUM on the field MERCHANDISE_AMT, seperately from 2 different queries and then I'm joining those results together in the final select. I'm having a problem with...

View Article

Using SUM OVER without an Order by

We capture the MPF at a header level and call it TOTAL_MPF.We  also capture Line Level MPF and call it MPF.The sum of the Line MPF should equal the TOTAL_MPF. We have some feed issues and a lot of...

View Article

Browsing all 3145 articles
Browse latest View live