How would begin by you demonstrating that you have done something so far (say STFW) or some indication of your skill level.
There is for example no point in explaining anything about SQL if you've yet to master simple "hello world" programs in C.
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
study these google links about ODBC. There are other ways depending on which SQL server you are using but ODBC is the most portable and is supported by most, if not all, SQL servers today. ODBC, as well as other methods, are somewhat complicated and accessing in c++ is a lot easier because you can get free c++ classes on the net that do most of the work.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
I'd say you have a very big problem then. If the sql server is running on another computer (which it probably does) then your microcontroller and the hardware it runs on will have to support sockets and have a lan card, much like a pc that's connected to a network. If your microcontroller does not support that then you are SOL.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
So could you for example write a C program on another PC which connects to your SQL server?
Prototyping your ideas on a PC first will save you a hell of a lot of time.
Something simple, like login, retrieve a record, logout.
Since you've stated that you're only a beginner, this is going to be a lot of hard work.
I'm also going to assume that the embedded target doesn't come with the same kind of SQL library that a PC might.
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
>>Also im trying to find out if keil compiler supports vc++, since i know that sql can be connected using this language...
vc++ is NOT a computer language -- it is a compiler.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
Didn't you even bother to read this thread? No one here is going to write the code for you.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343