15,917,328 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 Member 13039327 (Top 5 by date)
Member 13039327
3-Nov-19 7:55am
View
Hello RickZeeland,
Thank you very much for your help. It does look very promissing. However, as I reached my limits at vatlayer, I can't try for now. But when I can, I will let you kmow the outcome.
Regards,
Hans
Member 13039327
27-Oct-19 13:28pm
View
Hello RickZeeland,
Thanks for the reply. But I'm sorry, I'm not sure what you mean with database-agnostic. Do you mean that when I have used the ORM, I can attached any kind of database to it, without changing any coding (except maybe the connection string) ??
So if I create a project with ORM and use Access Database and later I want to go using a SQLServer database, I only need to change the connection string?
And also thanks for the link, don't hard code your dataProvider. But this is not about Linq, so I am not sure how it is being in Linq. If the code remains the same, regardless the type of database.
Regards,
Hans
Member 13039327
3-Dec-18 14:50pm
View
Hello Zsolt,
Indeed I have already the database in Access (accdb). But even if I would create thru VB, that wouldn't change the problem, if I would change the maximum size or property of a field in the database. Then I still need to walk thru whole code to make sure the text length/type will be correct. Or I would need to do by variable. But that I think doesn't work that clean.
Member 13039327
3-Dec-18 14:21pm
View
Hello Richard,
For the tet boxes, I want them to have the same size as the database. So the user is not typing in 30 characters, while only 20 can be used in the database field.
Or the the user is entering letters, while the database only excepts numbers.
The reason why I want to have this by code is that there are fields that will be used by different tables/fields.
Also do I want to have this by code, that if I change the database field property, the program will automaticaly adjust the size/property of the textfield and I don't need to go thru all those manualy again, to make it to match with the databasefield settings.
Regards,
Hans
Member 13039327
1-Dec-18 8:22am
View
Hello Richard,
Sorry but this was my mistake. I did try to change the row in access to rwAuthUser and changed this also in the VB. But forget to adjust in the above code. But it still doesn't change the problem.
I even did try only to update tbLocalDataFolder (LocalDB) and tbServerDataFolder (ServerDB) but I keep getting the error. Also when I only try to update tbLocalDataFolder (LocalDB) the error is being thrown. This also when I am trying to update an other table. With the exception of tbUsers (UsersDB). For with tbUsers it will update indeed the DB
It seems like somewere it is mixing the rows or something like that. Or that it is checking all the rows and wants to update all of them in table