c++ - Add, save data from MFC App(Visual Studio 2015) to SQL Server -


i beginner in using visual studio. i've had learnt on displaying data sql server in asp.net web application. want display data mfc application(project type). don't know how start make button functioning save text database. compared asp.net, offers toolbox grid view display data not in mfc app. have .rc file being designed interface. got sql server management studio use. take @ https://www.tutorialspoint.com/mfc/mfc_database_classes.htm guidance not complete. need step step , complete tutorial on how add, save data sql server using mfc application @ visual studio 2015.

create class in mfc application of type odbc customer. right click on "header files" folder in solution explorer , click "add class". select option "mfc" , select "mfc odbc customer". asked select data source. assuming haven't created data source till now, click "new". select database driver type , type location want save data source. after saving, asked names of server wish connect , description of data source. after clicking "next", asked authentication. prefer "sql server authentication using login id". provide username , password. after "next", can select database server or attach database server. click "next" , moved optional selections. fine let them , click "finish". have class used add,read or delete data in database.


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -