Viewing 15 posts - 1,216 through 1,230 (of 8,731 total)
Here's a possible workaround. Note that this will prevent the use of index seeks.
CREATE TABLE #Sample(
DecoderCode varchar(20))
INSERT INTO #Sample
VALUES( '4294967296'), ('8589934591'), ('7220817'),...
June 5, 2017 at 11:20 am
June 2, 2017 at 11:28 am
The problem is that you're only leaving letters and numbers instead of all non-unicode characters.
The following function uses several techniques such as a tally table,and using FOR XML to...
June 2, 2017 at 10:50 am
[/quote]
Are you getting that output? How...
May 31, 2017 at 10:17 am
the source is an excel document
OrderYearMonth
201601
201501
201401
I am using then a data conversion for...
May 31, 2017 at 8:07 am
I am receiving an error with the code
cannot use DT_DBTIMESTAMP with a...
May 31, 2017 at 7:47 am
The problem is that you're coding in T-SQL and SSIS uses a different language for derived columns.
Here's a formula you can use:
(DT_DBTIMESTAMP)((DT_WSTR,4)(OrderYearMonth / 100) +...
May 31, 2017 at 5:39 am
you are doing the wrong thing badly. An update...
May 30, 2017 at 9:01 pm
Summarizing (and correcting) the options:
SELECT YEAR(GETDATE()) YEAR,
CAST(DATEADD(dd, -1, DATEADD(yy, DATEDIFF(yy, -1, GETDATE()), 0)) as date) LastDayofYear,
CONVERT(date, DATENAME(YEAR,GETDATE())+'1231'),
DATEADD(yyyy, DATEDIFF(yyyy, 0,...
May 26, 2017 at 12:53 pm
Obviously, the column names were changed, but I left the length exactly the same.
Several pork-chop airstrikes where ordered for this.
I'm not sure if data types are subject...
May 26, 2017 at 11:08 am
So, today I got this beauty for deployment. Things like these make me want to either slap or choke the developers.
CREATE TYPE [dbo].[udtbl_ParentSomeColumnXXID_ParentSomeOtherColumnXXID_ChildSomeColumnXXID_ChildSomeOtherColumnXXID_FlipFlag] AS TABLE
(
May 26, 2017 at 10:16 am
May 26, 2017 at 9:41 am
Why are you even using a loop? Why don't you do it in a single execution? What changes?
May 25, 2017 at 12:10 pm
cmartel 20772 - Thursday, May 25, 2017 9:09 AMThis means that Q1 is now only evaluated once.
That's correct.
May 25, 2017 at 9:35 am
What about creating a function that would run 5 times faster?
CREATE FUNCTION ifn_TruncateOrRoundDatetime(
@Datetime datetime,
@DatePart char(2),
@Truncate bit
)RETURNS TABLE WITH SCHEMABINDING
May 25, 2017 at 7:27 am
Viewing 15 posts - 1,216 through 1,230 (of 8,731 total)