|
-
November 22nd, 2011, 07:33 PM
#1
Use VC 2008 with SQL Server 2008?
Hi,
I want to write a VC 2008(MFC) app to create a SQL Server database, then create a data table inside it, and then add some records to the table. I am using SQL Server 2008. I want to know which method is the best? ADO, OLE-DB, ODBC, DAO, or any other methods? Which method is recommended by Microsoft?
Thanks
-
November 23rd, 2011, 02:07 AM
#2
Re: Use VC 2008 with SQL Server 2008?
I tried to use DAO to access SQL Server 2008 but without success.
ADO works good. note that you should use SQLNCLI10 provider, not SQLOLEDB.
And I'm sure OLE-DB and ODBC will work too.
Victor Nijegorodov
-
November 23rd, 2011, 08:06 AM
#3
Re: Use VC 2008 with SQL Server 2008?
I use ODBC. It works the same as it always has.
-
November 23rd, 2011, 08:36 AM
#4
Re: Use VC 2008 with SQL Server 2008?
you can also use the native driver
http://msdn.microsoft.com/en-us/library/ms131291.aspx
so there are no external dependencies
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
|