JohnEfford
Programmer
I have the following connection string in VB which works OK.
Cn.ConnectionString = "Data Source=Fops;Location=Fops1"
I want my users to be able to be able to query the the Parvasive db from within SQL server (version 7), they need to have access two tables stored on both db systems. I have tried the following two methods;
Which returns the error:
or by setting up a link on the server
Which gives the following error.
Cn.ConnectionString = "Data Source=Fops;Location=Fops1"
I want my users to be able to be able to query the the Parvasive db from within SQL server (version 7), they need to have access two tables stored on both db systems. I have tried the following two methods;
Code:
Select * From openrowset('PervasiveOLEDB','Provider=PervasiveOLEDB;Data Source=Fops;Location=Fops1','Select * From Order_Header')
Which returns the error:
Code:
Server: Msg 7303, Level 16, State 2, Line 1
Could not initialize data source object of OLE DB provider 'PervasiveOLEDB'.
[OLE/DB provider returned message: Errors occurred]
[OLE/DB provider returned message: Mode, Protection Level, or an unknown parameter has been set (incorrectly) in the connection string]
or by setting up a link on the server
Code:
EXEC sp_addlinkedserver
@server = 'FOPS1',
@srvproduct = 'Pervasive',
@provider = 'PervasiveOLEDB',
@datasrc = 'FOPS'
Select * from openquery(Fops1,'Select * from Order_Header')
Which gives the following error.
Code:
Server: Msg 7413, Level 16, State 2, Line 1
Could not perform a Windows NT authenticated login because delegation is not available.
[code]
I have seen a post for doing this using an ODBC connection but I wold prefer to use OLE DB as pervasives documentation states that this is the faster of the two access methods.
Any Comments appreciated.