Databases in Delphi - Connecting to a database using code

  Рет қаралды 28,493

Mr Long Education - IT & CAT

Mr Long Education - IT & CAT

Күн бұрын

Пікірлер: 57
@zanderv.l5607
@zanderv.l5607 3 жыл бұрын
who else is working on their PAT
@blakehenery9184
@blakehenery9184 2 жыл бұрын
@Piano-Onset damn same
@mubata1401
@mubata1401 Жыл бұрын
hey, u still got ur completed PAT?
@Batzuki
@Batzuki Жыл бұрын
...
@polobeast9647
@polobeast9647 Жыл бұрын
Yurr
@Prettyboi_pete
@Prettyboi_pete Жыл бұрын
my situation is dire 😂
@staceyadams9954
@staceyadams9954 2 жыл бұрын
Nice and clear. I like how you explain why you do what you do. I only wish you used consistent, recommended code indentation practices. It makes code more readable, and given that you are influencing a whole new generation of Delphi coders, it would be nice for them to start off using generally accepted code formatting standards (e.g., contents within begin/end code blocks should be indented).
@KingSimba2077
@KingSimba2077 3 ай бұрын
but remember delphi is a dying language and Mr long is doing an exceptional job better than most people
@staceyadams9954
@staceyadams9954 3 ай бұрын
@@KingSimba2077 I don't disagree about the exceptional job (no one I can compare him to), but the more exceptional the job, the more someone's reach might be and, therefore, the more potential they have to influence the next generation in good and bad ways. The part about Delphi being a "dying language" is unfortunate. Such an amazing, flexible tool.
@michaeldaniels5004
@michaeldaniels5004 3 жыл бұрын
wow, its the best video. Q: how to use OOP with database?
@MikeWeideli
@MikeWeideli Жыл бұрын
Very clear. Works well for me.
@lethabodichaba6250
@lethabodichaba6250 3 жыл бұрын
This helped me so much thank you
@natidaschoolboy
@natidaschoolboy 3 жыл бұрын
Bruh
@thangbui7169
@thangbui7169 3 жыл бұрын
so touching for an excellent video
@DrippyKlifestyle
@DrippyKlifestyle 29 күн бұрын
Hi Mr Long, i did everything as you said in the video but it gives me an access violation error when i run the program. Please help.
@jordanyusuf4
@jordanyusuf4 2 жыл бұрын
Best video ever
@KalaiVorneKisten-vw9fz
@KalaiVorneKisten-vw9fz 28 күн бұрын
Hello sir, I wanted to ask, do I have have multiple data sources to go with each table or can I use one datasource for all my tables?
@MrLongITandCAT
@MrLongITandCAT 27 күн бұрын
You only need one ADOConnection but you do need an ADOTable and DataSource for each table.
@theyluvvsande5178
@theyluvvsande5178 Жыл бұрын
Hii Mr long i followed every instruction on this video but whenever i tried running it it told me that it cannot find the program but i did put it on the host application
@stevenpaulsen5975
@stevenpaulsen5975 2 жыл бұрын
himister long my db is not being picked up when its in the same folder as my project it keeps looking for it in documents please help
@MrLongITandCAT
@MrLongITandCAT 2 жыл бұрын
Have you made the connection dynamically (using code) or have you set the settings manually in the ADOTable?
@sevketiskender3229
@sevketiskender3229 3 жыл бұрын
Hello. How to link two tables through ADOQuery? Database Access.
@MrLongITandCAT
@MrLongITandCAT 3 жыл бұрын
We have a video where we interact and setup an ADOQuery. Here is the link: kzbin.info/www/bejne/q5KukHmQr9KLq8k
@hipinq1614
@hipinq1614 Жыл бұрын
Sir I'm unable to find the 'OnShow' event by the event panel, what should i do to be able to connect the dbgrid to the datasource
@MrLongITandCAT
@MrLongITandCAT Жыл бұрын
Use the Forms OnActivate event. Click on the form, then go to the events tab and look for the Activate or OnActivate event.
@mutombokabau1390
@mutombokabau1390 Жыл бұрын
You a G🎉
@ebrahimismail4698
@ebrahimismail4698 2 жыл бұрын
When connecting the dbgrid to datasource, how do you specifiy which table you want to display ? Mines shows only one table
@MrLongITandCAT
@MrLongITandCAT 2 жыл бұрын
Your adoTable component has a tablename property that is set to the table name. If you want to change the dbgrid to another table, then first close the table (adoTable.Close) then reset adoTable table name property to new table then then open the table (adoTable.Open) Another option is to do the whole process (except adoConnection part) for the second table and have it displayed in another dbGrid.
@donartista1648
@donartista1648 20 күн бұрын
please how to do connect button to access database in delphi , i want a dynamic login , so i can change database thank you
@MrLongITandCAT
@MrLongITandCAT 18 күн бұрын
Have you seen the following video I did about a log in screen - kzbin.info/www/bejne/a5zUhoSPnqhoicU
@mateodebeer3251
@mateodebeer3251 2 жыл бұрын
Hi mister long I have connected my date base dynamically exactly as you did in the video but I am getting a Access violation adress error if you could please help.
@MrLongITandCAT
@MrLongITandCAT 2 жыл бұрын
Which part of the code is highlighted when you get the message?
@jckson3059
@jckson3059 Жыл бұрын
Hey Mr long, I did everything from this video but when I try to run it, it tells me that it could not find the file
@MrLongITandCAT
@MrLongITandCAT Жыл бұрын
Are you sure your database is in the correct folder. If you are using Delphi 10.4 or Delphi 11 then make sure the database is in the debug folder of your project folder.
@jckson3059
@jckson3059 Жыл бұрын
@@MrLongITandCAT how do I put it in the debug folder?
@emcicco
@emcicco 2 жыл бұрын
Is it possible to insert the connections string in an ini file?
@Zipher7
@Zipher7 2 жыл бұрын
Yes, just load the INI file before opening the connection and place it within the connectionstring := ini.readstring('adostring'); or how ever its called sorry forgot.
@kaelinkesavjee2298
@kaelinkesavjee2298 Жыл бұрын
Hello mr long i have connected the database dynamically but im getting an Access violation adress error. The error is this line of code 'tblCD.connction := conCD;' thats the line of code it shows is the issuse when i run it through the debug, please help. Thank you
@MrLongITandCAT
@MrLongITandCAT Жыл бұрын
Check that your database is in the correct location. Which version of Delphi are you using?
@kaelinkesavjee2298
@kaelinkesavjee2298 Жыл бұрын
@@MrLongITandCAT Hello mr long i have figured out what the issue is. i didnt add a owner to the second table that i created. Thank you for your help and guided video as it was very helpful
@jaydenwilliams6408
@jaydenwilliams6408 3 ай бұрын
Im getting a 'argument out of range' error. I know the problem is with the datasource not showing up but i dont know how to correct it
@MrLongITandCAT
@MrLongITandCAT 3 ай бұрын
Have you used the create command with your TDataSource?
@Holy777-j7i
@Holy777-j7i 23 күн бұрын
2024 anyone 😭
@confuzzledrage9648
@confuzzledrage9648 Жыл бұрын
14:19
@fleqq1827
@fleqq1827 4 ай бұрын
I get an access violation error sir
@MrLongITandCAT
@MrLongITandCAT 4 ай бұрын
Can you tell which part of the code it is giving the error for?
@fleqq1827
@fleqq1827 4 ай бұрын
@@MrLongITandCAT it's alright sir I found out why it happened and fixed it
@Дубровский-ч4с
@Дубровский-ч4с 2 жыл бұрын
Лучше бы на компонентах понятнее
@nguyenquangminh3464
@nguyenquangminh3464 2 жыл бұрын
so touching for an excellent video
@namlengoc9844
@namlengoc9844 2 жыл бұрын
so touching for an excellent video
Databases in Delphi - Extracting data from a database table
15:24
Mr Long Education - IT & CAT
Рет қаралды 29 М.
Databases in Delphi - Connecting and Data Modules
13:31
Mr Long Education - IT & CAT
Рет қаралды 122 М.
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 275 #shorts
00:29
Human vs Jet Engine
00:19
MrBeast
Рет қаралды 195 МЛН
СОБАКА ВЕРНУЛА ТАБАЛАПКИ😱#shorts
00:25
INNA SERG
Рет қаралды 3,3 МЛН
Кто круче, как думаешь?
00:44
МЯТНАЯ ФАНТА
Рет қаралды 1,2 МЛН
Databases in Delphi -  Searching for multiple records in a database table
8:53
Mr Long Education - IT & CAT
Рет қаралды 19 М.
Editing Databases in Delphi - Editing a current record
16:22
Mr Long Education - IT & CAT
Рет қаралды 25 М.
Delphi Database Connection Full Tutorial
19:58
DJ Oamen
Рет қаралды 8 М.
7 Database Design Mistakes to Avoid (With Solutions)
11:29
Database Star
Рет қаралды 84 М.
Writing My Own Database From Scratch
42:00
Tony Saro
Рет қаралды 253 М.
Editing Databases in Delphi - Inserting a new record
15:42
Mr Long Education - IT & CAT
Рет қаралды 41 М.
01 Connecting Delphi Form to Access Database
7:04
Gwenlo Information Technology
Рет қаралды 6 М.
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 275 #shorts
00:29