Click here to Skip to main content
15,888,454 members
Home / Discussions / Database
   

Database

 
QuestionProgram can't connect with the server ,, vb.net 2005 Pin
kindman_nb13-Feb-07 8:49
kindman_nb13-Feb-07 8:49 
AnswerRe: Program can't connect with the server ,, vb.net 2005 Pin
Pete O'Hanlon13-Feb-07 9:24
mvePete O'Hanlon13-Feb-07 9:24 
GeneralRe: Program can't connect with the server ,, vb.net 2005 Pin
kindman_nb13-Feb-07 9:30
kindman_nb13-Feb-07 9:30 
GeneralRe: Program can't connect with the server ,, vb.net 2005 Pin
Pete O'Hanlon13-Feb-07 9:40
mvePete O'Hanlon13-Feb-07 9:40 
GeneralRe: Program can't connect with the server ,, vb.net 2005 Pin
kindman_nb13-Feb-07 9:54
kindman_nb13-Feb-07 9:54 
GeneralRe: Program can't connect with the server ,, vb.net 2005 Pin
Pete O'Hanlon13-Feb-07 10:02
mvePete O'Hanlon13-Feb-07 10:02 
GeneralRe: Program can't connect with the server ,, vb.net 2005 Pin
kindman_nb13-Feb-07 20:56
kindman_nb13-Feb-07 20:56 
QuestionOleDbCommand Pin
TheJudeDude13-Feb-07 7:25
TheJudeDude13-Feb-07 7:25 
I want to use the following update command multiple times:
command.CommandText = ("UPDATE EndOfMonth SET [Rented Depreciation] = @RD, [Unrented Depreciation] = @UD,");
command.CommandText += ("CashSales = @CS, BuyOuts = @BO, ChargeOffs = @CO WHERE StoreNumber = @SN");
command.Parameters.Add("@RD",OleDbType.Numeric);
command.Parameters.Add("@UD",OleDbType.Numeric);
command.Parameters.Add("@CS",OleDbType.Numeric);
command.Parameters.Add("@BO",OleDbType.Numeric);
command.Parameters.Add("@CO",OleDbType.Numeric);
command.Parameters.Add("@SN",OleDbType.VarChar);

How do I assign values to this command after defining it?
I can assign values to it at this time, but if I call it again, I will be adding more and more parameters, correct?
I am google searching the earth and this site, but only had 3 returns for OleDbCommand UPDATE.
Thanx in advance


Jude

AnswerRe: OleDbCommand Pin
andyharman13-Feb-07 7:53
professionalandyharman13-Feb-07 7:53 
GeneralRe: OleDbCommand Pin
TheJudeDude13-Feb-07 9:27
TheJudeDude13-Feb-07 9:27 
GeneralRe: OleDbCommand Pin
TheJudeDude13-Feb-07 10:00
TheJudeDude13-Feb-07 10:00 
AnswerRe: OleDbCommand Pin
TheJudeDude13-Feb-07 11:13
TheJudeDude13-Feb-07 11:13 
Questiondeleting data from datagrid Pin
minkinin13-Feb-07 3:21
minkinin13-Feb-07 3:21 
AnswerRe: deleting data from datagrid Pin
Pete O'Hanlon13-Feb-07 10:16
mvePete O'Hanlon13-Feb-07 10:16 
Questiondeleting data from datagrid Pin
minkinin13-Feb-07 3:19
minkinin13-Feb-07 3:19 
AnswerRe: Query error Pin
Krish - KP13-Feb-07 2:53
Krish - KP13-Feb-07 2:53 
GeneralRe: Query error Pin
Saira Tanwir13-Feb-07 2:55
Saira Tanwir13-Feb-07 2:55 
GeneralRe: Query error Pin
Krish - KP13-Feb-07 3:04
Krish - KP13-Feb-07 3:04 
GeneralRe: Query error Pin
Saira Tanwir13-Feb-07 3:10
Saira Tanwir13-Feb-07 3:10 
QuestionProblem Code Pin
Sam Heller13-Feb-07 1:55
Sam Heller13-Feb-07 1:55 
AnswerRe: Problem Code Pin
Colin Angus Mackay13-Feb-07 2:14
Colin Angus Mackay13-Feb-07 2:14 
AnswerRe: Problem Code Pin
Pete O'Hanlon13-Feb-07 2:15
mvePete O'Hanlon13-Feb-07 2:15 
QuestionProblematic connection string to SQL Express 2005 Pin
Joe Smith IX13-Feb-07 1:20
Joe Smith IX13-Feb-07 1:20 
AnswerRe: Problematic connection string to SQL Express 2005 Pin
Joe Smith IX15-Feb-07 2:02
Joe Smith IX15-Feb-07 2:02 
Questionunicode problem Pin
.NetRams13-Feb-07 1:12
.NetRams13-Feb-07 1:12 

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.