Hi, i have a database sql server2000 and a vb6 application for witk with db. Currently, my db is used for data storage only and an app. performes all operations . I'm trying to change it: to enclose all operations in db and application will only use them. But i really don't know how to do this: i have a form with two grids : when row on one grid selected (a record in table) the other grid selects all corresponding records in other table. For this example what should i do if i don't want to use cursor and queries from vb but to enclose this operations in database?