troubleshooting Question

Need to return a 2 digit month and day in SSIS expression builder

Avatar of blberger
blberger asked on
Microsoft SQL Server
4 Comments1 Solution8297 ViewsLast Modified:
I need to return a leading zero when the month and or the day value is less than 10 when the SSIS expression builder code computes the new filename on a daily bassis.  But the attached code does not do that and I have a very short period to fix this.  I have looked at the on-line documentation, but the functions for SSIS expression builder are not clearly documented, or at least I am not seeing descriptions or examples.  I would appreciate assistance
"\\" + "\\" + "KUCY2GENIDB01" + "\\" + "MarketingData" + "\\" +
(DT_WSTR,2) Month(GetDate()) +
(DT_WSTR,2) Day(GetDate()) + 
(DT_WSTR,4) Year(GetDate()) + 
"_CallData.csv" +
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros