TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ms_ Dev
NA
236
92.4k
Optimize redundant sproc calls
Sep 1 2016 4:20 AM
Consider this scenario -
SP - dbo. executeMe
the code is as -
page1.cs
function abc()
{
.....statements
execdbo.executeMe
//letssay
values--
storeresult--
}
function cde()
{
.....statements
execdbo.executeMe
//letssay
values--
storeresult--
}
function efg()
{
.....statements
execdbo.executeMe
//letssay
values--
storeresult--
}
I have another page lets say
page2.cs
which has two functions which aslo executes the
function mno()
{
.....statements
execdbo.executeMe
//letssay
values--
storeresult--
}
function pqr()
{
.....statements
execdbo.executeMe
//letssay
values--
storeresult--
}
Now, how i can execute the function only once and get the values all the time.
( USE THE 1ST EXECUTED STATEMENT) all the time without invoking the sp again and again. Causing redundant sp reduces the optimization.
Solutions are welcome..
Reply
Answers (
4
)
stored procedure for filters
SQL server log shipping error when copying secondary server