MS sql server text column to 8.0.5 CLOB

my env: MS SQL SERVER (6.5 and 7.0) Oracle 8..0.5/8i
I have a 'products' table a sub-definition of which is:
MS sql server definition
create table products(
productid int IDENTITY(1,1) not null
,name varchar (255)
,description TEXT)
Oracle8 definition
create table products(
productid number(10) not null
,name varchar2(255)
,description CLOB)
My question is:
In sqlserver I have a query:
SELECT productid, name FROM products
WHERE products.description LIKE '%some text%';
The above query works in sqlserver but the equivalent query in
Oracle does not work i.e. I get the following error
ORA-00932: inconsistent datatypes
The error description does not fully explain my situation.
I want to confirm that I cannot have as part of my 'WHERE CLAUSE'
a reference to a 'CLOB' column i.e.
'WHERE clob.column LIKE '%SOME TEXT%'. If I cannot do this, how
else can I do it (without using Oracle's Context/Intermedia
option) or am I doing something incorrectly.
Your valuable suggestions/comments are most appreciated.
Regards
Harry Gill
null

It may also be useful for you to take a look at the Intermedia
documentation.
And finally, Oracle Development say they are currently looking at
implementing LIKE for Clobs in future releases.
Oracle Migration Workbench Team wrote:
: Hi Harry,
: Here is a reply I got. dbms_lob is a pl/SQL package. You can
find
: more information on this in the application developers guide
and
: pl/sql developers guide.
: use the dbms_lob.instr() function to get like functionality in
: clobs.
: It is not perfect but meets your requirements.
: e.g.
: SELECT productid, name
: FROM products
: WHERE dbms_lob.instr(products.description,'some text',1,1) > 0;
: John
: Oracle Migration Workbench Team wrote:
: : Hi Harry,
: : I have fowarded your query to some more people within Oracle.
: : I can suggest some different approaches that use PL/SQL or
Java
: : but I would like to see what other developers recommend.
: : Do you have access to the Oracle8i Application Developers
: guide.
: : There should be some code samples there that can help.
: : John
: : Harry Gill (guest) wrote:
: : : my env: MS SQL SERVER (6.5 and 7.0) Oracle 8..0.5/8i
: : : I have a 'products' table a sub-definition of which is:
: : : MS sql server definition
: : : create table products(
: : : productid int IDENTITY(1,1) not null
: : : ,name varchar (255)
: : : ,description TEXT)
: : : Oracle8 definition
: : : create table products(
: : : productid number(10) not null
: : : ,name varchar2(255)
: : : ,description CLOB)
: : : My question is:
: : : In sqlserver I have a query:
: : : SELECT productid, name FROM products
: : : WHERE products.description LIKE '%some text%';
: : : The above query works in sqlserver but the equivalent query
: in
: : : Oracle does not work i.e. I get the following error
: : : ORA-00932: inconsistent datatypes
: : : The error description does not fully explain my situation.
: : : I want to confirm that I cannot have as part of my 'WHERE
: : CLAUSE'
: : : a reference to a 'CLOB' column i.e.
: : : 'WHERE clob.column LIKE '%SOME TEXT%'. If I cannot do this,
: how
: : : else can I do it (without using Oracle's Context/Intermedia
: : : option) or am I doing something incorrectly.
: : : Your valuable suggestions/comments are most appreciated.
: : : Regards
: : : Harry Gill
: : Oracle Technology Network
: : http://technet.oracle.com
: Oracle Technology Network
: http://technet.oracle.com
Oracle Technology Network
http://technet.oracle.com
null

