Re: SQL & C++



Since you are using VC6 you are not going to have a DataSet and DataAdapter
since these are managed code concepts; you can use one of three options:

ODBC
OLE-DB
ADO (using the SQL Server OLE DB provider)

Depending on what you want to do and what you feel comfortable with you can
use one of these to connect to SQL Server, including SQL Server 2005. On
http://msdn.microsoft.com you will find samples for each of these
technologies to use with SQL Server.

I have no idea if VC 6.0 is faster then VC 2005 (8.0), in general the
compilers get faster because of better optimization, however they also stuff
more stuff in libraries, so it depends on what you use. Plain C/C++ my guess
will be faster.

GertD@xxxxxxxxxx

"E.R." <E.R.@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:419788B6-5B96-4C6D-BC66-561A79CAB2D6@xxxxxxxxxxxxxxxx
For some reason i want to use visual c++ 6.0 , and i need to connect to
sql
server! (most probably 2005)

can this be done? if yes please provide me with a sample on how to connect
(e.g. how to create connection, data adapter , data set.... , the whole
deal)

thank you in advance, i really appreciate it.

by the way, in an unrelated matter, is visual c++ 6.0 faster than visual
c++
8 (.net 2005)?

Regards,




.



Relevant Pages

  • Re: unable to build sampprov (sample OLE provider) in MDAC 2.8 SDK
    ... then you either need to find include files for VC6 - or get Visual ... when the MDAC was still in development. ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Prev by Date: ...
    (microsoft.public.data.oledb)
  • ORM to recommend ?
    ... We're looking at O/R mapping technologies for being used between our C++ ... application and SQL Server. ... We're developping on VC6. ...
    (microsoft.public.sqlserver.clients)
  • ORM to recommend ?
    ... We're looking at O/R mapping technologies for being used between our C++ ... application and SQL Server. ... We're developping on VC6. ...
    (microsoft.public.sqlserver.connect)
  • using "Insert Into..." with dataAdapter Insert Command?
    ... dataset table in my vb.net app using a dataAdapter. ... Dim Parm As New SqlParameter ... data to my sql server table from a dataset table (without ...
    (microsoft.public.dotnet.languages.vb)
  • Re: using "Insert Into..." with dataAdapter Insert Command?
    ... > I want to load data to a table in Sql Server from a ... > dataset table in my vb.net app using a dataAdapter. ... > Sql Command object without the dataAdapter to insert All ... > data to my sql server table from a dataset table (without ...
    (microsoft.public.dotnet.languages.vb)

Loading