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

Database

 
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 
GeneralRe: ADO UPDATE Problem Pin
WoutL11-May-04 22:56
WoutL11-May-04 22:56 
The 'problem' is you do not open a recordset, but you are executing a command. Therefore you cannot close the recordset...

What you can (should) do is this:

<br />
Sub UpdateOrderState(ByVal strFirstState, ByVal strNextState)<br />
<div style="margin-left:3em"><br />
Dim strUpdate, cn<br />
Set cn = Server.CreateObject("ADODB.Connection")<br />
cn.Open gDBCONSTRING<br />
<br />
strUpdate = "UPDATE tb_cont_SmartSell_orders SET OR_state = N'" & strNextState & "' WHERE (OR_state = N'" & strFirstState & "')"<br />
<br />
cn.Execute strUpdate<br />
cn.Close <br />
set Cn = nothing<br />
</div><br />
end Sub<br />


Wout Louwers
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 
GeneralRe: sqlDataReader is Busy Fetching.... Pin
Rob Graham13-May-04 3:52
Rob Graham13-May-04 3:52 

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.