Linking a pervasive server to MS SQL server

I have a Pervasive SQL server that hosts our accounting software and I want to link it to a SQL server so that I can use SQL to generate some reports and pull some data
without taxing the pervasive server any more than it already is.  So far I have been able to get the server to link and connect and I can see the tables and databases on the pervasive server but I am unable to select anything from the linked server.  I
have a linked server set to access the demodata database that pervasive sets up automatically to test and it is named pvswdemodata and when I execute this command I get two errors.  The query I am trying to run is  
select * from pvswdemodata.demodata..course
The errors I am getting are  
Msg 7399, Level 16, State 1, Line 1
The OLE DB provider "MSDASQL" for linked server "pvswdemodata" reported an error.
The provider did not give any information about the error.
Msg 7312, Level 16, State 1, Line 1
Invalid use of schema or catalog for OLE DB provider "MSDASQL" for linked server "pvswdemodata".
A four-part name was supplied, but the provider does not expose the necessary interfaces to use a catalog or schema.
Any help would be really appreciated.  Oh and I am running
MS SQL Express 2012 on a Win 8.1 machine connecting to a Pervasive v11 server running win server 2008 R2 both are 64-bit (os and SQL/Pervasive with a 64-bit ODBC driver)

Hello,
Please try the following code:
DECLARE
@QUERY nvarchar(4000)
DECLARE
@TSQL nvarchar(4000)
SET
@TSQL =
'select * from demodata..course'
SET
@QUERY =
'SELECT * FROM OPENQUERY(pvswdemodata, @TSQL)'
EXEC
sp_executesql @QUERY
Hope this helps.
Regards,
Alberto Morillo
SQLCoffee.com

