Forum Replies Created

Viewing 15 posts - 6,871 through 6,885 (of 14,953 total)

  • RE: Should We Lead or Follow?

    I would think it would need to be a two-way street. Microsoft needs to listen to MVPs and others on what's needed, but they also need to disseminate what's...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Are the posted questions getting worse?

    The Dixie Flatline (3/17/2010)


    Okay... can someone explain to me why a DBA might choose to disable statistics on tempDB?

    I put my guess in that thread, since I was already involved...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Nested Loop Joins on Temp Tables

    What I meant by "test the index" was just that. Try creating the index and see what that does.

    Obviously, it's not applicable, based on data you've since discovered.

    I'll definitely...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Nested Loop Joins on Temp Tables

    Try the index. Temp tables do keep stats, and it can make a HUGE difference.

    If that doesn't do what you need, try a join hint. I've only ever...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Is the result of "Order By" for exact same values random?

    Simply put, SQL does whatever order works best for it's engine, unless you tell it otherwise explicitly with a final Order By.

    So it's not really "random", but it's definitely not...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Trying to create a CASE STATEMENT off of a different CASE STATEMENT

    As far as replacing the code with something more efficient, I'd need to know what the UDFs do and have an actual table structure and some sample data. Given...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Trying to create a CASE STATEMENT off of a different CASE STATEMENT

    You can nest Case statements. You could do this:

    CASE

    WHEN

    CASE

    WHEN UseStartDate = 1

    THEN CustStartDate

    ELSE dbo.GetNewestOrderDate(CustomerID)

    END >= dbo.DateOnly(ISNULL(CustStartDate,UseThisDate)) AND DATEDIFF(m, UseThisDate, getdate()) <= 13

    THEN 0

    WHEN

    CASE...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Export SQL Server data to an Excel file

    The easiest way to do this is right-click the database name in Management Studio, pick Tasks then Export Data. But that's only good if you just want to do...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Is it possible to string "Int" datatypes together?

    I did an online search (Bing in this case) for "data type conversion ssrs", and the first hit was http://msdn.microsoft.com/en-us/library/cc281083.aspx. The second subhead on the page is "Converting Dataset...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Does the choice of Simple vs Full Rec. Model in non-system DBs affect tempdb space?

    You're welcome.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Does the choice of Simple vs Full Rec. Model in non-system DBs affect tempdb space?

    Makes sense. I'd just go with your standard in this case, unless something happens like log file growth causes storage or performance problems.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Is the result of "Order By" for exact same values random?

    Nothing in SQL guarantees sequence except the Order By on the final select.

    If you really want to force a specific sequence, you have to include that. Otherwise, all kinds...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Alter sys.sp_columns in the current database

    You'll need to talk to Microsoft about that. I'm pretty sure it's not possible. I could be wrong, but I seriously doubt it.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Security practises for Developers

    You can set permissions on schemas if that's what you need.

    It sounds more like you should deny the ability to create/modify/drop objects and just put the devs into roles that...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Does the choice of Simple vs Full Rec. Model in non-system DBs affect tempdb space?

    The reason you're having trouble finding data on how recovery models affect tempdb growth is because there's no relationship at all between the two things.

    If all you're doing is nightly...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

Viewing 15 posts - 6,871 through 6,885 (of 14,953 total)