473,396 Members | 1,805 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Actual command sent to access

Hi,

is it possible to see the actual SQL command which is sent to Acces when
using an OleDbDataAdapter?
Al I can see now is that an update command failed.
Why, is not told.

Thanks in advance,
Ben
Nov 18 '05 #1
4 993
Ben de Vette wrote:
is it possible to see the actual SQL command which is sent to Acces
when using an OleDbDataAdapter?
Al I can see now is that an update command failed.
Why, is not told.


Ben,
Open the DataAdapter's UpdateCommand property, then drill down
on the SQL Update command that being used.

Note if you were using MSDE or SQL Server, you could use the
SQL Server Profile tool to see the actual command being sent.
But with Access, you are limited...

--

Thanks,
Carl Prothman
Microsoft ASP.NET MVP
Nov 18 '05 #2
Carl,

I already found this command string, but it is filled with the question mark
sign which still has to be filled with the parameters. I am looking for the
way to see the actual command sent.

Anyone?
Ben
"Carl Prothman [MVP]" <ca****@spamcop.net> wrote in message
news:ew**************@TK2MSFTNGP09.phx.gbl...
Ben de Vette wrote:
is it possible to see the actual SQL command which is sent to Acces
when using an OleDbDataAdapter?
Al I can see now is that an update command failed.
Why, is not told.


Ben,
Open the DataAdapter's UpdateCommand property, then drill down
on the SQL Update command that being used.

Note if you were using MSDE or SQL Server, you could use the
SQL Server Profile tool to see the actual command being sent.
But with Access, you are limited...

--

Thanks,
Carl Prothman
Microsoft ASP.NET MVP

Nov 18 '05 #3
Hi,

FOUND the problem.
I used a reserved word as a fieldname.

Why o Why is access itself not telling me NOT to use this name :-(

So, as always, the problem is easy, but hard to find.
For the people who want to know the reserved words:
http://support.microsoft.com/default...NoWebContent=1

Greetz,
Ben
"Ben de Vette" <Be****************@profiler.nl> wrote in message
news:10*************@corp.supernews.com...
Carl,

I already found this command string, but it is filled with the question mark sign which still has to be filled with the parameters. I am looking for the way to see the actual command sent.

Anyone?
Ben

Nov 18 '05 #4
Yep. Anytime you use (and i advise you do not) but any time you do you
usually have to encase it in Brackets. [Fieldname] Although if one can avoid
reserved words one should.

"Ben de Vette" <Be****************@profiler.nl> wrote in message
news:10*************@corp.supernews.com...
Hi,

FOUND the problem.
I used a reserved word as a fieldname.

Why o Why is access itself not telling me NOT to use this name :-(

So, as always, the problem is easy, but hard to find.
For the people who want to know the reserved words:
http://support.microsoft.com/default...NoWebContent=1

Greetz,
Ben
"Ben de Vette" <Be****************@profiler.nl> wrote in message
news:10*************@corp.supernews.com...
Carl,

I already found this command string, but it is filled with the question

mark
sign which still has to be filled with the parameters. I am looking for

the
way to see the actual command sent.

Anyone?
Ben


Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Good Man | last post by:
Hi there If I enter the following at the command line, I successfully get an email sent to the correct name/email: php /var/www/html/admin/adminscripts/welcome-cli.php 'Me' 'me@me.net'
15
by: BlackFireNova | last post by:
I am learning Visual Basic as I go, and many times I run across a command I would like to reference. Can anyone tell me how I can open the VBA Help Reference portion of Access directly, without...
8
by: Susan Bricker | last post by:
Is there a way to change the background color of command buttons? I know that I saw some VBA code somewhere that showed how to do this. I think it involved making the button transparent and then...
3
by: Susan Bricker | last post by:
Is it possible to make command buttons (in forms) have a background color? Or is there a means to simulate a command button and make it have a background color and able to kickoff a 'click' event?...
11
by: Stephan Steiner | last post by:
Hi Generally, FileInfo fi = new FileInfo(path); long size = fi.Length; gets you the length of a file in bytes. However, when copying files, even while the copy operation is still in...
4
by: Thomas Johnson | last post by:
I am trying to find out how to access the VS 2003 .Net command prompt. I am trying to execute the 'csc' command against a module but have no idea where to find the command prompt. Here's a stupid...
8
by: Ben | last post by:
Hi! I already sent this to the ACCESS newsgroup. But since I do not know really which side is really causing the problem, I have decided to send this inquiry to this newsgroup also, if I may....
51
by: Ojas | last post by:
Hi!, I just out of curiosity want to know how top detect the client side application under which the script is getting run. I mean to ask the how to know whether the script is running under...
1
by: Jim Flechsenhaar | last post by:
Using VB6 in Access I am tryign to link a command window to an access form or sub form. I have a command button that opens a command window for pinging a computer that is the active record in the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.