problem about oledb-Collection of common programming errors
Tony Toews
c# ms-access oledb
Im having an issue with the next code:try{OleDbConnection Conn = new OleDbConnection(“Provider=Microsoft.ACE.OLEDB.12.0;Data Source=Database.accdb;Jet OLEDB:Database Password=LuzDary;”);OleDbDataAdapter Data = new OleDbDat
red_rain
c# sql ms-access ado.net oledb
I’m trying to update a value in a MS Access DB (*.mdb) using OleDB in C#. Nothing fancy, except that I need to choose the row by an binary value, a VARBINARY(4). Naively I thought UPDATE MYTABLE SET VALUE= ‘new’ WHERE BINVALUE=01020304; would work. But is does not. Alternative tries were:UPDATE MYTABLE SET VALUE= ‘new’ WHERE BINVALUE=’01020304′; UPDATE MYTABLE SET VALUE= ‘new’ WHERE BINVALUE=’0x01020304′; UPDATE MYTABLE SET VALUE= ‘new’ WHERE BINVALUE=0x01020304; UPDATE MYTABLE SET VALUE= ‘new’ WHERE BINVALUE=CAST(‘01020304’ as VARBINARY); UPDATE MYTABLE SET VALUE= ‘new’ WHERE BINVALUE=CAST(01020304 as VARBINARY); UPDATE MYTABLE SET VALUE= ‘new’ WHERE BINVALUE=CAST(‘01020304’ as VARBINARY(4)); UPDATE MYTABLE SET VALUE= ‘new’ WHERE BINVALUE=CAST(01020304 as VARBINARY(4)); UPDATE MYTABLE SET VALUE= ‘new’ WHERE BINVALUE=CONVERT(varbinary(4),’01020304′); UPDATE MYT
Ben Anderson
c# .net sql oledb
I am using OleDB in C#/.net and do not like the way oledb does parameters with question marks:using (OleDbConnection sqlConnect = drtevs.GetConnection()) {OleDbCommand command.CommandText = “UPDATE NAME SET FIRST_NAME = ?, LAST_NAME = ? WHERE ID = ?;”; command.Parameters.Add(new OleDbParameter(“@FIRS
Andrew Florko
oracle stored-procedures vb6 oledb
I have Oracle function declared as create or replace FUNCTION CheckScan(pMode IN number, pAgrISN in number, pAgrId in varchar2, pDocISN in number, pRefundId in varchar2) RETURN NUMBER IS …And client Visual Basic 6 code that connects to Oracle as administrator like:…
491243
vb.net ms-access oledb
Considering that Grade.firstExam, Grade.secondExam, and Grade.finalExam are all TEXT and not numbers, i can’t get the exact solution to convert null values into Zeros. I already tried to use NZ() but it returns an error message (Undefined Function ‘NZ’ in expression) im using VB.net with MS Access as my d
watbywbarif
c# database oledb dbf oledbexception
I am using OLEDB to Update data in .dbf database from c#.I get Error: System.Data.OleDb.OleDbException {“Undefined function ‘replace’ in expression.”} on ExecuteNonQuery.How can I make this work with
phil.hadley
enorl76
c# ms-access oledb oledbcommand
I’m having trouble because I’m very rusty with using OleDb with Microsoft access. I add parameters to the command, and execute the
hawbsl
.net ms-access oledb jet
I am having a VB.Net application. I connect it with a MS Access database. Now I have to execute a query. My query is
Erik Dietrich
Siegeon
c# oledb export-to-excel oledbdataadapter
I am attempting to export rows of data from sql to excel but my Insert Command seems to fail every time. I have spent a good deal of time trying to create this but I have finally run up against the wall. The excel document is one that is generated by the IRS and we are not aloud to modify anything above row 16. Row 16 is the header row, and everything below that needs to be the data from sql. The header names all have spaces in them, and that seems to be where I am running into trouble.Starting at row 16 the column names are: Attendee First Name, Attendee Last Name, Attendee PTIN, Program Number, CE Hours Awarded Program, Completion DateThis is how I am attempting to write to excelprivate void GenerateReport() {FileInfo xlsFileInfo = new FileInfo(Server.MapPath(CE_
Paradoxyde
c++ database oracle oledb oledbconnection
SOLVED: My VC++ application was in 32 bit and my Oracle DB was in 64 bit. I initially though that the client would work with both versions of Oracle, however, it doesn’t. I thus solved the problem by reinstalling Oracle 11g2 32bit.I’m trying to connect to a test Oracle 11g2 database via Visual Studio 2008 in C++. My database instance name is ORCL.TEST.DB, an
Noam650
c# sql oledb
Here is a background on my program: each protein is made from a sequence of amino acids(or AA)I have some tables :tblProInfo(that contains general info about proteins),tblOrderAA(that contains the sequence(AA sequence) of specific protein(for each protein there is a serial number that i set before))now, I’m trying to retvive the science names of the protein that contains part of sequence that the user put in textbox1. It is likely that more than one protein cont
Brian
c# .net oledb datareader
I’m trying to import data from an Excel (xls) spreadsheet. I need to throw an error if duplicate values appear in the header row. I’m using an OleDbDataReader to ingest the worksheet data. The problem I’m having is that .Net is appending a unique integer t
Grant Thomas
c# .net winforms crystal-reports oledb
I have to use an OLEDB provider (for Sungard Investran) from my crystal reports in Winforms Application. Using .Net 4, Crystal Reports for VS2010. The OLEDB Provider has a Parameters Dialog, which I believe is developed in VB6. When I call this OLEDB provider with Queries without any Parameters, it works fine. But when calli
Martín Marconcini
.net windows ms-access oledb outofmemoryexception
I am having troubles with one of our applications. It’s .NET 3.5 32 bits process. Upon startup we open a .mdb to read a few “metadata” values. This works on hundreds of systems, but we have a customer with a TabletPC and problems. The operating system is Windows XP Tablet PC SP3, 32 bits, bla bla. Nothing unusual. It has .NET 3.5 (from Windows Update) All up to date. Nothing out of the ordinary.Since our application does a “few things” during startup, I’ve created the simplest console application ever:namespace TestAccessConnection {class Program{static void Main( string[] args ){OleDbConnection connection;try{connection =new OleDbConnection(“Provider=Microsoft.Jet.OLEDB.4.0;Data Source=metadata.mdb;Persist Security Info=False”);connection.Open();connection.Close();Console.Read();}catch ( Exception e ){Console.WriteLine(e.ToString());Console.Read();}}} }Results: If we execute that single .exe withou
casperOne
.net debugging oledb
i’m using an ASP.NET 2.0 app (running in a Windows Server 2003 environment) connection to an informix db using IBM Client Provider.The app work fine and pretty fast but I’m experiencing random oledb connection error like this :no error message available, result code: -2147417851(0x80010105).Stack Trace: atsystem.da
user2369765
oledb
// e,g, I want to insert 3 columns in 1st row and 10 columns in rest of the rows//I am Creating excel file with sheet name as MySheet// then updating value in 1st row, 1st cell of header as blank//then inserting da
Originally posted 2013-11-09 23:08:04.