Click here to Skip to main content
15,897,891 members
Home / Discussions / Database
   

Database

 
GeneralRe: From Excel to C# Pin
R. Giskard Reventlov23-Feb-11 0:06
R. Giskard Reventlov23-Feb-11 0:06 
Questionhow to display the months based on date Pin
vinu.111122-Feb-11 20:00
vinu.111122-Feb-11 20:00 
AnswerRe: how to display the months based on date Pin
Blue_Boy22-Feb-11 22:21
Blue_Boy22-Feb-11 22:21 
QuestionMultipage Report??? [modified] Pin
scorp_scorp22-Feb-11 19:02
scorp_scorp22-Feb-11 19:02 
Questionplease modify the Store Procedure Pin
vinu.111121-Feb-11 23:36
vinu.111121-Feb-11 23:36 
AnswerRe: please modify the Store Procedure Pin
Mycroft Holmes22-Feb-11 0:02
professionalMycroft Holmes22-Feb-11 0:02 
QuestionADO To MS Access Database. Pin
Mike Certini21-Feb-11 19:08
Mike Certini21-Feb-11 19:08 
AnswerRe: ADO To MS Access Database. Pin
Wendelius21-Feb-11 19:28
mentorWendelius21-Feb-11 19:28 
Hi,

Few observations:
- your command type shouldn't be adCmdStoredProc since you're executing a normal DML statement. Use adCmdText instead.
- the SQL statement for insert should contain the VALUES section and the parameters to use, like:
_bstr_t strSQL("INSERT INTO mytable(id,desc) VALUES (?, ?)");

- the execute contains the SQL statement as a parameter. I'm not sure if there's such overload, normally the first parameter is the number of records affected, see: http://msdn.microsoft.com/en-us/library/ms681559(VS.85).aspx[^]
The need to optimize rises from a bad design.My articles[^]

GeneralRe: ADO To MS Access Database. Pin
Mike Certini21-Feb-11 19:47
Mike Certini21-Feb-11 19:47 
GeneralRe: ADO To MS Access Database. Pin
Wendelius23-Feb-11 19:09
mentorWendelius23-Feb-11 19:09 
QuestionRetrieve N Record. Pin
Nanda_MR20-Feb-11 18:26
Nanda_MR20-Feb-11 18:26 
AnswerRe: Retrieve N Record. Pin
Mycroft Holmes20-Feb-11 18:59
professionalMycroft Holmes20-Feb-11 18:59 
GeneralRe: Retrieve N Record. Pin
Nanda_MR20-Feb-11 19:26
Nanda_MR20-Feb-11 19:26 
GeneralRe: Retrieve N Record. Pin
Mycroft Holmes20-Feb-11 20:20
professionalMycroft Holmes20-Feb-11 20:20 
GeneralRe: Retrieve N Record. Pin
Bernhard Hiller20-Feb-11 21:16
Bernhard Hiller20-Feb-11 21:16 
GeneralRe: Retrieve N Record. Pin
Nanda_MR20-Feb-11 22:36
Nanda_MR20-Feb-11 22:36 
GeneralRe: Retrieve N Record. Pin
Luc Pattyn21-Feb-11 2:09
sitebuilderLuc Pattyn21-Feb-11 2:09 
GeneralRe: Retrieve N Record. Pin
Mycroft Holmes21-Feb-11 11:36
professionalMycroft Holmes21-Feb-11 11:36 
GeneralRe: Retrieve N Record. Pin
Luc Pattyn21-Feb-11 11:40
sitebuilderLuc Pattyn21-Feb-11 11:40 
AnswerRe: Retrieve N Record. [modified] Pin
RyanEK20-Feb-11 19:15
RyanEK20-Feb-11 19:15 
GeneralRe: Retrieve N Record. Pin
Nanda_MR20-Feb-11 19:39
Nanda_MR20-Feb-11 19:39 
AnswerRe: Retrieve N Record. Pin
Jörgen Andersson20-Feb-11 19:48
professionalJörgen Andersson20-Feb-11 19:48 
GeneralRe: Retrieve N Record. Pin
Nanda_MR20-Feb-11 19:55
Nanda_MR20-Feb-11 19:55 
GeneralRe: Retrieve N Record. Pin
Jörgen Andersson20-Feb-11 20:30
professionalJörgen Andersson20-Feb-11 20:30 
AnswerRe: Retrieve N Record. Pin
Wendelius20-Feb-11 20:40
mentorWendelius20-Feb-11 20:40 

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.