Significance of 'Days Back' field in SQL datasource
Hi,
I have a 'days back' as one of the field in the view from where i'm extracting data to an ODS. I have it set for selection. I don't have any IO associated to it in the ODS. What is the significance of this field?
I have run a full load around a month back. I want to do a delta load. I guess if I don't put any values in the 'days back' field in the infopackage, it won't make any difference and the delta load will load properly. If i put values like 0-5, would it only transfer data upto 5 days back?
Please let me know if there is any documentation on this.
Regards
Sameer
If this is a custom extractor then you are, of course, on your own ...
Similar Messages
-
Workarounds for searching a text field in SQL Server 2000
Hi,
I have a need to search within a text field in SQL Server 2000. In the
limitations section it notes that this is not possible. Is there a
recommended workaround for this in terms of performance? I have no way
of knowing the length of the text field in advance, and this could be
fairly large. Also, the number of objects that could contain the text
can be fairly large as well.
Thanks in advance,
KhamsoukNote that some databases (or Oracle, at least) provide alternatives to
LIKE '%foo%' that are more efficient for large text blocks, given that
you have the appropriate indexing plugins etc. etc.
To use one of those types of search operators, you'd have to put
together a custom extension.
-Fred
Fred Lucas <[email protected]> wrote:
I'm assuming that when you say 'a text field', you're referring to a
SQLServer TEXT field, as opposed to just any old field that contains
text.
Like I said, I'm by no means a SQLServer pro, but I just ran:
SELECT CLOBSTRINGX
FROM LOCATORTESTOBJECTX
WHERE CLOBSTRINGX LIKE '%o%';
and got back my test row with 'foo' in the CLOBSTRINGX column.
CLOBSTRINGX is a TEXT column.
So, it is possible that our stringContains() extension will just work.
But then again, maybe not. I'm guessing it will.
Give it a try and, if you get an error, post the generated SQL (turn on
SQL output by setting the com.solarmetric.kodo.Logger property to
'stdout') and the error that you get. Also, try executing the generated
SQL directly against your data store to see if it works there.
-Fred
Khamsouk Souvanlasy <[email protected]> wrote:
Basically I just want to use kodo's extended stringContains syntax on a
text field. Is this possible?
Khamsouk
Fred Lucas wrote:
I'm not intimitely familiar with SQLServer's text searching
capabilities, but I'm confident that you could create a query extension
that would do what you need it to do.
What is the SQL that you are trying to generate?
-Fred
Khamsouk Souvanlasy <[email protected]> wrote:
Hi,
I have a need to search within a text field in SQL Server 2000. In the
limitations section it notes that this is not possible. Is there a
recommended workaround for this in terms of performance? I have no way
of knowing the length of the text field in advance, and this could be
fairly large. Also, the number of objects that could contain the text
can be fairly large as well.
Thanks in advance,
Khamsouk
Fred Lucas
SolarMetric Inc.
202-595-2064 x1122
http://www.solarmetric.com -
Hi All,
I got complain that one of my reports which was subscribed from SSRS Report Manager could not delivered to targeted people 3 days back.
I want to to check that Email was sent or not So I wrote below query but I think table will be over written on each execution of subscription and cannot see the history. I can see only the latest data.
SELECT A.NAME,B.Description,B.LastStatus,B.LastRunTime
FROM [dbo].[Catalog] A
INNER JOIN [dbo].[Subscriptions] B ON A.ItemID=B.Report_OID
WHERE TYPE=2
AND NAME='REPORT_NAME'
AND B.LastStatus LIKE '%EMAIL ID%'
AND B.LastRunTime>Getdate()-1
ORDER BY B.LastRunTime
There is another query which says that report was rendered by SUBSCRIPTION and have no track that Email was sent or not.
--Query to find out how a report was execute
SELECT * FROM EXECUTIONLOG3
WHERE REQUESTTYPE='SUBSCRIPTION'
AND ITEMPATH LIKE '%REPORT NAME'
ORDER BY TIMESTART DESC
There is any way to track this?
https://msdn.microsoft.com/en-us/library/ms159110.aspx
http://blogs.msdn.com/b/deanka/archive/2009/01/13/diagnosing-and-troubleshooting-subscriptions.aspx
Thanks Shiven:) If Answer is Helpful, Please VoteHi S Kumar Dubey,
According to your description, you want to find the failed subscription report and resent the report to users again.
In this scenario, you can run the query below to find the failed subscription.
use ReportServer
go
SELECT C.Name, S.LastRunTime, S.LastStatus, S.Description
FROM Subscriptions AS S
LEFT OUTER JOIN [Catalog] AS C
ON C.ItemID = S.Report_OID
WHERE LEFT (S.LastStatus, 12) != 'Mail sent to'
AND LEFT (S.LastStatus, 12) != 'New Subscrip'
Then you can execute the code with jobstep command below to find the corresponding SQL Agent Jobs for failed subscription, then execute the job to send the email again.
select 'exec sp_start_job @job_name = ''' + cast(j.name as varchar(40)) + ''''
from msdb.dbo.sysjobs j
join msdb.dbo.sysjobsteps js on js.job_id = j.job_id
join [ReportServer].[dbo].[Subscriptions] s on js.command like '%' + cast(s.subscriptionid as varchar(40)) + '%'
where s.LastStatus like 'Failure sending mail%';
Reference:
SSRS Failed Subscription Notifications
Re-running SSRS subscription jobs that have failed
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support -
Hi All,
I need to find the calendar date 30 business days back from SYSDATE:
Formula: Calendar Date = SYSDATE - "30 business days"
I have a table contains:
cal_dt,bus_day,holiday
7/1/10,1,NULL
7/2/10,1,NULL
7/3/10,0,NULL
7/4/10,0,NULL
7/5/10,0,'Y'
7/6/10,1,NULL
For the life of me, I can't figure it out how to write the SQL? Please help.
Using Oracle 10g.
Thanks,
MaryThe first query gives you: Today's date - 30 'BUSINESS' days
select cal_dt
from
select cal_dt, bus_day, holiday,
row_number() over (order by cal_dt desc) rn
from calendar
where cal_dt <= TRUNC(SYSDATE)
and bus_day = 1
and holiday is NULL
where rn = 31;
The second query gives you: Last 'BUSINESS' day preceding (Today's date - 30 'CALENDER' days)
Select cal_dt
from (
select cal_dt, bus_day, holiday,
row_number() over (order by cal_dt desc) rn
from calendar
where cal_dt <= TRUNC(SYSDATE-30)
and bus_day = 1
and holiday is NULL
where rn = 1;
Or, you may try a simple alternative to my first query:
select cal_dt
from
select cal_dt, ROWNUM rn
from
select cal_dt, bus_day, holiday
from calendar
where cal_dt <= TRUNC(SYSDATE)
and bus_day = 1
and holiday is NULL
order by cal_dt
where rn = 31;
You may try to run these queries step by step to check what is happening and what suits to your needs. -
Problems with TIMESTAMP Field from SQL Server
OBIEE 11g
Hi All,
I want to convert data into OBIEE that is coming from a TIMESTAMP field in SQL Server Database. So in SQL Server field has data like '9/20/2012 12:05:08 AM'. I have first changed the datatype in physical layer to DATETIME and then in BMM I do a CAST(<DATE_FIELD> AS DATE). On the frontend when I use this column the error I get back is [nQSError: 59030] Illegal data type conversion from source type: VARBINARY to target type: TIMESTAMP. (HY000). Does anyone know a workaround or solution.
Thanks in Advance!Hi Guys,
None of the solutions you mentioned have worked unfortunately. I have a date column and another column that holds user id. I basically want to do a count of all the user id's where that particular date column is NULL. I have checked in the physical layer and the date column in question is coming from SQL Server as a TIMESTAMP datatype. So I initially did not change anything and brought the column in as is but that did not work out. I then tried to change the datatype in the physical layer to DATETIME and then also DATE. After changing the datatype in the physical layer in the BMM I would do a CAST(<date column> as DATE) and this still did not work. I then tried to just change the datatype to DATETIME and DATE without doing the CAST in the BMM and this still did not work. Not too sure what to do now. -
How to get back fields from INSERT statement in batch mode(getGeneratedKeys
Hi,
I wanted to insert records to database and get back some fields.
I create prepared statement:
preparedStatement = connection.prepareStatement(sqlQuery, columnIndexes);
then I set parameters.
Following code works properly:
preparedStatement.executeUpdate();
generatedKeys = preparedStatement.getGeneratedKeys();
if (generatedKeys.next()) {
doSomething();
But when I try to do this by batch I get exception:
Caused by: java.lang.ArrayIndexOutOfBoundsException: 22
at oracle.jdbc.driver.T4CNumberAccessor.unmarshalOneRow(T4CNumberAccessor.java:190)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:612)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:216)
at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:966)
at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:10644)
at org.jetel.component.DBOutputTable.runInBatchMode(DBOutputTable.java:619)
My "batch" code:
for(...){
setParameters(preparedStatement);
preparedStatement.addBatch();
preparedStatement.executeBatch();
Isn't it a bug?
Can I get back fields (eg. from last insert added to batch)?
I hope somebody can help me.
AgataThis code works for me but only inserting one row. More than one causes an ArrayIndexOutOfBoundsException once sendBatch is called.
-
Fields in the datasource 0VENDOR_ATTR
Hi Gurus,
I need to unhide some fields in the datasource 0VENDOR_ATTR and then replicate it into BW. It is already loading the data into BW. Now I need some more fields to pass data into BW. Here my issue is my datasource is in display mode. I need to make it CHANGE mode so that I can unhide the fields. Is it not possible to unhide the fields when it is already with data.? Please suggest me.
Thanks in advance.Hey you can go ahead and unhide fields.Yes you have to do in change mode.
1) Save the datasource.Check if the fields which were unhide are getting populated in RSA3.
2) Replicate the datasource in BW/BI side.
3) Map the corresponding objects in transfer rules.
4) Activate the transfer rules.
5) Load data.
6) Activate master data.
0VENDOR being master data you should not have issues.
Hope this helps. -
i am using numbers in the new iWork. Just bought it 10 days back. I am not able to figure out how to add serial umbers from 1 to 100( for example) also i need to freeze the top header like in windows so that we can browse down without the heading going off. Can some one help?
Hi Jay,
Be aware that "Freeze Header Rows" and "Freeze Header Columns" apply only to rows and columns that are Header rows or Header columns. You can have up to five Header rows, Five Header Columns (and five Footer rows) on a Numbers Table.
"Header rows" is a special designation. Besides being able to be frozen, Header and Footer rows are not included in formulas referencing whole columns, making it possible to place formulas such as =SUM(B) at the top (or bottom) of column B without causing a self-reference error, These designated rows are also not included in sorts of the rows in a table.
Regards,
Barry -
I bought new i phone 5 3 days back, after that asked for new update which is 6.1.4, after updating my iphone i am not able to use cellular data services. I called up data provider, they says its the problem with new software update. There is no option add APN. Now when i switch to safari its showing you are not subscribed for cellular data. But I am able to use data on other phone.
Will you please help me in this regard?
Another issue, since i bought my new iphone there is dust inside back main camera.
Your advises are highly appreciated.Hey Shaiju isac,
I'd take a look at the following article, it'll guide you though steps to you troubleshoot cellular data issues on your iPhone:
iPhone: Troubleshooting a cellular data connection
http://support.apple.com/kb/ts3780
Cheers,
David -
i got my i phone4s few days back and i created an apple id with a credit card and when i go to the appstore to purchase apps,all have and message stating that "this app is no longer available"..how do i fix this issue?im from singapore by the way
If it is longer available then you can't get the app on your phone.
-
How to add a new field from SQL to report
Post Author: Auburn
CA Forum: .NET
The field I am wanting to add to my report is not an actual field in SQL. The field is actually a calculation done in the Select statement like this: SELECT (SUM(CASE KILSHEET.Contract WHEN 1 THEN ((TOT_CARC_WEIGHT / 100) * 1.75) ELSE 0 END)) AS LSS here is the actual full SELECT: SELECT Sum(KILSHEET.PAY) As Pay, Sum(KILSHEET.Dead_Pay) As Dead_Pay, Sum(KILSHEET.GRADE_PREM) As Grade_Prem, Sum(KILSHEET.SORT_ADJ) As Sort_Adj, Sum(KILSHEET.SLOWS_PAY) As Slows_Pay, Sum(KILSHEET.RESALES_PAY) As Resales_Pay, Sum(KILSHEET.PLANT_CHARGE) As Plant_Charge, Sum(KILSHEET.OTHER_PREM) As Other_Prem, Sum(KILSHEET.NPB) As NPB, Sum(KILSHEET.SLOW_NPB) AS Slow_NPB, Sum(KILSHEET.RESALE_NPB) AS RESALE_NPB, Sum(KILSHEET.NPPC) AS NPPC, Sum(KILSHEET.SLOW_NPPC) AS SLOW_NPPC, Sum(KILSHEET.RESALE_NPPC) AS RESALE_NPPC, Sum(KILSHEET.NUMB_HEAD) AS NUMB_HEAD, Sum(KILSHEET.WEIGHT_FEE) AS WEIGHT_FEE, Sum(KILSHEET.SLOW_WEIGHT_FEE) AS SLOW_WEIGHT_FEE, Sum(KILSHEET.RESALE_WEIGHT_FEE) AS RESALE_WEIGHT_FEE, Sum(KILSHEET.WEIGHT) AS WEIGHT, Avg(KILSHEET.PER_LEAN)AS PER_LEAN, AVG(KILSHEET.ACTUAL_YIELD_PER) AS ACTUAL_YIELD_PER, AVG(KILSHEET.AVG_BACKFAT) AS AVG_BACKFAT, Sum(KILSHEET.TOT_CARC_WEIGHT) AS TOT_CARC_WEIGHT, Sum(KILSHEET.DIY) AS DIY, Sum(KILSHEET.DEAD) AS DEAD, Sum(KILSHEET.SLOWS) AS SLOWS, Sum(KILSHEET.RESALES) AS RESALES, Sum(KILSHEET.CONDEMNED) AS CONDEMNED, Sum(KILSHEET.DEAD_WEIGHT) AS DEAD_WEIGHT, Sum(KILSHEET.CONDEMNED_WEIGHT) AS CONDEMNED_WEIGHT, Sum(KILSHEET.SLOWS_WEIGHT) AS SLOWS_WEIGHT, Sum(KILSHEET.RESALES_WEIGHT) AS RESALES_WEIGHT, SUM((Kilsheet.TOT_Carc_WEIGHT / 100) * MarketPrice.mkprice) As TotalPrice,(SUM(CASE KILSHEET.Contract WHEN 1 THEN ((TOT_CARC_WEIGHT / 100) * 1.75) ELSE 0 END)) AS LSS FROM KILSHEET LEFT OUTER JOIN marketprice ON KILSHEET.Contract = marketprice.contract AND DATEPART(week, KILSHEET.KILLDATE) = marketprice.mkweek AND DATEPART(year, KILSHEET.KILLDATE) = marketprice.mkyear " & condStr + " " + locStr The problem with this is that my report is a Summary report. It has to summarize multiple fields and the LSS calculation only needs to be calculated for certain records, hence the CASE. Is there a way to add the LSS field to the report without it being physically part of the database? I am really struggling with this and any help would be greatly appreciated. I hope I described this ok.Post Author: blairwheadon
CA Forum: .NET
This is what SQL Expressions are for. I suggest you try using those (visible in the Field Explorer) to capture custom SQL field logic.
Alterantively you could use a SQL command with your hand-written SQL.
Thanks, Blair -
Units field MEINS for field TOTQTY of DataSource ... is hidden
hI,
I am getting "Units field MEINS for field TOTQTY of DataSource ZDS_BEALO is hidden
Message no. R8147 "
error message while creating the generic extration using fuction module...
Please help to slove thisI solved this problem myself by writing ABAP program.
REPORT ZTEST.
TABLES ROOSFIELD.
DATA: ITAB LIKE ROOSFIELD OCCURS 0 WITH HEADER LINE.
SELECT * FROM ROOSFIELD INTO TABLE ITAB
WHERE OLTPSOURCE = 'DATASOURCE_NAME'
AND FIELD = 'WAERS'.
*update ROOSFIELD set SELECTION = 'X'.
*ENDSELECT.
Create a report program and update the value of field "SELECTION" as above.
Then try to make changes in RSO2 as it needed.
Let me know if you need my help..
Thanks,
Hanuma -
Units field XYZ for field ABC of DataSource ZRST Message no. R8147
HI,
When I'm trying to SAVE my datasource ZRST, I've got following error.
Units field XYZ for field ABC of DataSource ZRST Message no. R8147
In extraction structure of this datasource thare are at least two fields that use the same unit field.
Accordign SAP note no 867795:
One of the fields is displayed and another is hidden.
Then the unit field is hidden and the above error occurs.
This note is valid for component SAP_ABA release 700. I'm running my R/3 source system on SAP_ABA 620.
Could it be the same case as described in this SAP note?
Anybody got same problem? Please advise.
Thanks
m./Hi,
Please check the dependencies on the fields, as some fields should have the units defined ,check the fields and activate the datasource.
hope this helps,
thanks,
vrrp. -
I have updated my mac from snow leopard to mountain lion 3 days back. I had some important data in my library folder and it got overwritten. Is there any way i can get the data back from my snow leopard library folder?
I tried mackeeper to recover files but it could not. Any other way any one has tried to recover a system library folder after OS upgrade?No, it doesn't store a clone. You would have needed to make one with either SuperDuper or CarbonCopy Cloner.
If the files were in your ~/Library folder then they may still be there. As I said, you can access it by
going to your Finder "Go" menu hold the option key to choose "Library". I wouldn't think an upgrade would overwrite anything in ~/Library.
If you have a Time Machine backup you may also be able to use that to retrieve them. -
I have manually back up my iphone few days back, and my contact got missing the next day. i restored my back up from iTunes, however, my contact did not get restored. How do i check if the manual back up did actually back up my contact or not? How do i get back my old contact in my phone?
Your entire second paragraph is so confusing I am going to ignore it.
But I may be able to answer your first and third paragraphs, which seem to address the same question.
I wonder where your iPhone states it was backed up yesterday. I am going to assume that you see this under Settings > iCloud > Storage & Backup.
If that is true, then the backup from yesterday is in iCloud. The one and only way to restore an iCloud backup is to do this on your iPhone:
Settings > General > Reset > Erase All Content and Settings
That will cause your iPhone to begin a setup process. As part of that process, assuming you enter the same Apple ID you used when you created the iCloud backup, you will be offered the opportunity to restore from it.
Maybe you are looking for
-
Delivery deleted but schedule line status shows as fully delivered - Urgent
Hi, I deleted the delivery related to the order but teh schedule line status says its fully delivered.... Is thr a way to refresh the schedule line so it shows the correct status? Urgent PLs., Thanks Keshi
-
Statements to validate about BPM and WorkFlow
Hi is it possible for experts here to validate, 1. SAP Business Workflow is primarily used to develop workflow mechanisms for SAP based systems 2. Components of a Business Process Execution Language (BPEL) like the compensation handlers, exception ha
-
Safe to connect it without iTunes?
This is actually more of a question before I risk trying something than a help post after something happens. I am currently relegated to using a computer that I don't have permission to install things on, so I can't install iTunes, and I forgot to br
-
i forgot my password at encrypt iphone back up.what should i do? please help me. thank you
-
PHP folder Deleted - Need to Reinstall from scratch
This has been giving me a headache for 3 days now. I am trying to learn PHP and Mysql and I am going along with the Lynda.com tutorial. Since the tutorial was in Tiger and I was in Leopard, I was getting the red-*** when trying to configure or find t