Forum Replies Created

Viewing 15 posts - 7,291 through 7,305 (of 13,469 total)

  • RE: SSRS report with 17 parameters times out

    with 17 parameters, no doubt most of them are optional....and might have default values? sounds like parameter sniffing...fast in SSMS with static values, compiled is slow.

    search for "parameter sniffing" here...

  • RE: Copy Only restore taking really long time

    yep i think muthukkumaran Kaliyamoorthy nailed it; someones in the database...maybe even you in the same or another SSMS window.

    ALTER DATABASE MyDB

    SET SINGLE_USER WITH ROLLBACK IMMEDIATE

  • RE: Database compatibility level(s) - log/history

    opc.three (6/27/2011)


    Seriously, WTF is that? 😛

    I have no idea, and neither did the original poster;that's what i thought was so funny; i know it's a tool, but I cannot even...

  • RE: Way to insert into a table one row at a time??

    asm1212 (6/27/2011)


    Thank you so much Lowell...

    That did it for me! Just for giggles: Can you explain that Row Number function and OVER PARTITION BY clause as it relates to these...

  • RE: Alert to monitor DBCC CheckDB

    jbhauser (6/27/2011)


    I am trying to utilize Gianluca's procedure (nice work by the way) against the corrupt databases found in the conference link above. I cannot get around the error "converting...

  • RE: Please help me understand the query

    the WITh clause is a newer, fancy way of creating a temporary table...it's valid only for the next statement after the closing parentesis of the WITH;

    so it's like saying CREATE...

  • RE: Duplicate Data in Table

    oh yeah, that inner join:

    inner join [MWLWEB].[dbo].[MWL_XY_Coordinates] Coord

    if that join has more than one record for any thing it's joining to, you could get mulitple rows....so if there are...

  • RE: Duplicate Data in Table

    you've got two SELECTS witha UNION, but only one of the selects have a WHERE clause...could that be it?

    SELECT

    [ToID] AS [ID],

    [Origin City] AS [City],...

  • RE: Way to insert into a table one row at a time??

    still easy to do via TSQL;

    you can use the row_number() function to partition the data by those 8 columns.

    wrap teh results of that with an outer select where rowNumberAlais =...

  • RE: Copy Only restore taking really long time

    could your test server be low on disk space? maybe it's taking a long time trying to allocate disk space to the backup before it can ctually do the restore....

  • RE: Way to insert into a table one row at a time??

    why not just use a set base operation regardless,and exclude anything that might duplicate? by joining the source to the original table, you can automatically exclude them, or find...

  • RE: delete tables

    hodhod26 (6/27/2011)


    this data is related to antivirus servers which running from 3 yeares or more we need to delet old data because this size of data make the server so...

  • RE: Database compatibility level(s) - log/history

    yeah, when i look at powershell at first, i have no idea what it does or what it can do.

  • RE: Delete with output clause and table aliases

    pure syntax issue...the OUTPUT...INTO goes BEFORE the FROM:

    Delete t

    Output Deleted.TableTID,

    Deleted.Value1,

    Deleted.Value2

    Into...

  • RE: Database compatibility level(s) - log/history

    oh lookie: you can do it in powershell as well:

    i searched powershell read application log...looks a little easier to do:

    # query an event (Filter Equal)

    # you could change the...

Viewing 15 posts - 7,291 through 7,305 (of 13,469 total)