|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Wednesday, June 12, 2013 2:02 AM
Points: 18,
Visits: 102
|
|
Hi all
Can someone please help me with a link that has an example on how to export data to multiple Excel files. Files will be created for different department.
I have looked at the example obtained here http://www.devtechie.com/post/2012/02/29/Export-Data-into-multiple-Excel-file-SSIS.aspx but I get an error about the DepartmentReport table already existing, tried to add a File System Task but I am still struggling.
Will appreciate any assistance.
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Wednesday, June 12, 2013 2:02 AM
Points: 18,
Visits: 102
|
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Wednesday, May 22, 2013 4:50 AM
Points: 423,
Visits: 633
|
|
Excellent piece and its helped me figure out my problem with adding the files to a folder.
My problem is that my folders arent on the C drive but they are in a specific folder.... e.g.
And when I add this to the connection string like it says in the documentation
"C:\\DataFiles\\" + @[User::JobTitle] + ".csv"
But this instead.....
\\D-fs11\example-it\PROJECTS\DATA WAREHOUSING\Extract_To_CSV+@[User::CODE_NAME_DATE_File_Name]+".csv"
I get an error message
Attempt to parse the expression failed. The toke "\" at line number 0 was not recognised. Im beginning to think that you have to add all the folders for this to the C Drive only.
|
|
|
|
|
SSCarpal Tunnel
       
Group: General Forum Members
Last Login: Yesterday @ 9:53 PM
Points: 4,315,
Visits: 9,647
|
|
Debbie Edwards (2/21/2013) Excellent piece and its helped me figure out my problem with adding the files to a folder.
My problem is that my folders arent on the C drive but they are in a specific folder.... e.g.
And when I add this to the connection string like it says in the documentation
"C:\\DataFiles\\" + @[User::JobTitle] + ".csv"
But this instead.....
\\D-fs11\example-it\PROJECTS\DATA WAREHOUSING\Extract_To_CSV+@[User::CODE_NAME_DATE_File_Name]+".csv"
I get an error message
Attempt to parse the expression failed. The toke "\" at line number 0 was not recognised. Im beginning to think that you have to add all the folders for this to the C Drive only.
I don't think so. Could it be that single backslash characters are causing an issue? (You may need to double them up.)
____________________________________________________________________________________________
Help us to help you. For better, quicker and more focused answers to your questions, consider following the advice in this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
If you are asking for help and your post does not contain a question, you should expect responses which do not contain any answers. Put a question mark in there somewhere - it's not rocket science.
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Wednesday, June 12, 2013 2:02 AM
Points: 18,
Visits: 102
|
|
Debbie Edwards (2/21/2013) Excellent piece and its helped me figure out my problem with adding the files to a folder.
My problem is that my folders arent on the C drive but they are in a specific folder.... e.g.
And when I add this to the connection string like it says in the documentation
"C:\\DataFiles\\" + @[User::JobTitle] + ".csv"
But this instead.....
\\D-fs11\example-it\PROJECTS\DATA WAREHOUSING\Extract_To_CSV+@[User::CODE_NAME_DATE_File_Name]+".csv"
I get an error message
Attempt to parse the expression failed. The toke "\" at line number 0 was not recognised. Im beginning to think that you have to add all the folders for this to the C Drive only.
Try "\\D-fs11\\example-it\\PROJECTS\\DATA WAREHOUSING\\Extract_To_CSV\\" +@[User::CODE_NAME_DATE_File_Name]+".csv"
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Wednesday, May 22, 2013 4:50 AM
Points: 423,
Visits: 633
|
|
Ive had an better error message telling me the example same thing so at least thats something to go on!
Still I tried doubling up \\\\ and got the same error message.
Hmmmmm. Such a tiny part of it. So annoying when these things take up so much time
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Wednesday, May 22, 2013 4:50 AM
Points: 423,
Visits: 633
|
|
Just realised I have been an idiot on this one!
I blame my smaller screen and terrible eyesight 
Of course thats what was meant!
Thank you
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Wednesday, June 12, 2013 2:02 AM
Points: 18,
Visits: 102
|
|
Debbie Edwards (2/21/2013)
Just realised I have been an idiot on this one! I blame my smaller screen and terrible eyesight  Of course thats what was meant! Thank you
So all sorted now?
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Wednesday, May 22, 2013 4:50 AM
Points: 423,
Visits: 633
|
|
Not yet...
I have another error message about
The token [The symbol for square] at line number zero ....
Im imagining this is because I have spaces in the folder names that I will need to replace with another symbol. This is just a guess though.
Difficult to find documentation about this stuff
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Wednesday, May 22, 2013 4:50 AM
Points: 423,
Visits: 633
|
|
Ive been a bit daft again. I already have a variable with the folder in.
Ive concatenated this and the file name together to get the whole shebang.
@[Extract_To_CSV_Folder]+@[User::DFES_NAME_DATE_File_Name]+".csv"Hopefully this will work.
Fingers crossed
|
|
|
|