Click here to Skip to main content
15,609,864 members
Home / Discussions / C#
   

C#

 
AnswerRe: updating MS database using c#.net Pin
jschell12-Mar-13 9:21
jschell12-Mar-13 9:21 
Questionerror with update query Pin
User349011-Mar-13 9:23
User349011-Mar-13 9:23 
AnswerRe: error with update query Pin
vanikanc11-Mar-13 9:31
vanikanc11-Mar-13 9:31 
GeneralRe: error with update query Pin
User349011-Mar-13 9:36
User349011-Mar-13 9:36 
GeneralRe: error with update query Pin
vanikanc11-Mar-13 10:13
vanikanc11-Mar-13 10:13 
GeneralRe: error with update query Pin
susanna.floora12-Mar-13 0:11
susanna.floora12-Mar-13 0:11 
AnswerRe: error with update query Pin
Dave Kreskowiak11-Mar-13 10:12
mveDave Kreskowiak11-Mar-13 10:12 
GeneralRe: error with update query Pin
User349011-Mar-13 11:21
User349011-Mar-13 11:21 
Now i have prevent my access database from injection??
I have the same error yet.

OleDbConnection connect = new OleDbConnection();

connect.ConnectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\user\Desktop\Laiki_Trapeza_Questionnaires.accdb;Persist Security Info=False;";
connect.Open();
OleDbCommand command = new OleDbCommand();
command.Connection = connect;
string OldPassword = txtOldPassword.Text;
string Username = txtUsername.Text;
string Password = txtNewPassword.Text;
command.CommandText = (@"UPDATE Users_Table SET Password=@Password WHERE (Username=@Username AND Password=@OldPassword )");
command.ExecuteReader();
MessageBox.Show(" Succesfull update password!");
connect.Close();

modified 11-Mar-13 17:32pm.

GeneralRe: error with update query Pin
Dave Kreskowiak11-Mar-13 12:33
mveDave Kreskowiak11-Mar-13 12:33 
GeneralRe: error with update query Pin
User349011-Mar-13 13:17
User349011-Mar-13 13:17 
QuestionWMI remote call Pin
vanikanc11-Mar-13 7:35
vanikanc11-Mar-13 7:35 
AnswerRe: WMI remote call Pin
Dave Kreskowiak11-Mar-13 10:05
mveDave Kreskowiak11-Mar-13 10:05 
GeneralRe: WMI remote call Pin
vanikanc11-Mar-13 10:29
vanikanc11-Mar-13 10:29 
QuestionOpenoffice Impress using C# Pin
Sachin k Rajput 11-Mar-13 1:43
Sachin k Rajput 11-Mar-13 1:43 
AnswerRe: Openoffice Impress using C# Pin
Richard MacCutchan11-Mar-13 1:49
mveRichard MacCutchan11-Mar-13 1:49 
GeneralRe: Openoffice Impress using C# Pin
Sachin k Rajput 11-Mar-13 2:21
Sachin k Rajput 11-Mar-13 2:21 
GeneralRe: Openoffice Impress using C# Pin
Richard MacCutchan11-Mar-13 2:51
mveRichard MacCutchan11-Mar-13 2:51 
AnswerRe: Openoffice Impress using C# Pin
Eddy Vluggen11-Mar-13 3:32
professionalEddy Vluggen11-Mar-13 3:32 
Questionslope of a line Pin
Naman200710-Mar-13 22:32
Naman200710-Mar-13 22:32 
AnswerRe: slope of a line Pin
Abhinav S10-Mar-13 22:38
Abhinav S10-Mar-13 22:38 
GeneralRe: slope of a line Pin
Naman200710-Mar-13 22:47
Naman200710-Mar-13 22:47 
AnswerRe: slope of a line Pin
Abhinav S10-Mar-13 22:57
Abhinav S10-Mar-13 22:57 
GeneralRe: slope of a line Pin
harold aptroot11-Mar-13 2:41
harold aptroot11-Mar-13 2:41 
GeneralRe: slope of a line Pin
Naman200713-Mar-13 4:34
Naman200713-Mar-13 4:34 
AnswerRe: slope of a line Pin
Abhinav S13-Mar-13 6:25
Abhinav S13-Mar-13 6:25 

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.