16,004,479 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 .NET 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 GlennAshan (Top 8 by date)
GlennAshan
2-Aug-21 9:48am
View
Yes I know that's the easiest way but my client's requirement(end goal) is to have a windows-service. So I'm working on it, and yes I think I would have to convert the parts which are still VB6 code. Finally I was thinking the same about the line you mentioned has some issues, let's see I'll try to catch the errors using 'Try Catch'. Thank you! :)
GlennAshan
2-Aug-21 9:42am
View
Thank you Richard for your ideas, I think it will help me to debug much easier. :)
GlennAshan
29-Apr-21 13:34pm
View
Got it, thanks Richard!
GlennAshan
29-Apr-21 11:10am
View
Is it possible to combine 2 columns and make a row unique? Ex : Combine both "Cus_no & RangeName"
GlennAshan
16-Apr-21 14:12pm
View
Wow you're amazing Richard. Thank you very much! Can you help me with one more question if possible please and thank you.
I updated my current INSERT queries to
"INSERT INTO {destTableName} ({paramList}) SELECT * FROM NOR_LABOR t1 WHERE NOT EXISTS(SELECT ID FROM {destTableName} t2 WHERE t2.ID = t1.ID)"
"INSERT INTO {destTableName} ({paramList}) SELECT * FROM Setter_Labor t1 WHERE NOT EXISTS(SELECT ID FROM {destTableName} t2 WHERE t2.ID = t1.ID)"
"INSERT INTO {destTableName} ({paramList}) SELECT * FROM wrap_labor t1 WHERE NOT EXISTS(SELECT ID FROM {destTableName} t2 WHERE t2.ID = t1.ID)" so that it won't copy any duplicates from sources to destinations. But it's giving me some exceptions
Exception: Invalid object name 'Setter_Labor'
Exception: Invalid object name 'NOR_LABOR'
Exception: Invalid object name 'wrap_labor'
Any suggestions?
GlennAshan
9-Apr-21 12:39pm
View
Thank you very much for these valuable advices Richard, will go through these. By the way do you have any idea why does my code doesn't do what it supposed to do?
I'm having some doubts about "ProjectInstaller.vb" file that it might be not complete. Not sure whether I'm doing the right thing.
GlennAshan
8-Apr-21 8:14am
View
Richard,
I think I was not clear when asking the question, my apologies. The windows service does not has to run & stop every 5 mins, all I want is the service to run continuously and detect changes(new instances/ new data) which was added to the DB within last 5 minutes(only grabs the data which was not posted from the last time service check). Is it not possible for a windows service to do using the "OnStart", "OnStop" and by using Sleep function in thread after each loop?
Thank you!
GlennAshan
7-Apr-21 11:42am
View
Hi Sean,
I was able to create a simple windows service as per you can see my code above. But what I'm trying to do is create a windows service that listens to the DB's and logs to a txt file with new data that has been added within last 5 mins. The service should run every 5 mins. Thanks
Show More