Forum Replies Created

Viewing 15 posts - 121 through 135 (of 162 total)

  • RE: Creating a sum column without losing records

    There may be a better way to do this but the below query works.

    select o.ID,o.Ordernumber,o.Total,ot.OrderTotal

    from #orders o

    inner join (select sum(total) as OrderTotal,ordernumber from #orders group by ordernumber) ot on o.ordernumber...

  • RE: Removing a User from a db

    No, if you try deleting the server login the mapped database users will not be deleted as well. You'll have an orphaned user(s). You'll get a warning message...

  • RE: Charindex() in Import/Export wizard

    Can you import the data into a staging table, do your data cleanup, and then insert the data into your intended target table?

    That's what I've always done when inserting data...

  • RE: Upgrade from 2005 to ???

    I would wait too...I haven't had a chance to play around with Denali too much but it sounds like it has some cool new features.

    Which brings the next...

  • RE: Dropped Column Name resolution..

    ulteriorm (12/20/2011)


    bwoulfe (12/20/2011)


    Have you verified that though? Did you do a select without the column_name to see what was returned?

    SELECT *

    FROM INFORMATION_SCHEMA.COLUMNS c

    WHERE TABLE_NAME = 'Stores'

    @bwolfe : yes the...

  • RE: Dropped Column Name resolution..

    Have you verified that though? Did you do a select without the column_name to see what was returned?

    SELECT *

    FROM INFORMATION_SCHEMA.COLUMNS c

    WHERE TABLE_NAME = 'Stores'

  • RE: Interpreting execution plan

    GilaMonster (12/20/2011)


    bwoulfe (12/20/2011)


    GilaMonster (12/20/2011)


    bwoulfe (12/20/2011)


    If you want to measure the impact of an index you could also set statistics io on and look at the differences in scan count, logical...

  • RE: Interpreting execution plan

    GilaMonster (12/20/2011)


    bwoulfe (12/20/2011)


    If you want to measure the impact of an index you could also set statistics io on and look at the differences in scan count, logical reads, physical...

  • RE: Interpreting execution plan

    To add to what Ninja said the clustered index scan is just a table scan. If you want to measure the impact of an index you could also set...

  • RE: Automatically check results of DBCC CHECK DB

    Gianluca, your script looks very similar to what I've been using the last couple of months. It works awesomely....

    http://www.heydba.net/2011/05/get-dbcc-checkdb-output-tool-for-sql-server-2005/

  • RE: Exam 70-433 help

    I am using this book to study for the exam. It is just OK. Glazes over all the exam content but doesn't go into too much depth on...

  • RE: Help with query

    If I'm reading your post right, you need to know how many DepartmentID's you have for the given filter criteria? Would a distinct count of DepartmentID's work?

    SELECT COUNT(DISTINCT DepartmenID)

    FROM...

  • RE: File Locations and SANs

    Whatever configuration you decide on...test the crap out of it if possible. From my experience, once your hardware is setup and running it's next to impossible to get someone...

  • RE: General Stored Procedure Query Plan Question

    I've used option A before with pretty good success. But my situation looked a little different. I had a search parameter for a stored procedure that the developers...

  • RE: Best DBMS for business

    LOL...didn't even realize this was from 2010.

Viewing 15 posts - 121 through 135 (of 162 total)