Problem Delete rows using stored procedure


Author
Message
Douglas Hernandez
Douglas Hernandez
StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)
Group: StrataFrame Users
Posts: 11, Visits: 152
Hi



I created a stored procedure called Tablebo1_Delete for my business object

I set my business object on the following properties:

DeleteUsingStoreProcedure = true,

DeleteConcurrencyType = OptimisticTimestamp,

RowVersionOrTimestampColumn = version (timestamp column on database table)



My business object Tablebo1.DeleteCurrentRow () delete the row of the grid but not in the database



I hope for any advice
Edhy Rijo
E
StrataFrame VIP (3.7K reputation)StrataFrame VIP (3.7K reputation)StrataFrame VIP (3.7K reputation)StrataFrame VIP (3.7K reputation)StrataFrame VIP (3.7K reputation)StrataFrame VIP (3.7K reputation)StrataFrame VIP (3.7K reputation)StrataFrame VIP (3.7K reputation)StrataFrame VIP (3.7K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi Pedro,



Do a search in the forum using the word "Concurrency" and you will find plenty information about this.



Here is one link I found: http://forum.strataframe.net/FindPost21300.aspx



Also check the CRUD section in the help file.

Edhy Rijo

Douglas Hernandez
Douglas Hernandez
StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)
Group: StrataFrame Users
Posts: 11, Visits: 152
I have tried in various ways, such single stored procedure to delete by primary key and not my business to use the stored procedure
Peter Jones
Peter Jones
StrataFrame User (450 reputation)StrataFrame User (450 reputation)StrataFrame User (450 reputation)StrataFrame User (450 reputation)StrataFrame User (450 reputation)StrataFrame User (450 reputation)StrataFrame User (450 reputation)StrataFrame User (450 reputation)StrataFrame User (450 reputation)
Group: Forum Members
Posts: 386, Visits: 2.1K
Hi Douglas,



FWIW: When we first started using StrataFrame I was very interested in the pros and cons of using stored procedures from an efficiency point of voew. We have an industrial application that is adding new transactions at about 30 per minutes, 12 hours a day and our main transaction table contains around 11 million rows. While we use stored procedures for all work to do with populating BO's we just leave the CRUD to StrataFrame (i.e. we don't use procs for deleting, inserting etc). We came to this decision after extensive testing that showed there was no performance advantage in using procs.



We found it was very much easier to leave SF to do the heavy lifting in this area.



Cheers, Peter



Les Pinter
Les Pinter
StrataFrame Team Member (65 reputation)StrataFrame Team Member (65 reputation)StrataFrame Team Member (65 reputation)StrataFrame Team Member (65 reputation)StrataFrame Team Member (65 reputation)StrataFrame Team Member (65 reputation)StrataFrame Team Member (65 reputation)StrataFrame Team Member (65 reputation)StrataFrame Team Member (65 reputation)
Group: Forum Members
Posts: 43, Visits: 213
Dear Douglas,

   I created a SQL database called Pinter (my favorite name for testing) with a Contacts table and stored procedures to add, edit and delete records. The script file called "CreatePinterDatabaseTablesAndProcs.sql" in the attached ZIP that will create the database, table and procedures and insert four records for testing.

   I then wrote the little application included in the ZIP file. It uses stored procedures to add, edit and delete records, and all three functions work as advertised. Took about three minutes to write.

   If you'll zip up your application and send it to me, I'll take a look at it. Please include generated scripts for the stored procedures for your table.

Les

Attachments
DeleteTestUsingSPs.zip (144 views, 33.00 KB)
Douglas Hernandez
Douglas Hernandez
StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)
Group: StrataFrame Users
Posts: 11, Visits: 152
Hi Les



I will review the zip file and then report the results



Thanks for the support



Greetings
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search