Click here to Skip to main content
15,925,181 members
Home / Discussions / Database
   

Database

 
GeneralRe: Finding duplicate records Pin
Wanderley M17-Oct-01 22:57
Wanderley M17-Oct-01 22:57 
GeneralRe: Finding duplicate records Pin
James Spibey18-Oct-01 4:10
James Spibey18-Oct-01 4:10 
GeneralRe: Finding duplicate records Pin
Wanderley M18-Oct-01 9:07
Wanderley M18-Oct-01 9:07 
GeneralRe: Finding duplicate records Pin
James Spibey18-Oct-01 10:43
James Spibey18-Oct-01 10:43 
GeneralRe: Finding duplicate records Pin
Wanderley M18-Oct-01 11:53
Wanderley M18-Oct-01 11:53 
GeneralRe: Finding duplicate records Pin
James Spibey18-Oct-01 22:22
James Spibey18-Oct-01 22:22 
GeneralQuery to retrive table structure from sybase databae Pin
Renu17-Oct-01 21:29
Renu17-Oct-01 21:29 
GeneralCreating dBase files (tables) with ADO Pin
17-Oct-01 2:53
suss17-Oct-01 2:53 
Does anybody know, if it is possible to create a new dBase file using ADO? During my tests I had to learn that my provider does not support creation of this file. Is there any other provider? Sample code below:

Using the connection string to create an Access-file is no problem (see strcnn).

Thanks.

#include "stdafx.h"

#import "c:\winnt\system32\dllcache\\msadox.dll" no_namespace
#import "c:\winnt\system32\dllcache\\msado15.dll"

#include "iostream.h"
#include "stdio.h"
#include "conio.h"

void CreateDatabaseX(void);

int main(int argc, char* argv[])
{
printf("Start...\n");

HRESULT hr = S_OK;

hr = ::CoInitialize(NULL);

if(SUCCEEDED(hr))
{
CreateDatabaseX();

printf("\nPress any key to continue...");
getch();

::CoUninitialize();
}

return 0;
}

void CreateDatabaseX()
{
HRESULT hr = S_OK;

_CatalogPtr m_pCatalog = NULL;


//Set ActiveConnection of Catalog to this string
//_bstr_t strcnn("Provider=Microsoft.JET.OLEDB.4.0;"
// "Data source = c:\\Projekte_test\\create\\new.mdb");

_bstr_t strcnn("DSN=dBASE-files");

try
{
hr = m_pCatalog.CreateInstance(__uuidof (Catalog));

m_pCatalog->Create(strcnn);
}

catch(_com_error &e)
{
// Notify the user of errors if any.
_bstr_t bstrSource(e.Source());
_bstr_t bstrDescription(e.Description());

printf("\nSource\t\t: %s \nDescription\t: %s \n ",(LPCSTR)bstrSource,(LPCSTR)bstrDescription);
}

catch(...)
{
cout << "Error occured in include files...."<< endl;
}
}
GeneralRe: Creating dBase files (tables) with ADO Pin
Rashid Thadha20-Oct-01 12:39
Rashid Thadha20-Oct-01 12:39 
GeneralRe: Creating dBase files (tables) with ADO Pin
Mike Eriksson5-Nov-01 2:23
Mike Eriksson5-Nov-01 2:23 
GeneralRe: Creating dBase files (tables) with ADO Pin
DonBush7-Nov-03 3:13
DonBush7-Nov-03 3:13 
GeneralOrdering of rows Pin
16-Oct-01 18:14
suss16-Oct-01 18:14 
GeneralRe: Ordering of rows Pin
Rashid Thadha17-Oct-01 12:29
Rashid Thadha17-Oct-01 12:29 
Generaldb fetch : issue accessing table with more than 255 columns Pin
kshathrya13-Oct-01 8:01
kshathrya13-Oct-01 8:01 
GeneralADO events Pin
11-Oct-01 22:07
suss11-Oct-01 22:07 
GeneralRe: ADO events Pin
Rashid Thadha11-Oct-01 22:42
Rashid Thadha11-Oct-01 22:42 
GeneralOpen Excel file trough ODBC (Microsoft Excel Driver) Pin
10-Oct-01 1:53
suss10-Oct-01 1:53 
GeneralSkipping recordset in DTS Pin
8-Oct-01 16:30
suss8-Oct-01 16:30 
GeneralExecuting SQL scripts from file Pin
JonB5-Oct-01 5:30
JonB5-Oct-01 5:30 
GeneralUpdating dBase files with ADO Pin
3-Oct-01 23:34
suss3-Oct-01 23:34 
GeneralRe: Updating dBase files with ADO Pin
17-Oct-01 2:37
suss17-Oct-01 2:37 
Generaldeprecation of the Jet engine Pin
Steen Krogsgaard3-Oct-01 21:28
Steen Krogsgaard3-Oct-01 21:28 
GeneralConnectionstring to MSDE "local not working" Pin
Bigge3-Oct-01 2:26
Bigge3-Oct-01 2:26 
GeneralRe: Connectionstring to MSDE "local not working" Pin
Bigge4-Oct-01 13:27
Bigge4-Oct-01 13:27 
GeneralRe: Connectionstring to MSDE "local not working" Pin
Rashid Thadha6-Oct-01 10:44
Rashid Thadha6-Oct-01 10:44 

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.