Hi, ich habe in meiner SQL-Anweisung für den DbCommandSetDataProvider durch “Join” identische Feldnamen die dann durch einen Prefix eindeutig gemacht werden:
SQL (Beispiel, stark gekürzt!):
SELECT
invoice.billto_city,
invoice.billto_country,
invoice.billto_fax,
invoice.billto_line1,
invoice.billto_line2,
invoice.billto_line3,
accountid.name AS [accountid.name],
accountid.fax AS [accountid.fax],
accountid.accountnumber AS [accountid.accountnumber],
accountid.address1_country AS [accountid.address1_country],
accountid.address1_postofficebox AS [accountid.address1_postofficebox]
FROM invoice
LEFT JOIN (SELECT accountid, createdby, emailaddress3, emailaddress2, emailaddress1, name, fax, accountnumber, address1_country, address1_postofficebox, address1_city, address1_stateorprovince, address1_postalcode, address1_line1, address1_line2, address1_line3, new_umsatzsteueridnummer FROM account) accountid ON accountid.accountid = invoice.accountid
WHERE invoiceid=@invoiceid
Während der Designer alles ohne Fehler anzeigt, kommt es in der Vorschau/Export zum Fehler:
Wird JOIN vom DbCommandSetDataProvider nicht unterstützt?