This is a question I almost posted to the visual basic forum but then figured nobody would know what I am talking about.
I am stumbling my way through learning selected elements of Visual Basic to support my core I. T. knowledge of RPG and the AS400. In RPG you can access databases effiently by pointing to a start point on an indexed file using SETLL or CHAIN. In Visual Basic there does not seem to be an equivalent command. You have to perform an SQL statement via a connection. This must therefore consider every record in the database to return the record(s) you are interested in.
My questions are:-
1) Is there a CHAIN or SETLL equivalent for accessing an
SQL server or Access database? If there is, what is it?
2) If there is no command to do this in VB, wopuld you not
agree that VB is not as efficient for accessing indexed
files as RPG?
Many thanks.
I am stumbling my way through learning selected elements of Visual Basic to support my core I. T. knowledge of RPG and the AS400. In RPG you can access databases effiently by pointing to a start point on an indexed file using SETLL or CHAIN. In Visual Basic there does not seem to be an equivalent command. You have to perform an SQL statement via a connection. This must therefore consider every record in the database to return the record(s) you are interested in.
My questions are:-
1) Is there a CHAIN or SETLL equivalent for accessing an
SQL server or Access database? If there is, what is it?
2) If there is no command to do this in VB, wopuld you not
agree that VB is not as efficient for accessing indexed
files as RPG?
Many thanks.