Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 OLEDB SOURCE QUERY THROUGH VARIABLE

Author  Topic 

h.singh10
Starting Member

16 Posts

Posted - 2012-01-13 : 19:22:56
I have an oledb source which extract data from ORACLE. The query is coming from a variable (by select sql command from variable.

I have one user variable v1 having value 100

The another variable holds the query (string datatype) like:

"select * from test where id = "+@v1+""

I am getting error as:

Error HRESULT E_FAIL has been returned from a call to a COM component. (Microsoft Visual Studio)

Anybody have any suggestion about this error.

Thanks

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-01-14 : 00:03:37
whats the data type of @v1 variable?

did you validate expression in expression builder?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -