Viewing 15 posts - 1 through 15 (of 58 total)
Phil Parkin (1/11/2013)
January 11, 2013 at 6:06 am
Koen Verbeeck (1/8/2013)
January 8, 2013 at 3:45 am
dwain.c (1/8/2013)
Or, even simpler:
WITH Filenames (fn) AS (
SELECT 'XX_YYYYY_AA_BBB_SampleTransaction_120807_55322.TXT'
UNION ALL SELECT 'XX_YYYYYY_DDD_MasterTransaction_120807_00005.TXT')
SELECT fn=LEFT(fn, PATINDEX('%[0-9]%', fn)-2)
FROM Filenames;
Thanks a lot Dwain.
Its working...
declare @a varchar(100) = 'XX_YYYYYY_DDD_MasterTransaction_120807_00005.TXT'
January 8, 2013 at 3:39 am
dwain.c (1/8/2013)
WITH Filenames (fn) AS (
SELECT 'XX_YYYYY_AA_BBB_SampleTransaction_120807_55322.TXT'
UNION ALL SELECT 'XX_YYYYYY_DDD_MasterTransaction_120807_00005.TXT')
SELECT fn=SUBSTRING(fn, 1, CHARINDEX('.', fn))
FROM Filenames;
WITH Filenames (fn) AS (
SELECT 'XX_YYYYY_AA_BBB_SampleTransaction_120807_55322.TXT'
UNION ALL SELECT 'XX_YYYYYY_DDD_MasterTransaction_120807_00005.TXT')
SELECT fn=Item
FROM Filenames
CROSS APPLY PatternSplitCM(fn,...
January 8, 2013 at 1:20 am
Koen Verbeeck (1/8/2013)
January 8, 2013 at 1:15 am
rhythm.varshney (12/20/2012)
sqlstud (12/20/2012)
Koen Verbeeck (12/20/2012)
December 20, 2012 at 8:34 am
Koen Verbeeck (12/20/2012)
December 20, 2012 at 5:20 am
sqlstud (10/16/2012)
I have one folder with two files
C:\Pkg\28052012_sample.xlsx
C:\Pkg\29052012_sample.xlsx
Using SSIS 2005 i have loaded the data from the above xlsx file using For each loop container.
Query:
Need to move the file to...
October 16, 2012 at 6:01 am
sqlstud (10/16/2012)
I have one folder with two files
C:\Pkg\28052012_sample.xlsx
C:\Pkg\29052012_sample.xlsx
Using SSIS 2005 i have loaded the data from the above xlsx file using For each loop container.
Query:
Need to move the file to...
October 16, 2012 at 5:55 am
robert.gerald.taylor (10/11/2012)
Have you tried creating three seperate Excel data sources?
Excel file is 2007 version and am using ssis 2005. We dont have option to use EXCEL 2007 directly. So using...
October 12, 2012 at 3:54 am
It is solved..
i made change in the connection string
Data Source=<path\xlsx filename>;Provider=Microsoft.ACE.OLEDB.12.0;Extended Properties="Excel 12.0;HDR=YES;IMEX=1";
Thanks to all
Regards
Sqlstud
October 12, 2012 at 3:04 am
Phil Parkin (10/11/2012)
October 11, 2012 at 2:30 am
Well it sort of depends on what you want. You currently have a datetime column but obviously "DECLINED" isn't going to work there. If you want to keep your datetime...
October 10, 2012 at 11:15 pm
Thanks Rhythmk..
I have loaded unmatched data via Erroroutput
Regards
Sqlstud
October 10, 2012 at 12:31 am
Thanks Chris and Div
Regards
Sqlstud
October 10, 2012 at 12:30 am
Viewing 15 posts - 1 through 15 (of 58 total)