Q1: How to configure linked server of SQL Server 7.0?
Q2: How to give connect parameters in ADO?
Q3: I am getting following error when try to UPDATE using linked server.
error : Server: Msg 7352, Level 16, State 1, Line 1 OLE DB provider 'OpenRDA' supplied inconsistent metadata. The object '(user generated expression)' was missing expected column 'Bmk1000'.
Q4: Need information on Writing Custom OLE DB Provider Using ATL (Article from MSDN Magazine)
Q6: How do I setup the Oracle Generic Connectivity using OpenAccess OLE DB Provider?
Q8: How to populate rowset on demand?
select * from TEST_OLE."SCHEMA".OAUSER.EMP;
select * from OPENQUERY(Test_OLE, 'select * from emp');
select * FROM OPENROWSET('MSDASQL','DSN=test_local', 'SELECT * FROM emp')
You can run an OLE DB or ADO compliant application and connect using {EXAMPLE} as the database name. Following is an excerpt from a sample VB Script:
<!-- ADO recordset object -->
<object id=rs classid="clsid:00000535-0000-0010-8000-00AA006D2EA4"></object>
<script language="VBScript">
'******************************************************** '
Open the recordset / execute the sql query
connect = "provider=DataDirect OpenAccess SDK 6.0 Provider;data source={example};
user id=abc;password=xyz;"
query = "select * from emp"
adOpenKeyset = 1
rs.Open query, connect, adOpenKeyset
</script>
error : Server: Msg 7352, Level 16, State 1, Line 1 OLE DB provider 'DataDirect OpenAccess SDK 6.0 Provider' supplied inconsistent metadata. The object '(user generated expression)' was missing expected column 'Bmk1000'.
Install MDAC 2.5 SP1 from Microsoft site on the SQL Server machine and use OPENQUERY syntax to UPDATE the database.
When Crystal adds table references to a report it creates a select statement in the form of: "SELECT * FROM table WHERE 0=1".
When Crystal adds the clause "Where 0 = 1".
DAM doesn't detect that where clause has a search condition that is always false and return empty results.
However we have a workaround that the IP can use. In ip_execute() before starting the query processing, call dam_getInfo(DAM_INFO_ORIGINAL_QUERY_STRING) to get the query string and search for the pattern "WHERE 0=1". If pattern found, return DAM_SUCCESS to indicate empty results and not do any result processing.
Please download (Generic Connectivity Using OLE DB.pdf) document for step-by-step guide on setting up Oracle generic connectivity using OpenAccess OLE DB Provider.
[Generic Connectivity Using OLEDB_FS][S1000] [9013]General error in
nvITrans_BeginT - rc = -1. Please refer to the log file for details.
ORA-02063: preceding 2 lines from EH
Please install our latest 4.7 version of OpenAccess OLEDB Provider as we do not support nested transaction in our previous version.
ADO application has to set DBPROP_ROWSET_ASYNCH property of OLE DB provider as DBPROPVAL_ASYNCH_POPULATEONDEMAND. Then ADO client side cursor won't fetch all records at a time. In ADO application please do as follows before fetching the records:
rs.Properties("Asynchronous Rowset Processing")= 32 (i.e. DBPROPVAL_ASYNCH_POPULATEONDEMAND 0x00000020L).
Connect to your application with enterprise level connectivity