Forum Replies Created

Viewing 15 posts - 11,611 through 11,625 (of 14,953 total)

  • RE: How to loop through different tables to modify a single field?

    I still don't get why a multi-table script is such a big deal.

    Let's say the field name is "MyField".

    You run:

    select 'Update dbo.' + name + ' set MyField = 5;'

    from...

    - 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: Image is Everything

    gcopeland (1/13/2009)


    majorbloodnock (1/13/2009)


    Given your stated opinions earlier in this thread, I think Steve can fairly safely take that as a compliment. 😉

    Given "my stated opinions"...honestly...Is that the best you can...

    - 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: From enterprise to standard edition - what will we lose?

    Yes, I've tried running traces. It takes a bit to figure out, but it's a good way to load test a database as if real users were present.

    - 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: Importing Delimited file into sql 2005 table

    Not sure what to suggest you look at next. There's probably something that would be obvious if I were looking at your screen, but I can't think of what...

    - 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: Setup Servers - Cost efective

    The_SQL_DBA (1/12/2009)


    GSquared (1/12/2009)


    I think your best bet is load into a staging copy of the database, copy the files to the production server, then take the production database offline and...

    - 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: One database per customer or One DB for all customers

    Moving from either to the other, once you have data in them, is a bit of a pain. Depends on how much data you have and how you've structured...

    - 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: Help with an Inner join query

    Using some sample data, I haven't been able to re-create your problem. Here's my test:

    create table #T1 (

    ID int identity primary key);

    create table #T2 (

    ID int identity primary key,

    T1ID...

    - 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: Find length of Float

    Cast/convert to varchar, check the len on 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: MSDB log file size is 17GB?????

    SanjayAttray (1/12/2009)


    No matter if reindex job happens in night. It would not grow that big. I don't think any one would do any dml transaction on " msdb "...

    - 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: Best way to write this query

    Write a join query that creates one row per period per rule that applies to it, give the query a Where clause, and use "select count(*)" on the query. ...

    - 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: Using backup and restore script

    Use quotes around the file path.

    - 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: Image is Everything

    Steve Jones - Editor (1/12/2009)


    Not that I ever got asked to come, but I wouldn't wear a tie to interview with you, David 😀

    course, not sure I could pass The...

    - 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: SORT in execution plan, but query doesnt have an order by

    Grant Fritchey (1/12/2009)


    Can post the whole execution plan? Save it as .sqlplan file and zip it up.

    On a guess, it's performing an aggregation to satisfy the criteria. It might be...

    - 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: Where 1 = 1

    Because chocolate IS better than vanilla! 🙂

    Yeah, choices in cases where it doesn't much matter should be fine. I'd say that kind of thing, like which format to use,...

    - 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: Importing Delimited file into sql 2005 table

    I'm going to guess that the file you're trying to import has something wrong with it.

    I've seen that kind of error in files where the delimiter was used within the...

    - 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 - 11,611 through 11,625 (of 14,953 total)