Similar Messages

  • How to get JDev 10.1.2/ADF working with MS SQL Server Identity Column

    Hello JDevTeam & JDevelopers,
    I want to use JDev/ADF with a MS SQL Server 2005 database that contains tables employing IDENTITY Columns.
    Using JDev/ADF and DBSequence with an Oracle database employing before triggers/sequences accomplishes what I am trying to do except I want to accomplish the same thing using a MSSQL Server 2005 database. Unfortunately I cannot change the database.
    I have been able to select records but I am unable to insert records (due to my lack of knowledge) when using MS/SQL Server Identity Columns with JDev/ADF.
    The following are the steps taken thus far.
    Step1: Create table named test in the 2005 MSSQL Server (see script below).
    Step2: Register 3rd Party JDBC Driver with JDeveloper; Using use Tools/Manage Libraries. Create a new entry in User Libraries with the following;
         Library Name     = Ms2005Jdbc
         Class Path     = C:\dev\Ms2005Jdbc\sqljdbc_1.0\enu\sqljdbc.jar
         (note: Latest TYPE 4 JDBC driver for Microsoft SQL Server 2005 - free at http://msdn.microsoft.com/data/ref/jdbc/)
    Step3:Create New Database Connection;
         Connection Name = testconn1
         Type = Third Party JDBC Driver
         Authentication Username = sa, Password = password, Check Deploy Password
         Connection
              Driver Class = com.microsoft.sqlserver.jdbc.SQLServerDriver     
              Library = Ms2005Jdbc     
              Classpath = C:\dev\Ms2005Jdbc\sqljdbc_1.0\enu
              URL = jdbc:sqlserver://192.168.1.151:1433;instanceName=sqlexpress;databaseName=test
         Test Connection = Success!
    Step5: Create a new application workspace using Web Application default template
    Step6: In Model project, Create new Business Components Diagram.
    Step7: Create new Entity Object. Goto to connections/testconn1, open tables and drag table test onto the diagram.
    Step8: Generate Default Data Model Components by right-clicking on Entity Object. Except all the defaults.
    When I test the Appmodule I select the view object and can scroll through all the records without error. If I try to insert a record, I get JBO-27014: Attribute testid in test is required.
    Going back to the EntityObject I deselect the Mandatory attribute and re-run the test. Now when I try to insert it accepts the value for testname but it does not update the PK testid like it would using an "JDev/ADF/DBSequence/Oracle database/before trigger/sequence" solution.
    Going back to the EntityObject and selecting refresh on insert does not solve this problem either. Changing the URL connection string and adding "SelectMethod=cursor" did not help and changing the SQl Flavor to SQLServer produced errors in the Business Components Browser. I've tried overriding isAttributeChanged() and other things as well.
    I am totally stuck! Can anyone provide a solution?
    Thanks for you help,
    BG...
    Create table named test
    use [testdb]
    go
    set ansi_nulls on
    go
    set quoted_identifier on
    go
    create table [test](
         [testid] [int] identity(0,1) not null,
         [testname] [nvarchar](50) collate sql_latin1_general_cp1_ci_as not null,
    constraint [pk_test] primary key nonclustered
         [testid] asc
    )with (pad_index = off, ignore_dup_key = off) on [primary]
    ) on [primary]

    Figured it out!
    When using the MS SQL Server 2000 Database with the MS JDBC 2000 Driver you specify the SQL Flavor to SQLServer. However setting the SQL Flavor to SQLServer with MS SQL Server 2005 Database and the MS JDBC 2005 Driver will *** fail ***.
    When working with the MS SQL Server 2005 Database and the MS JDBC 2005 Driver you set the SQL Flavor to SQL92 and the Type Map to Java.
    If using a named instance like I am you would specify the URL = jdbc:sqlserver://<db host ip address>:<listening port>;instanceName=<your instance name>;selectMethod=cursor;databaseName=<your database name> (note: leave out the < >)
    The 2005 Driver Class is different then the 2000 and is specified as com.microsoft.sqlserver.jdbc.SQLServerDriver
    Note: In a default MS SQL Server 2005 installation the listening port will change *** everytime *** the host is restarted! You can override this though.
    For the primary key you need to deselect the Mandatory attribute in the EntityObject editor.
    Set Refresh on insert/update = no.
    Set Updateable = never.
    Now my Primary Keys which get their values from the Identity Column are working with ADF in a predictable way.
    Simple enough but I have been away from this stuff for awhile.
    BG...

  • Error converting SQL Server text field to Oracle CLOB

    I am trying to convert an SQL Server DB to Oracle DB using DB link. The issue I am facing is one of the SQL Server table contains text field and we are trying to convert the text field to CLOB.
    The error I am getting is "SQL Error: ORA-00997: illegal use of LONG datatype"
    The statement is something like this.
    Insert into oracle_table
    Select col_1,col_2,col_3,col_4,col_5 from sql_table@sqldblink;
    Please help.

    Hi,
      This is a known restriction involving long columns -
    (1) LONG datatype not supported with use of DBLINK when insert or update involves a select statement
    (2) LONG datatype cannot be used in a WHERE clause, in INSERT into ... SELECT ... FROM
    constructs, and in snapshots.
    The workround is to use a PL/SQL procedure or try the SQLPLUS COPY command.
    If you have access to My Oracle Support then review these notes -
    Cannot Move A Long From non Oracle database Ora-00997: Illegal Use Of Long Datatype (Doc ID 1246594.1)
    How To Workaround Error: Ora-00997: Illegal Use Of Long Datatype (Doc ID 361716.1)
    Regards,
    Mike

  • Converting SQL Server text field containing XML string to XI XML via JDBC

    Hello
    My client has a SQL Server database containing a field of type Text which contains an XML string e.g.
    <DispatchJob> <DispatchDateTime>2003-09-29T13:29:15</DispatchDateTime> <AssignedFSE>F118</AssignedFSE> <DispatchJobPurchase> <DealerID>14C5</DealerID> <DateOfPurchase>1997-10-01T00:00:00</DateOfPurchase> </DispatchJob>
    I am using JDBC to access this but could someone please recommend the best and easiest solution for converting this string to XI XML for subsequent mapping to BAPI or IDOC or ABAP Proxy and transmission to SAP. There are other fields as well in the database table so thoughts at the moment are to use a normal graphical message mapping followed by an XSL mapping. Will an XSL mapping be able to do this and if so is that the best solution?
    Also I need to do the reverse of this and take fields coming from SAP via BAPI,IDOC etc. and convert them to a single database table field as an XML string also via the JDBC adapter. What is the best way to do this. Could it be done simply with functions in the graphical mapping e.g. concatenate?
    Thank you in advance.
    Trevor

    Hi Michal
    Thanks for the prompt reply.
    I was anticipating XSLT for reading from the SQL Server database and converting the XML string.
    But how would you convert the individual fields from SAP into a single field as an XML string for storing in the SQL Server database? What approach would you use?
    Regards
    Trevor

  • Equivalent to SQL Server IDENTITY columns in Oracle 8i?

    Under SQL Server, my app frequently keys tables using IDENTITY columns which are also used as the only column in the tables primary key. After an INSERT, I typically retrieve the value assigned to the IDENTITY column using:
    SELECT @@IDENTITY
    I need to port my app to Oracle 8i and wonder if there is a similar concept available. I checked out ROWID and UROWID but they don't sound quite right.
    Any idea?

    You can use the sequence directly in your insert
    without use a trigger
    For example:
    SQL> Create table nn ( c1 number, c2 varchar2(34));
    Table created.
    SQL>
    SQL> CREATE SEQUENCE customers_seq
    2 START WITH 5
    3 INCREMENT BY 1
    4 NOCACHE
    5 NOCYCLE;
    Sequence created.
    SQL>
    SQL> insert into nn values (customers_seq.nextval, 'jjj');
    1 row created.
    SQL> insert into nn values (customers_seq.nextval, 'mmm');
    1 row created.
    SQL> select * from nn;
    C1 C2
    5 jjj
    6 mmm
    SQL>
    [email protected]
    Joel P�rez

  • Importing an SQL Server TEXT data type field in Oracle - problem with LONG

    Hello,
    I work in Oracle 9i and I created a view on a distant SQL Server database that contains a TEXT data type field. But I have a problem when I select that field in Oracle; I have the following error message: "ORA-00997: forbidden use of LONG data type".
    Could anybody have a solution for me, to solve that problem?
    Thanks a lot!

    It is very difficult to suggest anything without seeing your code.  I don't even know if what you are seeing is the actual value or an error code.  Often, negative numbers are indicative of error codes. 
    For instance -1 could mean that you have an invalid reference or path, etc...
    Can you post your code?

  • Cross database join Oracle - SQL server date column - nQSError: 46008

    Hi,
    I am using OBIEE 10.1.3.4.2 and
    I am able to make cross database join between Oracle and SQL server using varchar columns, but I am getting this error:
    nQSError:22024-A comparison is being carried out between noncompatible type when I try to make "foreign key" join between two tables (one from Oracle, second from SQL Server) using number columns (INT, DOUBLE...). It is strange, but I when I make "complex join" on physical layer no error is thrown and everything works fine.
    But I am not able to make join between tables using Date column. Column in Oracle table has DATE datatype, column in SQL server tables has datetimeoffset(7) datatype (example: 2011-07-19 13:14:22.2032605 +02:00). So I tried to cast datetimeoffset(7) to date datatype using "convert(DATE,HappenedOn,120)" - this returns me 2011-07-19 . In this format, BI can show converted date column, I can make filter using this date column, but I am not able to make physical join with Oracle table using this column
    Answer using data from both joined tables gives me this error:
    [nQSError: 46008] Internal error: File .\DataType\SUKeyCompare.cpp, line 875. (HY000)
    Do you have some tips, how to solve this "bug"?

    Parse the command column to get the SSIS package file name may be your only option here.

  • Windows Azure Mobile Services - Sql Server - prebuilt columns

    am I correct in assuming that tables for WAMS need to be created in the Azure management portal and have some columns precreated.  Once the table is created:
    is it ok to modify the columns in Visual Studio once the table has been created?
    Can i just create the necessary items on my own or do I need to go through the management portal all the time?
    How do i handle foreign keys and such between two tables?
    Wally
    MVP in ASP.NET - ASPInsider - Author - Otherwise I am a loser.

    hi Wally,
    Thanks for posting!
    >>is it ok to modify the columns in Visual Studio once the table has been created?
    yes, we could modify our sql database data on the latest version (Azure SDK 2.2 ). You could use VS 2013 and install SDK2.2 to view the data. At the same time, you will
    click Add Firewall Rule and a new rule will be automatically added for you.
    Please see the blog about this question (http://weblogs.asp.net/scottgu/archive/2013/10/22/windows-azure-announcing-release-of-windows-azure-sdk-2-2-with-lots-of-goodies.aspx
    >>Can i just create the necessary items on my own or do I need to go through the management portal all the time?
    The answer is yes . If you want to manage your SQL database by azure portal, you could find your database form
    "SQL Azure", and click the "Manage" to manage your DB. Like this image:
    >>How do i handle foreign keys and such between two tables?
    you could handle foreign such as using SQL. Refer to this page (http://stackoverflow.com/questions/48772/how-do-i-create-a-foreign-key-in-sql-server
    Hope it helps.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • SQL SERVER IDENTITY COLUMN TO ORACLE

    In SS you have an identity column that automatically updates to
    the next available number when you insert a new record. How can
    I get the same functionality in O8i. I understand about adding
    a sequence but how do i link that to a column that is my primary
    key. ie when I insert a new record I want the value for the
    primary to be automatically inserted.
    Thanks in advance for helping this dofbrain
    null

    Oracle Migration Workbench Team wrote:
    : Jonathan,
    : A similar question is:
    : >What's your general strategy in database conversion when
    dealing
    : with SQL server datatypes of 'identity'. Do you suggest a
    : sequence, with a before insert 'for each row' trigger? which
    will
    : insert the sequence.nextval into
    : the column?
    : Basically that is what we do.
    : The following is an example of what the Oracle Migration
    : Workbench does:
    : sqlserver code:
    : create procedure dbo.p_report_acc_bal_turn_list2
    : as
    : declare @myint integer
    : create table temp_x_y (sales_id int identity(20,10))
    : select @myint=1
    : becomes:
    : CREATE OR REPLACE PROCEDURE p_report_acc_bal_turn_list2
    : AS
    : StoO_selcnt INTEGER;
    : StoO_error INTEGER;
    : StoO_rowcnt INTEGER;
    : StoO_crowcnt INTEGER := 0;
    : StoO_fetchstatus INTEGER := 0;
    : StoO_errmsg VARCHAR2(255);
    : StoO_sqlstatus INTEGER;
    : myint INTEGER;
    : BEGIN
    : /*[SPCONV-ERR(7)]:CREATE TABLE temp_x_y statement passed
    : to ddl file*/
    : DELETE FROM temp_x_y;
    : p_report_acc_bal_turn_list2.myint := 1;
    : END p_report_acc_bal_turn_list2;
    : result ddl:
    : [These statements need to be run before procedure is built]
    : DROP TABLE temp_x_y
    : create table temp_x_y (
    : sales_id INTEGER
    : CREATE SEQUENCE temp_x_y_sales_id MINVALUE 0 START WITH 20
    : INCREMENT BY 10
    : CREATE TRIGGER TR_temp_x_y_sales_id BEFORE INSERT ON temp_x_y
    FOR
    : EACH ROW
    : BEGIN SELECT temp_x_y_sales_id.nextval INTO :new.sales_id FROM
    : dual; END
    : Turloch
    : Oracle Migration Workbench Team
    : Jonathan Howard (guest) wrote:
    : : In SS you have an identity column that automatically updates
    to
    : : the next available number when you insert a new record. How
    : can
    : : I get the same functionality in O8i. I understand about
    : adding
    : : a sequence but how do i link that to a column that is my
    : primary
    : : key. ie when I insert a new record I want the value for the
    : : primary to be automatically inserted.
    : : Thanks in advance for helping this dofbrain
    : Oracle Technology Network
    : http://technet.oracle.com
    null

  • SQL Server image column to Oracle BLOB

    Has anyone ever successful moved SQL Server (2000) image data to an Oracle BLOB.
    My first attempts are given me
    java.lang.NumberFormatException: For input string: "4294967295"
    errors when selecting from the source. Using "LKM SQL to Oracle" module. Is there something else I should be using?
    Thanks,
    -John

    I did, and also Bug 6870772... which suggests it's a bug not fixed in 10.1.3.5.
    Still curious if ANYONE in forum-land is doing this successfully, with built-in KMs.
    Am I out of luck?
    -John

  • MS SQL SERVER 2000: Column Property

    Which of the following is not a column property? choose option?
    a. null
    b. not null
    c. default
    d. identity

    I think answer here is Default
    as all others can be checked using COLUMNPROPERTY function
    a. null - corresponding property is AllowsNull = TRUE
    b. not null - - corresponding property is AllowsNull = FALSE
    c. default - no property present
    d. identity - corresponding property is IsIdentity = TRUE
    see
    http://msdn.microsoft.com/en-IN/library/ms174968.aspx
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Selecting from a SQL Server 2005 with long column names ( 30 chars)

    Hi,
    I was able to set up a db link from Oracle 11.2.0.1 to SQL Server 2005 using DG4ODBC.
    My problem is that some column names in the Sql Server are longer than 30 chars and trying to select them gives me the ORA-00972: identifier is too long error.
    If I omit these columns the select succeeds.
    I know I can create a view in the sql server and query it instead of the original table, but I was wondering if there's a way to overcome it with sql.
    My select looks like this:
    select "good_column_name" from sometable@sqlserver_dblink -- this works
    select "good_column_name","very_long_column_name>30 chars" from sometable@sqlserver_dblink -- ORA-00972Thanks

    I tried creating a view with shorter column names but selecting from the view still returns an error.
    create view v_Boards as (select [9650_BoardId] as BoardId, [9651_BoardType] as BoardType, [9652_HardwareVendor] as
    HardwareVendor, [9653_BoardVersion] as BoardVersion, [9654_BoardName] as BoardName, [9655_BoardDescription] as BoardDescription,
    [9656_SlotNumber] as SlotNumber, [9670_SegmentId] as SegmentId, [MasterID] as MasterID, [9657_BoardHostName] as BoardHostName,
    [9658_BoardManagementUsername] as BoardManagementUsername, [9659_BoardManagementPassword] as BoardManagementPassword,
    [9660_BoardManagementVirtualAddress] as BoardManagementVirtualAddress, [9661_BoardManagementTelnetLoginPrompt] as
    MANAGEMENTTELNETLOGINPROMPT, [9662_BoardManagementTelnetPasswordPrompt] as MANAGEMENTTELNETPASSPROMPT,
    [9663_BoardManagementTelnetCommandPrompt] as MANAGEMENTTELNETCOMMANDPROMPT FROM Boards)performing a select * from this view in sqlserver works and show the short column names
    this is the error i'm getting for performing a select * from v_boards@sqlserver_dblink
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Microsoft][SQL Native Client][SQL Server]Invalid column name 'BoardManagementTelnetLoginProm'. {42S22,NativeErr = 207}[Microsoft]
    [SQL Native Client][SQL Server]Invalid column name 'BoardManagementTelnetPasswordP'. {42S22,NativeErr = 207}[Microsoft][SQL Native
    Client][SQL Server]Invalid column name 'BoardManagementTelnetCommandPr'. {42S22,NativeErr = 207}[Microsoft][SQL Native Client][SQL
    Server]Statement(s) could not be prepared. {42000,NativeErr = 8180}
    ORA-02063: preceding 2 lines from sqlserver_dblinkI also tried replacing the * with specific column names but it fails on the columns that have a long name (it doesn't recognize the short names from the view)
    what am I doing wrong?
    Edited by: Pyrocks on Dec 22, 2010 3:58 PM

  • ORA-02070: Error when updating a SQL Server table thru an Oracle View

    I have a SQL Server table TIMESHEET which contains a number of VARCHAR and NUMERIC columns plus a DATETIME column.
    Only the DATETIME column is giving me trouble.
    On the ORACLE side I have a view which selects from the SQL Server table but in order to get the SELECT to work, I had to either put a CAST or TO_DATE function call around the DATETIME field
    Below is the relevant part of the 2 view definitions I have tried
    create view TIMESHEET as
    SELECT
    "TsKeySeq" as TS_KEY_SEQ,
    "EmployeeNo" as EMPLOYEE_NO,
    CAST("PeriodEnding" AS DATE) as PERIOD_ENDING,
    . . . (more columns - not relevant)
    FROM [email protected];
    An update to the view generates this message
    ORA-02070: database OLEMSQLPSANTDAS6 does not support CAST in this context
    create view TIMESHEET as
    SELECT
    "TsKeySeq" as TS_KEY_SEQ,
    "EmployeeNo" as EMPLOYEE_NO,
    TO_DATE("PeriodEnding") as PERIOD_ENDING,
    . . . (more columns - not relevant)
    FROM [email protected];
    An update to the view generates this message
    ORA-02070: database OLEMSQLPSANTDAS6 does not support TO_DATE in this context
    If I don't include either the TO_DATE() or CAST() then I get
    Select Error: ORA-28527: Heterogeneous Services datatype mapping error
    ORA-02063:preceding line from OLEMSQLSANTDAS6
    Does anyone have any idea how to update a SQL Server DATETIME column thru an ORACLE view?

    You can't cast accross heterogenious databases and there is no need to. HSODBC treats SQL Server DATETIME column as DATE. For example, I have SQL Server table:
    CREATE TABLE [Ops].[T_JobType](
         [JobType] [varchar](50) NOT NULL,
         [JobDesc] [varchar](200) NULL,
         [InsertDt] [datetime] NOT NULL CONSTRAINT [InsertDt_00000006]  DEFAULT (getdate()),
         [InsertBy] [varchar](128) NOT NULL CONSTRAINT [InsertBy_00000006]  DEFAULT (user_name()),
         [LastUpdated] [datetime] NOT NULL CONSTRAINT [LastUpdated_00000006]  DEFAULT (getdate()),
         [LastUpdatedBy] [varchar](128) NOT NULL CONSTRAINT [LastUpdatedBy_00000006]  DEFAULT (user_name()),
    CONSTRAINT [T_JobType_PK] PRIMARY KEY CLUSTERED
         [JobType] ASC
    )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON, FILLFACTOR = 100) ON [DATA01FG]
    ) ON [DATA01FG]Now on Oracle side I do:
    SQL> desc "Ops"."T_JobType"@pbods
    Name                                      Null?    Type
    JobType                                   NOT NULL VARCHAR2(50)
    JobDesc                                            VARCHAR2(200)
    InsertDt                                  NOT NULL DATE
    InsertBy                                  NOT NULL VARCHAR2(128)
    LastUpdated                               NOT NULL DATE
    LastUpdatedBy                             NOT NULL VARCHAR2(128)
    SQL> select "InsertDt" from "Ops"."T_JobType"@pbods;
    InsertDt
    18-AUG-08
    09-OCT-08
    22-OCT-09
    18-AUG-08
    19-NOV-08
    SQL> SY.

  • PS Query, SQL Server and prompts

    Hello,
    I try to create a query with a where clause like this :
    field = :1 or :1 = ' '
    so the SQL is :
    SELECT A.F1
    FROM PS_TAB A
    WHERE A.F2 = :1
    OR :1 = ' '
    My problem is when I execute it, if I fill the prompt I have the message :
    "A SQL error occurred. Please consult your system log for details.
    Erreur lors de l'exécution requête en raison d'une erreur SQL, Code=8010, Message=[Microsoft][SQL Native Client][SQL Server]Invalid column name 'ACC010'. (50,380)"
    and if I don't fill the prompt I have :
    "A SQL error occurred. Please consult your system log for details.
    Erreur lors de l'exécution requête en raison d'une erreur SQL, Code=8601, Message=[Microsoft][SQL Native Client][SQL Server]Executing SQL directly; no cursor. [Microsoft][SQL Native Client][SQL Server]Incorrect syntax near '='. [Microsoft][SQL Native Client][SQL Server]Statement(s) could not be prepared. (SQLSTATE 37000) 8180 (50,380)"
    Do you know how I can solve this ?
    I am on SQL Server 2005 and peoplesoft 8.45.
    Thanks in advance for your help.

    Thanks to take a look at my problem but I have just solved it (I just had to put in my criteria ' ' = :1 instead of :1 = ' '). So you can forget.

  • Discoverer 3.1.36 with SQL Server 2000 via ODBC..Problem!!!!

    We are trying to install Oracle Discoverer 3.1.36 EUL on to SQL Server 2000. We are getting a error while creation of EUL.
    "Installation started on 02-03-27 15:27:24
    Creating tables and views...
    Populating tables with default data...
    Install failed, cause : [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid column name 'SUID'.
    CREATE VIEW EUL_ODBC_SCHEMAS AS SELECT NAME AS 'os_schema_name' FROM SYSUSERS WHERE SUID > 1 AND UID <> GID
    Please help
    Regards and Thanks in advance
    Dheeraj

    Thanx for ur cooperation. I have solved the problem. Actually I was using Eclipse SDK but for get to Add external Jar files. In which I need to add the JAR files in the lib directory of Driver's Home Directory
    Thanx...

Maybe you are looking for