Click here to Skip to main content
15,890,897 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Run Application in Administrator mode Pin
Jon_Boy24-Mar-09 4:25
Jon_Boy24-Mar-09 4:25 
GeneralRe: Run Application in Administrator mode Pin
dan!sh 24-Mar-09 4:29
professional dan!sh 24-Mar-09 4:29 
GeneralRe: Run Application in Administrator mode Pin
Eddy Vluggen24-Mar-09 4:48
professionalEddy Vluggen24-Mar-09 4:48 
GeneralRe: Run Application in Administrator mode Pin
dan!sh 24-Mar-09 4:52
professional dan!sh 24-Mar-09 4:52 
GeneralRe: Run Application in Administrator mode Pin
Jon_Boy24-Mar-09 6:18
Jon_Boy24-Mar-09 6:18 
QuestionSQL query is not making permanent changes in database. Pin
Gagan.2024-Mar-09 3:11
Gagan.2024-Mar-09 3:11 
AnswerRe: SQL query is not making permanent changes in database. Pin
dan!sh 24-Mar-09 3:15
professional dan!sh 24-Mar-09 3:15 
GeneralRe: SQL query is not making permanent changes in database. Pin
Gagan.2024-Mar-09 3:22
Gagan.2024-Mar-09 3:22 
code is :

imports system.data.sqlclient

try
dim str as string="update tblLogin set Uname='" & txtName.text & "',Passwd='" & txtPasswd.text & "'"
dim cmd as new sqlCommand(str,con)  'Con is declared as public sqlConnection
connectToDatabase.Connect() 'It is a method used to open connection if it is closed.
cmd.ExecuteNonQuery()
msgbox("Sucess")
catch ex as exception
msgbox("Error is : " & ex.message)
end try
'end code


Now the above code shows message "Sucess",it means query run sucessfully but it does not change actual data in database.

Suggest me what should I do now.

Thanks for quick reply.

Gagan
GeneralRe: SQL query is not making permanent changes in database. Pin
dan!sh 24-Mar-09 3:37
professional dan!sh 24-Mar-09 3:37 
GeneralRe: SQL query is not making permanent changes in database. Pin
Gagan.2024-Mar-09 3:42
Gagan.2024-Mar-09 3:42 
GeneralRe: SQL query is not making permanent changes in database. Pin
Jon_Boy24-Mar-09 3:50
Jon_Boy24-Mar-09 3:50 
GeneralRe: SQL query is not making permanent changes in database. Pin
Gagan.2024-Mar-09 3:57
Gagan.2024-Mar-09 3:57 
GeneralRe: SQL query is not making permanent changes in database. Pin
dan!sh 24-Mar-09 4:18
professional dan!sh 24-Mar-09 4:18 
GeneralRe: SQL query is not making permanent changes in database. Pin
Jon_Boy24-Mar-09 4:33
Jon_Boy24-Mar-09 4:33 
GeneralRe: SQL query is not making permanent changes in database. Pin
dan!sh 24-Mar-09 4:47
professional dan!sh 24-Mar-09 4:47 
GeneralRe: SQL query is not making permanent changes in database. Pin
Jon_Boy24-Mar-09 4:30
Jon_Boy24-Mar-09 4:30 
GeneralRe: SQL query is not making permanent changes in database. Pin
Jon_Boy24-Mar-09 6:04
Jon_Boy24-Mar-09 6:04 
AnswerTransactions ? Pin
David Mujica24-Mar-09 3:18
David Mujica24-Mar-09 3:18 
QuestionText File to Dataset Pin
vijay248224-Mar-09 3:06
vijay248224-Mar-09 3:06 
AnswerRe: Text File to Dataset Pin
dan!sh 24-Mar-09 3:09
professional dan!sh 24-Mar-09 3:09 
GeneralMessage Closed Pin
24-Mar-09 3:49
vijay248224-Mar-09 3:49 
GeneralRe: Text File to Dataset Pin
dan!sh 24-Mar-09 4:16
professional dan!sh 24-Mar-09 4:16 
QuestionReporting and external images Pin
Stephen Lintott24-Mar-09 1:39
Stephen Lintott24-Mar-09 1:39 
QuestionText File using VB.Net Pin
vijay248224-Mar-09 1:00
vijay248224-Mar-09 1:00 
AnswerRe: Text File using VB.Net Pin
Jon_Boy24-Mar-09 1:27
Jon_Boy24-Mar-09 1:27 

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.