Query text fileds with ADO/OLEDB connection (Set command over ADO is it pos

Dear Oracle users,
I try to query the TEXT field of dba_views but run into the problem that the return
lengths is limited to 80 characters.
On iSQLplus I can use the command e.g. "set long 1000".
If I try to use this command over the ADO connection before I start my SQL query I get an error (assumingly because the set commandos cannot be used over ADO connections ?).
Is there a way to be able to query text fields with more than 80 characters using ADO/OLEDB ?
Hope someone can help.
Best regards,
Daniel Wetzler

Hi Jon,
Well, I think I've got it working, but I'm not really happy with my work around.
I tried upgrading to version 2 of .NET (I was using v1.1) But there was no change, I also modified the code so that it destroyed the connection to the ADO after each INSERT and before each get string, but it still failed in the middle of the same directory.
I've just inserted a wait statment which delays every itteration by 200 ms and that actually seems to have fixed things... I say "Seems" because I've been running the program for 45 minutes now and I'm less than a third of the way through the directories! (previous execute time was 7 mins)
This delay occured to me because the problems started when I changed the parsing sequence to improve the speed of the opperation.
However, this is not exactly an ideal sollution... Do you think the problem is with the ActiveX "connection" or the actual database connection?
Any help would be appreciated because the running speed is now immpractical and I'm not sure why this should have worked.
Thanks - Pete

Similar Messages

  • Syntax for querying between dates with ADO

    Hello,
    I am connecting to Oracle tables using ADO in Microsoft Access. I am not familiar with Oracle Sql. I am trying to execute the following query string but am not retrieving and records:
    strSql = "SELECT COUNT(*) " _
    & "FROM CCC2.CASE_EPRP WHERE CALL_DATE >= '1/1/2002' " _
    & "AND CALL_DATE <= '2/1/2002'"
    I can retrieve a record count if I only have the first date, but if I use the date range above the query returns zero records even though there are records for that date range. Could someone explain the correct way to write this query?
    Thanks,
    Rich

    You really don't want to rely on implicit string to date conversion ever. Oracle will use your NLS date settings to do the conversion, but different users (and different databases) may have this set differently, so one user might have '2/1/2002' convert to February 1, 2002 while another user might have it convert to January 2, 2002. A third user might not be able to convert the string at all.
    The proper way to do this is to use either Oracle syntax
    "where call_date >= to_date( '1/1/2002', 'MM/DD/YYYY' )
    and call_date <= to_date( '2/1/2002', 'MM/DD/YYYY' )"
    or to use the ODBC date escape sequence, {d }, to create the dates.
    If this isn't the problem, there may be issues because Oracle dates have a time component. If you don't specify a time, Oracle will default to midnight, so any call_date records after 12:00am on 2/1/2002 won't be found.
    Justin

  • Crystal Report with text(csv) data file, can we set it as input param? C#

    Hi,
    I am new to the forums and posted a question which belonged to the .net - SAP Crystal reports group.
    Can someone help me with my problem? following is the thread that I have started.
    Crystal Report with text(csv) data file, can we set it as input parameter?
    Thank you in advance.

    Looking at the original thread, you are connecting to the text file via the DAO database engine:
    "I added the text file as follow, new connection -> Access/Excell (DAO) -> select the file and the database type as text"
    Thus I would use the same code for changing the text file as for changing an Access database. See Kbase [1218178 - Error: "Logon failed" when connecting to Access database in .NET application|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313338333133373338%7D.do] for more information. If that does not work, you may want to consider connecting via ODBC or feeding the data from the text file to and ADO .NET dataset and pointing the report at the dataset.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • SSRS 2012 - Windows Server 2012 R2 issue with OLEDB Connection String

    Hoping someone can help. As stated above, we are running SQL Server 2012 with SP1 on Windows Server 2012 R2. When I create a Data Source as follows in Reporting Services, I receive the following error message. Any thoughts on why this fails? The same data
    source works on Windows Server 2008 R2 Enterprise SQL Server 2008 R2. 
    Data Source type: OLE DB
    Connection string: Provider=Microsoft.ACE.OLEDB.12.0;Data Source="\\networknamehere\CSVFiles";Mode=Read;Extended Properties="text;HDR=YES;FMT=CSVDelimited"
    ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: , Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Cannot create a connection to data source 'CSV_Datasource'. ---> System.Data.OleDb.OleDbException:
    Unspecified error
       at System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection)
       at System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
       at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup)
       at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
       at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
       at System.Data.OleDb.OleDbConnection.Open()
       at Microsoft.ReportingServices.DataExtensions.ConnectionExtension.Open()
       at Microsoft.ReportingServices.Diagnostics.DataExtensionConnectionBase.OpenConnection(IProcessingDataSource dataSourceObj, DataSourceInfo dataSourceInfo, IDbConnection conn)
       --- End of inner exception stack trace ---;

    Hi ABAA101,
    According to your description, when you use csv file as data source in SSRS 2012 report, you got the error message.
    I tested the issue in my local machine, due to some policy restrictions, I could not install Access in my local machine. To workaround the issue, we can use the connection string like below:
    Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\report;
    Extended Properties="text;HDR=Yes;FMT=Delimited"
    The csv file is stored in report folder in C driver.
    In Query text box in the dataset, we can use the query like below:
    Select * from new.csv
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    Wendy Fu
    TechNet Community Support

  • Crystal Report with text(csv) data file, can we set it as input parameter?

    Hi,
    I am a new user of Crystal Reports 2008.
    I have created a report with charts in it. The input data comes from a csv text file.
    Can I set the name of this text file as an input parameter?
    as I need to generate 44 similar reports with different text filenames(and data)?
    Thank you.
    Regards

    Brian,
    Thanks much.
    I did exactly what you said.
    Just to see any change, I first gave a bad report file name just to see if I am accidentally pointing to a different file,
    but I got an error saying report not found.
    Then I renamed my original datafile name and generated a report and it still generated one without giving an error.
    Then I also gave a junk name to the logoninfo and printed that name, the new name was assigned to logoninfo, but the code did not error out.
    It ended up generating the report.
    Now here is what I think is happening,
    1) The save data in report option seems to be still on even though I have turned it off in 2 locations
    a) file -> Report Options
    b) file -> Options -> Reporting tab.
    2) For some reason the logoninfo is getting ignored as well.
    Since I did not see any answers yesterday I posted a link to this thread on the .Net forum
    Crystal Report with text(csv) data file, can we set it as input param? C#
    and Ludek Uher says that I am connecting to the text file via a DAO database engine and so need to use the same code for changing the text file as for changing an Access database.
    But the link he gave me tells me to try the same thing that we have been trying..
    Here is my plan,
    1) I will first try and find out why my save data with report option is still on ( but it shows off in Crystal ).
    2) why is LogonInfo getting ignored.
    Meanwhile any suggestions from anyone are welcome.

  • Unfamilair with ADO DB connection​s

    Hi I am not familiar with ADO DB connection.
    I am using Labview 7.1, MySQL and LabSQL.
    To get LabSQL and MySQL, you can find http://jeffreytravis.com/lost/labsql.html and http://dev.mysql.com/downloads/mysql/4.1.html.
    In those LabsQL vi functions, there are no vi descriptions for connections.
    I tried finding similar descriptions to compare from ADO websites. I am getting confused.
    Here are LabSQL vi functions:-
    1) ADO Connection Create.vi - means  Create an connection to database?
    2) ADO Connection Open.vi - means Open the connection to database?
    3) ADO Connection Close.vi - means Close the connection  to database?
    4) ADO Connection Destroy.vi - means Destroy the connection to database?
    Are ADO Connection Close and Destroy same?
    And I am not familiar with the sequence of those vi.
    For eg. I read  the procedure from http://www.w3schools.com/ado/ado_intro.asp
    Accessing a Database from an ASP Page
    The common way to access a database from inside an ASP page is to:
    Create an ADO connection to a database
    Open the database connection
    Create an ADO recordset
    Open the recordset
    Extract the data you need from the recordset
    Close the recordset
    Close the connection
    So when I cannot find LabSQL functions for eg Open recordset and close recordset, so what is the equivalent ADO function to "destroy the connection"?
    And here are my attached, and I there's something i do not understand,
    And my question for my attached, typing my show processlist in command prompt,
    When run attached for the first time, "show processlist" command show no host to "test" db.
    when click to open database, "show  processlist" command shows my host  to "test" db.
    When click to close database, "show  processlist" command still shows my host  to "test" db.
    Why is this so? By right, there should be no sign of "test" db. Do i have to use ADO Connection Destroy vi to destroy connection?
    Please advise
    Thanks
    Attachments:
    testdb_connection.vi ‏68 KB

    There are two problems with trying this on LV 7: I used Shared Variables which are not supported on 7 and I am not sure if what I did exists on ADO.Net 1.1. I created a DLL using Visual Studio 2005 and ADO.Net for SQL Server 2005. The DLL code is C#:
    //VitalData.cs
    //Items of data class;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    using System;
    using System.Collections.Generic;
    using System.Text;
    namespace SaveData
    public class VitalData
    public Double Value;
    private Double Last;
    public DateTime Time;
    public String Name;
    public VitalData(String InName, Double InValue, DateTime InTime)
    Name = InName;
    Value = InValue;
    Time = InTime;
    Last = -999999.9;
    public override String ToString()
    String Temp;
    Temp = Name + ";" + Value.ToString() + ";" + Time.ToLongTimeString();
    return Temp;
    public bool SameValue()
    if (this.Value == this.Last)
    return true;
    else
    return false;
    public void Update(DateTime TIn, Double VIn)
    Last = Value;
    Value = VIn;
    Time = TIn;
    //SaveData.cs
    //::::::::::::Functional class for DLL :::::::::::::::::
    using System;
    using System.Collections.Generic;
    using System.Text;
    using System.Data;
    using System.Data.SqlTypes;
    using System.Data.SqlClient;
    using System.Windows.Forms;
    using System.IO;
    namespace SaveData
    // Declaration.
    public class SaveData
    String connSQL, strSQL, ValuesIn;
    List DataList;
    public SaveData()
    DataList = null;
    connSQL = @"Data Source=PQLSVR2\SQLExpress;" +
    "Initial Catalog = VITAL;Integrated Security = True;";
    DataList = new List();
    public int Add(String Input)
    DateTime InTime;
    int count;
    VitalData DataLine;
    InTime = DateTime.Now;
    String[] Lines;
    String Sensor;
    Double Value;
    ValuesIn = Input;
    Lines = Input.Split('\n');
    foreach (String line in Lines)
    String[] parameters = line.Split(';');
    Sensor = parameters[0];
    Value = System.Convert.ToDouble(parameters[1]);
    if (Find(Sensor) == null)
    DataLine = new VitalData(Sensor, Value, InTime);
    DataList.Add(DataLine);
    else
    DataLine = Find(Sensor);
    DataLine.Update(InTime, Value);
    foreach (VitalData element in DataList)
    int local;
    if(!element.SameValue())
    try
    SqlConnection cn = new SqlConnection(connSQL);
    strSQL = "Insert INTO dbo.Measurements (DateTime, Value, Channel) " +
    "VALUES ('" + element.Time.ToShortDateString() + " " + element.Time.ToLongTimeString() + "','" +
    element.Value.ToString() + "','" + element.Name.ToString() + "')";
    cn.Open();
    try
    SqlDataAdapter da = new SqlDataAdapter(strSQL, connSQL);
    SqlCommand cmd = new SqlCommand(strSQL, cn);
    local = cmd.ExecuteNonQuery();
    cn.Close();
    catch (SqlException ex)
    MessageBox.Show(ex.Message, "SqlDataAdaptor Failure",
    MessageBoxButtons.OK, MessageBoxIcon.Error);
    return 0;
    catch (SqlException ex)
    MessageBox.Show(ex.Message, "SQL NonQuery Error",
    MessageBoxButtons.OK, MessageBoxIcon.Error);
    return 0;
    count = DataList.Count;
    return count;
    private VitalData Find(String name)
    foreach (VitalData d in DataList)
    if(d.Name.CompareTo(name) == 0)
    return d;
    return null;
    The data is formatted to a long string. I used a second DLL on the client side to look up values on the string from the shared string variable to send the resulting data values through the network:
    //StringToVars.cs
    //::::::::::plits and returns data elements encapsulated in long shared string::::::::::::::::::::::::::
    using System;
    using System.Collections.Generic;
    using System.Text;
    namespace StringToVars
    public class StringToVars
    String InString;
    int Count;
    public StringToVars()
    InString = "";
    public void Update(String vars)
    InString = vars;
    public Double GetValue(String var)
    String[] temp;
    Double Value;
    String[] List = InString.Split('\n');
    foreach (String s in List)
    if (s.Contains(var))
    temp = s.Split(';');
    Value = System.Convert.ToDouble(temp[1]);
    return Value;
    return 0.0;
    public int VarsCount()
    String[] temp = InString.Split('\n');
    Count = temp.Length;
    return Count;
    public String All()
    return InString;
    I was able to load the resulting DLL code into LabVIEW 8.21 > 8.6. LabVIEW 7 or 7.1 may have problems with this if you use one of the newer Microsoft compilers as it requires a CLR that compiles for DotNet 2.0 or 3.x. You might be bale to get this to work if DotNET 1.1 is supported and you compile using Visual Studio 2003 (which really isn't a very stable development environment compared to the two versions since).
    Good Luck.

  • "Invalid Character" error when executing a 13KB query with ADO

    Hello
    I want to execute a query using an ADO Recordset using the Open method. When calling this method, an ORA-911 "Invalid Character" raises. I can say that the SQL runs fine, because using the SQL*Plus utility it works.
    I have a 11g client installed, and the target database is in a 9i server; my PC uses WinXP SP2.
    What could be wrong?
    Thanks a lot.

    Well there's a 32K limit in Oracle. (But it can be overcome using dynamic sql).
    You basically end up putting the text in an associative_array which has to be sequential.
    There should be info on askom.oracle.com as I initially posted the question there.
    13KB of characters is a lot of query text, and it could easily be the provider.
    Try the microsoft ADO provider and see if you get the same problem.
    There was another company which had a provider (which you had to pay for) , can't remember its name , but it seemed to be the best.
    I would seriously question why you need to pass a 13KB string to oracle though.

  • In a document with several sections, in section VIII and IX one cannot select the text of the page foot nor set the pointer in it; so, one cannot write nor change the page foot text. Please help!

    in a document with several sections, in section VIII and IX one cannot select the text of the page foot nor set the pointer in it; so, one cannot write nor change the page foot text. Please help!

    Question already asked and answered several times.
    It's a bug striking in long documents.
    Select a word somewhere higher in the page then use the arrows to reach the wanted insertion point.
    Yvan KOENIG (VALLAURIS, France) mardi 23 août 2011 15:44:24
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please :
    Search for questions similar to your own
    before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • New itouch user here, We had a wireless connection with a password all set up but we couldn't remember the password meanwhile there are other connections around us but locked. So i decided to make a new one yet it still will not allow to go on safari HELP

    new itouch user here, We had a wireless connection with a password all set up but we couldn't remember the password meanwhile there are other connections around us but locked. So i decided to make a new one yet it still will not allow to go on safari after i type in the password PLEASE HELP ive turned on and off etc

    My guess is that the security settings on your router and iPod do not match.
    For a test, change your router so there is no security.  See if you can connect and get to the Internet. If that works, set up the router with security and use the same settings for the iPod.

  • Query distributed database with different character sets.

    Hello experts, this is my situation:
    I have two databases A and B, the same version 11.1.0.7, the same OS Suse Linux Enterprise 10 but with different character sets, A has WE8MSWIN1252 while B has AL32UTF8. The database B is my XML DB repository so there I have some XML type tables. I need to query this tables from the database A using a dblink and in fact I have done that but the XML content is trasformed due to the different character sets between the databases. Some time there are data loss and some time there are data missmatch.
    Is there any way to query the tables stored in the database B without problems? I do not know if the following is correct: Maybe I can set the character set for the session in the database A during the time it query the database B. That is, change the character set in fly at session level.
    Do you have any special suggestion?
    I hope you can help me, thank you in advance.

    The Globalization Support Guide for 11.1.0.7 has a chapter on character set migration that should be helpful. AL32UTF8 is a superset of WE8MSWIN1252 but it is not a strict superset. That is, it doesn't meet the second prong of the test in the documentation
    The new character set is a strict superset of the current character set if:
    Each and every character in the current character set is available in the new character set.
    Each and every character in the current character set has the same code point value in the new character set. For example, many character sets are strict supersets of US7ASCII.Exporting the data from the A, changing the character set (or creating a new database with the AL32UTF8 character set), and then importing the data may be the easiest approach in your case.
    Justin
    Edited by: Justin Cave on Jan 13, 2011 12:08 PM

  • Text area with html editor based on sql query

    Hi all,
    I am trying to create a text area with its contents loaded from a sql query returning a blob field.
    I gave the query
    select blob_field from file_subjects where id=41; in the item source valueI am getting an error in the display page like
    ORA-00932: inconsistent datatypes: expected NUMBER got BLOB
         Error      ERR-1019 Error computing item default value: page=5 name=CONTENTS.
    where am i goig wrong..?
    should i go for a pl/sql instead?

    Venket,
    See my previous thread on this (Well I used CLOB rather than BLOB). You will find code examples too. Should be just what you need.
    How to "Bypass" HTMLDB
    -Joe

  • Access Web App - Need some advice with query (text to number problem)

    In an Access Web App I want to create a query.
    I have two tables which are related but in a bit complicated way. For some reason I have a text field in which I save a number. This number relates to the ID of another table. When I combine these two tables in a query, it's not working because the textfield
    cannot query the (ID)number field.
    Is there a way, in this query so that I covert the text field to a number so the query will work?
    I tried to do it with the "Parse" function but no luck, so far.
    Thanks, Mike

    Hi Mike,
    Based on the description, you want to create a query by joining a text filed with number filed?
    Did I understood correctly? If so, as far as I test, it works in Access 2013 web app. Here is the screen shot for your reference:
    If I misunderstood, please feel free to let me know.
    Regards & Fei
    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.

  • How to set italic to a text frame with a JS script

    Hello guys,
    I'm a java developper, and for my customer I have to generate some JS scripts for Illustrator CS3/Windows XP.
    In my use case, I need to layout several textframes. Some need to be "bolded", some others have to be underlined, and some need to be italic.
    I found how to set the bold and underline attributes, but for the italic, I can't see any option related to it. I saw the "CharacterAttributes#italics" property, but the description is a bit odd: "If true, the Japanese OpenType
    font supports italics."... it doesn't fit my needs...
    Is it possible to make a text italic with a JS script in Illustrator?

    You will have to use the proper italic form of the font. AI does not support Faux italic or bold.

  • Can I set up my macbook pro with an ethernet connection?

    can I set up my macbook pro with an ethernet connection?

    MacBooks Pro with Retina display don't come with Ethernet port. You need a Thunderbolt to Ethernet adapter > http://store.apple.com/us/product/MD463ZM/A/thunderbolt-to-gigabit-ethernet-adap tor

  • Forms: How to set a maximum size in Text Fields with automatic size

    ¡Hi!
    When I set a text field on my forms and I use automatic size for te text that the user can write, if the user don't need more space than the field size, when the text appears, Adobe Acrobat Pro always set the text-size to 14 or higher. How can I set a maximum size for that text? For example... 12 or 10...
    Thank you very much,
    Best regards from Spain,
    David.

    Ok. If I use a single line text field, changing the height of the field seems to be a simple way to solve the problem, but... what should I do when the fields are multi-lineal?
    Thanx for your quick answer.

Maybe you are looking for

  • Calendar events on iphone won't sync to ical on Mac since iphone 7.0.2 upgrade

    Help! Some events - but not every one -  entered into new Iphone SW 7.0.2 do not sync back to the Calendar (v 4.0.4 from ILife 2009).  I have tried rebooting my systems (computer and phone), as well as re-creating the problem by adding new test event

  • Errror: PO has no line items whenI try MIGO_GR

    While trying to do goods receipt-purchase order, when I give the PO No. it gives an error saing PO has no line items. Whereas when the PO was created there was one line item. can anyone guide pl. rgds

  • Network Magic v 5.5 I cannot access the online help from the links within NM

    When I try to access the online help from any link button in NM V5.5 including the main help > Help center > Network magic help, the browser will open and resolve address ,  Status bar will state done but I have a blank page. The URL in the address b

  • Palm E2 lost data

    Help! I loat  my PALM E2 and tried to Sync my desktop with a new E2 that I had and it somehow deleted the desktop.  Is it possible to recover what was in the calander befor my mishap.  Thanks! This question was solved. View Solution.

  • Removing client-config.wsdd from axis.jar

    Hello I am working with websphere and under the WEB-INF/lib folder i have axis.jar. This jar contains client-config.wsdd file. This is causing some problems and now im told to remove client-config.wsdd file out of axis.jar and deploy it directly to <