Click here to Skip to main content
16,004,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAbout AUTONUMBERS AND UPDATION Pin
savitri26-Apr-08 0:31
savitri26-Apr-08 0:31 
GeneralRe: About AUTONUMBERS AND UPDATION Pin
Christian Graus26-Apr-08 0:50
protectorChristian Graus26-Apr-08 0:50 
QuestionRe: About AUTONUMBERS AND UPDATION Pin
savitri26-Apr-08 2:07
savitri26-Apr-08 2:07 
GeneralRe: About AUTONUMBERS AND UPDATION Pin
MANISH RASTOGI26-Apr-08 2:19
MANISH RASTOGI26-Apr-08 2:19 
GeneralRe: About AUTONUMBERS AND UPDATION Pin
savitri26-Apr-08 2:23
savitri26-Apr-08 2:23 
GeneralRe: About AUTONUMBERS AND UPDATION Pin
MANISH RASTOGI26-Apr-08 2:27
MANISH RASTOGI26-Apr-08 2:27 
GeneralRe: About AUTONUMBERS AND UPDATION Pin
savitri26-Apr-08 2:36
savitri26-Apr-08 2:36 
GeneralRe: About AUTONUMBERS AND UPDATION Pin
Christian Graus26-Apr-08 11:10
protectorChristian Graus26-Apr-08 11:10 
Two people have told you the same thing now. Perhaps if you told us the EXACT error message. Also, please note, you should have asked this in the SQL forum.

Are you getting an error trying to build the string ? If you're not getting that error, you're not even using C++. In C++ you need to turn the int into a string, with sprintf, or with the Format method on CString, or with itoa. If you're using a .NET language, then it will work, but again, in that case, you have asked in a forum that has NOTHING to do with your question. In that instance, you need to look at your database. If your column is a numeric type, then the SQL you're generating, will work.

The best test is to use the debugger to get the exact string you are generating, and then plug that into your database directly, so your code is out of the picture, and you're just testing the SQL.

Christian Graus

Please read this if you don't understand the answer I've given you

"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

GeneralRe: About AUTONUMBERS AND UPDATION Pin
Christian Graus26-Apr-08 0:50
protectorChristian Graus26-Apr-08 0:50 
QuestionHow to create a hidden folder? Pin
MD8425-Apr-08 22:23
MD8425-Apr-08 22:23 
GeneralRe: How to create a hidden folder? Pin
Rajkumar R25-Apr-08 23:56
Rajkumar R25-Apr-08 23:56 
QuestionHow do I pass String class to a function Pin
pl_kode25-Apr-08 22:21
pl_kode25-Apr-08 22:21 
AnswerRe: How do I pass String class to a function Pin
CPallini25-Apr-08 22:56
mveCPallini25-Apr-08 22:56 
GeneralRe: How do I pass String class to a function Pin
Cedric Moonen25-Apr-08 23:37
Cedric Moonen25-Apr-08 23:37 
AnswerRe: How do I pass String class to a function Pin
zengkun10026-Apr-08 2:56
zengkun10026-Apr-08 2:56 
QuestionDLL in Visual C++6 Pin
Member 430138525-Apr-08 19:31
Member 430138525-Apr-08 19:31 
GeneralRe: DLL in Visual C++6 Pin
Saurabh.Garg25-Apr-08 20:31
Saurabh.Garg25-Apr-08 20:31 
GeneralRe: DLL in Visual C++6 Pin
Hamid_RT25-Apr-08 20:40
Hamid_RT25-Apr-08 20:40 
GeneralCOM unable to obtain interface - Pin
act_x25-Apr-08 13:12
act_x25-Apr-08 13:12 
GeneralRe: COM unable to obtain interface - Pin
Tarmo Kalda25-Apr-08 20:50
Tarmo Kalda25-Apr-08 20:50 
QuestionRe: COM unable to obtain interface - Pin
CPallini25-Apr-08 22:50
mveCPallini25-Apr-08 22:50 
GeneralRe: COM unable to obtain interface - Pin
act_x28-Apr-08 7:40
act_x28-Apr-08 7:40 
GeneralRe: COM unable to obtain interface - Pin
CPallini28-Apr-08 9:58
mveCPallini28-Apr-08 9:58 
QuestionAddSearchProvider for all browsers Pin
vikrant kpr25-Apr-08 10:50
vikrant kpr25-Apr-08 10:50 
GeneralINTRODUCTION Pin
tuneroz25-Apr-08 8:46
tuneroz25-Apr-08 8:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.