Showing posts with label showing. Show all posts
Showing posts with label showing. Show all posts

Monday, March 26, 2012

Index Question

Can anyone explain me why there are (_wa) indexes in my
databases when "real" indexes exists. Meaning: I have an
automatic index "showing" an index that has already been
created... any explanation?
The '_wa' indexes are statistics. They are essential for the SQL optimizer
to decide on a good, efficient query plan.
Geoff N. Hiten
Microsoft SQL Server MVP
Senior Database Administrator
Careerbuilder.com
I support the Professional Association for SQL Server
www.sqlpass.org
"" <anonymous@.discussions.microsoft.com> wrote in message
news:82ae01c431e6$21bd4df0$a301280a@.phx.gbl...
> Can anyone explain me why there are (_wa) indexes in my
> databases when "real" indexes exists. Meaning: I have an
> automatic index "showing" an index that has already been
> created... any explanation?
sql

Index Question

Can anyone explain me why there are (_wa) indexes in my
databases when "real" indexes exists. Meaning: I have an
automatic index "showing" an index that has already been
created... any explanation?The '_wa' indexes are statistics. They are essential for the SQL optimizer
to decide on a good, efficient query plan.
Geoff N. Hiten
Microsoft SQL Server MVP
Senior Database Administrator
Careerbuilder.com
I support the Professional Association for SQL Server
www.sqlpass.org
"" <anonymous@.discussions.microsoft.com> wrote in message
news:82ae01c431e6$21bd4df0$a301280a@.phx.gbl...
> Can anyone explain me why there are (_wa) indexes in my
> databases when "real" indexes exists. Meaning: I have an
> automatic index "showing" an index that has already been
> created... any explanation?

Friday, March 23, 2012

Index Question

Can anyone explain me why there are (_wa) indexes in my
databases when "real" indexes exists. Meaning: I have an
automatic index "showing" an index that has already been
created... any explanation?The '_wa' indexes are statistics. They are essential for the SQL optimizer
to decide on a good, efficient query plan.
--
Geoff N. Hiten
Microsoft SQL Server MVP
Senior Database Administrator
Careerbuilder.com
I support the Professional Association for SQL Server
www.sqlpass.org
":)" <anonymous@.discussions.microsoft.com> wrote in message
news:82ae01c431e6$21bd4df0$a301280a@.phx.gbl...
> Can anyone explain me why there are (_wa) indexes in my
> databases when "real" indexes exists. Meaning: I have an
> automatic index "showing" an index that has already been
> created... any explanation?sql

Monday, March 19, 2012

Index not showing up on receiving database after DTS

We have a DTS package from an MS ACCESS database to a SQL Server 2000 database. One of the tables ENGR_ITEM had an index on it in ACCESS, but you can't see it in the object list in Enterprise Manager. The only way you know the index is there is if you try to create a primary key on the table and then save it. It won't let you save it because it says it already has a primary key from the index. You would think you would be able to see it if it existed. Does anybody find that weird?If you run:
exec sp_pkeys 'your_table_name'
it should return the current pk for the table.
Or you can use objectproperty() function to check for existence of index/constraint on a table.
e.g.
select objectproperty(object_id('your_table_name'),'TableHasPrimaryKey')
See book online for more info on objectproperty() function.|||Thank you for your information on how to find the indexs/constraints on tables. Very helpful of you to provide that. I'm still wondering though why the index didn't appear in the Object Explorer. It obviously got created through the DTS package.