Advertisement

09.08.2007 at 05:40PM PDT, ID: 22815641 | Points: 500
[x]
Attachment Details

Sp_columns_ex for InterSystems Cache linked server pulls no data

Tags: sp_columns_ex, cache
Hello Experts. . .

I'm trying to pull table and column information from across a Linked Server connection, Inter systems Cache to SQL.

sp_tables_ex 'Linked Server Name' works
sp_indexes 'Linked server Name','table_name','schema_name' also woks.
sp_primarykeys and sp_foreignkeys

sp_columns_ex  'Linked server Name','table_name','schema_name' does not pull any rows.

But in C#  
DataTable dt = connection.GetSchema("Columns", restrictions); return the colums correctly.

Why is it that sp_columns_ex does not return any rows?  

Thanks.
Start your free trial to view this solution
Question Stats
Zone: Database
Question Asked By: Sureshrr
Question Asked On: 09.08.2007
Participating Experts: 1
Points: 500
Views: 0
Translate:
Loading Advertisement...
09.08.2007 at 06:20PM PDT, ID: 19854991

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.08.2007 at 09:19PM PDT, ID: 19855706

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.10.2007 at 08:35AM PDT, ID: 19861716

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.10.2007 at 09:53AM PDT, ID: 19862308

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.10.2007 at 10:04AM PDT, ID: 19862387

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.10.2007 at 03:33PM PDT, ID: 19864794

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.14.2007 at 08:36AM PDT, ID: 19892493

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.14.2007 at 08:45AM PDT, ID: 19892578

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.14.2007 at 11:21AM PDT, ID: 19893894

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Handhelds / PDAs
  • Displays / Monitors
  • Components
  • Networking Hardware
  • Peripherals
  • Laptops/Notebooks
  • Storage
  • Servers
  • Desktops
  • New Users
  • Misc
  • Apple
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMWare
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMWare
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Community Advisor
  • Lounge
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • Community Advisor
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
09.08.2007 at 06:20PM PDT, ID: 19854991
It works fine for me.   What version of Cache and Intersystems ODBC driver are you using?

EXEC sp_columns_ex 'CACHE5_SAMPLES', 'Film', 'Cinema'

NULL      Cinema      Film      ID      4      int      10      4      0      10      0      ID      NULL      4      NULL      NULL      NULL      NO      56
NULL      Cinema      Film      Category      4      int      10      4      0      10      1      Category      NULL      4      NULL      NULL      NULL      YES      38
NULL      Cinema      Film      Length      4      int      10      4      0      10      1      Length      NULL      4      NULL      NULL      NULL      YES      38
NULL      Cinema      Film      TicketsSold      4      int      10      4      0      10      1      TicketsSold      NULL      4      NULL      NULL      NULL      YES      38
NULL      Cinema      Film      PlayingNow      -7      bit      NULL      1      0      NULL      1      PlayingNow      NULL      -7      NULL      NULL      NULL      YES      50
NULL      Cinema      Film      Description      12      varchar      300      300      NULL      NULL      1      Description      NULL      12      NULL      300      NULL      YES      39
NULL      Cinema      Film      Rating      12      varchar      50      50      NULL      NULL      1      Rating      NULL      12      NULL      50      NULL      YES      39
NULL      Cinema      Film      Title      12      varchar      50      50      NULL      NULL      0      Title      NULL      12      NULL      50      NULL      NO      39
 
09.08.2007 at 09:19PM PDT, ID: 19855706
Cache for Windows (x86-32) 2007.1.1 (Build 420.0U_SU) Tue Jul 10 2007 14:04:48 EDT

ODBC Details
Driver = C:\Program Files\Common Files\InterSystems\Cache\CacheODBC.dll
Driver Version = 2007.1.1.420.0
Data Source Name = CACHEWEB Samples
Host (IP Address) = 127.0.0.1
Port = 1972
Caché Namespace = SAMPLES
Authentication Method = 0  (Password)
User Name = _system
Description = Cache Configuration and Namespace - CACHEWEB SAMPLES
Cache ODBC Logging = No
Use Locale Decimal symbol = No
Disable Query Timeout = 0
Static Cursors Support = 0
Unicode SQLTypes = 0

The following queries pull data
EXEC sp_tables_ex 'CACHE5_SAMPLES'
EXEC sp_indexes 'CACHE5_SAMPLES', 'Film', 'Cinema'
EXEC sp_primarykeys 'CACHE5_SAMPLES', 'Film', 'Cinema'

The following query alone does not pull any rows
EXEC sp_columns_ex 'CACHE5_SAMPLES', 'Film', 'Cinema'

Thanks
 
09.10.2007 at 08:35AM PDT, ID: 19861716
Hello clockwatcher,
Can you give me  the version of Cache and Intersystems ODBC driver are you using?  
I wonder why it is not running for me when it is for you.

Thanks.
 
09.10.2007 at 09:53AM PDT, ID: 19862308
I've run it against two server versions (both worked w/o problems):

   Cache for UNIX (IBM PowerPC) 4.1.16 (Build 233_3 + Adhoc 1341) Sat Apr 3 2004 08:16:46 EST

   Cache for Windows NT (Intel/P4) 5.0.13 (Build 5607) Thu Dec 30 2004 13:20:23 EST

The ODBC driver on my SQL server:  Intersystems ODBC 5.00.5607.00

I have Cache 2007 running at home.  I'll see if I have any different results with it.  My guess would be the newer ODBC driver.   If I get a few minutes later tonight, I'll play around with it and see if I can duplicate the problem.

Have you opened up a ticket with their support? http://www.intersystems.com/support/index.html
 
09.10.2007 at 10:04AM PDT, ID: 19862387
Oh... one other thing... regarding C#... are you using intersystem's managed dotnet provider or are you using ODBC?  Guessing you're using ODBC.
 
09.10.2007 at 03:33PM PDT, ID: 19864794
I use ODBC for LInked server.  
Is there any way to use  intersystem's managed dotnet provider  for connecting linked server in Sql Server?  intersystem's managed dotnet provider  does not come as a provider in the list of providers for Linked Servers.  It will be great if there is one.

Thanks.

 
09.14.2007 at 08:36AM PDT, ID: 19892493
I am working in a project transferring data from Cache Database to Sql Server everyday.  Some tables fail with link server or ODBC connection, but  could get the data using intersystems's managed dotnet provider.  

I wonder if there is a way to connect the Sql Server 2005 Link server using  intersystems managed dotnet provider.

Could any one help me?  Thanks.
 
09.14.2007 at 08:45AM PDT, ID: 19892578
I don't believe it's possible to set up a linked server using a dotnet managed provider.

Transferring sounds like you're actually putting data into or out of one database into the other.  If that's what you're after, why don't you do your link the other way around.  Link the SQL Server to Cache.  And do the the transfer from the Cache side of things.  You'll probably have better luck with that.
 
09.14.2007 at 11:21AM PDT, ID: 19893894
I do not have enough permissions at the Cache server and also I do not have good knowledge on Cache. I  asked them for permission for Remote administration of the database.  I do not know it will help.  

Thanks.
 
 
20080236-EE-VQP-29 / EE_QW_1_20070628