Patch level : 12.00 1262
Files correlati : Commento : Invio postino con ODBC
This commit is contained in:
parent
9acc3d7fb9
commit
73422ad9aa
@ -630,10 +630,15 @@ HIDDEN void odbc_send(const TString & dsn, int num, TAuto_token_string & elab_fi
|
||||
int nfields = wrk.fields();
|
||||
const TString name = table_name(curr_file_num);
|
||||
|
||||
TString check_statement = "SELECT TOP 1 * FROM [";
|
||||
/*TString check_statement = "SELECT TOP 1 * FROM [";
|
||||
|
||||
check_statement << name << "];";*/
|
||||
|
||||
check_statement << name << "];";
|
||||
if (recset.exec(check_statement) < 0)
|
||||
TString check_statement = "SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'dbo' AND TABLE_NAME = '";
|
||||
|
||||
check_statement << name << "';";
|
||||
int err = recset.exec(check_statement);
|
||||
if (err <= 0)
|
||||
{
|
||||
create_table(recset, num, name, wrk);
|
||||
popolate_table(recset, num, name, wrk);
|
||||
|
Loading…
x
Reference in New Issue
Block a user