Click here to Skip to main content
15,892,643 members
Home / Discussions / Database
   

Database

 
GeneralRe: check Box and sqlDataReader Pin
-Dr_X-13-May-04 11:05
-Dr_X-13-May-04 11:05 
GeneralDetect new record entered/updated in MS SQL Pin
Vu Truong11-May-04 17:08
Vu Truong11-May-04 17:08 
GeneralRe: Detect new record entered/updated in MS SQL Pin
Ian Darling11-May-04 23:24
Ian Darling11-May-04 23:24 
GeneralRe: Detect new record entered/updated in MS SQL Pin
cmk13-May-04 10:53
cmk13-May-04 10:53 
GeneralcommandString Problem Pin
Anonymous11-May-04 12:52
Anonymous11-May-04 12:52 
GeneralRe: commandString Problem Pin
Edbert P11-May-04 16:49
Edbert P11-May-04 16:49 
GeneralRe: commandString Problem Pin
Aryadip12-May-04 0:09
Aryadip12-May-04 0:09 
GeneralADO UPDATE Problem Pin
petesfish11-May-04 12:31
petesfish11-May-04 12:31 
Dear all,
I get a stupid error while executing this update procedure and can't find the mistake.
The SQL statement works fine in the Enterprise Manager:
"UPDATE tb_cont_SmartSell_orders SET OR_state = N'printing' WHERE (OR_state = N'E-Mail')"
But when I'm using the procedure I get the error message:

..ADODB.Recordset (0x800A0E78)
Operation is not allowed when the object is closed....
If I remove "rs1.close" from the procedure it works but I don't understand why.

I call the procedure with "UpdateOrderState "E-Mail", "printing"
======
Sub UpdateOrderState(ByVal strFirstState, ByVal strNextState)
Dim strUpdate, rs1, rsconnect1
Set rsConnect1 = Server.CreateObject("ADODB.Connection")
Set rs1 = Server.CreateObject("ADODB.Recordset")
'rs1.CursorLocation = adUseServer
'rs1.CursorType = adOpenKeyset
'rs1.LockType = adLockOptimistic
strUpdate = "UPDATE tb_cont_SmartSell_orders SET OR_state = N'" & strNextState & "' WHERE (OR_state = N'" & strFirstState & "')"
rs1.open strUpdate, gDBCONSTRING
rs1.close
set rs1 = nothing
set rsconnect1 = nothing
end Sub
======
Many Thanks in advance!
Pete
GeneralRe: ADO UPDATE Problem Pin
WoutL11-May-04 22:56
WoutL11-May-04 22:56 
GeneralRe: ADO UPDATE Problem Pin
petesfish12-May-04 6:27
petesfish12-May-04 6:27 
QuestionHow to get transformation result in DTS Pin
KSEI11-May-04 0:27
KSEI11-May-04 0:27 
Questioncan this query be optimized Pin
22491711-May-04 0:17
22491711-May-04 0:17 
AnswerRe: can this query be optimized Pin
WoutL11-May-04 23:07
WoutL11-May-04 23:07 
GeneralRe: can this query be optimized Pin
22491713-May-04 0:10
22491713-May-04 0:10 
GeneralRe: can this query be optimized Pin
WoutL13-May-04 0:24
WoutL13-May-04 0:24 
GeneralInsert Data into A table Pin
bighi10-May-04 23:27
bighi10-May-04 23:27 
GeneralRe: Insert Data into A table Pin
Edbert P11-May-04 16:50
Edbert P11-May-04 16:50 
GeneralRe: Insert Data into A table Pin
bighi12-May-04 8:36
bighi12-May-04 8:36 
Generalproblem with scope_identity using cmd.Parameters Pin
brunoskorepa10-May-04 22:44
brunoskorepa10-May-04 22:44 
GeneralRe: problem with scope_identity using cmd.Parameters Pin
Edbert P11-May-04 16:53
Edbert P11-May-04 16:53 
GeneralRe: problem with scope_identity using cmd.Parameters Pin
brunoskorepa11-May-04 19:44
brunoskorepa11-May-04 19:44 
GeneralRe: problem with scope_identity using cmd.Parameters Pin
Rob Graham13-May-04 3:48
Rob Graham13-May-04 3:48 
GeneralRe: problem with scope_identity using cmd.Parameters Pin
brunoskorepa13-May-04 7:58
brunoskorepa13-May-04 7:58 
GeneralsqlDataReader is Busy Fetching.... Pin
-Dr_X-8-May-04 15:44
-Dr_X-8-May-04 15:44 
GeneralRe: sqlDataReader is Busy Fetching.... Pin
Aryadip12-May-04 20:47
Aryadip12-May-04 20:47 

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.