Clear the entry for killed/sniped session in v$session
Dear all,
In our production database(11.2.0.1.0) running on windows 2008 server many client session showing inactive from last 4-5 hour and I want to kill those session because all sessions are dedicated so for this I created a resource plan set its idle time after certain interval session status is showing killed but it is not removing entries from v$session but our client demand is it must be clear from v$session so for this i was using DOS command taskkill utility to kill particular os process so I want to know what is the smartest way to do this.
This is known behavior, not an issue.
In a dedicated server environment when the session is killed and the rollback completes the process goes away so a join between v$session and v$process will fail. The v$session entry also usually goes away rather quickly, though I have seen cases where the v$session entry hung around till the instance was bounced. But normally Oracle will overlay the v$session entry with a new session using the same sid but a different serial# within seconds on a busy system.
Mark @ http://dbaspot.com/oracle-server/40419-killed-sessions.html
Metalink doc id 1023442.6 is also something confirming it.
See also below link and last reply by Mr. Braj Kishore Mahto.
http://dbaforums.org/oracle/index.php?showtopic=3039
Regards
Girish Sharma
Edited by: Girish Sharma on Nov 21, 2012 5:35 PM
So, what is best in this regard :
ALTER SYSTEM DISCONNECT SESSION
The ALTER SYSTEM DISCONNECT SESSION syntax is an alternative method for killing Oracle sessions. Unlike the KILL SESSION command which asks the session to kill itself, the DISCONNECT SESSION command kills the dedicated server process (or virtual circuit when using Shared Sever), which is equivalent to killing the server process from the operating system. The basic syntax is similar to the KILL SESSION command with the addition of the POST_TRANSACTION clause. The SID and SERIAL# values of the relevant session can be substituted into one of the following statements.
SQL> ALTER SYSTEM DISCONNECT SESSION 'sid,serial#' POST_TRANSACTION;
SQL> ALTER SYSTEM DISCONNECT SESSION 'sid,serial#' IMMEDIATE;
http://www.oracle-base.com/articles/misc/killing-oracle-sessions.php#disconnect_session
Similar Messages
-
Clearing the entries of SDCR transcation types in crm_dno_monitor
Hi all,
In the phase of charm configuration i tried to check the flow with the several request and the flow is successful . Now the charm flow is working fine. Very happy from that
Now the probelm is there are many SDCR request in crm_dno_monitor. I need to clear this entries. Is there anyway to clear the entries or hide the existing one.
Regards
Vijay
Edited by: vijay on Jul 14, 2008 9:38 AMHey Vijay,
Unfortunately you cannot Delete Test transaction type( SDCR) created..
As this Solman basically uses the CRM functionality only, so deleting is not possible... But archiving is possible... However archiving itself is one huge project.......
So better dont opt for it..
An alternate solution would be that you use BADI CRM_DNO_MONITOR to exclude the Test tickets that were created.. This way you wont find the test tickets after executing that transaction......
You might require services of an ABAP consultant to get this thing done......
Inspire by rewarding
Regards,
Anand Rangarajan -
I have a form that logs fibre analysis for asbestos analaysis. Let's say I am analysisng 2 samples. I log all the details for the first sample and hit save. Now I use the scroll button to move to the next sample. When the screen refreshes all the entries for the first sample are still showing on the screen. But these are just phantom entries, when I look at the back-end database there are of course no entries against the second sample. This does not occur with any other browser.
I have tried clearing the cache to no avail.
Any ideas?Is Firefox filling the form via the cache or via saved form data?
If this data still gets filled when "Remember search and form history" is disabled the Firefox fills it from the cache.
*Tools > Options > Privacy > Firefox will: "Use custom settings for history": "Remember search and form history"
In such a case a hard refresh via Ctrl + F5 might help to reset the form data. -
How do i sync all my iphone 5g photos and contact to my new windows computer. I am following the itunes instructions but they don't seem to apply. In the source list click devices (so far so good) then click the entry for your iphone or ipod. that doesn't exist. HELP asap
hayley7070 wrote:
How do i sync all my iphone 5g photos and contact to my new windows computer. I am following the itunes instructions but they don't seem to apply
What instructions?
In the source list click devices (so far so good) then click the entry for your iphone or ipod. that doesn't exist. HELP asap
You don't import photos from the iPhone to your computer using iTunes.
See this -> iOS: Importing personal photos and videos from iOS devices to your computer
Note this only applies to photos taken with the iPhone. Any photos you previously added to your iPhone using iTunes should be copied from old computer to new computer. -
What are the Entrie For ETT Keys In CIN
Hi,
This is harish i would like to know what are the entrie when system pick ETT Key for DLFC
what is the entrie for GRPO
what is the entry for EMPO
what is the entry for CAPE
Regards,
HarishHi,
Please refer to this link for better understanding of CIN
[CIN|http://www.docstoc.com/docs/8264622/CIN] -
I want to clear the values for the controls
Hi all,
After Adding Process, i want to clear the values for the controls in the form.
Any one help me.If you use 2005, you can use the Formdata Event and catch the FORM_DATA_ADD event... In there you can clear the data
-
Phone won't see media files after clearing the data for SomcPhotoAnalyzer.apk
Hello,My sister accidentally cleared the data for the PhotoAnalyzerService app (com.sonymobile.photoanalyzer 5.5.A.0.10) in the app manager on her Z2. That caused the Album app to disappear from the app drawr. Since then, she updated Album (com.sonyericsson.album) from the Play Store, and that caused the Album icon to reappear in the app drawr. However, something is wrong with how media is handled by the phone now: Album now behaves like this:In Home: all photos inside the DCIM folder, BUT photos that were downloaded to the phone are missin.In Camera: only camera photos taken after the data was cleared.In Folders: shows nothing.When trying to edit an older camera photo it says "no application available."Additionally, all ringtones were rest to default, and selecting new ones is now impossible, either with Sound Picker or with ES File Explorer. Restarting the phone many times didn't help. The phone is running android 4.4.2 (Build 17.1.2.A.0.314). Any advice? Will a factory reset help? Anything other than a factory reset? (she won't be happy to lose everything on the phone...) Edit: to be clear, the files that are missing from Album are still on the phone, and can be viewed with ES File Explorer, for example.
You could try an app preferences reset Settings tap the 3 dots or options icon then Reset app preferences and then reboot and test - As for apps missing then try Settings then Apps then swipe to disabled to see if the app in question is there however if files are missing it could be that all data for that app was erased at the same time
-
How to mantain or clear the changelog for meta-directory 5.0?
Hi,
We are using the Meta-Directory 5.0 now. But we are suffering from the
changelog maintenance.
Anybody know how to maintain or clear the changelog for Meta-Directory
5.0?
Or any document about this.
Thanks for your advice.
Best Regards,
Sunny YehHi Raj,
You can use below URL for your query;
http://docs.oracle.com/cd/E21764_01/bi.1111/e10541/cluster.htm#BGBHFCJF
If it helps, please update the post.
Regards,
Kashi -
Clearing OS SPIDs for KILLED sessions
Hi All,
I had killed some sessions in the DB (10.2.0.3) and their status is set to KILLED in v$session.
I am trying to find the OS PIDs of these sessions to do a "kill -9 " but I could not get them. I am using the below query which is not returning anything as the entry does not exist in v$process:
select
p.spid
from v$session s, v$process p
where p.addr = s.paddr
and s.status='KILLED';
Is there any way to get the OS PIDs of these sessions or to clear the KILLED rows from v$session without bouncing the database.
Regards,
Bharath.hi,
once you kill the user then his process and memory will be released..
post the output of v$session;
regards,
Deepak -
is it necessary to explicitly kill sessions marked as 'SNIPED'??
i have set in profile limit for idle_time as 2 min.
after that time the session is sniped,,,,but remains in GV$SESSION
as the behaviour is -it gets removed from GV$SESSION when user tries to access again
but users are not connecting through sqlplus,,,,
also will this count of sniped sessions affect the total number of sessions allowed (parameter sessions)
on instance,,,and give maximum sessions exceeded error?Check this note in metalink:
Doc ID: 96170.1
Apparently that note says that yes, you need to explicitly kill them.
Based on the documentation:
[SNIPED - Session inactive, waiting on the client|http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_2088.htm#REFRN30223]
So I'll expect they count as sessions and you could have an error on the maximum number of sessions opened. -
How to clear the last_line_iterator for custom search result?
Hi Friends,
I have one issue regarding search result of service request please help me on this issue....
We have added some custom fields using value nodes and EEWB image field in search result of service requests....and the problem is when we click on export excel sheet button in result list for first time it is working fine data is showing in excel sheet, but after that when we done some changes in search screen and press search button for second time and press the export excel sheet...data not bound in excel sheet....
After analysis by me....after pressing the button and modify in search screen export excel sheet for second time in ME-> Last_line_iterator is not clearing it is containing previous search value for last_line_iterator.... so it is failing to call GET_ITERATOR( ) ....so anyone suggest who face same problem in their experience ....how to clear the Last_line_iterator ...let me know if any information required .....pls it is very urgent .....
thanks in advance....
regards,
kumarHi Lakshman,
Everytime user clicks on a new shop, create a session variable and set it to any value.
userSessionData.setAttribute("NEWSHOP","true");
Now go to history.jsp and just above this piece of code put a validation for the value of this session variable and
if its value matches to "true" than only let the below code to execute.After the validation dont forget to remove this
variable from session.
<isa:iterate id="historyItem" name="<%= UpdateHistoryAction.HISTORY_LIST %>"
type="com.sap.isa.isacore.HistoryItem">
Likewise you can work with organizer frame refresh also.Hope this helps you.
Regards,
Arshi -
In earlier versions of Firefox, I could set options such that when a download completed successfully, the download entry was automatically removed from the download windows. I don't seem to be able to get this functionality in ver 13.0.1. In this version, i have to right click on each completed download entry, and choose "remove from List". This is very cumbersome.
I really liked the earlier auto cleanup as it left only pending, current and failed downloads in the Download window - just the stuff I needed to pay attention to. Is there any way to set up ver 13.0.1 to make things work the way they worked so well earlier.
A related issue may be that in the Privacy tab, the option for Browsing and Download history have been combined (were they separate earlier? - don't remember). I want to keep my browsing history but not my download history. I can still clear them individualy in the "Clear Recent History" settings, so why can't I set the control for keeping either individually? Or can I?The download history is part of the regular browsing history, so you would have to disable the history altogether as you've already noticed.
* Tools > Options > Privacy > History: Firefox will: "Use custom settings for history"
**"Remember my browsing and download history"
Firefox manages the downloads in the Downloads folder in the Library.
* Firefox > History > Show All History > Downloads
Future Firefox versions won't use the current download manager (pref: browser.download.useToolkitUI; Bug 726444), but use a toolbar button with a drop down list, similar to the Bookmarks Menu button. -
WHAT ARE THE SYNTAXES FOR CALLTRANSACTION AND SESSION METHODS
hi
experts
can u help me plzzzzzzzzzzzzzzzzzzzzzz
for thisCheck oout this sample program ...
REPORT ztest_report
NO STANDARD PAGE HEADING
LINE-SIZE 255
MESSAGE-ID ZRASH.
* Internal Table Declarations *
*--Internal Table for Data Uploading.
DATA : BEGIN OF IT_FFCUST OCCURS 0,
KUNNR(10),
BUKRS(4),
KTOKD(4),
ANRED(15),
NAME1(35),
SORTL(10),
STRAS(35),
ORT01(35),
PSTLZ(10),
LAND1(3),
SPRAS(2),
AKONT(10),
END OF IT_FFCUST.
*--Internal Table to Store Error Records.
DATA : BEGIN OF IT_ERRCUST OCCURS 0,
KUNNR(10),
EMSG(255),
END OF IT_ERRCUST.
*--Internal Table to Store Successful Records.
DATA : BEGIN OF IT_SUCCUST OCCURS 0,
KUNNR(10),
SMSG(255),
END OF IT_SUCCUST.
*--Internal Table for Storing the BDC data.
DATA : IT_CUSTBDC LIKE BDCDATA OCCURS 0 WITH HEADER LINE.
*--Internal Table for storing the messages.
DATA : IT_CUSTMSG LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
DATA : V_FLAG1(1) VALUE ' ',
"Flag used for opening session.
V_TLINES LIKE SY-TABIX,
"For storing total records processed.
V_ELINES LIKE SY-TABIX,
"For storing the no of error records.
V_SLINES LIKE SY-TABIX.
"For storing the no of success records.
* Selection screen *
SELECTION-SCREEN BEGIN OF BLOCK B1.
PARAMETERS : V_FNAME LIKE RLGRAP-FILENAME,
V_SESNAM LIKE RLGRAP-FILENAME.
SELECTION-SCREEN END OF BLOCK B1.
* Start-of-selection *
START-OF-SELECTION.
*-- Form to upload flatfile data into the internal table.
PERFORM FORM_UPLOADFF.
* TOP-OF-PAGE *
TOP-OF-PAGE.
WRITE:/ 'Details of the error and success records for the transaction'
ULINE.
SKIP.
* End of Selection *
END-OF-SELECTION.
*-- Form to Generate a BDC from the Uploaded Internal table
PERFORM FORM_BDCGENERATE.
*--To write the totals and the session name.
PERFORM FORM_WRITEOP.
*& Form form_uploadff
* Form to upload flatfile data into the internal table.
FORM FORM_UPLOADFF .
*--Variable to change the type of the parameter file name.
DATA : LV_FILE TYPE STRING.
LV_FILE = V_FNAME.
*--Function to upload the flat file to the internal table.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = LV_FILE
* FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
* HEADER_LENGTH = 0
* READ_BY_LINE = 'X'
* DAT_MODE = ' '
* IMPORTING
* FILELENGTH =
* HEADER =
TABLES
DATA_TAB = IT_FFCUST
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF SY-SUBRC = 0.
*--Deleting the headings from the internal table.
DELETE IT_FFCUST INDEX 1.
*--Getting the total number of records uploaded.
DESCRIBE TABLE IT_FFCUST LINES V_TLINES.
ENDIF.
ENDFORM. " form_uploadff
*& Form Form_bdcgenerate
* Form to Generate a BDC from the Uploaded Internal table
FORM FORM_BDCGENERATE .
*--Generating the BDC table for the fields of the internal table.
LOOP AT IT_FFCUST.
PERFORM POPULATEBDC USING :
'X' 'SAPMF02D' '0105',
' ' 'BDC_OKCODE' '/00' ,
' ' 'RF02D-KUNNR' IT_FFCUST-KUNNR,
' ' 'RF02D-BUKRS' IT_FFCUST-BUKRS,
' ' 'RF02D-KTOKD' IT_FFCUST-KTOKD,
'X' 'SAPMF02D' '0110' ,
' ' 'BDC_OKCODE' '/00',
' ' 'KNA1-ANRED' IT_FFCUST-ANRED,
' ' 'KNA1-NAME1' IT_FFCUST-NAME1,
' ' 'KNA1-SORTL' IT_FFCUST-SORTL,
' ' 'KNA1-STRAS' IT_FFCUST-STRAS,
' ' 'KNA1-ORT01' IT_FFCUST-ORT01,
' ' 'KNA1-PSTLZ' IT_FFCUST-PSTLZ,
' ' 'KNA1-LAND1' IT_FFCUST-LAND1,
' ' 'KNA1-SPRAS' IT_FFCUST-SPRAS,
'X' 'SAPMFO2D' '0120',
' ' 'BDC_OKCODE' '/00',
'X' 'SAPMF02D' '0125',
' ' 'BDC_OKCODE' '/00',
'X' 'SAPMF02D' '0130',
' ' 'BDC_OKCODE' '=ENTR',
'X' 'SAPMF02D' '0340',
' ' 'BDC_OKCODE' '=ENTR',
'X' 'SAPMF02D' '0360',
' ' 'BDC_OKCODE' '=ENTR',
'X' 'SAPMF02D' '0210',
' ' 'KNB1-AKONT' IT_FFCUST-AKONT,
' ' 'BDC_OKCODE' '/00',
'X' 'SAPMF02D' '0215',
' ' 'BDC_OKCODE' '/00',
'X' 'SAPMF02D' '0220',
' ' 'BDC_OKCODE' '/00',
'X' 'SAPMF02D' '0230',
' ' 'BDC_OKCODE' '=UPDA'.
*--Calling the transaction 'fd01'.
CALL TRANSACTION 'FD01' USING IT_CUSTBDC MODE 'N' UPDATE 'S'
MESSAGES INTO IT_CUSTMSG.
IF SY-SUBRC <> 0.
*--Populating the error records internal table.
IT_ERRCUST-KUNNR = IT_FFCUST-KUNNR.
APPEND IT_ERRCUST.
CLEAR IT_ERRCUST.
*--Opening a session if there is an error record.
IF V_FLAG1 = ' '.
PERFORM FORM_OPENSESSION.
V_FLAG1 = 'X'.
ENDIF.
*--Inserting the error records into already open session.
IF V_FLAG1 = 'X'.
PERFORM FORM_INSERT.
ENDIF.
*--Populating the Success records internal table.
ELSE.
IT_SUCCUST-KUNNR = IT_FFCUST-KUNNR.
APPEND IT_SUCCUST.
CLEAR IT_SUCCUST.
ENDIF.
*--Displaying the messages.
IF NOT IT_CUSTMSG[] IS INITIAL.
PERFORM FORM_FORMATMSG.
ENDIF.
*--Clearing the message and bdc tables.
CLEAR : IT_CUSTBDC[],IT_CUSTMSG[].
ENDLOOP.
*--Getting the total no of error records.
DESCRIBE TABLE IT_ERRCUST LINES V_ELINES.
*--Getting the total no of successful records.
DESCRIBE TABLE IT_SUCCUST LINES V_SLINES.
*--Closing the session only if it is open.
IF V_FLAG1 = 'X'.
PERFORM FORM_CLOSESESS.
ENDIF.
ENDFORM. " Form_bdcgenerate
*& Form populatebdc
* FOrm to Populate the BDC table.
FORM POPULATEBDC USING VALUE(P_0178)
VALUE(P_0179)
VALUE(P_0180).
IF P_0178 = 'X'.
IT_CUSTBDC-PROGRAM = P_0179.
IT_CUSTBDC-DYNPRO = P_0180.
IT_CUSTBDC-DYNBEGIN = 'X'.
ELSE.
IT_CUSTBDC-FNAM = P_0179.
IT_CUSTBDC-FVAL = P_0180.
ENDIF.
APPEND IT_CUSTBDC.
CLEAR IT_CUSTBDC.
ENDFORM. " populatebdc
*& Form FORM_OPENSESSION
* Form to Open a session.
FORM FORM_OPENSESSION .
*--Variable to convert the given session name into reqd type.
DATA : LV_SESNAM(12).
LV_SESNAM = V_SESNAM.
*--Opening a session.
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING
CLIENT = SY-MANDT
GROUP = LV_SESNAM
HOLDDATE = '20040805'
KEEP = 'X'
USER = SY-UNAME
PROG = SY-CPROG
* IMPORTING
* QID =
EXCEPTIONS
CLIENT_INVALID = 1
DESTINATION_INVALID = 2
GROUP_INVALID = 3
GROUP_IS_LOCKED = 4
HOLDDATE_INVALID = 5
INTERNAL_ERROR = 6
QUEUE_ERROR = 7
RUNNING = 8
SYSTEM_LOCK_ERROR = 9
USER_INVALID = 10
OTHERS = 11
IF SY-SUBRC <> 0.
WRITE :/ 'Session not open'.
ENDIF.
ENDFORM. " FORM_OPENSESSION
*& Form FORM_INSERT
* fORM TO INSERT ERROR RECOED INTO A SESSION.
FORM FORM_INSERT .
*--Inserting the record into session.
CALL FUNCTION 'BDC_INSERT'
EXPORTING
TCODE = 'FD01'
* POST_LOCAL = NOVBLOCAL
* PRINTING = NOPRINT
* SIMUBATCH = ' '
* CTUPARAMS = ' '
TABLES
DYNPROTAB = IT_CUSTBDC
EXCEPTIONS
INTERNAL_ERROR = 1
NOT_OPEN = 2
QUEUE_ERROR = 3
TCODE_INVALID = 4
PRINTING_INVALID = 5
POSTING_INVALID = 6
OTHERS = 7
IF SY-SUBRC <> 0.
WRITE :/ 'Unable to insert the record'.
ENDIF.
ENDFORM. " FORM_INSERT
*& Form FORM_CLOSESESS
* Form to Close the Open Session.
FORM FORM_CLOSESESS .
CALL FUNCTION 'BDC_CLOSE_GROUP'
EXCEPTIONS
NOT_OPEN = 1
QUEUE_ERROR = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
ENDIF.
ENDFORM. " FORM_CLOSESESS
*& Form FORM_FORMATMSG
* Form to format messages.
FORM FORM_FORMATMSG .
*--Var to store the formatted msg.
DATA : LV_MSG(255).
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
ID = SY-MSGID
LANG = SY-LANGU
NO = SY-MSGNO
V1 = SY-MSGV1
V2 = SY-MSGV2
V3 = SY-MSGV3
V4 = SY-MSGV4
IMPORTING
MSG = LV_MSG
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2.
IF SY-SUBRC = 0.
WRITE :/ LV_MSG.
ENDIF.
ULINE.
ENDFORM. " FORM_FORMATMSG
*& Form form_writeop
* To write the totals and the session name.
FORM FORM_WRITEOP .
WRITE :/ 'Total Records Uploaded :',V_TLINES,
/ 'No of Error Records :',V_ELINES,
/ 'No of Success Records :',V_SLINES,
/ 'Name of the Session :',V_SESNAM.
ULINE.
ENDFORM. " form_writeop -
Identifying the sql for non persistant session
We have a number of queries which are being directed to our Oracle 10.2.0.5 database.
I am being informed that there is something wrong with these queries and I need to view the SQL for these queries to investigate.
The problem I have is that the sequence of events is as follows :
1. Connection is made to the database.
2. Query is run and completes in less than 1 second.
3. Database session is disconnected.
Normally to investigate this I would connect to the session in question and interrogate the SQL.
However, because steps 1-3 complete in a split second I am unable to do this.
Is there any way that I can capture this SQL for investigation?
Thank you in advance.user6502667 wrote:
We have a number of queries which are being directed to our Oracle 10.2.0.5 database.
I am being informed that there is something wrong with these queries and I need to view the SQL for these queries to investigate.
The problem I have is that the sequence of events is as follows :
1. Connection is made to the database.from which system(s)?
as which user?
2. Query is run and completes in less than 1 second.
3. Database session is disconnected.
Normally to investigate this I would connect to the session in question and interrogate the SQL.
However, because steps 1-3 complete in a split second I am unable to do this.
Is there any way that I can capture this SQL for investigation?
Thank you in advance.AUDIT -
SSRS Matrix not showing all the entry for a Column Groups
I created a Matrix in my SSRS report and for some reason if the COLUMN GROUP has more than one
entry it only shows the first one and not the second or consequent entries.
I opened a question in SO and here is the link:
http://stackoverflow.com/questions/23248421/how-to-add-column-in-a-ssrs-table-based-on-criteria
All help is appreciated.Hi SiKni8,
According to your description, you have a matrix report. If a user has more than one start date and end date, you want to put all those start dates and end dates into one single row for this user. Right?
In Reporting Service, for all data fields textbox appearing at intersection of rows and columns, the matrix will use Sum aggregation function by default. If the data can’t be calculated by aggregation function, it will return the first one of records. This
is the reason why you only get the first start date and end date for each user. In your scenario, it is impossible to append more columns at the end of the matrix without setting column group. And we can never append columns dynamically based on the numbers
of the records. So for your requirement, we find a workaround which we think is the most related to the answer you want. We use custom code to get both StartDate and EndDate, then return them as string. After that we append those strings and put the whole
string into a cell. Your case has been tested in our local environment. Here are steps and screenshots for your reference:
Put the custom code below into your report:
Dim Num As String = ""
Dim tempstr As String = ""
Function AggregateString(Title as String, StartDate as String, EndDate as String)
If Title = Num Then
tempstr = tempstr + "(" +StartDate+" , "+EndDate+") "
Else
tempstr=""
Num = Title
tempstr =tempstr+"("+StartDate+" , "+EndDate+") "
End If
Return tempStr
End Function
In our sample report, we created a matrix based on your description. It looks like below:
In textbox next to [Title], put the expression below into it:
=runningvalue(Code.AggregateString(Fields!Title.Value,Fields!StartDate.Value,Fields!EndDate.Value),Last,"Title")
Ps: In our report, we set the type of date as string when creating table and dataset. If your date type is different, use Cstr() function and convert it into string.
Save and preview. The result looks like below:
Reference:
Matrices (Report Builder and SSRS)
RunningValue Function (Report Builder and SSRS)
If you have any question, please feel free to ask.
Best Regards,
Simon Hou
Maybe you are looking for
-
I have a iMac I bought last year. ts a 27 inch quad core i5 with 8 gig of ram and 1tb hard drive. I went to put snow leopard on it last night and something went wrong. i put in the disk, used the disk utilites to format the partition. I went back
-
Report painter Multiple selection criteria
Hi all, i am facing problem that how to provide multiple selection 'exculde' options in report painters.can anyone help me in this? thank you, Anil.
-
OVS, but no input parameters.
I would like to create an OVS input help for an InputField UI element, but in my case the search input parameters are obtained programmatically and need not to be inserted by the user. In the WDValueServices.addOVSExtension() method, I tryed to speci
-
Copy person & group field value to another person or group field programmatically
Hi I have one user list in SharePoint sitecollection1 having User in Title(having simple user name) and UserName in Person or Group type field. I want to copy this list into my site list with same column names programatically using timer job. How I
-
Help, please -- can't boot, won't boot.
My iMac (800Mhz G4 flat panel) has suddenly refused to boot. There is life of a sort -- I get the 'grey apple' screen and nothing more. The DVD tray will not open from the keyboard (there was no disk in place at the time). By using firmware, I can ge