-
December 4th, 2009, 02:28 AM
#1
database on network and MFC aplication
hai friend,,,,, how are you all??
usually i build MFC aplication which the database and my aplication on same computer not on a network.
i want to built a MFC aplication with database support. but database on the network, not on computer where aplication will put.
1. how can i built it?
2. i saw 3 option to built MFC aplication, they are : single document, multiple document and dialog base. if i use "dialog base" can i built my aplication? or any suggestion??
thanks for your help...
-
December 4th, 2009, 04:12 AM
#2
Re: database on network and MFC aplication
The type of application (SDI/MDI/Dialog/...) has nothing to do with the place of database.
If your database is in some other PC on the network - just pass the correct network path name for it.
Victor Nijegorodov
-
December 4th, 2009, 06:31 AM
#3
Re: database on network and MFC aplication
...and it will depend on the target database type. Say MS Access is a bad choice for distributed application, while MS SQL Server, Oracle, MySQL, etc. are okay.
Best regards,
Igor
-
December 12th, 2009, 01:42 AM
#4
Re: database on network and MFC aplication
i use ADO Data COntrol. where can i set the path of database server? or should i just make new ODBC which connect to that database server?
thanks before,,,
-
December 14th, 2009, 03:59 AM
#5
Re: database on network and MFC aplication
Well. I don't know what "ADO Data COntrol" is. However, AFAIK, ADO must open a connection to a database to use it.
To open a connection the connection string must be correctly set; the exact connection string parameters depend on used DBMS, Provider, and many other things. See the connection string examples here
Victor Nijegorodov
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|