If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Microsoft SQL Server > ssis expression through variable

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-12-12, 14:11
h.singh10 h.singh10 is offline
Registered User
 
Join Date: Dec 2011
Posts: 13
ssis expression through variable

Can anybody help me.

I am using an oledb source. the query is coming from a variable. The database to which oledb source is connected is Oracle.

Mt variable contains the following query:

"SELECT REQUEST_ID FROM COMPLIANCE_REQUEST

where LOAD_TMSTP between (select max(END_TMSTP) FROM BATCH_JOB_LOG) and

TO_DATE("'+RIGHT("0" + (DT_STR,4,1252)DATEPART( "dd" , @[System:tartTime] ), 2) + "-"+RIGHT("0" + (DT_STR,4,1252)DATEPART( "mm" , @[System:tartTime] ), 2) + "-" +RIGHT("0" + (DT_STR,4,1252)DATEPART( "yy" , @[System:tartTime] ), 2) + " " +RIGHT("0" + (DT_STR,4,1252)DATEPART( "hh" , @[System:tartTime] ), 2) + "." +RIGHT("0" + (DT_STR,4,1252)DATEPART( "mi" , @[System:tartTime] ), 2) + "." +RIGHT("0" + (DT_STR,4,1252)DATEPART( "ss" , @[System:tartTime] ), 2) +'",'DD-MM-YY HH24.MI.SS')"

I am getting error as :

Error at Data Flow Task [OLE DB Source 2 [2177]]: No column information was returned by the SQL command.

Error at Data Flow Task [OLE DB Source 2 [2177]]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E4A.
An OLE DB record is available. Source: "OraOLEDB" Hresult: 0x80040E4A Description: "Command was not prepared.".

Error at Data Flow Task [OLE DB Source 2 [2177]]: Unable to retrieve column information from the data source. Make sure your target table in the database is available.

(Microsoft Visual Studio)

i CHECKED. THE TABLE TABLE NAME, COLUMN NAME ARE CORRECT.

pLEASE HELP ME RESOLVE THIS ISSUE.

Thanks
Reply With Quote
  #2 (permalink)  
Old 01-12-12, 15:56
Brett Kaiser Brett Kaiser is offline
Window Washer
 
Join Date: Nov 2002
Location: Jersey
Posts: 10,303
There are all these emoticons in your code....

And Yet ANOTHER Reason not to use SSIS
__________________
Brett
8-)

It's a Great Day for America everybody!

dbforums Yak CorralRadio 'Rita
dbForums Member List
I'm Good Once as I ever was

The physical order of data in a database has no meaning.
Reply With Quote
  #3 (permalink)  
Old 01-12-12, 16:02
h.singh10 h.singh10 is offline
Registered User
 
Join Date: Dec 2011
Posts: 13
it is start time
Reply With Quote
  #4 (permalink)  
Old 01-12-12, 17:27
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,609
The source database does not appear to be SQL Server. What platform (DB2, Oracle, MySQL, etc) is the source database running on?

-PatP
__________________
In theory, theory and practice are identical. In practice, theory and practice are unrelated.
Reply With Quote
  #5 (permalink)  
Old 01-13-12, 08:44
Wim Wim is offline
Registered User
 
Join Date: Nov 2004
Posts: 1,280
Quote:
Originally Posted by Brett Kaiser View Post
And Yet ANOTHER Reason not to use SSIS
We are migrating/rewriting an application running on SQL Server 2000 to SQL Server 2008 R2. We were planning to migrate the many DTS packages to SSIS.

I can't tell if you were just kidding. Are there better ways to do batch processing than by using SSIS on a SQL Server?
__________________
With kind regards . . . . . SQL Server 2000/2005/2008/2008 R2 Earned beers: 16
Wim
Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald Knuth
Grabel's Law: 2 is not equal to 3 -- not even for very large values of 2.
Pat Phelan's Law: 2 very definitely CAN equal 3 -- in at least two programming languages
Reply With Quote
  #6 (permalink)  
Old 01-13-12, 12:37
h.singh10 h.singh10 is offline
Registered User
 
Join Date: Dec 2011
Posts: 13
hi pat

the database is oracle
Reply With Quote
  #7 (permalink)  
Old 01-13-12, 13:00
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,609
Quote:
Originally Posted by Wim View Post
We are migrating/rewriting an application running on SQL Server 2000 to SQL Server 2008 R2. We were planning to migrate the many DTS packages to SSIS.

I can't tell if you were just kidding. Are there better ways to do batch processing than by using SSIS on a SQL Server?
Brett is decidedly "old school" on a lot of issues. He comes from a DB2 / COBOL environment where he's quite comfortable. His ideas work, and work well for him. Brett's ideas would cause the folks that are accustomed to GUI tools and automation to have fits.

Both camps (Brett's and the current tool based concept from Microsoft) work, and can work from very poorly to very well depending on their implementation. There's nothing wrong with 100% coded solutions and I often prefer them myself, but they require more disipline and training to make them work well. There's nothing wrong with using the GUI tools and code generators, as long as you understand what the tools are doing "under the hood" so that you can make good choices. It is easier for most people to pick one methodology (code versus tools) and stick with that methodology, but some of us do use both of these methodologies and more!

-PatP
__________________
In theory, theory and practice are identical. In practice, theory and practice are unrelated.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On