If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > Updateable Stored Procedures

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-01-02, 17:15
rwbootes rwbootes is offline
Registered User
 
Join Date: Nov 2002
Posts: 2
Updateable Stored Procedures

Does anyone know how to create a recordset from a Stored Procedure that is updateable?

Sample Code:

'build the command
Set cmdNew.ActiveConnection = de1.cn1
cmdNew.CommandType = adCmdStoredProc
cmdNew.CommandText = "{? = CALL dbo.sp_Patients }"
cmdNew.CommandTimeout = 90
cmdNew.CommandType = adCmdStoredProc

'bind the recordset
set rs = cmdNew.Execute

'End Sample

Somehow I know the recordset LockType needs to be set to adLockOptimistic, but I'm not sure where to do this....

thanks,
richb@pobox.com
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On