| | |
JDBC for Access Database
![]() |
•
•
Join Date: Aug 2005
Posts: 7
Reputation:
Solved Threads: 0
Hi,
I have connected to a MS Access database but when I try to insert data through the java interface, it gives an error which is
[MICROSOFT][ODBC MICROSOFT ACCESS DRIVER] TOO FEW PARAMETERS.EXPECTED 2.
I dont know y its giving me this error. All the parameters r correct. Can any 1 help me. Im developing a container tracking system for a company. I have worked with Java and Oracle. This is my first time with Java and MS Access.
I have connected to a MS Access database but when I try to insert data through the java interface, it gives an error which is
[MICROSOFT][ODBC MICROSOFT ACCESS DRIVER] TOO FEW PARAMETERS.EXPECTED 2.
I dont know y its giving me this error. All the parameters r correct. Can any 1 help me. Im developing a container tracking system for a company. I have worked with Java and Oracle. This is my first time with Java and MS Access.
I've seen that before when using MS-Access. If one of your field names is unknown, then MS-Access considers that field a parameter and generates this sort of error. It can also be another identifier, other than a field name, something that MS-Access cannot lookup.
Make your query as simple as you can, just select * from table and then add more in until you start getting the error. Or perhaps print out your query/insert and try it directly in MS-Access itself.
Make your query as simple as you can, just select * from table and then add more in until you start getting the error. Or perhaps print out your query/insert and try it directly in MS-Access itself.
" dont know y its giving me this error. All the parameters r correct. Can any 1 help me. Im developing a container tracking system for a company. I have worked with Java and Oracle. This is my first time with Java and MS Access."
You saved yourself 7 characters by writing that nonsense "y, r, 1". Was that really worth it?
If you consider yourself a professional (which you seem to do), don't use such shorthand language.
And oh, for a production application NEVER use the JDBC-ODBC bridge driver from the JDK. It's for demonstration and testing only, too unstable and poorly performant for realworld use.
You saved yourself 7 characters by writing that nonsense "y, r, 1". Was that really worth it?
If you consider yourself a professional (which you seem to do), don't use such shorthand language.
And oh, for a production application NEVER use the JDBC-ODBC bridge driver from the JDK. It's for demonstration and testing only, too unstable and poorly performant for realworld use.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
•
•
Join Date: Aug 2005
Posts: 7
Reputation:
Solved Threads: 0
If u could read carefully ( instead of searching for short hand writting ) I never said nor proved nor implied that I am a professional. I am an Internee and we tend to gain experience not to Show Off ( which u seem to be doing ). Please consider the following link.
www.orkut.com
P.S U still did'nt give me ur "Professional" Answer for the Problem.
www.orkut.com
P.S U still did'nt give me ur "Professional" Answer for the Problem.
I consider correct use of language to be extremely important for people creating software.
After all, software is a description of what a computer is to do written in a language.
If you can't even be bothered to use natural language correctly to communicate your thoughts, you probably don't bother to do the same to that computer.
And if you're incapable of communicating in natural language, you're also incapable of learning the skills needed to communicate with that computer effectively as those skills are passed along in that natural language.
Given that there is a highly disturbing trend of people incapable or unwilling to communicate in natural language using that language correctly and that trend coincides with a similar trend of those same people failing to write software that works, there does seem to be a strong link between the two phenomenon.
After all, software is a description of what a computer is to do written in a language.
If you can't even be bothered to use natural language correctly to communicate your thoughts, you probably don't bother to do the same to that computer.
And if you're incapable of communicating in natural language, you're also incapable of learning the skills needed to communicate with that computer effectively as those skills are passed along in that natural language.
Given that there is a highly disturbing trend of people incapable or unwilling to communicate in natural language using that language correctly and that trend coincides with a similar trend of those same people failing to write software that works, there does seem to be a strong link between the two phenomenon.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
•
•
Join Date: Aug 2005
Posts: 7
Reputation:
Solved Threads: 0
If u ever learned a programming language ( which I doubt ) there is a big difference between a Programming Language Syntax and Natural Language. There R NO SHORT HAND WRITTING embeded in a programming language or designed like r,u,y etc for writting software code or Instructing a computer to do a certain task. But Still What ever makes u happy. Keep ur "PHENOMENA" with u. There is a rule of thumb for using any Natural language and that is MANNERS which u lack big time.
•
•
Join Date: Mar 2004
Posts: 3,826
Reputation:
Solved Threads: 144
I've read this and consider that jwenting has actually made effort to be polite in communicating what might be a tad off topic but nevertheless a very valid point. In any professional circle (and by professional I mean workplace, not simply trained and qualified people) the use of SMS or IM style abbreviated language is very much frowned upon.
It portrays a quite negative impression of you, and jwenting is only seeking to help you avoid that happening.
It portrays a quite negative impression of you, and jwenting is only seeking to help you avoid that happening.
I don't know what this whole thread is about, and I prefer to stay out of it, because I don't do well with insults and flame wars, but I just wanted to add that when programming, there are often an infinite number of ways to do a particular thing. Not only are there an infinite number of algorithms to do a task, but there are an infinite number of ways to execute (code) an algorithm. Not only that, but syntax / shorthand does exist for programming code. For example, in the C++ language, can also be represented as in addition to as Just a shorthand way of writing it
Java Syntax (Toggle Plain Text)
x = x + 1;
Java Syntax (Toggle Plain Text)
x += 1;
Java Syntax (Toggle Plain Text)
x++;
Yes, but it's shorthand that's part of the language specification.
It's like writing e.g. instead of "for example".
If I were to write "fe" when I mean "for example" noone'd understand me, right?
Same if I were to write x+; when I want to write x=x+1; the compiler will complain
It's like writing e.g. instead of "for example".
If I were to write "fe" when I mean "for example" noone'd understand me, right?
Same if I were to write x+; when I want to write x=x+1; the compiler will complain
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
![]() |
Similar Threads
- VB: Connect to Access database via ODBC datasource name (Visual Basic 4 / 5 / 6)
- Writing to an Access Database (Visual Basic 4 / 5 / 6)
- MS Access database and java (Java)
- Inserting Data into Access Database (Java)
- Accessing an Access Database using Java (Java)
- Writing to an Access Database using Java... (Java)
Other Threads in the Java Forum
- Previous Thread: Few doubts in the Java Environment
- Next Thread: Using a Java Object in a JSP
| Thread Tools | Search this Thread |
-xlint actionlistener android api applet application array automation bi binary blackberry block bluetooth character class client code compile compiler component consumer database desktop developmenthelp eclipse error fractal freeze ftp functiontesting game gameprogramming givemetehcodez graphics gui health html hyper ide image int j2me j2seprojects java javac javaee javaprojects jetbrains jni jpanel jtable julia learningresources lego linked linux mac main map method mobile myregfun netbeans nonstatic notdisplaying number online pearl printf problem program project qt researchinmotion rotatetext rsa scanner screen server set singleton sms sort spamblocker sql string swing system textfields thread threads time title tree tutorial-sample update variablebinding windows working xor





