Click here to Skip to main content
16,005,682 members
Home / Discussions / Database
   

Database

 
GeneralRe: inserting in CLOB > 4K using ADO ( C++) Pin
3-Jul-01 11:51
suss3-Jul-01 11:51 
GeneralAsync Queries + ADO Pin
Mukesh27-Jun-01 19:43
Mukesh27-Jun-01 19:43 
GeneralOld DAO to ADO Pin
Tim Fronczek26-Jun-01 11:40
Tim Fronczek26-Jun-01 11:40 
Generaldatabase in embedded visual c++ Pin
26-Jun-01 3:40
suss26-Jun-01 3:40 
GeneralPaging Implementation in ADODataReader Pin
26-Jun-01 0:08
suss26-Jun-01 0:08 
GeneralAdo/MFC DB Classes Pin
Aky25-Jun-01 19:44
Aky25-Jun-01 19:44 
GeneralDatabase connection and stored procedure Pin
Bharat Gadhia25-Jun-01 9:26
Bharat Gadhia25-Jun-01 9:26 
GeneralRe: Database connection and stored procedure Pin
25-Jun-01 10:02
suss25-Jun-01 10:02 
I've just recently started programming for SQL Server as well. Carlos Antollini's "A Set of Database Classes" article (found under General/Database/ADO) has been very useful to me. Most of it you are probably familiar with already. The key change needed to make it work for SQL Server is the connect string.

strConn = _T("Trusted_Connection=yes;Driver={SQL Server};Server=MyServer; Database=MyDatabase;")

If you have your SQL Server set to use Windows Authentication set Trusted_Connection=yes, otherwise set it to 'no' and send username and password information with the Open().

When opening the Recordset if the options flag is set to other than an OpenQuery of OpenTable, your query will be treated as a call to a stored procedure. None of my work yet has involved stored procedures, so other than telling you the class can handle them there is not much help I can give you there.

GeneralRe: Database connection and stored procedure Pin
Carlos Antollini25-Jun-01 15:21
Carlos Antollini25-Jun-01 15:21 
GeneralSchedule Backup for SQL Database Pin
Aviad25-Jun-01 2:15
Aviad25-Jun-01 2:15 
GeneralADO recordset sort property Pin
23-Jun-01 7:11
suss23-Jun-01 7:11 
QuestionHow to create a File DSN for SQL Server? Pin
22-Jun-01 22:57
suss22-Jun-01 22:57 
GeneralMaxRecords property not working... Pin
Pete Bassett21-Jun-01 4:46
Pete Bassett21-Jun-01 4:46 
GeneralRe: MaxRecords property not working... Pin
Pete Bassett21-Jun-01 22:23
Pete Bassett21-Jun-01 22:23 
GeneralRe: MaxRecords property not working... Pin
CodeGuy22-Jun-01 1:59
CodeGuy22-Jun-01 1:59 
GeneralInstalling MDAC V2.6 Pin
jerry0davis21-Jun-01 3:51
jerry0davis21-Jun-01 3:51 
GeneralRe: Installing MDAC V2.6 Pin
CodeGuy22-Jun-01 2:10
CodeGuy22-Jun-01 2:10 
QuestionHow can get data more faster from the remoet host!!! Pin
20-Jun-01 23:17
suss20-Jun-01 23:17 
AnswerRe: How can get data more faster from the remoet host!!! Pin
21-Jun-01 13:03
suss21-Jun-01 13:03 
GeneralThanks a lot !! Pin
21-Jun-01 15:37
suss21-Jun-01 15:37 
GeneralSQLNet Pin
20-Jun-01 20:02
suss20-Jun-01 20:02 
GeneralRe: SQLNet Pin
3-Jul-01 11:50
suss3-Jul-01 11:50 
GeneralADOCE w/ Visual C++ Pin
15-Jun-01 6:24
suss15-Jun-01 6:24 
GeneralRe: ADOCE w/ Visual C++ Pin
Carlos Antollini15-Jun-01 6:43
Carlos Antollini15-Jun-01 6:43 
GeneralADO Version Pin
ernst.maurer14-Jun-01 20:04
ernst.maurer14-Jun-01 20:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.