oledbcommand Questions
3
I'm using Microsoft Access file as database. I have no problem with SELECT and INSERT queries but when I try to UPDATE, record in database does not change.
Below is the code I use to run update. ...
Theobald asked 4/6, 2015 at 15:56
2
Solved
I created a scalar function in the DB
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER FUNCTION [dbo].[fn_GetUserId_Username]
(
@Username varchar(32)
)
RETURNS int
AS
BEGIN
DECLARE @Use...
Livingston asked 29/6, 2009 at 3:0
8
i have trouble inserting data from textbox into ms access database, I get an error "Syntax error in INSERT INTO."
Can someone help me out please? here's the code:
public void button1_Click(objec...
Strapped asked 9/4, 2013 at 19:37
2
Solved
I have an SQL statement that I'm executing through OleDb, the statement is something like this:
INSERT INTO mytable (name, dept) VALUES (@name, @dept);
I'm adding parameters to the OleDbCommand ...
Garlicky asked 9/3, 2010 at 8:55
4
Solved
Is there any reason why
SELECT * FROM MyTable WHERE [_Items] LIKE '*SPI*'
does not return any records with OleDbAdapter.Fill(DataSet) or OleDbCommand.ExecuteReader()?
When I run the same SQL i...
Karrah asked 2/3, 2011 at 11:36
3
Solved
I was debugging a database operation code and I found that proper UPDATE was never happening though the code never failed as such. This is the code:
condb.Open();
OleDbCommand dbcom = new OleDb...
Seraph asked 23/8, 2011 at 18:16
2
Solved
I'm using OleDB and I want to export my objects into excel table. Each row in the sheet will be one of my objects. The problem is that I don't know how to insert data when there's no column headers...
Veinlet asked 19/4, 2012 at 7:51
1
Solved
I am trying to update some rows in an oracle Database, using an OLEDB Command
but whenever i try specifying the Sql Command this is what i get
An OLEDB record is available. Source: "OraOLEDB" Hre...
Troostite asked 2/3, 2011 at 14:23
3
Solved
I know this is not a hell of an useful question but I can't help being bugged by it.
So,
Why said method (in *Command classes) is called
ExecuteNonQuery instead of ExecuteQuery?
Aren't those SQL ...
Beverie asked 14/5, 2010 at 12:26
2
Solved
I am using an OLE DB command in SSIS for which the SQL command looks like this:
UPDATE DBO.CLIENT
SET
TimeZoneID = ?,
DaylightSavingTime = ?,
ModifiedBy = ?,
MicrosPropertyID = ?,
IsOffline =...
Brusquerie asked 16/7, 2009 at 12:50
3
Solved
I am trying to take tables from one Access Database File, add them to another Access Database file with the exact same structure but with different information. I need to overwrite any existing tab...
Thermolysis asked 6/2, 2009 at 14:38
4
Solved
I am migrating data that has to be inserted using stored procedures which already exist. The stored procedures have parameters and a return value (from a select statement) of an id for the row inse...
Sile asked 28/1, 2009 at 11:55
1
© 2022 - 2024 — McMap. All rights reserved.