TableAdapter Visual Studio 2005 & Oracle : Invalid Number

Hello,
i've create a Dasaset in VS2005 and a tableadapter to access to my DB Oracle.
All is ok, but i want to execute in the select method of the tableadapter a query with many parameters.
example
SELECT * FROM Table WHERE Table_ID IN ( 2 , 3 ,5 , 45 ,49, 78)
So I write this in my tableAdapter :
SELECT * FROM Table WHERE Table_ID IN ( :Myparam )
But the type of MyParam is String. So VS 2005 put quote before and after : '(2,3,5)'
And Oracle throw an exection : invalid number.
How can i pass MyParam with tableadapter ?
Thanks a lot.
Sebastien

Thanks.
I've downloaded and installed and I can load it now. Next issue is how to make it work.....
:-)

Similar Messages

  • MS Visual Studio 2005 + Oracle 10g = Cannot connect to ODBC error: 12154

    Hi there!
    I've read so many threads of same kind of problems but always some key elements seems to be missing so I cannot solve my problem with the solutions in those threads. So, I'll do my own.
    Our environment is...
    We have Oracle 8 database with all the data that we have. Now we have our new server, SQL Server 2005 installed and I am trying to transfer data from Oracle to SQL using MS Visual Studio 2005 using available ODBC drivers. System is Windows 2003 64Bit on intel based hardware.
    Current installations and settings
    I have installed Oracle 10g 32bit and 64bit to separate foldes. Then I made tnsnames and sqlnet files with right settings to specified folders and tested connection with tnsping <servername> command.
    Both, 64bit and 32bit connections are working. (Used 32bit CMD for 32bit connection test)
    ODBC
    I added Microsoft ODBC for Oracle as 32bit driver and Oracle 10g driver for 64bit environment as ODBC driver.
    Both environments uses same ODBC names: Myserver and Mytestserver
    Debug
    First, when I only had 64bit version of ODBC, I had a warning which said that I am using incompatible version of ODBC driver. Then I read from here that I can install 32bit client also and use drivers from that on 32bit ODBC environment and get rid of that message.
    Tried to connect Oracle DB with SQL-Plus and it works.
    Visual studio 2005 SP2
    I have tried to use .Net Providers/Oracle Client dataprovider and .Net Providers for OleDB/Microsoft Old DB for Oracle and also .Net Providers for OldDB/Oracle provider for OldDB
    Frist two gives me an error: ORA-12154 TNS: Could not resolve the connect identifier specified
    Last one says that OraOldDB.oracle.1 is not registered on local machine
    I have absolutily no idea what I can try next?
    Anyone who has more ideas? Suggest anything. I might have tried that already, but give a shot anyway. :)
    Message was edited by:
    user640570

    Hi,
    From where you got Oracle 10g driver for 64bit environment as ODBC driver. I am searching for the same.
    Are you got solution. I am facing same problem.
    Thanks,
    Vijay
    Edited by: user3976154 on Sep 6, 2008 5:12 PM

  • Query  regarding oracle 10g connection in Visual Studio 2005

    Hi ,
    I am having visual studio 2005 installed in my system . when i am adding oracle database connection it is displaying that "use this connection for oracle 7 ,8, 9i versions ..i want to connect oracle 10g database in visual studio 2005. plz tell me how to do that?

    looks like u'r try connecting to oracle using server explorer, just hit OK an then fill in your server name, userid and password.
    server name might be SID defined in your tnsnames.ora, or in the form of //<machine_name>/<service_name>

  • Error in creating connection to Oracle in Visual Studio 2005

    Hi all,
    After installing Oracle 11 http://www.oracle.com/technology/software/htdocs/odtlic.html?url=/technology/software/tech/dotnet/utilsoft.html
    successfully, when I made a connection between Visual Studio 2005 to Oracle following this instruction http://www.oracle.com/technology/obe/net11gobe/building.net/vs_otn2.htm#t1
    At step 3, I got this problem message error:
    "An unexpected error occurred in the Oracle Data Provider for .NET. Please contact the provider vendor to resolve this problem".
    If anybody has a solution, could you please help me ?
    Thanks in advance,
    Greetings,
    Joesy

    OK, in short:
    Cause: Wrong OPMN request port used to configure the connection (third step of "Create Application Server Connection" wizard). You might have kept the default (6003) but your OPMN is configured with different request port.
    Solution: Check $ORACLE_HOME/opmn/conf/opmn.xml file and look for entry like this:
    <port local="6140" remote="6240" request="6040" />
    Create the connection using OPMN request port that is set in opmn.xml file.
    Thanks
    Shail

  • OCCI for Oracle 9i and MS Visual Studio 2005

    Hello.
    Where do I get OCCI *.lib and *.dll files for Oracle 9i and MS Visual Studio 2005 (VC 8)?
    Roman Perepelitsa.

    I was able to use MS Visual Studio 2005 and OCCi classes. There is a catch though, I was not able to use the debug library dll as it will crash. So I was not able to debug any code using the VS debugger, instead, I use the old and lengthy process: insert printf statements.
    Jeff

  • Connect to oracle database with visual studio 2005

    Hi, i have a oracle database called orcl (10.2). I am trying to connect with this database with visual studio 2005. I do this:
    In Server Explorer, right click in Data Connection and click in add connection.
    I choose oracle database and oracle provider.
    In server name I write the name of my computer, and i write the user and pass of the data base (sys or system) but it gives me this error: "ora-12514 listener doesnt know the asket for service in the description one of connection" (translated of Spanish)
    what i have to write in server name? host, host:port, LISTENER,.... what?
    Thanks

    Sometimes, you can check names using from the command line:
    $> tnsping <orcl>
    TNS Ping Utility for 32-bit Windows: Version 8.1.7.0.0 - Production on 10-ENE-20
    06 09:01:04
    (c) Copyright 1997 Oracle Corporation. All rights reserved.
    Attempting to contact (ADDRESS=(PROTOCOL=TCP)(HOST=server1)(PORT=1521))
    Realizado correctamente (0 mseg)
    $>

  • Windows 7 Oracle 10.2.0.3.0 ODAC 1020221 Visual Studio 2005 Package L. Fail

    The operation system on my laptop is Windows 7 Home edition 32 bits. On the latop Oracle 10.2.0.3.0.
    That works perfectly.
    Also installled Visual Studio 2005 Professional.
    If I install ODAC1020221 on the laptop Orale Explorer is available in the View menu of Visual Studio 2005.
    If I start Oracle Explorer in the view menu of Visual Studio, Visual Studio comes with the Package Load Failure
    Package 'Oracle Developer Tools for isual Studio.NET' has failed to load properly (GUID= {D601BB95-E404-4A8E-9F24-5C1A462426CE}
    Starting gacutil has no positive result
    Who can help me that it will work so i can use ODP.NET with Visual Studio.
    Kind Regards Frank Hagen

    The operation system on my laptop is Windows 7 Home edition 32 bits. On the latop Oracle 10.2.0.3.0.
    That works perfectly.
    Also installled Visual Studio 2005 Professional.
    If I install ODAC1020221 on the laptop Orale Explorer is available in the View menu of Visual Studio 2005.
    If I start Oracle Explorer in the view menu of Visual Studio, Visual Studio comes with the Package Load Failure
    Package 'Oracle Developer Tools for isual Studio.NET' has failed to load properly (GUID= {D601BB95-E404-4A8E-9F24-5C1A462426CE}
    Starting gacutil has no positive result
    Who can help me that it will work so i can use ODP.NET with Visual Studio.
    Kind Regards Frank Hagen

  • Does ODT for Oracle XE work on visual studio 2005?

    does ODT for Oracle XE work on visual studio 2005?

    does ODT for Oracle XE work on visual studio 2005?

  • Oracle 10g express, Windows Vista and Visual Studio 2005

    Hello,
    I have Oracel 10g express and Visual Studio 2005 professional, all installed on Windows Vista and working fine.
    I want to use the .net tools but I have had problems to install the wright version for this environment. Has anybody have this same configuration working? What are the downloads I need to have and the steps to have the .net oracle tools working ?

    It can be done:
    1) Download and install XE. Don't download the special "ODT for XE"
    2) Download and install ODAC 11g with ODT into a different directory than XE
    3) Copy over the TNSNAMES.ORA from the XE install into the new Oracle home.

  • Connect from visual studio 2005 from PC 1 to Oracle database from PC 2.help

    hi every body
    i am new in oracle database projects
    i have installed oracle 11g enterprise on my laptop
    and i have visual studio 2005 on my desktop computer
    and i want to connect to oracle database on my laptop from desktop through my network
    what additional tools should i have on my laptop and desktop to make application in visual studio 2005 and how to make the connection?
    thanks in advancebye

    You would need to install an Oracle Database Client on your desktop computer, to get the windows interfaces, oci, connectivity software and other support files to be able to "talk" with the database server (on your laptop).
    Download from the usual place
    http://www.oracle.com/technology/software/products/database/index.html
    or the Instant Client
    http://www.oracle.com/technology/software/tech/oci/instantclient/index.html
    I don't know about Visual Studio - you need to check certification with the product and also be sure to follow the requirements in the Installation Guide for the release and platform that you choose.
    http://www.oracle.com/technology/documentation/index.html
    There are plenty of application Developer's guides, some of which you might want to study closer:
    http://www.oracle.com/pls/db102/portal.portal_db?selected=9

  • Clobbered by a CLOB - Using C# in Visual Studio 2005

    Hello All,
    What I am trying to do:
    I am trying to insert a string as a CLOB into Oracle via C# using Visual Studio (VS) 2005.
    What I am using:
    The Oracle Tools for VS 2005 are installed and work fabulously with other types of data.
    Research I have done on my own:
    1. I have read the thread "ORA-01461"
    2. Have modified an example (see below) from the Oracle web site
    ..... as noted in the comments below (Jason Price).
    3. Addtionally, there are a number of www references.
    4. However, after a long unproductive day none are working for me.
    Error messages from Oracle (caught by the catch block):
    The error is: Oracle.DataAccess.Client.OracleException ORA-00936: missing expression at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure) at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, String procedure, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src) at Oracle.DataAccess.Client.OracleCommand.ExecuteReader(Boolean requery, Boolean fillRequest, CommandBehavior behavior) at Oracle.DataAccess.Client.OracleCommand.ExecuteReader() at clobSample.workThis() in c:\Documents and Settings\joe.user\My Documents\Visual Studio 2005\WebSites\HDTS\App_Code\clobSample.cs:line 71
    Thank you kind people of the Oracle Community,
    Mark
    *********** Code is Below ***********
    using System;
    using System.Data;
    using System.Configuration;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Web.UI.HtmlControls;
    using Oracle.DataAccess.Client;
    using Oracle.DataAccess.Types;
    public class clobSample
    public clobSample()
    // TODO: Add constructor logic here
    public OracleConnection getConnectionString(string DBuser, string DBpass)
    // Build Connection String
    string connectionString = "Data Source=MY_DATA_SOURCE;User Id=";
    connectionString += DBuser + ";Password=";
    connectionString += DBpass + ";Persist Security Info=True";
    OracleConnection connection = new OracleConnection(connectionString);
    return connection;
    ClobExample4.cs shows how to update a CLOB
    using SELECT ... FOR UPDATE
    public string workThis()
    string strResult = "";
    try
    // create an OracleConnection object to connect to the database and open
    // the connection
    OracleConnection myOracleConnection =
    getConnectionString("DB_USER_NAME", "DB_PASSWORD");
    myOracleConnection.Open();
    // create an OracleCommand object to hold a SQL statement
    OracleCommand myOracleCommand = myOracleConnection.CreateCommand();
    // step 1: create an OracleTransaction object
    OracleTransaction myOracleTransaction =
    myOracleConnection.BeginTransaction();
    // step 2: read the row
    myOracleCommand.CommandText =
    "SELECT TICKET_NUM, COMMENT " +
    "FROM HDTS_TICKET_EVENTS " +
    "WHERE TICKET_NUM = 1 FOR UPDATE";
    // THIS IS WHERE THE CODE ERRORS OUT *
    OracleDataReader myOracleDataReader =
    myOracleCommand.ExecuteReader();
    myOracleDataReader.Read();
    // Console.WriteLine("myOracleDataReader[\"id\"] = " +
    // myOracleDataReader["id"]);
    // step 3: get the LOB locator
    OracleClob myOracleClob =
    myOracleDataReader.GetOracleClob(1);
    // step 4: write to the LOB
    myOracleClob.Erase();
    string text = "Alas poor Yoric, I knew him well";
    char[] charArray = text.ToCharArray();
    myOracleClob.Write(charArray, 0, charArray.Length);
    Console.WriteLine("myOracleClob.Value = " + myOracleClob.Value);
    // step 5: commit the transaction
    myOracleTransaction.Commit();
    // Console.WriteLine("Successfully committed transaction");
    // close the OracleDataReader and the OracleConnection object
    myOracleDataReader.Close();
    myOracleConnection.Close();
    // Console.WriteLine("\nPress any key to end");
    // Console.ReadLine();
    return strResult;
    } // close try
    catch (Exception e)
    strResult = "The error is: " + e;
    return strResult;
    } // close work this
    } // close clobSample class
    Edited by: microBiker on Sep 30, 2008 5:01 AM

    Hi,
    I dont think this has anyting to do with CLOB, but rather the use of a reserved word for a column name.
    How did you get the table created with a field named "COMMENT"? That's a reserved word so you shouldnt use it, even if you can someone force the database to accept it by using quotes for example...
    SQL> select count(*) from v$reserved_words where keyword='COMMENT';
    COUNT(*)
    1
    SQL> create table t1 (comment clob);
    create table t1 (comment clob)
    ERROR at line 1:
    ORA-00904: : invalid identifier
    SQL> create table t1 ("COMMENT" clob);
    Table created.
    SQL> select comment from t1;
    select comment from t1
    ERROR at line 1:
    ORA-00936: missing expression
    I assume the error might be stemming from that, as I see no reason for the code to error.
    Cheers,
    Greg

  • ODT 11.1.0.6.20 doesn't work under Visual Studio 2005 server explorer

    I tried to connect to an Oracle Server by Server Explorer of Visual Studio 2005:
    1) In Server Explorer I click with right mouse button on Data Connections and choose Add Connection...
    2) I click on Change...
    3) I choose Oracle Database in the left list
    4) I choose Oracle Data Provider for .NET under the bottom left drop down list called Data provider (I see .NET Framework Data Provider for Oracle and .NET Framework Data Provider for OLE DB too)
    5) Instead of the dialog window shown at this link [http://www.oracle.com/technology/obe/net11gobe/building.net/images/addconn04.gif] I see the dialog window shown at this other link [http://img231.imageshack.us/img231/8212/wrongvisualstudio2005se.png]
    6) If I try to insert a right connection string or simply click on OK I receive this message box: "An unexpected error occurred in the .NET Framework Data Provider for Oracle. Please contact the provider vendor to resolve this problem."
    If I try to redo all the operations I cannot see anymore the Oracle Data Provider for .NET under the bottom left drop down list called Data provider.
    My system configuration is:
    - Windows XP SP2 32Bit
    - Oracle 11g ODAC 11.1.0.6.21 with Oracle Developer Tools for Visual Studio (I installed all the packages with Instant Client too, the client works I tried with SqlPlus and Sql Navigator 6.1)
    - Visual Studio 2005 Version 8.0.50727.762 (SP.050727-7600)
    - .NET Framework 2.0.50727
    I can use .NET Framework Data Provider without any problems, but I need the new ODT 11.1.0.6.20 because I can insert stored procedures into .NET dataset visual designer and call from a TableAdapter.
    I hope someone can help me.
    Edited by: user5476796 on 8-mar-2009 12.30

    I downloaded ODAC 11.1.0.6.21 recently (two weeks ago).
    I forgot to tell you that I have Visual Studio 2003 Enterprise Architect (Italian language) installed too and I installed ODAC for this version too.
    In Visual Studio 2003 under Provider Tab of the Database connection I don't see any Oracle Data Provider, the only one I see is Microsoft OLE DB Provider for Oracle.
    These are the whole info on my Visual Studio 2005 (English language) installation:
    Microsoft Visual Studio 2005
    Version 8.0.50727.762 (SP.050727-7600)
    Microsoft .NET Framework
    Version 2.0.50727
    Installed Edition: Professional
    Microsoft Visual Basic 2005 77626-009-0000007-41514
    Microsoft Visual Basic 2005
    Microsoft Visual C# 2005 77626-009-0000007-41514
    Microsoft Visual C# 2005
    Microsoft Visual C++ 2005 77626-009-0000007-41514
    Microsoft Visual C++ 2005
    Microsoft Visual J# 2005 77626-009-0000007-41514
    Microsoft Visual J# 2005
    Microsoft Visual Web Developer 2005 77626-009-0000007-41514
    Microsoft Visual Web Developer 2005
    Microsoft Web Application Projects 2005 77626-009-0000007-41514
    Microsoft Web Application Projects 2005
    Version 8.0.50727.762
    Crystal Reports AAC60-G0CSA4B-V7000AY
    Crystal Reports for Visual Studio 2005
    Microsoft Visual Studio 2005 Professional Edition - ENU Service Pack 1 (KB926601)
    This service pack is for Microsoft Visual Studio 2005 Professional Edition - ENU.
    If you later install a more recent service pack, this service pack will be uninstalled automatically.
    For more information, visit http://support.microsoft.com/kb/926601
    Oracle Developer Tools for Visual Studio 11.1.0.6.20
    Oracle Developer Tools for Visual Studio Copyright (c) 2005, 2007
    SQL Server Analysis Services
    Microsoft SQL Server Analysis Services Designer
    Version 9.00.3042.00
    SQL Server Integration Services
    Microsoft SQL Server Integration Services Designer
    Version 9.00.3042.00
    SQL Server Reporting Services
    Microsoft SQL Server Reporting Services Designers
    Version 9.00.3042.00
    Update for Microsoft Visual Studio 2005 Professional Edition - ENU (KB954961)
    This Update is for Microsoft Visual Studio 2005 Professional Edition - ENU.
    If you later install a more recent service pack, this Update will be uninstalled automatically.
    For more information, visit http://support.microsoft.com/kb/954961
    AnkhSVN
    Please visit http://ankhsvn.tigris.org for more information
    Below is the version information for the various AnkhSVN components
    AnkhSVN 1.0.1.2734
    OpenSSL 0.9.8a
    Neon 0.25.5
    ZLib 1.2.3
    Berkeley DB 4.4.20
    Subversion 1.4.2
    Ankh 1.0.1Final
    apr-iconv 0.9.7
    apr-util 0.9.12
    apr 0.9.12
    VMDebugger
    For more information about VMware Inc, see their website at
    http://www.vmware.com
    For customer support, call 1-800-xxx-xxxx.
    Copyright (c) 2006 VMware Inc Inc.
    And these ones are the info of Visual Studio 2003 Enterprise Architect ITA:
    Microsoft Development Environment 2003 Version 7.1.3088
    Microsoft .NET Framewrok 1.1 Version 1.1.4322
    Microsoft Visual Basic .NET 69529-112-0307713-18498
    Microsoft Visual C# .NET 69529-112-0307713-18498
    Microsoft Visual C++ .NET 69529-112-0307713-18498
    Microsoft Visual J# .NET 69529-112-0307713-18498
    Crystal Reports per Visual Studio .NET AAP50GS0000GTU000ME
    Microsoft Application Center Test
    Oracle Developer Tools for Visual Studio .NET 11.1.0.6.20
    Visual Studio Analyzer
    AnkhSVN
    Edited by: fradelpo on 11-mar-2009 4.16

  • Where can I download WINCE 6.0 Platform Builder plugin for Visual Studio 2005?

    I am supporting an older product that runs WINCE 6.0. I need to build a development environment. I understand the tool chain is based on Visual Studio 2005 SP1, which I have. I also have the Windows Embedded CE 6.0 Platform Builder Service Pack 1, but
    what I can't seem to find anywhere on MSDN is the base Windows Embedded CE 6.0 Platform Builder.
    FWIW, I have an MSDN Universal Subscription. 
    [EDIT] OK, I found it. The download is named simply Windows Embedded CE 6.0.  There is no "Platform Builder" in the title.
    Here is the link:  https://msdn.microsoft.com/en-us/subscriptions/downloads/#FileId=10961

    Thanks Henrik. My question is for the same customer that Alex K. was asking about.
    The customer has pointed out that 6.5 != 6.0 , so according to the wording in the documentation, the "all later releases of 6.0" would not apply to 6.5 releases. So the customer would need a precise statement from JRockit product management stating that 6.5 releases are indeed to be included wherever there is a reference to "all later releases of 6.0".
    I did spend some time yesterday in MetaLink. Search Knowledge base -> Oracle JRockit for download gives 38 hits. I did find older versions of WebLogic Server in 763603.1, but nothing for JRockit. If there is another DocId with the JRockit downloads, what is it? Will I find JRockit 64 bit for Solaris 27.6.0 bundled in the WebLogic Server downloads? Guessing from the size of the downloads for Solaris 64bit (they are hundreds of MB smaller than other downloads) - it seems possible that the JVM is not included (I do not have a Solaris machine to install and check). Previously I had assumed the JVM was included, but then the customer wouldn't be asking where they can download from (unless they never bother to look what they installed).
    Michael.Reiche

  • Error While installing Visual Studio 2005 in windows server 2012R2

    Hi Team
    One Help
    I am using windows server 2012R2.I want to install visual studio 2005.
    i downloaded VS 2005 from :
    http://www.microsoft.com/en-us/download/details.aspx?id=804
    while installin i am getting this error : 
    "the upgrade patch cannot be installed by the windows installer service because the program to be upgraded or missing or upgrade patch may update a different version of the program.Verify that progam to be upgraded on exiting computer that you have
    the correct upgrade patch"
    PLease help us.
    Thanks,
    Bob

    Hi Gopi,
    Are you trying to add the hosts to your OEM 12c, and then choosing "Deploy Agent"?
    Please check this error message about the image file..
    The image file C:\oracle\core\12.1.0.2.0\jdk\bin\java.exe is valid, but is for a
    machine type other than the current machine.
    "Validating OMS_HOST & EM_UPLOAD_PORT failed."
    If the agents are deployed earlier from another OEM12c server, please undeploy them and then try.
    Thanks,
    Rajiv.

  • OCI 9.2 libraries with Visual studio 2005

    I have a project which uses OCI version 9.2 to connect to the database. We are planning on upgrading the compiler from Visual Studio 2003 to Visual Studio 2005. Can we still use the same libraries or do we need new library versions compatible with the new compiler. If yes, where can I access the new libraries.
    TIA
    Bharat

    I've gotten OCI programs written in C using vs.net 2005 to work with Oracle 9i.
    However, a library written in C using vs.net 2005 fails to work from a C# 2005 program. It causes a C runtime failure. I have no idea why.
    But the same C library and C# program using vs.net 2003 works (ie. can successuflly connect to Oracle).

Maybe you are looking for