Solved

how to reduce database call on saving the records

Posted on 2011-09-28
1
221 Views
Last Modified: 2012-06-27
I have multiselect list for properties on my asp.net page which allow user to select some option and save it in a database.
Now the table structure is like this UserID and PropertyID.
Now, when I am saving this info currently I am running a loop and executed a single insert SP at a time.
Which surly makes the database call again and again.

I need to know is there any other way of doing these sort of task with minimum database calls

0
Comment
Question by:ziorinfo
1 Comment
 
LVL 12

Accepted Solution

by:
jagssidurala earned 125 total points
ID: 36718682
we can achive this with Sql2008 feature called 'Table Valued Parameters'

Refer these links

http://msdn.microsoft.com/en-us/library/bb675163.aspx

http://www.sqlteam.com/article/sql-server-2008-table-valued-parameters
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question