title: Creating new database using UniDAC
body: <p>I have been struggling with a function that allows users to create a new db for my apps
  It has to be a universal function as some use MS Access, some SQLite and others MySQL</p>
  
  <p>I have spend hours looking in the supplied demo without finding anything of use to me</p>
  
  <p>What I want is to be able to do is to create a new db given the parameters for: Provider, Server, Port, User, Password, DB name (or filename)</p>
  
  <p>I have the following function for creating MS Access
  But it doesn't do the trick.</p>
  
  <pre><code>Calling it by   SQLConfigDataSource(0, 1, 'Microsoft Access Driver (*.mdb)','CREATE_DB="' + DatabaseName + '"')
  
  Function SQLConfigDataSource(hwndParent: Integer; fRequest: Integer;
    lpszDriverString: string; lpszAttributes: string): Integer; stdcall;
  var
    func : TSQLConfigDataSource;
    ODBCHModule: HMODULE;
  begin
    ODBCHModule := LoadLibrary('odbccp32.dll');
    if ODBCHModule = 0 then
      raise Exception.Create(SysErrorMessage(GetLastError));
    func :=  GetProcAddress(ODBCHModule,PChar('SQLConfigDataSource'));
    if @func = nil then
      raise Exception.Create('Error Getting adress for SQLConfigDataSource' + SysErrorMessage(GetLastError));
  
    Result := func(hwndParent, fRequest, lpszDriverString, lpszAttributes);
    FreeLibrary(ODBCHModule);
  end;
  </code></pre>