Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 query from interbase using linked servers

Author  Topic 

funketekun
Constraint Violating Yak Guru

491 Posts

Posted - 2007-05-08 : 10:53:36
created a linked server. But i can't query the table.
i tried different combinations but they dont work.



LS: dccs_danville
DB: intdccs_dv.gdb
table:tblload

select top 10 * from dccs_danville.INTDCCS_DV.gdb.tblload
select top 10 * from dccs_danville.INTDCCS_DV.dbo.tblload
select top 10 * from dccs_danville.INTDCCS_DV...tblload
select top 10 * from dccs_danville.INTDCCS_DV.tblload
select top 10 * from dccs_danville...tblload
select top 10 * from dccs_danville.INTDCCS_DV.tblload



also tried EXEC sp_tables_ex 'dccs_danville'
tblload is able to be queried.


anyone know what is wrong?


harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2007-05-08 : 11:00:34
What is the error you get? have you mapped local logins with linked server logins also using sp_addlinkedsrvlogin?

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page

funketekun
Constraint Violating Yak Guru

491 Posts

Posted - 2007-05-08 : 11:25:12
HArsh,
EXEC sp_tables_ex dccs_danville

table_cat: null
table_schem: EMPTY (NOTHING IN HERE)
table_name: tblload




select top 1* from DCCS_DANVILLE.tblload
Server: Msg 208, Level 16, State 1, Line 1
Invalid object name 'DCCS_danville.tblload'.



select top 1* from DCCS_DANVILLE.INTDCCS_DV.tblload
Server: Msg 208, Level 16, State 1, Line 1
Invalid object name 'DCCS_DANVILLE.INTDCCS_DV.tblload'.



select top 1* from DCCS_DANVILLE...tblload
Server: Msg 7314, Level 16, State 1, Line 1
OLE DB provider 'DCCS_DANVILLE' does not contain table 'tblload'. The table either does not exist or the current user does not have permissions on that table.
OLE DB error trace [Non-interface error: OLE DB provider does not contain the table: ProviderName='DCCS_DANVILLE', TableName='tblload'].
Go to Top of Page

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2007-05-08 : 11:40:36
What this query returns for you?

Select * from openquery(dccs_danville, 'Select * from gdb.Information_schema.tables')


assuming,

dccs_danville - Linked server name
gdb - database name

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page
   

- Advertisement -