Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 7,2000
»
T-SQL
»
sysindexes
sysindexes
Rate Topic
Display Mode
Topic Options
Author
Message
pattikay
pattikay
Posted Tuesday, August 07, 2001 7:20 AM
Grasshopper
Group: General Forum Members
Last Login: Wednesday, May 01, 2013 6:34 AM
Points: 11,
Visits: 2
When a server running sql 7.0 tries to get information from the sysindexes table of another server running sql 2000 ,following error occurs :
OLE DB provider 'SQLOLEDB' supplied inconsistent metadata for a column. Metadata information was changed at execution time.
The query i am running is :
select rows
FROM [serverRunningsql2000].[dbname].dbo.sysindexes
where indid < 2
AND id = 2007678200
Querying any other table is fine,but sysindexes always gives that error.
The servers are already linked.Any other query that is executed works fine ,but not any that queries the sysindexes table.
What could be causing this error?
Thanks in advance.
Post #711
David Benoit
David Benoit
Posted Tuesday, August 07, 2001 12:19 PM
SSCrazy
Group: General Forum Members
Last Login: 2 days ago @ 7:56 AM
Points: 2,063,
Visits: 3,441
PattiKay,
Check out article Q255097 from Microsoft. This is apparently a known issue however they do suggest a workaround. Hope this helps and have a great day!
David
David
@SQLTentmaker
SQL Tentmaker
“He is no fool who gives what he cannot keep to gain that which he cannot lose” - Jim Elliot
Post #20567
Sean Burke
Sean Burke
Posted Tuesday, August 07, 2001 7:52 PM
Valued Member
Group: General Forum Members
Last Login: Thursday, August 29, 2002 12:00 AM
Points: 72,
Visits: 1
Good find on the KB article David. I don't reccommend workaround #1
.
Patii, I'm curious to find out if workaround #2 works for you. Pelase let us know.
Sean
Post #20568
pattikay
pattikay
Posted Wednesday, August 08, 2001 6:57 AM
Grasshopper
Group: General Forum Members
Last Login: Wednesday, May 01, 2013 6:34 AM
Points: 11,
Visits: 2
Thanks David and Sean for your suggestions.Sean your right, workaround #1 is out of the question.
Workaround #2 which is -->Create a view on the local server and then select from that view, instead of selecting from the view on the remote linked server.
It did not work,so i did the oppposite,i created a view on the remote linked server which selects from sysindexes , so i do not query sysindexes directly.
create view tot_att_vw
as
select rows from sysindexes
where indid < 2
and id = object_id("attendance_details")
so in the stored procedure i will be running :
select rows
FROM [serverRunningsql2000].[dbname].dbo.tot_att_vw
Though i am thinking of calling an sp instead of a view.
Thanks again for your suggestions.
Post #20569
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.