Click here to Skip to main content
15,894,740 members
Home / Discussions / Database
   

Database

 
GeneralRe: Get records having different data in 2 rows PinPopular
Mycroft Holmes6-Aug-12 12:42
professionalMycroft Holmes6-Aug-12 12:42 
GeneralRe: Get records having different data in 2 rows Pin
Bernhard Hiller6-Aug-12 21:58
Bernhard Hiller6-Aug-12 21:58 
GeneralRe: Get records having different data in 2 rows Pin
Mycroft Holmes6-Aug-12 23:39
professionalMycroft Holmes6-Aug-12 23:39 
GeneralRe: Get records having different data in 2 rows Pin
Simon_Whale6-Aug-12 22:21
Simon_Whale6-Aug-12 22:21 
AnswerRe: Get records having different data in 2 rows Pin
Bernhard Hiller6-Aug-12 21:45
Bernhard Hiller6-Aug-12 21:45 
AnswerRe: Get records having different data in 2 rows Pin
Niju114-Aug-12 1:15
Niju114-Aug-12 1:15 
AnswerRe: Get records having different data in 2 rows Pin
Karthik J, Coimbatore29-Aug-12 0:02
Karthik J, Coimbatore29-Aug-12 0:02 
GeneralInsert Function Inserts Only Parameternames Pin
ASPnoob3-Aug-12 10:15
ASPnoob3-Aug-12 10:15 
Hi all, I'm trying to insert info from text boxes into an Access database using a stored procedure and it seems to some what work. The only problem is values from the text boxes are not entered into the database, instead the parameter names are inserted into the database. The following are how I named, set, and added all my parameters:

param = new OleDbParameter("@myvalue", value);
oCommand.Parameters.Add(param);

My stored procedure takes the following form:

INSERT INTO Table( field1,field2)
VALUES ('@value1', '@value2');

I have also tried naming, setting, and adding all my parameters using the below method which gave the same exact result as the above method:

param = new OleDbParameter();
param.ParameterName="@myvalue";
param.Value=value;
oCommand.Parameters.Add(param);

Please point out what the problem is if you can spot it, thanks.

modified 3-Aug-12 16:23pm.

GeneralRe: Insert Function Inserts Only Parameternames Pin
R. Giskard Reventlov3-Aug-12 10:23
R. Giskard Reventlov3-Aug-12 10:23 
GeneralRe: Insert Function Inserts Only Parameternames Pin
ASPnoob3-Aug-12 10:49
ASPnoob3-Aug-12 10:49 
GeneralRe: Insert Function Inserts Only Parameternames Pin
R. Giskard Reventlov3-Aug-12 12:22
R. Giskard Reventlov3-Aug-12 12:22 
GeneralRe: Insert Function Inserts Only Parameternames Pin
Eddy Vluggen3-Aug-12 22:44
professionalEddy Vluggen3-Aug-12 22:44 
GeneralRe: Insert Function Inserts Only Parameternames Pin
PIEBALDconsult3-Aug-12 11:09
mvePIEBALDconsult3-Aug-12 11:09 
Questionsql server 2008 r2 Pin
Yazdan Attarian3-Aug-12 8:55
professionalYazdan Attarian3-Aug-12 8:55 
AnswerRe: sql server 2008 r2 Pin
Sandeep Mewara3-Aug-12 9:27
mveSandeep Mewara3-Aug-12 9:27 
AnswerRe: sql server 2008 r2 Pin
Wes Aday3-Aug-12 10:57
professionalWes Aday3-Aug-12 10:57 
AnswerRe: sql server 2008 r2 Pin
Corporal Agarn6-Aug-12 9:41
professionalCorporal Agarn6-Aug-12 9:41 
AnswerRe: sql server 2008 r2 Pin
Niladri_Biswas21-Aug-12 23:19
Niladri_Biswas21-Aug-12 23:19 
QuestionRecords on the basis of two different tables. Pin
Rohit Kesharwani3-Aug-12 4:37
Rohit Kesharwani3-Aug-12 4:37 
AnswerRe: Records on the basis of two different tables. Pin
Eddy Vluggen3-Aug-12 5:31
professionalEddy Vluggen3-Aug-12 5:31 
GeneralRe: Records on the basis of two different tables. Pin
Simon_Whale3-Aug-12 5:59
Simon_Whale3-Aug-12 5:59 
QuestionHow to improve SQL Database Select query's performance ? Pin
Member 86872033-Aug-12 2:29
Member 86872033-Aug-12 2:29 
AnswerRe: How to improve SQL Database Select query's performance ? Pin
PIEBALDconsult3-Aug-12 3:52
mvePIEBALDconsult3-Aug-12 3:52 
GeneralRe: How to improve SQL Database Select query's performance ? Pin
Paul Conrad4-Aug-12 11:55
professionalPaul Conrad4-Aug-12 11:55 
GeneralRe: How to improve SQL Database Select query's performance ? Pin
David Mujica6-Aug-12 3:35
David Mujica6-Aug-12 3:35 

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.