Results 1 to 5 of 5

Thread: ADO using Terminal Server

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2002
    Posts
    86

    ADO using Terminal Server

    I have a VB app that I have installed on a terminal server using the P&D wizard. When it tries to select data from a VFP table I get the following RTE (-2147467259) Data Source Name not found and no default driver specified. I have MDAC 2.8 installed on this Windows 2000 server. It works fine on any other PC. Can someone shed any light on this?

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709
    First, when you installed your program were you in "Install Mode" on the Terminal server?
    Second, can you post you connection code and the code in question?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Nov 2002
    Posts
    86
    VB Code:
    1. Set Cnn1 = New ADODB.Connection
    2. Cnn1.ConnectionString = "DSN=Visual FoxPro Tables;UID=;PWD=;SourceDB=r:\time;SourceType=DBF;Exclusive=No;BackgroundFetch=Yes;Collate=Machine;Null=Yes;Deleted=Yes;"
    3. Cnn1.Open
    4. Set rstEmployee = New ADODB.Recordset
    5. rstEmployee.Open "select * from employee where mainmenu order by lastname;", Cnn1, adOpenStatic, adLockReadOnly

    Yes it was in install mode.

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709
    I think it has to do with the DSN on the system. Is "DSN=Visual
    FoxPro Tables" a File, Machine Specific, or User DSN?
    Does your TServer have the FoxPro runtime files? You can tell if
    there is an entry in the ODBC for "Visual FoxPro Driver"?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5
    New Member
    Join Date
    Apr 2004
    Posts
    7
    Check control panel/administrative tools/data sources. I would bet that the "Visual FoxPro Tables" DSN is a user dsn and not a system DSN. Copy the settings over and it should work.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width