Return data type mapping in Java sp.

Hi,
I have a java stored procedure returning a long[] as return value. I have been searching internet for solution for how to construct its Call Spec but nothing.
Is anyone knowing this, drop some lines , please.
Thanks first.

Hi,
I have a java stored procedure returning a long[] as return value. I have been searching internet for solution for how to construct its Call Spec but nothing.
Is anyone knowing this, drop some lines , please.
Thanks first.

Similar Messages

  • Return Data Types.

    Hi,
    I'm a beginner in Java and am want to find out all the different return data types that can be used in a method declaration.
    At the moment I know of void and static, is there a page on the web I can go to in order to find all the different return types??
    Thanks in advance for your help.

    I'm new myself, so must not understand the question or the answers. I thought methods could return any datatype, reference or primitive. This method takes info from a dialog box (two combo boxes, a textfield and a password field) and encapsulates the data into a return type User for delivery to another class, for subsequent use in making a jdbc connection:
    public User setUser()
          return new User((String)driverFields.getSelectedItem(),
             (String)urlFields.getSelectedItem(),
             userName.getText(),password.getPassword());
    [\code]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Issue with xsd Data type mapping for collection of user defined data type

    Hi,
    I am facing a issue with wsdl for xsd mapping for collection of user defined data type.
    Here is the code snippet.
    sample.java
    @WebMethod
    public QueryPageOutput AccountQue(QueryPageInput qpInput)
    public class QueryPageInput implements Serializable, Cloneable
    protected Account_IO fMessage = null;
    public class QueryPageOutput implements Serializable, Cloneable
    protected Account_IO fMessage = null;
    public class Account_IO implements Serializable, Cloneable {
    protected ArrayList <AccountIC> fintObjInst = null;
    public ArrayList<AccountIC>getfintObjInst()
    return (ArrayList<AccountIC>)fintObjInst.clone();
    public void setfintObjInst(AccountIC val)
    fintObjInst = new ArrayList<AccountIC>();
    fintObjInst.add(val);
    Public class AccountIC
    protected String Name;
    protected String Desc;
    public String getName()
    return Name;
    public void setName(String name)
    Name = name;
    For the sample.java code, the wsdl generated is as below:
    <?xml version="1.0" encoding="UTF-8" ?>
    <wsdl:definitions
    name="SimpleService"
    targetNamespace="http://example.org"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="http://example.org"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    >
    <wsdl:types>
    <xs:schema version="1.0" targetNamespace="http://examples.org" xmlns:ns1="http://example.org/types"
    xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:import namespace="http://example.org/types"/>
    <xs:element name="AccountWSService" type="ns1:accountEMRIO"/>
    </xs:schema>
    <xs:schema version="1.0" targetNamespace="http://example.org/types" xmlns:ns1="http://examples.org"
    xmlns:tns="http://example.org/types" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:import namespace="http://examples.org"/>
    <xs:complexType name="queryPageOutput">
    <xs:sequence>
    <xs:element name="fSiebelMessage" type="tns:accountEMRIO" minOccurs="0"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="accountEMRIO">
    <xs:sequence>
    <xs:element name="fIntObjectFormat" type="xs:string" minOccurs="0"/>
    <xs:element name="fMessageType" type="xs:string" minOccurs="0"/>
    <xs:element name="fMessageId" type="xs:string" minOccurs="0"/>
    <xs:element name="fIntObjectName" type="xs:string" minOccurs="0"/>
    <xs:element name="fOutputIntObjectName" type="xs:string" minOccurs="0"/>
    <xs:element name="fintObjInst" type="xs:anyType" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="queryPageInput">
    <xs:sequence>
    <xs:element name="fPageSize" type="xs:string" minOccurs="0"/>
    <xs:element name="fSiebelMessage" type="tns:accountEMRIO" minOccurs="0"/>
    <xs:element name="fStartRowNum" type="xs:string" minOccurs="0"/>
    <xs:element name="fViewMode" type="xs:string" minOccurs="0"/>
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://example.org"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://example.org" xmlns:ns1="http://example.org/types">
    <import namespace="http://example.org/types"/>
    <xsd:complexType name="AccountQue">
    <xsd:sequence>
    <xsd:element name="arg0" type="ns1:queryPageInput"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="AccountQue" type="tns:AccountQue"/>
    <xsd:complexType name="AccountQueResponse">
    <xsd:sequence>
    <xsd:element name="return" type="ns1:queryPageOutput"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="AccountQueResponse" type="tns:AccountQueResponse"/>
    </schema>
    </wsdl:types>
    <wsdl:message name="AccountQueInput">
    <wsdl:part name="parameters" element="tns:AccountQue"/>
    </wsdl:message>
    <wsdl:message name="AccountQueOutput">
    <wsdl:part name="parameters" element="tns:AccountQueResponse"/>
    </wsdl:message>
    <wsdl:portType name="SimpleService">
    <wsdl:operation name="AccountQue">
    <wsdl:input message="tns:AccountQueInput" xmlns:ns1="http://www.w3.org/2006/05/addressing/wsdl"
    ns1:Action=""/>
    <wsdl:output message="tns:AccountQueOutput" xmlns:ns1="http://www.w3.org/2006/05/addressing/wsdl"
    ns1:Action=""/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="SimpleServiceSoapHttp" type="tns:SimpleService">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="AccountQue">
    <soap:operation soapAction=""/>
    <wsdl:input>
    <soap:body use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="SimpleService">
    <wsdl:port name="SimpleServicePort" binding="tns:SimpleServiceSoapHttp">
    <soap:address location="http://localhost:7101/WS-Project1-context-root/SimpleServicePort"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    In the above wsdl the collection of fintObjInst if of type xs:anytype. From the wsdl, I do not see the xsd mapping for AccountIC which includes Name and Desc. Due to which, when invoking the web service from a different client like c#(by creating proxy business service), I am unable to set the parameters for AccountIC. I am using JAX-WS stack and WLS 10.3. I have already looked at blog http://weblogs.java.net/blog/kohlert/archive/2006/10/jaxws_and_type.html but unable to solve this issue. However, at run time using a tool like SoapUI, when this wsdl is imported, I am able to see all the params related to AccountIC class.
    Can some one help me with this.
    Thanks,
    Sudha.

    Did you try adding the the XmlSeeAlso annotation to the webservice
    @XmlSeeAlso({<package.name>.AccountIC.class})
    This will add the schema for the data type (AccountIC) to the WSDL.
    Hope this helps.
    -Ajay

  • Message Data Type mapping

    Hello there,
      My scenario is SOAP-XI-SOAP.  After doing configuration, I was alble to send the message to server.  However, I was not able retrieve data at return.
      The following are two xml message that I got from server response and from XI.
    1. From SERVER response message.
    <ns1:doSpellingSuggestionResponse xmlns:ns1='urn:GoogleSearch' xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelope/' SOAP:actor='http://schemas.xmlsoap.org/soap/encoding/' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'><return xsi:type='xsd:string'>Yahoo!!!</return></ns1:doSpellingSuggestionResponse>
    2. From XI
    <ns:doSpellingSuggestionResponse xmlns:ns="http://xi.com/googlesearch"></ns:doSpellingSuggestionResponse>
      I believe there is something wrong with my data type definition at XI design.  I followed the example "How To… Use the XI 3.0 SOAP Adapter".
      Would anyone please tell me how to define Data Type at XI for data response?  Besides, does it have anything to do with Mapping Template.
      Please advise.
      Thank you very much.
    trith.

    Satish,
      I agree with you.  I saw the difference between the response message at the Message Mapping and Message response :
      At Message Mapping, the xml message is displayed as :
    <ns0:return xmlns:ns0="urn:GoogleSearch"/>
      At runtime, the message response is:
    <ns1:doSpellingSuggestionResponse xmlns:ns1='urn:GoogleSearch' xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelope/' SOAP:actor='http://schemas.xmlsoap.org/soap/encoding/' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'><return xsi:type='xsd:string'>Yahoo!!!</return></ns1:doSpellingSuggestionResponse>
      The wsdl external definition which I got from :
    http://api.google.com/GoogleSearch.wsdl
      If you said there is some problem with xsd, how I am supposed to fix that?  Would you please give me more hints?
      Thank you very much.
    trith.

  • Data Type Mapping from SQL server to Oracle

    I am using Oracle 12c with heterogenous services connecting to SQL server DB. Some of the columns in the SQL server SB are defined as 'nvarchar(max)'. These are coming over to Oracle as 'long' type columns. I would like these to be 'varchar2' types in Oracle so I do not have any of the restrictions related to 'long' type fields when using. I can create a view in SQlServer to convert the data type ie. nvarchar(100). What is the highest value I can use to make the data show in Oracle as varchar? BTW  I tried nvarchar(4000) but that still showed as long. I tried nvarchar(1000), and that did show as varchar.

    The maximum value for a nvarchar2 in Oracle is 2000. The mapping -if the remote column is mapped to an Oracle varchar/nvarchar- depends on the data type returned by the ODBC driver. When the driver returns SQL_Varchar, then the maximum precision is 4000 and when it will map it to SQL_WVarchar then it is 2000.
    As your Oracle database uses AL32UTF8 as character set you will get the nvarchar(max) mapped to Oracle longs as the content of your SQL Server nvarchar is stored using UCS2 character set which is covered by the Oracle database charset UTF8. So it shouldn't really matter if the returned string is mapped to an Oracle varchar or nvarchar.

  • Returning complex types with arrays (Java / EJB via WSIF)

    Hi all,
    I'm writing some WSIF bindings for existing EJBs, and I've struck a bit of a problem. Basically I've got complex types that contain arrays, and while instances of these types can be passed to the EJBs, return variables typed similarly cause the following fault:
    org.collaxa.thirdparty.apache.wsif.WSIFException: com.collaxa.cube.ws.wsif.providers.ejb.WSIFOperation_EJB@1a372e0 : Could not invoke 'concatString'; nested exception is:
         org.collaxa.thirdparty.apache.wsif.WSIFException: Class 'ejbinterfacetest.StringReturnArray' is not compatible; nested exception is:
         oracle.xml.parser.v2.XMLDOMException: cannot add a node belonging to a different document
         at com.collaxa.cube.ws.wsif.providers.ejb.WSIFOperation_EJB.executeRequestResponseOperation(WSIFOperation_EJB.java:1305)
         at com.collaxa.cube.ws.WSIFInvocationHandler.invoke(WSIFInvocationHandler.java:431)
         at com.collaxa.cube.ws.WSInvocationManager.invoke2(WSInvocationManager.java:416)
    The Java class StringReturnArray is a serializable JavaBean with one property, a String[] called strings. The corresponding complexType (that works when used as a method parameter type) is stringReturnArrayType:
    <complexType name="stringArrayType">
    <sequence>
    <element name="str" type="string" maxOccurs="unbounded" />
    </sequence>
    </complexType>
    <complexType name="stringReturnArrayType">
    <sequence>
    <element name="strings" type="tns:stringArrayType" />
    </sequence>
    </complexType>
    and I've type mapped in the binding with
    <format:typeMap typeName="typens:stringReturnArrayType" formatType="ejbinterfacetest.StringReturnArray" />
    Anyone know why this would be? Is there any way I can get more information out of BPEL or OC4J regarding the fault? (I've already turned the BPEL domain logging to All)
    Cheers,
    Chris.

    Any luck with this? I am running into the same error. Apparently, this is not an issue with Java binding, but when invoking remote EJBs, we run into this. I am running 10.1.3.1 and the error is:
    <fault>
    <bindingFault xmlns="http://schemas.oracle.com/bpel/extension">
    <part name="summary">
    <summary>
    com.collaxa.cube.ws.wsif.providers.ejb.WSIFOperation_EJB@e26dbf : Could not invoke 'getIdentityInfo'; nested exception is:
         org.collaxa.thirdparty.apache.wsif.WSIFException: Class 'ca.bc.gov.pssg.c3.webservices.identitymanagement.Identity' is not compatible; nested exception is:
         oracle.xml.parser.v2.XMLDOMException: cannot add a node belonging to a different document
    </summary>
    </part>
    <part name="detail">
    <detail>
    org.collaxa.thirdparty.apache.wsif.WSIFException: Class 'ca.bc.gov.pssg.c3.webservices.identitymanagement.Identity' is not compatible; nested exception is:
         oracle.xml.parser.v2.XMLDOMException: cannot add a node belonging to a different document
    </detail>
    </part>
    </bindingFault>
    </fault

  • How can I implement data type map?

    The getString() method of java.sql.ResultSet interface is not efficient enough.
    I want to map any data type to VARCHAR type,then use the getBytes() method to get the value.
    How can I implement it.
    I know proc can implement it, simply set selda->T[sli] with 1 for any field.

    Hello,
    What's your LabVIEW version ? Do you have a simple example program which demonstrates this behavior ?
    I found another discussions related to your issues with Xcontrols:
    updating type defs in Xcontrol Facade
    No Data Change event generated for a XControl in a Type Def
    XControl facede.vi 
    Hope this helps.
    Regards, 
    Steve M.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    >> Vidéo-t'chats de l'été : présentations techniques et ingénieurs pour répondre à vos questions

  • Data type mapping

    Hi,
    Where can I map the java datatype to its equivalent DB datatype. I think for Oracle, MS SQL server,Sysbase there is default type mapping.

    Jagan wrote:
    Great Joe,
    Thanks for ur immediate response.:-)
    I have few issues here :
    1.) Tell me whether i can use Postgres with weblogic6.1 and above versions.Weblogic supports any JDBC driver to any DBMS, as long as the JDBC driver
    implements the standard JDBC spec, and is threadsafe.
    2.)Can i create tables using weblogic and Postgres?if yes,how?Surely, via the SQL commands Postgres understands, and JDBC:
    statement.executeUpdate("create table myTable(myInt int, myName varchar(30), ...)");
    3.)If no support is provided,please tell whether weblogic support only the four
    Databases mentioned in the doc,explain clearly.BEA is totally devoted to the J2EE standards. We must support any driver and
    DBMS that also meets the J2EE spec.
    4.)Is there no way i can specify datatype mapping using the weblogic API also?
    Application servers like JBoss provide us with a xml where we specify the datatype
    mappings for each database,is there something like that for weblogic?no.
    Else provide me with a solution.I'm not sure what your exact desire is. For a given DBMS there are a unique
    set of column types. There is some overlap across DBMSes, and there is
    usually some types that are unique to the DBMS, and some that are generic
    in purpose, such as date-time values, that is implemented differently in each
    DBMS.
    For each DBMS there is one or more JDBC drivers. Each driver will convert
    a given DBMS column type to any logically convertable JDBC type. Ie:
    an integer column in the DBMS can be asked for via getString(), and the
    driver will convert the value 123 to "123". Drivers will also decide what
    JDBC type to create from a given DBMS column. If a column value is
    asked for via getObject(), the driver will make what it thinks is the best
    Java type to represent the column. There is a JDBC spec for this, but many
    drivers diverge from the spec.
    What do you need, and how can we help?
    Once again thanks for ur response,expecting the same again.Sure.
    Joe Weinstein
    Thanks & Regds,
    --Jagan.
    Joseph Weinstein <[email protected]> wrote:
    Hi. No, we don't have a Postgres-Oracle,Oracle-postgres conversion
    chart. Sorry.
    Joe
    Jagan wrote:
    Joseph Weinstein <[email protected]> wrote:
    Jagan wrote:
    Hi,
    Where can I map the java datatype to its equivalent DB datatype.
    I
    think for Oracle, MS SQL server,Sysbase there is default type mapping.
    You will have to check the driver documentation for each DBMS driver
    you use. There are too many deviations from the
    JDBC spec to rely on it. For instance if you create an Oracle tablewith
    an int column, if you do a getObject() to fetch
    it's value, the Oracle driver will provide a BigDecimal object.
    Joe
    Hi Joe,
    I think there is a big misunderstanding after seeing your reply.
    What i meant was :
    I am actually porting an application to weblogic6.1 and Postgre databasewhich
    deployed and executed succesfully using weblogic6.1 and Oracle.
    Here i face the problem of Datatype mapping for Postgres.
    What i wanted is,is there a file or xml in weblogic where i can specifythe datatype
    mapping for each database?
    If yes,where and how do i do that,explain me with a sample plaese.
    Please do not be specific to any database,because i am porting thesame application
    to many databases,so please answer me in
    generic.
    Thanks in Advance,
    --Jagan.

  • ABAP Data type to XI data type mapping

    Hi,
    I am creating a message type in XI corresponding to a ABAP structure. There are couple of data types on the ABAP side (for example: RAW, QUAN, CURR CUKY, UNIT, NUMC etc) which i have no idea on what it should be mapped to on the XI side(xsd:string, xsd:token, xsd:int etc).
    Is there is any document on mapping from ABAP data type to XML data type ? if yes please send it across.([email protected])
    if no doc available, if some body could let me know what these ABAP data type would map on the XI side it would great.
    Best Regards,
    Kiran

    Hi Kiran,
    just some more background information to the data types CURR, CUKY, QUAN, UNIT:
    1) Each field of data type CURR must be assigned to a field of data type CUKY (the financial amount must be assigned to a currency) and each field of data type QUAN must be assigned to a field of data type UNIT (each quantity must have a dimension). If you want to know this assignment for your specific ABAP structure, you can find it using transaction SE11 with your ABAP structure and go to the tab <i>Currency/Quantity fields</i>. Here you find the information under <i>Reference table</i> and <i>Ref. field</i>.
    2) The default number of decimals for a field of data type CURR is 2, but this can be overwritten by the assigned CUKY field. You can check the actual number of decimals for a specific currency with transaction OY04. Here are all currency list that do <b>not</b> have 2 decimals.
    3) The default number of decimals for a field of data type QUAN is 3, but this can be overwritten by the assigned UNIT field. You can check the actual number of decimals for a specific unit with transaction CUNI. Click on <i>Units of measurement</i> (pick the correct dimension first), double click on your unit and you find the info in the field <i>Decimal places</i>.
    4) Depending on the data you receive your conversions can get quite tricky. Lets take as an example a field of type CURR. If you find the value 1000 in there, this would convert to 10.00 USD if the assigned CUKY field contains the value USD (US dollar). But the same value ca represent 1000 JPY (Japanese Yen) if the assigned CUKY field contains the value JPY. What i try to say is that the value in the field of type CURR alone does not give you the actual amount, you have to know the value of the CUKY field as well. Similar for QUAN and UNIT.
    Regards,
    Claus

  • RAW Data Type mapping to BI infoobject

    Dear Experts,
    We are trying to extract CRM data into BI,  the Datasource  have a field type 'RAW' . In BI which data type to consider for this field to info object mapping. Pls let me know.
    I've taken infoobject of type CHAR with length 60, still getting error in transformations.
    Thanks in advance.
    HVR.

    Hi,
    I am trying to extract data from 0CRM_CLAIMS, GUID field
    Thanks
    HVR

  • Non-build-in-data type mapping error

    Hi,
    I started a new web service design using a pre-defined Schema. I created a schema project and use XML bean as my web service method parameter.
    It works fine in workshop test IDE. But when I deployed it and tried to generate client jar, it gave me Failed to do type mapping error.
    What steps I should do to fix this non-build-in data type problem?
    thanks
    May

    Hi,
    I started a new web service design using a pre-defined Schema. I created a schema project and use XML bean as my web service method parameter.
    It works fine in workshop test IDE. But when I deployed it and tried to generate client jar, it gave me Failed to do type mapping error.
    What steps I should do to fix this non-build-in data type problem?
    thanks
    May

  • EJB/SQL data type mapping

    Is there a way to define the mapping between SQL data types and the generated Entity bean data types.
    (SQL server tiny int is getting mapped to a boolean!!! so I want to change it to a small, is there anything in the EJB 2.0 specification that defines the mapping between DB and EJB types).
    thx,
    sanjay.

    I haven't done any bottom up beans but I would imagine there is an equivalent way you can change the mapping to change the data type when the bean is created. You may just have to change the datatype on the imported db schema before you generate the beans. You will also need to check that your jdbc driver supports transformation between tinyint and small.

  • Return data type in Crystal syntax formula

    Post Author: gpeters
    CA Forum: Formula
    How do you control the data type a Crystal formula returns?  I'm relatively new to Crystal.  I'm developing a formula, and initially I'm having it return Boolean values.  However, my intent is to have it eventually return a string value.  Now, it seems that no matter what I do, this formula is determined to only return a Boolean value.  Should I have used Basic syntex instead?  Very frustrating to be fighting syntax stuff. 

    Post Author: SKodidine
    CA Forum: Formula
    If you could copy your formula here then it would paint a better picture to help you out.  In general, you can change the data type to string (totext) and also to number (tonumber) in a formula.  It all depends on what you are trying to accomplish.

  • Oracle to ODBC data type mapping

    Hi all.
    I am currently using an EasySoft ODBC driver to connect to 10g. This gives me the ability to map oracle data types to ODBC:
    0 NUMBER <= 4 digits SQL_SMALLINT
    NUMBER <= 9 digits SQL_INTEGER
    NUMBER <= 19 digits SQL_BIGINT
    NUMBER = n digits SQL_NUMERIC
    NUMBER = n,m digits SQL_NUMERIC
    1 NUMBER <= 4 digits SQL_SMALLINT
    NUMBER <= 9 digits SQL_INTEGER
    NUMBER = n digits SQL_DOUBLE
    NUMBER = n,m digits SQL_DOUBLE
    2 NUMBER <= 4 digits SQL_SMALLINT
    NUMBER = n digits SQL_INTEGER
    NUMBER <= 19 digits SQL_BIGINT
    NUMBER n,m digits SQL_DOUBLE
    I would rather use the Oracle ODBC driver but I am unsure how (read if) I can get these values mapped?
    Any help would be much appreciated.

    Hi,
    Could you re-run with CQLProcessor category set to DEBUG?
    Which version of OCEP is it?
    Thanks,

  • Formatting dates and return date type

    Hi,
    I am working with SQL Server 2012 with English(United States) language set, it's not posible change this parameter.
    If I execute this sentence
    declare @d
    date='06/22/2015'
    select @d
    Response:2015-06-22 (yyyy-MM-dd)
    I want to obtain 22-06-2015 (dd-MM-yyyy) with type date.
    I have tried with format(@d,'dd/MM/yyyy') and convert(varchar,@d,103) but these functions return varchar and after the order in Excel doesn't work about date.
    I have tried too
    declare @dvarchar(10)='22/06/2015
    select parse(@dasdateusing'es-ES')asResult
    The response is the same
    Response:2015-06-22 (yyyy-MM-dd)
    How can I obtain "22-06-2015" in data type?
    Thanks,

    I want to obtain 22-06-2015 (dd-MM-yyyy) with type date.
    A data of type "date" don't have any format as it, it's just a (internal numeric) value; it's always the frontend which format's this value.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

Maybe you are looking for