|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
i need help for drop colum from table i wrote the below code but it give ERROR:timeout expire
i have one combobox and one button while selecting combox the selected column will drop by clicking the button i have more than 29 columns in the table vmbs and all columns have an entry in the combobox it is working with small tables but it will not work with large tables what can i do plz reply soon sub command1_click() dim db as new adodb.connection dim rs as new adodb.recordset str=com1.text db.open "dsn=jay" set rs=db.excute("select * from vmbs;") sql="alter table vmbs drop column [" & str & " ];" db.excute sql db.close end sub |
|
#2
|
||||
|
||||
|
Timeout Expired problem...
I used to run into this one and the way I solved it was to specify the timeout (in seconds).
On your command1_click() event, try adding the following at the beginning of your event code (but after you dim db as new adodb.connection): db.CommandTimeout = 300 'This is a five minute timeout. I hope this helps, I used it a lot when dealing with a particularly busy SQL server. |
|
#3
|
|||
|
|||
|
Quote:
-->dear sir i tryed like wise but it is not working after complition of 5 minits it show the same error and one thing is my server is not that mutch busy it is very few data to access please tell how to solve |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > drop column using vb |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|