|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Thursday, May 09, 2013 1:28 PM
Points: 81,
Visits: 624
|
|
Hello -
I'm working on a SSIS Package I can Parse Query with no issue but as soon as I select OK I get the following message that is attached to this post.
I can take this same script and run it from SSMS with no issues and return data.
Thought or other ideas why I keep getting this?
Regards, David
|
|
|
|
|
SSCarpal Tunnel
       
Group: General Forum Members
Last Login: Yesterday @ 5:12 AM
Points: 4,226,
Visits: 9,458
|
|
Could it be a problem with spaces in the column names?
____________________________________________________________________________________________
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.
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Thursday, May 09, 2013 1:28 PM
Points: 81,
Visits: 624
|
|
I wish it was that. I tried to remove the spaces with no such luck.
This is an image from the table that the view reads from (attached)
|
|
|
|
|
SSCarpal Tunnel
       
Group: General Forum Members
Last Login: Yesterday @ 5:12 AM
Points: 4,226,
Visits: 9,458
|
|
david.ostrander (11/22/2011) I wish it was that. I tried to remove the spaces with no such luck.
This is an image from the table that the view reads from (attached)
That's not a table definition - is it a view definition? Its columns have spaces in their names...
____________________________________________________________________________________________
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.
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Thursday, May 09, 2013 1:28 PM
Points: 81,
Visits: 624
|
|
| If your asking am I querying a view for the SSIS package then yes I am.
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 10:09 PM
Points: 5,658,
Visits: 6,100
|
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Thursday, May 09, 2013 1:28 PM
Points: 81,
Visits: 624
|
|
| Thank you I tried the sp_refreshview hgvTimeDataFetchWithRates_Rosetta it stated that it completed but I'm still getting the same errors.
|
|
|
|
|
SSCarpal Tunnel
       
Group: General Forum Members
Last Login: Yesterday @ 5:12 AM
Points: 4,226,
Visits: 9,458
|
|
OK - but I asked about the column names and I'm not sure that you've tried what I suggested.
In your SQL for the extraction from the view, try aliasing the columns with spaces so that they have no spaces as far as SSIS is concerned:
[Cost Rate] CostRate, [Line Item Status] LineItemStatus, etc etc
____________________________________________________________________________________________
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.
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Thursday, May 09, 2013 1:28 PM
Points: 81,
Visits: 624
|
|
Thanks to everyone for the replies. We found out that the table name was wrong. Once it was changed to the right database it worked. But everyone gave me other things to try if we run into this again.
Thanks, David
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Friday, May 10, 2013 10:11 AM
Points: 6,
Visits: 139
|
|
Just in case anyone else has gotten here for the same reason I did which was you're trying to build an SSIS package based on a stored procedure that is selecting the data from a temporary table (Select column1, column2, column3 from #tablename).
If you can, it worked better if we used a table variable instead: DECLARE @tablename (Column1 varchar(10), column2 varchar(10), column3 varchar(10) )
Of course, the problem with that is that the data is put all in memory instead of TempDB, but it did resolve our issue.
|
|
|
|