Viewing 15 posts - 1,711 through 1,725 (of 3,738 total)
I should have mentioned that I have the Algorithm_Literals
in two schemas 'cyp' and 'ctl'.
I regret the omission.:blush:
March 15, 2012 at 6:25 am
John Mitchell-245523 (3/15/2012)
Does this not work?
IF NOT EXISTS (SELECT * FROM sys.key_constraints
WHERE type = 'PK'
AND OBJECT_NAME(parent_object_id) = 'Algorithm_Literals'
)...
John
The problem is that I have primary keys for tables with the same...
March 15, 2012 at 6:11 am
manub22 (3/14/2012)
So I've put all of those steps at one place, check...
March 15, 2012 at 6:08 am
capn.hector (3/14/2012)
March 15, 2012 at 5:36 am
Thanks!
March 14, 2012 at 11:23 am
I enabled Database Mail and used the Wizard to configure Database Mail on another instance of the machine I'm have trouble with.
I can send SMTP MAil through telnet.
Something that I...
March 14, 2012 at 11:22 am
Thanks for all of the help. 😎
March 13, 2012 at 3:37 pm
Thanks for all of the help.
I appreciate it very much.
March 13, 2012 at 3:35 pm
A problem that I'm running into on this is that it creates a second colum once it encounters the END in the CASE Statement.
I need one column of output.
CONVERT(CHAR(4), YEAR(EffectiveDate))+
CASE...
March 13, 2012 at 9:11 am
I agree that I did not state my question very well.
The format of the column the data was being inserted to was the format that I specified and no it...
March 13, 2012 at 8:47 am
That was dumb, thanks.
March 13, 2012 at 7:34 am
Thanks for the code.
When I tried to add the day for another Column I get a syntax error.
CONVERT(CHAR(4), YEAR(EffectiveDate))+
CASE
WHEN LEN(MONTH(EffectiveDate)) = 1
THEN '0'+CONVERT(CHAR(1),MONTH(EffectiveDate))
ELSE CONVERT(CHAR(2),MONTH(EffectiveDate))
CASE
WHEN LEN(DAY(EffectiveDate)) = 1
THEN '0'+CONVERT(CHAR(1),DAY(EffectiveDate))
ELSE...
March 13, 2012 at 7:30 am
--select cast(datepart(month,getdate()) as varchar(2)) + cast(datepart(day,getdate()) as varchar(2)) + cast(datepart(year,getdate()) as varchar(4))
March 13, 2012 at 6:54 am
I'm using the DatePart Function but I need to include a CAST.
March 13, 2012 at 6:50 am
Pam Brisjar (3/12/2012)
March 12, 2012 at 2:53 pm
Viewing 15 posts - 1,711 through 1,725 (of 3,738 total)