Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

where should I start #40

Open
FriNagy opened this issue Sep 30, 2021 · 2 comments
Open

where should I start #40

FriNagy opened this issue Sep 30, 2021 · 2 comments

Comments

@FriNagy
Copy link

FriNagy commented Sep 30, 2021

Hallo,
I will write one simple C or C++ prog with MS Visual Studio 2019,

connect to db2
execute a sql statement
write the result to console

where should I start?

@kdrodger
Copy link
Member

kdrodger commented Oct 1, 2021

I'd suggest starting with the C/C++ application development documentation in our Knowledge Center.
https://www.ibm.com/support/producthub/db2/docs/content/SSEPGG_11.5.0/com.ibm.db2.luw.apdv.embed.doc/doc/c0005909.html

The C++ README in the samples should also be useful.
https://github.com/IBM/db2-samples/blob/master/cpp/README

A relatively simple example with just connects and disconnects from a DB is https://github.com/IBM/db2-samples/blob/master/cpp/dbconn.sqC .

As a next level example, https://github.com/IBM/db2-samples/blob/master/cpp/tbsel.sqC executes some simple table operations.

Hope that helps.

@FriNagy
Copy link
Author

FriNagy commented Oct 1, 2021

Thanks for your answer,

I try it but without success

my steps:
download the examples

start Develeloper Command Prompt for VS 2019
change to: "...repos\db2-samples\cpp"
start: nmake dbconn
nmake will start: bldapp dbconn sample
but bldapp don't exit

I will start with simple projekt file (.sln)
where can we find one easy demo project for VS 2019

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants