Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
dear sir

i am using vb6 and i made connection with databse using adopendynamic and adopenstaic
example


Dim gcnAs New ADODB.Connection
Dim prs As New ADODB.Recordset
Debug.Print strSQL
prs.Open strSQL, gcn, adOpenStatic, adLockOptimistic

and
Dim gcnAs New ADODB.Connection
Dim prs As New ADODB.Recordset
Debug.Print strSQL
prs.Open strSQL, gcn, adOpenDynamic, adLockOptimistic



which the best to use please tell me. i using my vb application on network sharing the common database and tell me the better way to use.
Posted

1 solution

Both have their own usage. Genrally openDynamically is used for insert updates queries.
and openStatic is not supported client side.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900