ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 25th, 2011, 09:05 AM
eribros eribros is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2011
Posts: 3 eribros User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 44 m 50 sec
Reputation Power: 0
Query timeout expired when doing update to password to a field

Hi all,

I am having a problem with this execute code

Code:
dbConnection.Execute "update [Staff Details] set " & AddFieldWrappers(cPasswordField) & "='" & md5(password) & "' where " & sWhere


Apparently, it keeps on generating query timeout when updating the password field and only in SQL database. In access database the code works fine. The database is accessible since other scripts and queries work well apart from this one on the remind password page.

Can anyone with an idea to the solution help? Will really appreciate.

Regards,

Erick

Reply With Quote
  #2  
Old April 25th, 2011, 09:08 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Jun 2003
Posts: 14,257 Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 4 Weeks 18 h 51 m 19 sec
Reputation Power: 4445
Capture the sql string your code is generating and try running it manually in your sql server query tool.
__________________
======
Doug G
======
It is a truism of American politics that no man who can win an election deserves to. --Trevanian, from the novel Shibumi

Reply With Quote
  #3  
Old April 26th, 2011, 02:49 AM
eribros eribros is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2011
Posts: 3 eribros User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 44 m 50 sec
Reputation Power: 0
Quote:
Originally Posted by Doug G
Capture the sql string your code is generating and try running it manually in your sql server query tool.


Dear Doug,

I have queried this
Code:
update [Staff Details] set [password]='' where [username]='admin'
which is generated when I did response write in the sql server but yes it is indicating that it is executed but when you use the password which was sent after the generated one it still seems the field was not updated.

Other queries like "select * from [Staff Details]" query works pretty well returning all the values in the table. I have also checked the table and it shows that the encrypted password was indeed updated.

Reply With Quote
  #4  
Old April 26th, 2011, 07:26 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Jun 2003
Posts: 14,257 Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 4 Weeks 18 h 51 m 19 sec
Reputation Power: 4445
I don't know. As a guess, check your database structure and verify the password field accepts a string datatype.

You might edit out the hash value from your post.

Also make sure the [name] bracket syntax is correct and doesn't need quotes or something. I mostly use mysql these days which needs backticks around column names, not brackets, and if I recall correctly there is a setting in sql server relating to quoted identifiers.

Reply With Quote
  #5  
Old April 27th, 2011, 02:12 AM
eribros eribros is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2011
Posts: 3 eribros User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 44 m 50 sec
Reputation Power: 0
Quote:
Originally Posted by Doug G
I don't know. As a guess, check your database structure and verify the password field accepts a string datatype.

You might edit out the hash value from your post.

Also make sure the [name] bracket syntax is correct and doesn't need quotes or something. I mostly use mysql these days which needs backticks around column names, not brackets, and if I recall correctly there is a setting in sql server relating to quoted identifiers.


Hi,

Okay thanks will look into that. Regards

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Query timeout expired when doing update to password to a field

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap