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

  • Home
  • SEARCH
  • 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 7074041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:00:10+00:00 2026-05-28T06:00:10+00:00

I thought I had a sql error licked in a post here just a

  • 0

I thought I had a sql error licked in a post here just a bit ago… (Error message: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.”) I’m trying to run this with the database tools in visual studio… not management studio, and not via client code/ ADO (yet). I rewrote a fairly simple query that uses a couple of custom functions… the functions as well as the parts of the query have been tested and all are running well, but the query below times out.. this does run exactly as typed in Management Studio, and takes about 4 minutes. As I mentioned in my other post, I changed the setting under Tools>Options>Designers>”Override connection string time- out value” to 120 seconds as per this posting, but… it still times out after 30 seconds. Adding the ISNULL in this latest version is the change that has it running in management studio.

SELECT Symbol, LatestDate
FROM (SELECT Symbol, ISNULL(dbo.LatestDateInDailyPricingVolBySymbol(Symbol), '1/1/1900') AS LatestDate FROM tblSymbolsMain) AS T2
WHERE (LatestDate < dbo.RecentTradingDateByNumber(3))

The general idea is to get back a subset of stock symbols that don’t have a corresponding data point in my daily pricing table for at least 3 days. Any takers? Thanks all.

  • 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-28T06:00:11+00:00Added an answer on May 28, 2026 at 6:00 am

    Without regards to your timeout;

    Are you using the sql management console to run your query? If so, when connecting to the database there is an options button that allows one to set the timeouts.

    Connection Options

    Also, if in the query window, right click and choose Query Options….

    0, means unlimited, I would check these. 4 minutes is a long time, maybe the query can be refactored to run faster?

    enter image description here

    If you are running this inside of Visual Studio via C# the default command timeout is 30 seconds. Alter it by setting the command time out:

    SqlCommand comm= new SqlCommand();
    comm.CommandTimeout = 300;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I thought I had this figured out but it turns out I'm just deleting
I had a user email me with an error message that occurred when he
I'd like the community's take on some thoughts I've had about Linq to Sql
I had thought I could enumerate the types using IMetaDataImport.EnumTypeDefs and for each of
I thought I had seen a bug report about this on the jQuery site,
I thought I had a pretty good handle on memory management for objective-c, but
This may seem like a programming 101 question and I had thought I knew
Alright, I thought I had this whole setTimeout thing perfect but I seem to
Generally, I had thought it was always better to store images in the filesystem
can anyone help, i have problem doing a sort, I thought i had it

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.