Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Better for perfomance

 
   Database Forums (Home) -> MSDE RSS
Next:  update table from csv file  
Author Message
Meels Lilbok

External


Since: Nov 19, 2007
Posts: 3



(Msg. 1) Posted: Wed Jan 30, 2008 4:00 am
Post subject: Better for perfomance
Archived from groups: microsoft>public>sqlserver>msde, others (more info?)

Hello all


Im using SQL Server 2005, ADO 2.9, OLEDB.

My question is;

Lets say we have 2 tables ITEMS and LOANS

When item is "checked out", i insert line into LOANS table and in ITEMS
table field state_id is changed from 1 to 3 using UPDATE ITEMS SET
STATE_ID=3 WHERE ID=
Now, what is better for perfomance - INSERT and UPDATE querys are both in
source code (client side)
or INSERT is in source code and UPDATE using triggers on LOANS table using
AFTER INSERT?



Best Regards;
Meelis

 >> Stay informed about: Better for perfomance 
Back to top
Login to vote
Uri Dimant

External


Since: Aug 24, 2003
Posts: 739



(Msg. 2) Posted: Wed Jan 30, 2008 4:00 am
Post subject: Re: Better for perfomance [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Meels
I'd go with single stored procedure . Clients just call it.




"Meels Lilbok" wrote in message

> Hello all
>
>
> Im using SQL Server 2005, ADO 2.9, OLEDB.
>
> My question is;
>
> Lets say we have 2 tables ITEMS and LOANS
>
> When item is "checked out", i insert line into LOANS table and in ITEMS
> table field state_id is changed from 1 to 3 using UPDATE ITEMS SET
> STATE_ID=3 WHERE ID=
> Now, what is better for perfomance - INSERT and UPDATE querys are both in
> source code (client side)
> or INSERT is in source code and UPDATE using triggers on LOANS table using
> AFTER INSERT?
>
>
>
> Best Regards;
> Meelis

 >> Stay informed about: Better for perfomance 
Back to top
Login to vote
"Paul Nielsen

External


Since: Dec 29, 2007
Posts: 8



(Msg. 3) Posted: Wed Jan 30, 2008 4:00 am
Post subject: Re: Better for perfomance [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

The best solution is to create a great stored procedure that inserts/updates
into both tables and have the client app call the proc.

-Paul



"Meels Lilbok" wrote in message

> Hello all
>
>
> Im using SQL Server 2005, ADO 2.9, OLEDB.
>
> My question is;
>
> Lets say we have 2 tables ITEMS and LOANS
>
> When item is "checked out", i insert line into LOANS table and in ITEMS
> table field state_id is changed from 1 to 3 using UPDATE ITEMS SET
> STATE_ID=3 WHERE ID=
> Now, what is better for perfomance - INSERT and UPDATE querys are both in
> source code (client side)
> or INSERT is in source code and UPDATE using triggers on LOANS table using
> AFTER INSERT?
>
>
>
> Best Regards;
> Meelis
 >> Stay informed about: Better for perfomance 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
MSDE 2000 Release A - I am having problems installing the MSDE 2000 Release A on my Computer. I am not able to find the Microsoft SQL Server Program when I go to Start-Program. Can you please tell me a Simple Installation Process for MSDE 2000 Release A. Thanks.

Problem when installing Microsoft SQL Server Desktop Engine - Hi, We develop a CAM application which makes use of a SQL Server database. We used to ship our product with MSDE version 7.0, but we were having more and more problems with users who wanted to install the software on a Windows XP system. For these users...

SQL Server Service Manager - I installed an MSDE on a client machine and I have the service start each time the computer starts. The issue I am having is that the SQL Server Service Manager doesn't default to my MSDE instance ( cpuName\Database ). Is there somewhere that I can se...

Connecting from a remote Enterprise Manager - I have installed MSDE2000A and it is working perfectly on the local machine, but how do I connect from a remote Enterprise Manager? I keep on getting the message that either sql does not exist or access denied. How do I fix this? PLEASE HELP

Restore in SQL Server 2000 Desktop Engene (MSDE 2000) - Hello everybody, Im using SQL Server 2000 Desktop Engene (MSDE 2000) for the fist time, and see that it is quite different from the SQL Server 2000. My main problem is that i dont'n see how can i make a restore maked in the Enterprise of SQL Servre..
   Database Forums (Home) -> MSDE All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]