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.
| 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_danvilleDB: intdccs_dv.gdbtable:tblloadselect top 10 * from dccs_danville.INTDCCS_DV.gdb.tblloadselect top 10 * from dccs_danville.INTDCCS_DV.dbo.tblloadselect top 10 * from dccs_danville.INTDCCS_DV...tblloadselect top 10 * from dccs_danville.INTDCCS_DV.tblloadselect top 10 * from dccs_danville...tblloadselect top 10 * from dccs_danville.INTDCCS_DV.tblloadalso 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 AthalyeIndia."The IMPOSSIBLE is often UNTRIED" |
 |
|
|
funketekun
Constraint Violating Yak Guru
491 Posts |
Posted - 2007-05-08 : 11:25:12
|
| HArsh,EXEC sp_tables_ex dccs_danvilletable_cat: nulltable_schem: EMPTY (NOTHING IN HERE)table_name: tblloadselect top 1* from DCCS_DANVILLE.tblloadServer: Msg 208, Level 16, State 1, Line 1Invalid object name 'DCCS_danville.tblload'.select top 1* from DCCS_DANVILLE.INTDCCS_DV.tblloadServer: Msg 208, Level 16, State 1, Line 1Invalid object name 'DCCS_DANVILLE.INTDCCS_DV.tblload'.select top 1* from DCCS_DANVILLE...tblloadServer: Msg 7314, Level 16, State 1, Line 1OLE 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']. |
 |
|
|
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 namegdb - database nameHarsh AthalyeIndia."The IMPOSSIBLE is often UNTRIED" |
 |
|
|
|
|
|
|
|