Click here to Skip to main content
15,912,400 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
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 
David and d@nish both have good suggestions.

Here's one for ya. If the query looks ok and there isn't an obvious error - run profiler.

Open up SQL profiler and examine what's being sent to SQL server. Profiler doesn't lie and quickly will 'highlight' what the problem is. If the query is making it to the server - ensure it's hitting the right database (if the connect isn't making it, then it's a connection problem of some kind probably).

If it is making it, copy and paste the SQL statement being sent into a query window in SQL Management Studio and try to execute it. If there are errors fix them in the query window and re-execute to verify. Since your problem is that it's not updating the database, add a select statement at the end to verify the records are being updated. If correct, then update your source in VB. Also check your where clause and make sure your updating the right records. If there is transaction logic, it'll be shown (although possibly split on multiple lines in profiler).

IMO: Profiler is one of the best benchmarking and diagnostic tools for SQL.

Any suggestions, ideas, or 'constructive criticism' are always welcome.

"There's no such thing as a stupid question, only stupid people." - Mr. Garrison

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 
QuestionHow OOPs is better than Procedural Pin
sunil goyalG23-Mar-09 22:52
sunil goyalG23-Mar-09 22:52 
AnswerRe: How OOPs is better than Procedural Pin
Eddy Vluggen23-Mar-09 23:25
professionalEddy Vluggen23-Mar-09 23:25 
AnswerRe: How OOPs is better than Procedural Pin
Jon_Boy24-Mar-09 1:18
Jon_Boy24-Mar-09 1:18 

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.