Viewing 15 posts - 946 through 960 (of 3,738 total)
Lynn Pettis (1/17/2014)
Restoring or Recovery? Just want to be sure.Can you provide more information regarding the database? Is it the target of log shipping or mirroring?
It went into...
January 17, 2014 at 4:10 pm
I removed the function from the WHERE and replaced it with a local variable:
AND CD_DW_INSERT_DATE > @Date
I got another problem on a JOIN.
Found filtering columns wrapped inside User-Defined Function...
January 16, 2014 at 12:51 pm
Lowell (1/16/2014)
dateadd is not deprecated.
I run it through ubitsoft's T-SQL Analyzer and I get the following:
SA0028 : [Deprecated]Function call can be extracted from the WHERE clause to avoid...
January 16, 2014 at 10:31 am
I get the following warning when using SQL Enlight:
Avoid using ISNUMERIC function as it accepts floating point and monetary number.
January 16, 2014 at 10:19 am
David McKinney (1/15/2014)
January 15, 2014 at 8:27 am
Thanks for the replies.
The following worked:
SUBSTRING(Inception,6,2) + "/" + SUBSTRING(Inception,9,2) + "/" + SUBSTRING(Inception,1,4)
January 10, 2014 at 9:44 am
I tried using the following expression and it is not valid syntax. Can not parse.
I had to change the Column from Inception which I defined to Column 8 as well.
(DT_WSTR,...
January 10, 2014 at 7:57 am
I hope that this is enough information.
Source:
6600154038120140301REN|XO|XO||FL|81|660015403|2010-03-01 00:00:00|03/01/2014|12|
Destination Desired Output:
6600154038120140301REN|XO|XO||FL|81|660015403|03/01/2010|03/01/2014|
Thank you.
January 10, 2014 at 6:09 am
:crazy:
Koen Verbeeck (1/9/2014)
You read the file with SSIS, do the transformations with a derived column and write the data back to a file.
I was thinking that it might have been...
January 9, 2014 at 3:43 pm
Luis Cazares (1/9/2014)
declare @SSDate datetime = '20140109'
declare @CharSSDate char(10)
SELECT CONVERT( char(10), @SSDate, 103), --4-digit year
STUFF( CONVERT( char(10), @SSDate, 103),...
January 9, 2014 at 9:32 am
Kurt W. Zimmerman (1/9/2014)
Your first post indicated you wanted a 2 digit year. Your solution provides you a 4 digit year. Just saying.Kurt
Sorry about the Year.
It first was...
January 9, 2014 at 9:29 am
I got it.
,RIGHT('0' + CAST(DATEPART(mm,PURCHASE_DATE) as varchar(2)),2)+ '/' +
RIGHT('0' + CAST(DATEPART(dd,PURCHASE_DATE) as varchar(2)),2)+ '/' +
CAST(DATEPART(yyyy,PURCHASE_DATE) as varchar(4))...
January 9, 2014 at 8:20 am
The tables are small.
Thanks.
December 4, 2013 at 6:54 am
Viewing 15 posts - 946 through 960 (of 3,738 total)