15,891,375 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Bert Mitton (Top 18 by date)
Bert Mitton
27-Feb-14 10:58am
View
I've done background threading, that's no problem (and was actually going to be a fallback).
I was just hoping to understand WHY we are having this problem, w/o an error (even if it's a timeout)...
So far, this seems to be the best solution, although I hate unsolved mysteries. :)
Bert Mitton
27-Feb-14 6:12am
View
I am unsure of the connection speed, but it is a high-speed, not dialup.
It happens on random queries, and we've seen it "catch" on queries which normally take milliseconds, so it shouldn't be a time-out issue.
Also, looking at the server resources, we're not even close to red-lining, so it's not a load issue.
Bert Mitton
27-Feb-14 6:10am
View
da.Fill(ds) is where we are getting the hang. The interruption happens 2 or 3 times a day, and for short durations, so I don't have time to ping the server.
We do see it manifest itself elsewhere... print jobs from other software sent over the network at that time will be delayed, Remote Desktop sessions will "hang", but recover once the disruption clears.
Our IT team is satisfied as long as the print jobs eventually pop through, and the Remote Desktops recover. This leaves me in a position where I would have to get my own software to recover, but without an error to trap, I don't know how.
Also, in these instances it seems the timeout isn't doing anything either. The process just never returns.
Thanks
Bert Mitton
15-Jan-13 12:53pm
View
Did you try the solution above?
I can only help you so much, since we can't see the actual datatables.
In your original question, you were missing a column. Therefore, it may have looked like a duplicate record, however each record actually had a different fee type of fee amount.
In your follow up, you had reduced the number of columns. That's fine, however you could have had a duplicate record in this instance because you weren't summing the FeeAmount.
Now, you could try SELECT DISTINCT. This will return only a single unique record when there are similar records.
This would be useful if you wanted to determine the permutations of Regno, ST_Name, and FeeAmount actually stored in the table.
However, you would want to be careful. As an example, if I was looking at a sales order table, and wanted a list of all customer with an open sales order, I could use distinct.
But say I want to know the size of the orders. I could query for customer and sales dollars. But there could be two orders with the same dollar value. Using SELECT DISTINCT would hide this data, and only return a single row.
In general, if you're looking for data from a table, do not use DISTINCT. DISTINCT should only be used if you are looking to find out what values are stored in a table, without regard to the frequency.
Bert Mitton
15-Jan-13 12:09pm
View
I believe you tried :)
But it still looks like you're missing some columns.
On your datagridview, try setting AutoGenerateColumns = True.
Bert Mitton
13-Apr-12 12:58pm
View
That's a misconception. It can also mean you spilt coffee into your keyboard. :)
Bert Mitton
5-Apr-12 11:06am
View
try cmd.CommandText = "Insert Into try (Name) values ('Simon')"
You want to use single quotes (apostrophes), not double quotes when entering your data.
Bert Mitton
25-Oct-11 9:12am
View
Yo!
Bert Mitton
18-Oct-11 5:52am
View
Deleted
It's there is GetDominantColor. I think you missed it.
Bert Mitton
6-Oct-11 13:44pm
View
Wizardzz, does it matter how dense the people in the image are? :)
Bert Mitton
3-Oct-11 14:00pm
View
Argh! You got your answer in first!
Still, it gets a 5. :)
Bert Mitton
24-Sep-11 9:45am
View
Yes and no. It's not full featured, but it's free and doesn't expire. You will need to register it (I think it's within 30 days), but that costs nothing.
Bert Mitton
18-Sep-11 20:13pm
View
This worked perfectly. You really did hit it on the head with the documentation thing. I'm having a really difficult time finding good, comprehensive documentation of how the codedom works. I've gotten down the namespaces, classes, etc, but trying to find details for things like the parameters is a real bear.
Thanks again for your help, it was exactly what I needed. +5
Bert Mitton
6-Sep-11 13:53pm
View
I hate to ask this question, but where's the key? To be sure you're deleting the correct line, you need a primary key.
If you have 2 identical transactions, on the same date, you'll end up deleting them both.
Bert Mitton
2-Sep-11 15:01pm
View
Are you committed to MS Access 2003? If not, I suggest switching to SQL Server.
Bert Mitton
31-Aug-11 13:58pm
View
The biggest issues IMO are the fact that the timing isn't always accurate, and that it's on the UI thread, both of these affect performance. You're right, in that it's alot easier though.
If you need help with the background worker, let me know. I'd be more then happy to help out.
Bert Mitton
22-Aug-11 13:52pm
View
Could you see what the dataformat is? I'll bet it's not coming through as a FileDrop for some reason.
Where is the drag starting from? Is it starting from a Windows folder? Or is it starting from your program?
Bert Mitton
19-Aug-11 13:37pm
View
See above solution... it's been expanded to fix another issue with the code.
Show More