Solved

how to reduce database call on saving the records

Posted on 2011-09-28
1
222 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

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
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 …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

839 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