Hi,
I currently have a solution working that requires me to pre-build the remote views and connection. I would rather create this connection in code which I have done already. My bad experience with CursorAdapters caused me to try a remote view process just to see if it presented to me that same issues I've fought with using cursor adapters. It actually works quite well, except for having to pre-build everything. Particularly, I like the ease it offers in making sql table changes and then refactoring the VFP side, as all I have to do is
1. make the MSSQL schema changes and save,
2. open the remote view and delete its referenced sql table (in the top pane), and add it back, then add all the fields back (in the bottom pane) and check the update box,
3. then open the form's data env and delete the view and re-add it.
4. lastly, refactor the form's controls to reflect the sql changes.
This has worked everytime...
My experience working with CursorAdapters was so much more un-forgiving. I do see their power, however if I cannot make it easy to change something without blowing the CursorAdapter away and starting over on simple changes, then its a waste...
Like I've already said, I probably don't know what I'm doing and have failed to find the right white papers or articles that describes in detail how changes are made without recreating a new CursorAdapter, or getting past a cursor adapter load in the form designer. I have Doug's articles, all FoxRockX & FoxTalk articles, all of Henzenwerke VFP books, and threads I've started here in Tek-Tips, which mostly goes into the details of creating and using. Some of the Tek-Tip threads have helped a lot with its troubleshooting, however in the past, I generally reverted back to the time consuming "pass thru" commands after fighting with it. I'd like to change that here, today...
What I've gotten frustrated at is when making a small change to the underlying schema, the cursor adapters gets broken and sometimes to a point that if the form does load in the designer, the broken cursor adapter references are gone and therefore I have to recreate it. At that point, I curse it and quit...
I really don't want to use pre-defined remote views and connections. Instead I want to use a DSNLess connection with params stored in a local table and create the database connection in the program's main prg and close it when closing the app. I have lots of experience using this approach and SQL pass thru commands, however the "pass thru" stuff is really time consuming, but with full granular control.
I'd really like to learn RAD (rapid development) techniques as mentioned in CursorAdapters.
Thanks,
Stanley
I currently have a solution working that requires me to pre-build the remote views and connection. I would rather create this connection in code which I have done already. My bad experience with CursorAdapters caused me to try a remote view process just to see if it presented to me that same issues I've fought with using cursor adapters. It actually works quite well, except for having to pre-build everything. Particularly, I like the ease it offers in making sql table changes and then refactoring the VFP side, as all I have to do is
1. make the MSSQL schema changes and save,
2. open the remote view and delete its referenced sql table (in the top pane), and add it back, then add all the fields back (in the bottom pane) and check the update box,
3. then open the form's data env and delete the view and re-add it.
4. lastly, refactor the form's controls to reflect the sql changes.
This has worked everytime...
My experience working with CursorAdapters was so much more un-forgiving. I do see their power, however if I cannot make it easy to change something without blowing the CursorAdapter away and starting over on simple changes, then its a waste...
Like I've already said, I probably don't know what I'm doing and have failed to find the right white papers or articles that describes in detail how changes are made without recreating a new CursorAdapter, or getting past a cursor adapter load in the form designer. I have Doug's articles, all FoxRockX & FoxTalk articles, all of Henzenwerke VFP books, and threads I've started here in Tek-Tips, which mostly goes into the details of creating and using. Some of the Tek-Tip threads have helped a lot with its troubleshooting, however in the past, I generally reverted back to the time consuming "pass thru" commands after fighting with it. I'd like to change that here, today...
What I've gotten frustrated at is when making a small change to the underlying schema, the cursor adapters gets broken and sometimes to a point that if the form does load in the designer, the broken cursor adapter references are gone and therefore I have to recreate it. At that point, I curse it and quit...
I really don't want to use pre-defined remote views and connections. Instead I want to use a DSNLess connection with params stored in a local table and create the database connection in the program's main prg and close it when closing the app. I have lots of experience using this approach and SQL pass thru commands, however the "pass thru" stuff is really time consuming, but with full granular control.
I'd really like to learn RAD (rapid development) techniques as mentioned in CursorAdapters.
Thanks,
Stanley