Click here to Skip to main content
15,885,546 members
Home / Discussions / Database
   

Database

 
GeneralRe: Search Optimization Pin
Krishnraj20-Dec-08 1:01
Krishnraj20-Dec-08 1:01 
GeneralRe: Search Optimization Pin
Wendelius20-Dec-08 1:45
mentorWendelius20-Dec-08 1:45 
GeneralRe: Search Optimization Pin
Krishnraj20-Dec-08 2:10
Krishnraj20-Dec-08 2:10 
QuestionParameter @Model has no default value Pin
dec8219-Dec-08 12:27
dec8219-Dec-08 12:27 
AnswerRe: Parameter @Model has no default value Pin
Blue_Boy19-Dec-08 18:27
Blue_Boy19-Dec-08 18:27 
AnswerRe: Parameter @Model has no default value Pin
Rob Graham20-Dec-08 3:44
Rob Graham20-Dec-08 3:44 
GeneralRe: Parameter @Model has no default value Pin
dec8220-Dec-08 5:45
dec8220-Dec-08 5:45 
GeneralRe: Parameter @Model has no default value Pin
Rob Graham20-Dec-08 7:29
Rob Graham20-Dec-08 7:29 
I don't believe OledbCommand supports named parameters in a command whose CommandType is CommandText (the default). It expects you to use parameter markers (?) and mostly ignores the name.

If you change
cmd = "INSERT INTO Run(" + field + ") values (" + parameter + ")"


to
cmd = "INSERT INTO Run(" + field + ") values ( ?,?)"


It should work correctly. Note that because parameter marker tokens are used, theorder in which the parameters are added to the collection becomes critical (must match the order they are actually expected in the statement).
GeneralRe: Parameter @Model has no default value Pin
Wendelius20-Dec-08 10:51
mentorWendelius20-Dec-08 10:51 
GeneralRe: Parameter @Model has no default value Pin
Rob Graham20-Dec-08 13:19
Rob Graham20-Dec-08 13:19 
QuestionWhich type should i use for saving a string like this: 000000-0000? Pin
Jan Sommer19-Dec-08 8:43
Jan Sommer19-Dec-08 8:43 
AnswerRe: Which type should i use for saving a string like this: 000000-0000? Pin
Blue_Boy19-Dec-08 8:57
Blue_Boy19-Dec-08 8:57 
GeneralRe: Which type should i use for saving a string like this: 000000-0000? Pin
Jan Sommer19-Dec-08 9:01
Jan Sommer19-Dec-08 9:01 
GeneralRe: Which type should i use for saving a string like this: 000000-0000? Pin
Blue_Boy19-Dec-08 9:07
Blue_Boy19-Dec-08 9:07 
GeneralRe: Which type should i use for saving a string like this: 000000-0000? Pin
Rob Graham20-Dec-08 3:37
Rob Graham20-Dec-08 3:37 
GeneralRe: Which type should i use for saving a string like this: 000000-0000? Pin
Blue_Boy20-Dec-08 6:10
Blue_Boy20-Dec-08 6:10 
AnswerRe: Which type should i use for saving a string like this: 000000-0000? Pin
Wendelius19-Dec-08 9:03
mentorWendelius19-Dec-08 9:03 
GeneralRe: Which type should i use for saving a string like this: 000000-0000? Pin
Jan Sommer19-Dec-08 9:11
Jan Sommer19-Dec-08 9:11 
GeneralRe: Which type should i use for saving a string like this: 000000-0000? Pin
Wendelius19-Dec-08 9:13
mentorWendelius19-Dec-08 9:13 
GeneralRe: Which type should i use for saving a string like this: 000000-0000? Pin
Blue_Boy19-Dec-08 9:20
Blue_Boy19-Dec-08 9:20 
GeneralRe: Which type should i use for saving a string like this: 000000-0000? Pin
Rob Graham20-Dec-08 3:39
Rob Graham20-Dec-08 3:39 
GeneralRe: Which type should i use for saving a string like this: 000000-0000? Pin
Blue_Boy20-Dec-08 6:11
Blue_Boy20-Dec-08 6:11 
QuestionSSIS extraction from GBase and Universe datbases Pin
samerh19-Dec-08 3:40
samerh19-Dec-08 3:40 
AnswerRe: SSIS extraction from GBase and Universe datbases Pin
Mycroft Holmes19-Dec-08 15:35
professionalMycroft Holmes19-Dec-08 15:35 
QuestionHow To Create Non Effect Update Pin
Sam Heller19-Dec-08 0:55
Sam Heller19-Dec-08 0:55 

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.