The 'Date' data type
Hi there,
I,m trying to put together a UML Class model of a system i am going to be building using Rational Rose. I have noticed that there is a 'Date' data type within the program and i just have a few questions about it.
Previously i have always used 'Double' to store dates as i assumed this was the best practice as they can easily be manipulated. e.g. storing a date a member joined a video club, then you can workout how many days they have been a member.
Is this manipulation possible with the 'Date' data type?
Thanks
Adam
Use java.util.GregorianCalendar to do date arithmetic. You can for example use that class to ass or subtract a number of days or months from a date, with all the standard calendar rules (number of days per month, leap years etc.).
Jesper
Similar Messages
-
Can i see the column DATA(BLOB type) in PM_OBJECTS of DCM schema
we installed DCM managed clustering .it is Database repository type.
i am trying to see the column DATA(BLOB type) in PM_OBJECTS of DCM schema .
I wrote a program in java to read blob data type and write it into a temporary file.
when i open temporary files all the data in junk format.
can i see the real data of thatcolumn.Is it possible?
first of all for what purpose DCM shema will be used?Hi,
There is no option to show the comments on the diagram.
We plan to add such feature in the next version.
Ivan -
This is a variation on the issue mentioned in this
post
We are using SP 2010 Content Hub to manage our content types. On the content hub we've created a couple of exteranl lists, and then created some site columns as lookups against these lists. We then added the columns to one of our content types
and set it to publish.
After the publishing job executed, I tried adding the content type (which now appears on the subscriber sites) to one of the document libraries on one of the subscriber sites. When I did that it threw the following error:
Microsoft.SharePoint.WebControls.BusinessDataListConfigurationException: Id field is not set on the external data field
at Microsoft.SharePoint.SPBusinessDataField.CreateIdField(SPAddFieldOptions op)
at Microsoft.SharePoint.SPBusinessDataField.OnAdded(SPAddFieldOptions op)
at Microsoft.SharePoint.SPFieldCollection.AddFieldAsXmlInternal(String schemaXml, Boolean addToDefaultView, SPAddFieldOptions op, Boolean isMigration, Boolean fResetCTCol)
at Microsoft.SharePoint.SPContentType.ProvisionFieldOnList(SPField field, Boolean bRecurAllowed)
at Microsoft.SharePoint.SPContentType.ProvisionFieldsOnList()
at Microsoft.SharePoint.SPContentType.DeriveContentType(SPContentTypeCollection cts, SPContentType& ctNew)
at Microsoft.SharePoint.SPContentTypeCollection.AddContentTypeToList(SPContentType contentType)
at Microsoft.SharePoint.SPContentTypeCollection.AddContentType(SPContentType contentType, Boolean updateResourceFileProperty, Boolean checkName, Boolean setNextChildByte)
at Microsoft.SharePoint.SPContentTypeCollection.Add(SPContentType contentType)
at Microsoft.SharePoint.ApplicationPages.AddContentTypeToListPage.Update(Object o, EventArgs e)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) b55297ed-717f-466d-8bdc-297b20344d3f
I checked the external content type configuration and it did specify an "id column". Anyone know if what I am attempting to do is possible and if so, what special configurations are required?
ThanksThe issue is not External Content type or external list but the look up column.
It's not possible to publish a look up column via the Content Type Hub.
If you need to do this then an alternate way is to use a Managed Metadata column instead, otherwise you will have to implement this via a feature.
Varun Malhotra
=================
If my post solves your problem could you mark the post as Answered or Vote As Helpful if my post has been helpful for you. -
Power View in SharePoint Server - The data extension type for a data source is not valid
Hi All,
All of a sudden I am getting following error when trying to create Power View report using shared report data source (no error testing the connection):
"The current action cannot be completed. The data extension type for a data source
'http://dev/Shared Ducuments/Sales.rsds' is not valid for this operation"
I already have a data source (I had created it after creating my site collection a week ago) and when I use this source to create Power View report then there is no error but I am getting above error when I create another similar data source and use it to create
a Power View report.
Please help me to resolve the error.
ThanksI am going nuts! I had selected 'Analysis Services' instead of 'Microsoft BI Semantic Model for Power View'
-
SQL Developer is not exporting the time part of date data types.
I need to export data from a table using sql developer. The column is a date data type but when I export the data to a csv, xls or an sql file with insert statements, sql developer only includes the date part without the time.
Please kindly advise.
Thanks,
ErikaWhat is your 4 digits Oracle version ?
What is your SQL Developer version ?
With Oracle XE and a schema named TEST I have:
select * from t
X
04-FÉVR.-2010 21:24:40 If I use Tools/Database Export with all default settings with SQL Developer 2.1.0.63 I get following SQL file:
-- Fichier créé - jeudi-février-04-2010
-- DDL for Table T
CREATE TABLE "T"
( "X" DATE
-- DATA FOR TABLE T
-- FILTER = none used
REM INSERTING into T
Insert into T (X) values (to_timestamp('04/02/10 21:24:40,000000000','DD/MM/RR HH24:MI:SS,FF'));
-- END DATA FOR TABLE T
---------------------------------------------------Edited by: P. Forstmann on 4 févr. 2010 21:26 -
base /open SQL Statement etc) the first time i defined the system everything was fine but when i changed the Database (using M.S.Access) the " open SQL Statement" it would show the tables but not thier columns ,I"m using win98 sec edition / Teststand 1.0.1i need to pass data from an Access database to Teststand by using the built in Data step types(open database /open SQL Statement etc) the first time i defined the system everything was fine but when i changed the Database (using M.S.Access) the " open SQL Statement" it would show the tables but not thier columns ,I"m using win98 sec edition / Teststand 1.0.1
When I tried the same thing on another cmputer the same thing
happend
appreiciate u"r helpbase /open SQL Statement etc) the first time i defined the system everything was fine but when i changed the Database (using M.S.Access) the " open SQL Statement" it would show the tables but not thier columns ,I"m using win98 sec edition / Teststand 1.0.1Hello Kitty -
Certainly it is unusual that you can still see the tables available in your MS Access database but cannot see the columns? I am assuming you are configuring an Open Statement step and are trying to use the ring-control to select columns from your table?
Can you tell me more about the changes you made to your file when you 'changed' it with MS Access? What version of Access are you using? What happens if you try and manually type in an 'Open Statement Dialog's SQL string such as...
"SELECT UUT_RESULT.TEST_SOCKET_INDEX, UUT_RESULT.UUT_STATUS, UUT_RESULT.START_DATE_TIME FROM UUT_RESULT"
Is it able to find the columns even if it can't display them? I am worried that maybe you are using a version of MS Access that is too new for the version of TestSt
and you are running. Has anything else changed aside from the file you are editing?
Regards,
-Elaine R.
National Instruments
http://www.ni.com/ask -
Power view couldn't load the model or data source because the data source type is not supported
Hi,
I have SQL 2012 standard edition in my local. I have developed SSAS & deployed in local. I have been asked to develop power view report in excel 2013 using this SSAS. But when I tried to do in Excel 2013 professional Plus, I am getting below error:
Power view couldn't load the model or data source because the data source type is not supported.
Does power view is supported in standard edition of SQL or it requires Business/Enterprise edition of SQL server?
Thanks in advanceWhat type of SSAS install are you using?
PowerView in Excel 2013 currently only supports Tabular data sources.
Only PowerView in Sharepoint 2013 supports both Tabular and Multi-Dim data sources. (provided you have the required Sharepoint and SQL updates installed)
http://darren.gosbell.com - please mark correct answers -
SharePoint 2010 -
I have created a console utility that further calls the stsadm.exe to Export sites from one site collection in a DB to another site collection in another DB of the same web application.
Export works fine. But during Import, I get the following errors
[ListItem] [Admin] Progress: Importing
[ListItem] [Admin] Verbose: List URL: /pwa1/GTR/7 GTR Programme
[ListItem] [Hol plans.xls] Progress: Importing
[ListItem] [Hol plans.xls] Verbose: List URL: /pwa1/GTR/7 GTR Programme
[ListItem] [Time.doc] Progress: Importing
[ListItem] [Time.doc] Verbose: List URL: /pwa1/GTR/7 GTR Programme
[ListItem] [AP Docs] Progress: Importing
[ListItem] [AP Docs] Verbose: List URL: /pwa1/GTR/7 GTR Programme
[ListItem] [Update - June 27th.pdf] Progress: Importing
[ListItem] [Update - June 27th.pdf] Verbose: List URL: /pwa1/GTR/7 GTR Programme
[ListItem] [Update - June 27th.pdf] Error: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
[ListItem] [Update - June 27th.pdf] Error: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
[ListItem] [Update - June 27th.pdf] Error: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
FatalError: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Progress: Import did not complete.
1. Does the console application treated as a Sandbox Solution?
2. Do I need to configure CAS policy in wss_usercode.config? and what?
3. What else could be configured to make this work?
I have tried adding the following in wss_custom_minimaltrust.config but no avail.
<SecurityClass Name="SqlClientPermission" Description="System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
and
<PermissionSet
class="NamedPermissionSet"
version="1"
Name="SPRestricted">
<IPermission
class="SqlClientPermission"
version="1"
Unrestricted="true"
/>
<!-- Other IPermission -->
</PermissionSet>
UPDATE: It has been observed that the issue is intermittent. That is, sometimes the import works fine (event without any configuration of SqlClientPermission in any config file) but sometimes it gives the above error. I'm stuck!
Regards, Amit GuptaHi,
According to your post, my understanding is that you get Error “Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed
Simple solution is to change the trust the trust level to FULL: <trust level="[Full]" originUrl="URL" />
In addition, you can modify the wss_mediumtrust.config and wss_minimaltrust.config file under the path “C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\CONFIG”.
For more information, you can refer to:
http://blogs.msdn.com/b/navdeepm/archive/2010/02/19/system-security-securityexception-request-for-the-permission-of-type-system-data-sqlclient-sqlclientpermission-system-data-version-2-0-0-0-culture-neutral-publickeytoken-b77a5c561934e089-failed.aspx
http://www.fewlines4biju.com/2011/01/request-for-permission-of-type_18.html
http://techsolutions-at-desk.blogspot.com/2011/08/request-for-permission-of-type.html
Thanks,
Linda Li
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Linda Li
TechNet Community Support -
Data Origin Types not filled in the tab "Control Data" of BP interface
Hello experts,
I have loaded the clients from ECC6.0 to CRM 4.0.
Before I have loaded the clients I have maintained the data origin type for the BP in spro -> cross application components -> SAP Business Partner -> Business partner -> Basic settings -> Data Origin -> Maintain Data Origin Type.
After I have done the load initial of clients, the field "Data Origin" is empty in the tab "Control Data" in BP interface. If I do F4 in the field appear the configuration that I did in spro appear.
For this field will appear filled I'll need to do more configurations in spro?
Best regards,
MaryHi Mary,
The middleware does not fill this field in BP master data. You can maintain data origin type in SPRO, however the mBdoc does not use this customizing in order to fill this field.
Please try to use the BADI CRM_DATAEXCHG_BADI in order to fill this field during master data download.
It hope it helps.
Regards,
Gabriel Santana -
Hi Friends,
Request for the permission of type System.Data.SqlClient.SqlClientPermission System.Data Version 1.0.5000.0 Culture neutral .This error is recieving when ever i tried to use the sql connection (with Visual
studio C#) in sharepoint portal installed application.
Please help me if any answers for the issue.Hi,
Open wss_mediumtrust.config & wss_minimaltrust.config. SharePoint 2013(C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\config\).
Find in wss_mediumtrust.config:
<SecurityClass
Name="SqlClientPermission"
Description="System.Data.SqlClient.SqlClientPermis sion, System.Data,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
Copy and paste it in to the <SecurityClasses> node of wss_minimaltrust.config.
In the PermissionSet section of this configuration file, add the following:
Find in wss_mediumtrust.config:
<IPermission class="SqlClientPermission" version="1" Unrestricted="true"/>
Copy and paste it in to the a <PermissionSet> node of wss_minimaltrust.config.
Here is a similar thread for your reference:
https://social.msdn.microsoft.com/Forums/en-US/a1c8f2bf-2575-40b4-87f1-4f98462b3234/request-for-the-permission-of-type-systemdatasqlclientsqlclientpermission-systemdata-version?forum=tfssetup
Best Regards
Dennis Guo
TechNet Community Support -
Updating data in User Event doesn't propogate to uses of the User Event type
So I have a user event which is seeded with a cluster in which there are a few typedefs. Now, as you might expect, I have to pass the user event to different VIs so that they can trigger the events which are interpretted by a main vi. Pretty simple and all is happy. There's one rub though: one of my vis which is passed the user event is called by reference. The call by reference vi requires a certain vi pattern when you create the reference for the vi (namely, a strictly typed vi reference), which includes the user event type. Now, sometimes, I update the typedefs in the data type of the user event. This means that user event type changes. Now, what's maybe not too surprising, is that either the user event type doesn't update with the type def or that the type specifier vi constant doesn't update with the change in user event type. This means that every time I have to go back and create a type specifier based on the updated pattern for the vi which takes the user event as an input.
Is there a way for labview to automatically do this? One way to fix it, I'm sure, is to change the user event input into the vi I call by reference to a variant. Then inside the vi I call, to type cast the variant with the output of a Create User Event vi that has been seeded with the appropriate cluster of typdefs. But that seems pretty silly (like, why not just make EVERYTHING a variant). Any ideas?
- ChrisTake a static VI reference (from the app control palette), drag your subVI into it, right click it and make it strict and wire it into the type input for the Open VI Reference primitive. Now it should always update.
Two more advantages you get from this is that now the VI is in memory, so it will automatically be included in your build and that you can use the VI Name (or VI Path) property from the static reference to get the name for the Open VI Reference primitive and it will always work correctly.
Try to take over the world! -
Read Data's from the Form step type at run time
Hi Experts,
I have the 'Form' step type in my workflow and it will displays some values at the Run time. In this form I have one IO field called 'Comments'. So at the runtime manager can Enter the comments on it.
Now my need is I need to get the 'Comments' data from that form. How can I get this value?
Thanks in Advance,
Helps will be Appreciated..I got the solution.
Thanks All.. -
Dates are not mapped as the Date data type in Universe created on Infoset
Hi,
When i try to create the universe on top of Infoset query, the date fields present as the variables in SAP BI Query are not mapped as date data type in Universe, instead they are considered as Characters, hence the prompts related to those variables are coming s List of values instead of Calendar in WebI.
Can any one pls help me to find the solution on how to map date variables as calendar in Webi Prompts.(For SAP BI Queries created on Infoset)
Edited by: Nisha Makhija on Jul 20, 2009 5:59 PMHi Ingo,
Thanks for your response!!
The I Query is built on Top of BW MultiProvider and the InfoObject is of Type DATS.
Actually our Modeling on the BI is as follows :
DSOs> Infoset>Multiprovider->BI query>Universe.
Since we were not able to get the prompts as Calander so We tried Debugging on different Data targets to find the root cause. Please find our observations as follows:
When I tested the same date infoobject(of Type DATS) by creating a BI Query on top of DSO, Infocube & Multiprovider ,the Prompts are working fine as a calander in WEBI Report.
But when the BI Query is built on Infoset data target, In WEBI Report I am getting list of values rather a Calender prompt .
I tested in the Universe that field is appearing as Character instead of Date.
Please guide to resolve this issue.
Thanks,
Nisha. -
Pl/sql Procedure is Not Creating With the CLOB data Type
Hi,
I am Using Oracle 10g Express Edition Release2.... My Doubt is While creating a table With CLOB Data Type the table is created successfully,but while Creating a Procedure With the CLOB Data type i am getting an Error Message
2667/5 PL/SQL: Statement ignored
2667/24 PLS-00382: expression is of wrong type
then i tried With the Varchar2(30000) the Procedure is Created Successfully note i have not changed any thing in my code except the data type.
I am Just Confused ......Why the Procedure is not Created with CLOB Data type?
Please advice ...
Thank U
SHANhi,
Thanks for reply....Another Example
CREATE TABLE USER_MAS (USER_ID VARCHAR2 (20 Byte),MAIL_ID VARCHAR2 (255 Byte));
set serveroutput on
declare
atable varchar2(64) := 'USER_MAS';
acolumn varchar2(64) := 'MAIL_ID';
avalue varchar2(64) := 'NEWYORK' ;
dyn_sql clob;
begin
dyn_sql := 'update '||atable||' set '||acolumn||' = '''||avalue|| '''' ;
dbms_output.put_line(dyn_sql);
execute immediate dyn_sql;
end;
commit ;
Error at line 2
ORA-06550: line 9, column 23:
PLS-00382: expression is of wrong type
ORA-06550: line 9, column 5:
PL/SQL: Statement ignored
When i Changed the Data type to varchar2(64)
update USER_MAS set MAIL_ID = 'NEWYORK'
PL/SQL procedure successfully completed.
Commit complete.
I like to Know the Reason Why the Procedure is Not Created in Oracle 10g XE DB
Note :the Same Script i used in 11g DB the Procedure is Created Successfully....
Why you need use CLOB or VARCHAR2 in your temp_num variable as you sending parameters as number?
In the Procedure we are create some run time queries while executing the procedure. There are around 10 run time queries created.
The size of each query is more than 4000 characters . We then add all the queries using union all after each query to the clob variable as the normal varchar will not support.
Please Advice
Thank U
SHAN -
Cannot get the correct data type in Oracle JDBC
Dear ALL:
I used JDBC ResultSetMetaData to get the column data type for Oracle Database. I created a table including 2 columns AAA, which is NUMBER type, BBB which is FLOAT type.
However, I found a problem that either NUMBER or FLOAT data types are reported as NUMBER type in JDBC.
IN SQL 2000, it is okay. SMALLINT, INT, TINYINT, etc..can be reported correctly.
Can anybody tell me that what's wrong here? I will be very appreciated.hi,
i guess its a bug which is fixed with 10i.
Elango. -
How to find the Column data type changes in table
Hi All,
I need to find out the column data type changes where made recently in table .
How do i check past changes in column data type. Any data dictionary are there to find out the data type changes in the column .
Thanks in advance..<FONT FACE="Arial" size=2 color="2D0000">
You have the answer on hand (user_arguments / all_arguments)!
SQL> desc user_arguments
Name Null? Typ
OBJECT_NAME VARCHAR2(30)
PACKAGE_NAME VARCHAR2(30)
OBJECT_ID NOT NULL NUMBER
OVERLOAD VARCHAR2(40)
ARGUMENT_NAME VARCHAR2(30)
POSITION NOT NULL NUMBER
SEQUENCE NOT NULL NUMBER
DATA_LEVEL NOT NULL NUMBER
DATA_TYPE VARCHAR2(30) --> Data Type
DEFAULT_VALUE LONG
DEFAULT_LENGTH NUMBER
IN_OUT VARCHAR2(9) -->Argument direction (IN,OUT,or IN/OUT)
DATA_LENGTH NUMBER
DATA_PRECISION NUMBER
DATA_SCALE NUMBER
RADIX NUMBER
CHARACTER_SET_NAME VARCHAR2(44)
TYPE_OWNER VARCHAR2(30)
TYPE_NAME VARCHAR2(30)
TYPE_SUBNAME VARCHAR2(30)
TYPE_LINK VARCHAR2(128)
PLS_TYPE VARCHAR2(30)
CHAR_LENGTH NUMBER
CHAR_USED VARCHAR2(1)
Look for Data_Type where IN_OUT say OUT. That will be the data type retruned by that function.
Edited :
or POSITION in argument list,or null for function return value
-SK
</FONT>
Maybe you are looking for
-
How to extract the column width in ALv report if its executed in background
I am executing an ALV report in background , in front end i am getting data properly, in back end for some columns some of the digits are missing.For example if PO no is of 10 digits it will display only 8 becos column size is like that , how to extr
-
Can you call a function module from within a smartform?
I was told that yu can not call a function module from a smartform - that does not make sense to me because you can do tons of ABAP within a smartform. Well - can you? Thanks. Scott
-
EXTREMELY URGENT - Never seen this before
gurus, i've portal 30982 on windows NT. i've to create a new application, following are the steps i'm following - 1. click navigator 2. click the applications tab 3. click create link 4. the schema that i want the application to be based on does not
-
Documents Attached to Notifications
Hi Experts, May i know is it possible to atache the documents while creating the notification but before saving it.I know once you save the notification then in change mode doccument attached option is coming but is it possible to get the same during
-
Wireless connection drops - T500
I just purchased a T500 couple days back. My wireless card turns off automatically like after a couple of hours or so. It wont work again without a restart. I uninstalled and reinstalled Access Connection, but it still did not help. I am running Wind