Take a look at this article
http://support.microsoft.com/kb/321686
sqlTake a look at this article
http://support.microsoft.com/kb/321686
sqlFirstly, i'm new to integration services and have only done a little with DTS jobs.
I'm trying to create an integration services project which will import data from an two worksheets in an Excel spreadsheet to two different tables in a database. I'm looking at only one table at present to make things a little more understandable.
One stipulation i have is that i need to be able to specify a variable value and insert that as an additional column in the database. I have and Excel source and a SQL destination both of which have been set up with there specific connection managers. I also have a variable which i add in using the derived column task.
When i try to debug this i am getting a few problems. I think these may be to do with the fact that although the worksheet in Excel has 20 rows (1st column shows these numbers) i only want those rows with data in them. If i preview the excel table it shows all the rows including those with null columns. Is there some sort of way that i can only get the rows that have data in the columns after the row number. I.e. can i select rows that do not have a second column value = to NULL.
I hope this makes sense and that someone can help me out with this problem.
All help is greatly appreciated.
Cheers,
Grant
P.S.
Apologies. I have this resolved now. I didn't see the option to use a SQL command as apposed to a table or view when setting up the Excel source.
I am still however getting the following errors which i'd appreciate some help on:
Error: 0xC0202009 at Data Flow Task, Excel Source [1]: An OLE DB error has occurred. Error code: 0x80040E21.
Error: 0xC0208265 at Data Flow Task, Excel Source [1]: Failed to retrieve long data for column "Rework Entry Information (BE SPECIFIC)".
Error: 0xC020901C at Data Flow Task, Excel Source [1]: There was an error with output column "Rework Entry Information" (170) on output "Excel Source Output" (9). The column status returned was: "DBSTATUS_UNAVAILABLE".
Error: 0xC0209029 at Data Flow Task, Excel Source [1]: The "output column "Rework Entry Information" (170)" failed because error code 0xC0209071 occurred, and the error row disposition on "output column "Rework Entry Information" (170)" specifies failure on error. An error occurred on the specified object of the specified component.
Error: 0xC0047038 at Data Flow Task, DTS.Pipeline: The PrimeOutput method on component "Excel Source" (1) returned error code 0xC0209029. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.
Error: 0xC0047021 at Data Flow Task, DTS.Pipeline: Thread "SourceThread0" has exited with error code 0xC0047038.
Error: 0xC0047039 at Data Flow Task, DTS.Pipeline: Thread "WorkThread0" received a shutdown signal and is terminating. The user requested a shutdown, or an error in another thread is causing the pipeline to shutdown.
Error: 0xC0047021 at Data Flow Task, DTS.Pipeline: Thread "WorkThread0" has exited with error code 0xC0047039.
Any help on this would be greatly appreciated.
GrantI'd also like to know how to go about specifying a variable as the datasource for my Excel connection. This is so that at runtime i can specify a number of different files to process.
Thank you,
Grant|||
You can use a ForEach loop container in your control flow to go through all files in a specific file system folder; then inside of that ForEach container add a dataflow task that does what you want. You may need to use an expression to change the connection string of your Excel Connection manager for every iteration (using the variable that has the collection value). I have never tried that before; this is just an idea.
good luck!
Rafael Salas
|||I had a similar problem importing into a SQL Server 2000 database with SQL Managment Studio. If you're using SQL 2000, try using the appropriate version of Enterprise Manager.|||I had a similar problem importing into a SQL Server 2000 database with SQL Managment Studio for SQL Server 2005. If you're using SQL Server 2000, try using the appropriate version of Enterprise Manager.After import of AS database to a new project I need to change the cube storage location because it probably points to a location on the server that is not valid in dev.
How can I change the cube storage location in the project (not from management studio)?
Regards,
Right click on the project in the solutions explorer window. Select properties and later deployment.
Regards
Thomas Ivarsson
|||Thanks for your ansver.
In solution explorer properties I can change the project path - but - I can't see how I can change the storage location of the cube?
My problem is that I can't deploy my project after import of AS database to a new project.
Any ideas are welcome.
Regards,
|||
You can change the name of the database under server in the deployment option?
Thomas Ivarsson
|||Yes - but it is the storage location of the cube - not the name.
|||I understand. In the management studio you can right click the cube(properties), after deployment, and change the storage location property. You also have a datadir property for the whole SSAS2005.
I have not changed these properties myself so I do not know about any problems. I have not found any settings for this in the BI-Dev Studio.
Edit:I have. Right click the cube in BI-Dev and choose properties. Change the storage location for the cube.
Regards
Thomas Ivarsson
|||Well - no.
I have tried that - it does not help.
My problem is that I can't deploy and I suppose it is because my project (after import) can't see my dev AS db.
In prod SQL server is installed at E:\...
in dev SQL server is installed at C:\... on 2 different boxes.
Do you know if you can create a project with the import AS template from the server and then move then project to my laptop to do dev?
Regards,
|||Sorry. Back from the golf course.
I have tried the same thing without any problems. You say that you are unable to deploy the solution, it is not about file directories. You cannot deploy with standard settings?
Do you have security roles in your imported project that does not match the location /server that you would like to deploy to?
Next, are you using a network share for your data folder, like \\server\logicaldisk\program files ....?
Regards
Thomas Ivarsson