dbTalk Databases Forums  

Date Trouble

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Date Trouble in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
DONNA
 
Posts: n/a

Default Date Trouble - 06-16-2006 , 04:56 PM






I have a field called YEAR_FORCAST. It is defined as smalint. I need to
concatenate '01/01' to YEAR_FORECAST and then use the field in a sequel
statement. How would I do this.

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Date Trouble - 06-17-2006 , 06:03 AM






Hello DONNA,


How about something like

SELECT '01/01/' + CAST(YEAR_FORECAST as CHAR(4)) as MyConcantenatedValue
FROM ..........


Allan



Quote:
I have a field called YEAR_FORCAST. It is defined as smalint. I need
to concatenate '01/01' to YEAR_FORECAST and then use the field in a
sequel statement. How would I do this.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.