Forum Replies Created

Viewing 15 posts - 16 through 30 (of 48 total)

  • RE: data archiving

    Great, you looks confident! how you do partitioning switching? dynamic queries? manual? how often? weekly? monthly?

    using the 20k method? what 20k method?

  • RE: data archiving

    that mean I need to go thru' trial-and-error? Thanks anyway

  • RE: data archiving

    Jeff Moden (8/25/2008)


    If the clustered key is set by date or, perhaps, identity and the identity column is indicative of entry order, then sectional deletes (or insert to archive, delete...

  • RE: data archiving

    Yes, I have gone thru' that. That's what I meant cold archiving (predefined values). I have tried to do something like this:

    SET @SQLString = N'ALTER PARTITION SCHEME [' + @archiveScheme...

  • RE: data archiving

    PaulB (8/24/2008)


    You may want to research table partitioning.

    Table partitioning allows for the fastest and cleanest way to achive data archiving and purging.

    Sorry, I am curious how the table partitioning affect...

  • RE: eliminate nested while loop

    then you meant ident_current('table name') can be used as scope_identity ?

  • RE: eliminate nested while loop

    since you are talking about identity, I think IDENT_CURRENT('table_name') will also have the scope problem as @@IDENTITY(From BOL: @@IDENTITY is not limited to a specific scope; SCOPE_IDENTITY returns the value...

  • RE: output XML with combiantion of attribute & element

    Mark (7/9/2008)


    SELECT col1 AS "@N",

    col2 AS "text()"

    FROM @temp

    FOR XML PATH('D'),ROOT('Root'),TYPE

    I cann't , I get this :

    < D>

    < N>Measure </N>10.6227 </D>

    < D>

    ...

  • RE: eliminate nested while loop

    Thanks for your info, though I did not use trigger. Anyone know batch update to eliminate of getting @@scope_identity?

  • RE: eliminate nested while loop

    The openXML or XQuery I have no problem,

    but the column "ID" in table A will be getting from:

    set temp variable = @@identity

    to insert into column "A_ID" in...

  • RE: xml text in temporary table to SP in MSSQL 2000

    Mahesh Bote (5/23/2008)


    [font="Verdana"]

    Select @var = col1 from #t1

    EXEC au_info @var

    [/font]

    where's declaration of @var?

    Do not tell me:

    DECLARE @var text

    or

    DECLARE @var nvarchar(4000)

    😀

  • RE: xml text in temporary table to SP in MSSQL 2000

    [Code]

    create table #t1 (col1 text)

    insert into #t1

    Values('

    <Customers CustomerID="XYZAA" ContactName="Joe"

    ...

  • RE: if statement or dynamic query

    GilaMonster (5/14/2008)


    gan (5/13/2008)


    By the way, most of the sites is using MSSQL 2000, any idea?

    Other than suggesting that SQL 2000 questions should go in the SQL 2000 forums?

    Dunno. I'm...

  • RE: if statement or dynamic query

    GilaMonster (5/13/2008)


    I'll go with a simple partitioned table (partitioned on the day of week, or the day of month, depending on data volumes) Don't see any need to add the...

Viewing 15 posts - 16 through 30 (of 48 total)