Showing posts with label fill. Show all posts
Showing posts with label fill. Show all posts

Friday, March 23, 2012

How to get the index of each row from a SELECT query in SQL ?

Hi,
I am making as SELECT query to fill a repeater, and I need to retrieve the index of each line of the query.
ie, I want to get a dataset like :
"0", "dataCol1", "dataCol2" for the first line
"1", "dataCol1", "dataCol2" for the second line
"2", "dataCol1", "dataCol2" for the third line
etc.
Anyone knows if there is a sql statement that does it ?
Thanks
Johanncheck this|||You can also create a temp table with an int identity column, insert the first table into the temp, and return it.

Sunday, February 19, 2012

How to get FILL FACTOR

Hi,
How can i get the current "Fill Factor" for an existing
index
Thank you !
DonUse the INDEXPROPERTY function. For example:
SELECT INDEXPROPERTY(OBJECT_ID('authors'), 'UPKCL_auidind',
'IndexFillFactor')
--
Carlos E. Rojas
SQL Server MVP
Co-Author SQL Server 2000 Programming by Example
"Donald" <Donald.huppe@.bocenor.com> wrote in message
news:0d2101c37230$66d7ef10$a501280a@.phx.gbl...
> Hi,
> How can i get the current "Fill Factor" for an existing
> index
> Thank you !
> Don|||This is a multi-part message in MIME format.
--=_NextPart_000_0166_01C3720F.D6745550
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Check out INDEXPROPERTY() in the BOL.
-- Tom
---
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada
www.pinnaclepublishing.com/sql
"Donald" <Donald.huppe@.bocenor.com> wrote in message =news:0d2101c37230$66d7ef10$a501280a@.phx.gbl...
Hi,
How can i get the current "Fill Factor" for an existing index
Thank you !
Don
--=_NextPart_000_0166_01C3720F.D6745550
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
&

Check out INDEXPROPERTY() in the =BOL.
-- Tom
---T=homas A. Moreau, BSc, PhD, MCSE, MCDBASQL Server MVPColumnist, SQL =Server ProfessionalToronto, ON Canadahttp://www.pinnaclepublishing.com/sql">www.pinnaclepublishing.com=/sql
"Donald" = wrote in message news:0d2101c37230$66=d7ef10$a501280a@.phx.gbl...Hi,How can i get the current "Fill Factor" for an existing =indexThank you !Don

--=_NextPart_000_0166_01C3720F.D6745550--