Viewing 15 posts - 3,391 through 3,405 (of 5,111 total)
August 2, 2017 at 5:26 am
Some sample XML would be great here, so we know what we're looking for and what the structure of your data is like.
August 2, 2017 at 5:07 am
August 2, 2017 at 5:02 am
One way is by using the LEAD function, to get the value of the next Utilisation inside a CTE. Then you can JOIN on EffectiveDate and EndDate. Thus:
[code...
August 2, 2017 at 4:19 am
Without DDL and consumable sample data (so hasn't been tested):DECLARE @NewUserID int, @CopyUserID int;
INSERT INTO YourTable
SELECT Page_No, Record_entry,
@NewUserID,
...
August 2, 2017 at 3:47 am
GilaMonster - Monday, July 31, 2017 5:33 AMCrystal ball to aisle 7 please. Crystal ball to aisle 7.
https://www.sqlservercentral.com/Forums/1889451/Should-I-Redesign-table
Got to give you...
August 2, 2017 at 2:51 am
August 2, 2017 at 2:46 am
ActiveDirectory is NOT part of of the standard install of PowerShell, instead you need to install it. It might well be that ActiveDirectory is imported by...
August 2, 2017 at 2:19 am
Although late to the party, why parse the table twice?
[Code]SELECT ProductID, ProductName,
CASE @OutputType WHEN 'CSV' THEN ProductDate END AS ProductDate
FROM Product;[/code]
(Typed on phone, apologies if...
August 1, 2017 at 4:55 pm
August 1, 2017 at 10:14 am
Everyone's mad that I...
August 1, 2017 at 9:51 am
August 1, 2017 at 9:44 am
SQL isn't going to work, not without some kind of column you can order by. You could, probably, set up a iterative process in SSIS to load the data, yes.
August 1, 2017 at 9:20 am
Ok, why not add an if statement to check the value of $line. If it's blank, don't update the value (so it'll retain its previous value from the "previous" line)....
August 1, 2017 at 8:59 am
Viewing 15 posts - 3,391 through 3,405 (of 5,111 total)