Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5964191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:23:12+00:00 2026-05-22T19:23:12+00:00

I have a WCF service that my client makes a call to telling it

  • 0

I have a WCF service that my client makes a call to telling it to run storedprocedure1, with param1, param2, etc.

When the WCF service gets this call, it instantiates a class that instantiates a DAO class.
The DAO class creates the connection, loads the parameters into a SqlCommand object, then executes the object.

After finishing, it closes the SqlConnection, but does not close or dispose the DAO class, because there are multiple procedures it needs to run.

Here’s the problem. If I edit storedprocedure1 and then call it through the WCF service, the changes I made in storedprocedure1 are not reflected until I restart the WCF service. Its like the storedprocedure1 is cached in WCF.

Has anyone else experienced this and is there a solution?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T19:23:13+00:00Added an answer on May 22, 2026 at 7:23 pm

    I think the key likely lies in this statement:

    but does not close or dispose the DAO
    class

    Without seeing the code for your DAO class it’s hard to say, but it seems more likely that the query result is being cached by your data access layer than it does that it’s being cached by WCF.

    Either way, it really has nothing to do with the stored procedure, it’s just caching the result of executing the stored procedure. If you changed the data instead of changing the procedure, the same problem should exist – you get back stale data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a Windows Service that makes a WCF service call. Normally, it works
I have some jQuery that makes a call into a WCF service. When the
I have a WCF service that receive query from a silverlight client and send
I have a WCF Service that I want my client to be able to
I have a WCF client/service app that relies on secure communication between two machines
I have a complex RIA client that communicates with a WCF SOAP web service,
I have a Linux/c client app that connects to a WCF web service over
I have a WCF service that I need to call in a ASP.NET web
I have a simple WCF service that I call server side from code behind
Lets say I have a WCF service that a client can use to receive

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.