Viewing 15 posts - 256 through 270 (of 297 total)
hmmm... I would probably use a Derived Column transformation:
(DT_NUMERIC,20,2)(REPLACE(REPLACE([EuropeanVarcharAmount],".",""),",","."))
or something like that...
November 5, 2019 at 7:18 pm
An example of a Stored Procedure where an output parameter could be used would be where the caller request a dataset be returned based on some input parameters, but at...
July 19, 2019 at 9:45 am
One must apparently be very careful with certain words here. I posted a reply which I subsequently edited to include a comment about me a busing (one word) CROSS APPLY...
June 28, 2019 at 4:02 pm
;WITH myTable AS (SELECT * FROM (VALUES ('3#5'),('8063#0018375'),('8063#018375'),('063#018375'),('063invalid018375')) X(AccountNumber))
SELECT
t.AccountNumber,
lrp.LeftMostAccountNumberPart,
lrp.RightMostAccountNumberPart,
fp.AdjustedAccountID
FROM myTable t
CROSS APPLY (
SELECT
CHARINDEX('#', t.AccountNumber) AS sepPos,
LEN(t.AccountNumber) AS accLen
) sp
CROSS APPLY (
SELECT
RIGHT('0000'...
June 28, 2019 at 3:52 pm
;WITH myTable AS (SELECT * FROM (VALUES ('3#5'),('8063#0018375'),('8063#018375'),('063#018375'),('063invalid018375')) X(AccountNumber))
SELECT
t.AccountNumber,
lrp.LeftMostAccountNumberPart,
lrp.RightMostAccountNumberPart,
fp.AdjustedAccountID
FROM myTable t
CROSS APPLY (
SELECT
CHARINDEX('#', t.AccountNumber) AS sepPos,
LEN(t.AccountNumber) AS accLen
) sp
CROSS APPLY (
SELECT
RIGHT('0000'...
June 28, 2019 at 3:29 pm
I'm guessing this has to do with the new Cardinality Estimator that was introduced with SQL Server 2014.
We've seen some strange goings on with this feature if the statistics aren't...
June 20, 2019 at 3:19 pm
Never done it, but if you have CLR enabled, you might be able to use that instead of the old VBScript functions.
https://sqlsunday.com/2013/03/03/web-requests-using-clr-proc/
March 21, 2019 at 3:52 am
March 15, 2019 at 1:36 pm
January 25, 2019 at 4:02 am
January 18, 2019 at 1:49 am
Sorry, but your story comes accross more like one of bad management style than one about a team member behaving badly to disappointment over his role in a project.
May 14, 2018 at 1:46 am
An additional note:
If for some reason it is necessary to keep the two source datasets in separate sections within the combined dataset, one can add an Id for each one...
February 1, 2018 at 11:40 am
drew.allen - Tuesday, January 30, 2018 9:12 AMAnd there is only one sort on the entire UNION.
Yes, exactly, and that is probably where...
February 1, 2018 at 11:22 am
DesNorton - Wednesday, January 31, 2018 10:31 PMTry changing your JOIN to a LEFT JOIN
LEFT JOIN alone will not cut it. You'll...
February 1, 2018 at 10:32 am
@stix83
It is not really clear (to me at least) what you want to do. Some sample data and desired output would go a long way towards allowing us to...
December 12, 2017 at 8:42 am
Viewing 15 posts - 256 through 270 (of 297 total)