15,895,084 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 Mel Padden (Top 6 by date)
Mel Padden
21-Jun-17 10:07am
View
"If the .OCX file is not located in your windows/system32/ folder you must add the file path before the filename.ocx"
Does that apply even when you are running the command prompt in the same directory as the OCX? Seems wrong... The registry record written contains the full filepath.
Mel Padden
9-May-14 10:19am
View
Reason for my vote of 1 \n What the...? "Magic Tables"? And no you don't quote the word Trigger. Calling a trigger a "Trigger" is like calling yourself a "Developer" which is, I guess, about right, looking at this article.
Mel Padden
16-Nov-11 10:50am
View
I would have to see the options of your Internet Exporer instance, but I have run into problems before where some JavaScript options were disabled for one reason or another. Try comparing the security settings for one pc with those of the other as a starting point.
Mel Padden
16-Nov-11 7:12am
View
So you need to update the same column in several tables. With the same value?
Create a database transaction, and in the transaction you update each table with the required value. That way, if one fails, you can roll back all the changes.
Something like:
BEGIN TRANSACTION
UPDATE [TableName] Set Col = @Value WHERE <condition>
UPDATE [TableName2] Set Col = @Value WHERE <condition>
UPDATE [TableName3] Set Col = @Value WHERE <condition>
IF @@ERROR <> 0 BEGIN
ROLLBACK
END ELSE BEGIN
COMMIT
END
Mel Padden
1-Nov-11 12:48pm
View
Deleted
Reason for my vote of 4
Reason I'm using a temp table in the first place is because I need to in the context of the application I'm working on. A table variable would, of course, work perfectly. Just not in this instance, hence the tip/trick.
Mel Padden
25-Oct-11 10:26am
View
Deleted
Reason for my vote of 5
Nice! Didn't know about that...
Show More