Hi,
when I try to use a TMsLoader the SQL server sends back an error:
"table/view either does not exist or contains errors"
This happens on permanent and temporary tables.
Delphi version is D2007 and MSSQL is 2008 R2.
TMsLoader causes error
-
jmuehlenhoff
- Posts: 36
- Joined: Fri 30 Apr 2010 11:25
SDAC version is 6.1.4.
I have to correct myself. It does work on permanent tables, but doesn't work on temporary ones.
I have one TMSConnection, one TMSQuery and one TMSLoader on the form.
So both query and loader have the same connection.
The query has this SQL code:
The loader has its TableName set to: #TMP_ADR
Then the only Delphi code I run is:
I have to correct myself. It does work on permanent tables, but doesn't work on temporary ones.
I have one TMSConnection, one TMSQuery and one TMSLoader on the form.
So both query and loader have the same connection.
The query has this SQL code:
Code: Select all
SELECT TOP 0 * INTO #TMP_ADR FROM ADRThen the only Delphi code I run is:
Code: Select all
MSQuery1.ExecSQL;
MSLoader1.LoadFromDataSet(SourceDataSet);