Similar Messages

  • Oracle Linked Server problem in SQL Server

    I'm using the MS OLE DB Provider for Oracle in my SQL Server linking an Oracle 9i server to the SQL Server 2000 server. I get the following error when I try to execute a query thru the SQL Server Query Analyzer:
    [OLE/DB Provider 'MSDAORA' IOpenRowset::OpenRowset returned 0x80004005:   ]
    I can however define an ODBC connection and use DTS to get to the Oracle database just fine from the SQL Server machine. I need the linked server query to work though since I'll need it for a new application.
    Any help is very much appreciated.
    Thanks.
    Anja

    I guess I'll answer my own question. I found that the setting SQL Query Analyzer was set to "Implicit Transactions" in the current connection properties. When I turned that off the query ran fine

  • Linked Server in MS SQL Server 7.0

    I created a linked server in MS SQL Server 7.0. DB Provider is OLE DB Provider for Oracle 8.1.7. All is working, but when I try to make select, insert or update from the Oracle table which conains data time NUMERIC (with size and scale 0) OLE DB Provider returns the Error message:
    OLE DB provider 'OraOLEDB.Oracle' supplied invalid metadata for column %COLUMN_NAME%. The data type is not supported.
    I've already downloaded and insatalled the new version of OLE DB Provider, but the problem still present.

    Did you solve your Problem? I'm having exact same problem in my application. Can you or someone else help me?
    Thanx
    Bye Marco

  • Unable to install SQL Server CE Server Tool on SQL Server 2000 SP 4

    Hi
    I am facing problem with installing SQL Server CE Server Tool,
    I have installed SQL Server 2000 SP 4 which is working fine.
    While i am running Setup of "SQL Server 2000 Windows CE Edition version 2.0" ,Developer tools installed successfully but incase of SQL Server CE Server Tool i am getting following Error
    "SQL Server CE Tool is compatible only with SQL Server 2000 Service pack 1 and higher.
    When you install SQL Server CE Server Tools on a computer running both IIS and SQL Server 2000 , ensure the installer for SQL Server CE Server Tools corresponds To the version of SQL Server 2000."
    I am sure that i have running SQL Server 2000 SP 4 (MSDE also SP 4) , IIS (Version 5.1) is also working fine , and one more thing i am trying to install SQL Server CE Server Tool setup is "sqlce20sql2ksp4.exe" (Which i downloaded from microsoft site.).Here all the requirement is fulfill but i dont know what is going to wrong.
    I wasted my 2 days behind solving this issue , now i am tiered ,So please any one have solution for this issue.
    Help me please.
    Thanks in advance.
    Regards,
    Ketan Gohil
    ([email protected],[email protected],[email protected])

    Refer this link,
    http://social.technet.microsoft.com/Forums/sqlserver/en-US/a8591747-689d-4a2e-b301-86094daf6cec/unable-to-install-sql-server-ce-server-tool-on-sql-server-2000-sp-4?forum=sqlce
    http://www.vbforums.com/showthread.php?472623-Compatible-SQL-Server-CE-installer
    Regards, RSingh

  • Connect Oracle 11g (64-bit windows server) to Microsoft SQL Server 2000

    Hi all,
    I am trying to connect:
    Oracle 11g (64-bit windows server) to Microsoft SQL Server 2000 (32-bit) on a different machine.
    1) I have create an ODBC connection (called:GALAXY) which connects.
    2) created a init.ora called it initgalaxy.ora in $oracle_home\hs\admin
    HS_FDS_CONNECT_INFO = GALAXY
    HS_FDS_TRACE_LEVEL = on
    3) modified the listener.ora file as below
    # listener.ora Network Configuration File: E:\Ora11g\product\11.1.0\db_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = BIU01)(PORT = 1521))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = extproc0))
    SID_LIST_LISTENER=
    (SID_LIST=
    (SID_DESC =
    (GLOBAL_DBNAME = HEX.BIU01.kingsch.nhs.uk)
    (ORACLE_HOME = E:\Ora11g\product\11.1.0\db_1)
    (SID_NAME = HEX)
    (SID_DESC=
    (SID_NAME = galaxy)
    (ORACLE_HOME = E:\Ora11g\product\11.1.0\db_1)
    (PROGRAM = dg4odbc)
    (SID_DESC =
    (PROGRAM = EXTPROC)
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = E:\Ora11g\product\11.1.0\db_1)
    4) modified the tnsnames.ora file is as follows
    GALAXY =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = BIU01.kingsch.nhs.uk)(PORT = 1521))
    (CONNECT_DATA =
    (SID = galaxy)
    (HS = OK)
    HEX =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = BIU01.kingsch.nhs.uk)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = HEX)
    5) restarted the listener
    6) created a public database connect
    create PUBLIC DATABASE LINK "GALAXY" CONNECT TO "USER" IDENTIFIED by "PWD" USING 'galaxy';
    This is the error message I can sell in $oracle_home\hs\admin\trace
    Oracle Corporation --- MONDAY APR 27 2009 11:54:18.370
    Heterogeneous Agent Release
    11.1.0.6.0
    Oracle Corporation --- MONDAY APR 27 2009 11:54:18.370
    Version 11.1.0.6.0
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "ON"
    HOSGIP for "HS_OPEN_CURSORS" returned "50"
    HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
    HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
    HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returned ""HS_TRANSACTION_LOG""
    HOSGIP for "HS_FDS_TIMESTAMP_AS_DATE" returned "TRUE"
    HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
    HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
    HOSGIP for "HS_FDS_RESULT_SET_SUPPORT" returned "FALSE"
    HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
    HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
    using galaxy_live as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    ##>Connect Parameters (len=42)<##
    ## DSN=GALAXY;
    #! UID=galaxy_live;
    #! PWD=*
    hgocont, line 1890: calling SqlDriverConnect got sqlstate IM002
    when I try to test the database link, I get this error:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Microsoft][ODBC Drive Manager] Data source name not found and no default driver specified
    ORA-02063: preceding 2 lines from GALAXY
    28500.00000- "connection from ORACLE to ad non-Oracle system returned this message:"
    *Cause: The cause is explained in the forwarded message.
    *Action: See the non-Oracle system's documentation of the forwarded message.
    vendor code 28500
    Edited by: user7336435 on 27-Apr-2009 05:56

    11.2 is beta at the moment. There is no official release date so far.
    As DG4ODBC is independant from the Oracle database (or the target database) you can use a 3 machine model:
    On the first machine you have your Oracle database, on a second machine running 32bit Windows you can install DG4ODBC and on the 3rd machine you can run your foreign database.
    If the SQL Server 2k is installed on a 32bit Windows machine, then you can also install DG4ODBC on this machine.
    In general the connection from an Oracle database to the DG4ODBC machine is done using SDQL*Net. The listener responsible for DG4ODBC will then load the DG4ODBC executable which will connect to the SQL Server using SQL Server ODBC driver.

  • Replication between Oracle Server and MS SQL Server

    Hello,
    Does anybody know of a well known or reliable software that can do data replication between Oracle Server and Microsoft SQL server.
    I suppose I can write my own version using Heterogenous Services in Oracle but I would like to know if such an automated replication between Oracle and SQL is available commercially.
    Thank you.

    Viacheslav Ostapenko wrote:
    Sorry, Aman,
    I couldn't find any info about replication to MS SQL. Is it possible at all? Could you provide link where we can read about this? It could be very interesting.Sorry Viacheslav, even I couldn't find anything for the same. I am not sure that it can be done or not, I haven't heard anyone in my contact doing so. The only place where I have seen Streams being used around me is within Oracle db only. May be someone else can help if he/she has done it.
    Aman....

  • Changes required to switch from SQL Server 2000 to SQL Server 2005?

    I'm converting a legacy app from SQL Server 2000 to SQL Server 2005.  The app is written in VB6 and utilizes CR 8 OCX.  When I invoke a report from VB I'm getting Error# 20599 Cannot open SQL server.  I redefined the ODBC DSN specifying Windows Authentication, and the SQL Server instance supports mixed mode.
    Searching for the error, I found an article that suggests I need p2sodbc8.zip, but I can't find a link to it in the Downloads area.
    Would greatly appreciate any help at all - including a link to p2sodbc8.zip if that's the likely resolution.
    Thanks in advance,
    Pete

    Hi Peter,
    As you are having issue with SDK's.
    I would suggest you to post your question in
    Business Objects SDK Application Development » [Legacy Application Development SDKs|;
    That forum is monitored by qualified technicians and you will get a faster response there. Also, all  SDK queries remain in one place and thus can be easily searched in one place.
    Thank you for your understanding,
    Shweta

  • It is compatible Obi 11g  with Windows Server  2012 and Sql Server 2012?

    Hi every
    Please help with two questions.
    1. - Obi 11g is supported on Windows Server 2012 and SQL Server 2012?
    There a compatibility matrix which mention compatibility with versions 2012?
    2. - is feasible to install Obi 11g in separate server and install weblogic on another server?
    I appreciate the prompt response
    Regards
    Pedro

    Hi Pedro,
    As of November 2012 Compatibility Matrix released by Oracle for OBI 11.1.1.x Windows 2012 and SQL Server 2012 were not supported. It was supported on 2008 Windows and SQL Server.
    We can have weblogic and OBI server's on 2 different machines. The approach is to opt software only install. the link below will give more details:
    http://obieeelegant.blogspot.com/2012/07/obiee111160-software-only-installation.html
    Let me know if this helped.
    Regards,
    Jay

  • SQL Server 2008 to SQL Server 2012

    My server crashed with SQL Server 2008 on it.  I am replacing it with a new machine with SQL Server 2012.  How do I restore my old SQL database to my new machine?

    Have a look at using Restore Header Only to look at the contents of your backup to confirm its contents. (http://technet.microsoft.com/en-us/library/ms178536.aspx)
    From this then look at the restore database here -
    http://technet.microsoft.com/en-us/library/ms186858.aspx
    From confirming the contents of your backup you will need to select the appropriate position number (from the restore header only) and link that with the File Number (from the restore)
    Thanks
    Warwick Rudd (MCM - SQL 2008 | MCT)
    (SQL Masters Consulting |
    My SQL Server Blog | Twitter)

  • Upgrade From SQL Server 2005 to SQL Server 2008 or 2012

    Hello this is a silly question but I was able to copy our old database to another hard drive and do an ATTACH to sql 2012 and it worked great now am I crazy or is this too good to be true

    Hello this is a silly question but I was able to copy our old database to another hard drive and do an ATTACH to sql 2012 and it worked great now am I crazy or is this too good to be true
    To be specific to your question.You can very well attach SQL 2005 database to SQL server 2008 and SQL server 2012.But how your application will respond to New database will be difficult to tell.
    I strongly recommend you to see below link
    Features depricated in SQL server 2012
    http://technet.microsoft.com/en-us/library/cc707782.aspx
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • Windows Server 2008 and SQL Server 2008 R2 - ?? for replication with Oracle

    Hello:
    I am running Windows Server 2008 and SQL Server 2008 R2 - 64 bit
    I need to replicate data between the SQL 2008 and Oracle 11.2 ?? with Oracle being the publisher
    I also would lile SqlPlus installed on the server.
    I need a definite answer as to what I should download from the Oracle download area. There are just so many packages and so many version I dont know what to download.
    Thanks

    Hi,
    Currently Microsoft Windows Server 2008 and SQL Server 2008 are not supported for SAP Business One.
    For detailed information about all supported platforms, we have the following link for your reference:
    www.service.sap.com/smb/sbo >product availability > supported platforms.
    Regarding the information on the service marketplace this is updated on a regular basis and provides the most up to date information regarding the supported platforms for Business One.
    Platforms not mentioned in this documentation are not supported.
    hope it helps,
    Regards,
    Ladislav
    SAP Business One Forum Team

  • What is the recommended static port range for SQL Server 2008 to SQL Server 2014 named instance?

    I want to assign a static port to SQL Server 2008 to SQL Server 2014 named instance.   Should the port be greater than 49151?  The following links give contradicting information:
    https://msdn.microsoft.com/en-us/library/ms177440(v=sql.105).aspx
    Avoid numbers greater than 49151 which Windows might select for other purposes.
    https://technet.microsoft.com/en-us/library/ms345327(v=sql.100).aspx
    Port numbers should be assigned from numbers 49152 through 65535
    Thanks..

    I would still pick a port number below the ephemeral list (dynamic port usage [41952-65535]) as it'll reduce the chances of having a port collision when SQL Server starts up.
    Also, I'd stick to lower numbers if possible (<25,000) as some firewalls skew higher port numbers to be more malicious (if heuristics are used).
    -Sean
    The views, opinions, and posts do not reflect those of my company and are solely my own. No warranty, service, or results are expressed or implied.

  • SQL SERVER 2014 Developer - SQL Server Management Studio (SSMS) - Tools in Toolbox are disabled because of bad path to DTS

    Hello all,
    after populating the Toolbox of SSMS  with the "Maintenance Plan Tasks" all task are disabled. The reason is simple a bad path to the DTS modules. The path in the Toolbox points to ...\DTSTasks\... Installation has created a path of ...\DTS\Tasks\...
    This is clearly a bug. But perhaps there is a workaround by changing something in the configuration. Any idea where to look for the responsible configuration file?
    Regards Uwe

    Hi Uwe,
    Based on my research, just as you said, the path of Maintenance Tasks in the Choose Toolbox Items dialog box points to ...\DTSTasks\..., but the actual path is...\DTS\Tasks\....I can reproduce the issue in my SQL Server 2014, SQL Server 2012 and SQL Server
    2008 R2 environments. It seems that this is a known issue. But the issue doesn’t affect the use of maintenance tasks, we can still drag the tasks to design the maintenance plan.
    If you have concern about this issue, it is my pleasure to help you to reflect your recommendation to the proper department for their consideration. Please feel free to submit your situation on our product to the following link
    https://connect.microsoft.com/SQLServer/. Your feedback is valuable for us to improve our products and increase the level of service provided.
    As to the issue that all tasks are disabled in the Toolbox of "Maintenance Plan Tasks", please make sure that you have selected the tasks in the Choose Toolbox Items dialog box. Then double-click the task in Toolbox pane or drag the task to maintenance
    design tab.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • Moving sql server 2000 to sql server 2014

    Moving sql server 2000 to sql server 2014. Could someone please give me steps to move everything from sql 2000 one server to sql 2014. I have 2 instance on sql 2000. 8 databases on each of them. On both instances we have store procedure and jobs.

    i think your SQL Server 2000 is hosted on old Windows server version so based on that you should prepare new environment for SQL Server 2014 from Win Server 2012 Sp1 and SQL Server 2014 and build your clusters then start your Migration from Old Servers to
    new servers and here below is 10 configurations outlines that you should look after carefully for any DB consolidation or migration from a server to  a server and indeed they represent unique potentials for your DB Consolidation /migration service that
    can leverage distinctly your service quality and shape you very well in front of your customers:
    1-      Backup DBs and restore DBs with ZERO down time and ZERO data loss in the same time …Awesome …!
    2-      Cloning all DB special features that are not covered by backups and restores such as :
    RCSI (Read committed snapshot isolation level using row versioning)
    Service brokers
    Encryption keys and certificates
    3-      Cloning identically all SQL logins with their mapped DB users including their passwords (if SQL authenticated logins ) and privileges on both server and DB levels .
    4-      Copying .rdl and .rds files between different versions of reporting services where backup and restore reportserver and reportservertemp DBs is not an option
    5-      Cloning all special Jobs like certain business jobs configured to perform some business stuff .
    6-      Cloning all mail profiles with their mail accounts
    7-      Cloning all Linked server + Aliases might be used inside old DB servers
    8-      Cloning some server configurations like CLR ,CPU parallelism, Replication size , Network packet size , optimize for ad hoc workloads
    9-      Cloning all Replications configurations for publishers and subscribers
    10-   Cloning all DTC configurations for both local and clustered DTC services
    Follow the below links to know the steps by the scripts:
    http://sqlserver-performance-tuning.net/?p=5262
    http://sqlserver-performance-tuning.net/?p=5359
    http://sqlserver-performance-tuning.net/?p=5398
    http://sqlserver-performance-tuning.net/?p=5415
    http://sqlserver-performance-tuning.net/?p=5458
    Mustafa EL-Masry
    Principle Database Administrator & DB Analyst
    SQL Server MCTS-MCITP
    M| +966 54 399 0968
    MostafaElmasry.Wordpress.com

  • Server 2008 with SQL server 2003 installation problem in SAP 8.8 in clint

    Hello Sir
    I want to install clint for SAP B1 8.8 and we have windows server 2008 with sql server 2005
    when i install the clint i got one error in DI API installation that licence server name and port number is not available.
    Please tell me the complete process to install 8.8. clint with which supporting software i have to install in clint machine.
    and what things i have to check in server for installation .
    Please kindly reply ASAP.
          Thanks
    Vaibhav Kothari

    Hi,
    every question / issue you should know, is descripted in the following manual, please read it and follow the installation instruction manual:
    https://websmp201.sap-ag.de/~sapidb/011000358700000150922010E.zip
    Regards Steffen

  • Difference between database features - SQL Server 2008 R2 navtive vs SQL Server 2012 with SQL Server 2008 compatibility set?

    I am investigating the impact of upgrading from SQL Server 2008 R2 to SQL Server 2012. To reduce the impact of the upgrade, I am planning to restore / create our application database onto SQL Server 2012 with compatibility level 100 (SQL Server 2008 and
    SQL Server 2008 R2).
    Are there any differences in feature support for database running in native mode on SQL Server 2008 R2 vs a database installed on SQL Server 2012 with compatibility level 100 set?

    Are there any differences in feature support for database running in native mode on SQL Server 2008 R2 vs a database installed on SQL Server 2012 with compatibility level 100 set?
    Yes there can be difference and impact there are few features deprecated in SQL Server 2012 you must be aware about that. Please see
    Deprecated Database Features in SQL Server 2012
    Deprecated SQL Server features in SQL Server 2012
    After you migrate database to 2012 please don't move ahead with production unless you have tested your application to new created database
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

Maybe you are looking for

  • Cash Journal : Business Transaction Query

    Hi Experts, does it mean that Business Transactions in cash Journal are nothing but a type of grouping? please correct me if i m going wrong. please lemme if based Cash Journal's Business Transaction, will i be able to generate a MIS/Cash Book analys

  • Passport screen freezes after a long call

    Hello, I've got my PassPort since fall october. Although I am quite happy with it, I have noticed that after a long call, say 15min or more, the screen becomes slowly responsive. It doesn't fully freeze, though it is very slow to bring back the unloc

  • I can't open OBIEE 11g url

    Hi. I can't open OBIEE 11g. After the installation of OBI I use normally. Then restart the system, OBI url don't open. Exception Unable connection to the server. Thank you in advance

  • HT1414 I AM UNABLE TO OPEN MY ITUNES STORE

    i download ios 7.0.2, till now i am unable to open itunes store on my iphone.

  • Em log file

    Does anybody know where i can find the clues to an EM log file?