Forum Replies Created

Viewing 15 posts - 4,681 through 4,695 (of 14,953 total)

  • RE: How to export dataset into Excel when row limit exceeds 65535

    One way to do this is dump the data into a staging table, including a SheetNumber column, break the data up that way, select the distinct SheetNumber values, and loop...

    - 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: If else statement having errors

    First, Inserts don't work that way, with procedural code between the Insert statement and the data to be inserted (the Select statement in this case).

    Second, "output" doesn't work that way....

    - 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: count of column by different values in same row

    Does the "sample1" value reference something in a lookup table? If so, you can query that, and then two inline-subqueries will get you the counts.

    If not, a query like...

    - 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: MS SQL 2008 linked to MySQL , where is the problem?

    Is the TOAD query going through the SQL Server linked server to MySQL, or is it directly connecting to the MySQL database? If it's a direct connection, then 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: Query help for 'not in'

    Pink123 (3/9/2011)


    Thanks for the reply

    What if i replace Null with 0

    with function ISNULL() as 0 is not a value that will be present in my table for cID.

    After this will...

    - 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: DR solution..Pls respond

    alen teplitsky (3/9/2011)


    the pro's of vmware is that you ship the entire instance to DR and just mount it on your DR vmware host and change the IP. no need...

    - 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: giving error for the calculation

    krishusavalia (3/9/2011)


    Hey G ,

    Your solution is awesome. It was interesting and i learn something new.

    But in my senario, I have more than 2 million rows and for every row I...

    - 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: SQL 2008 Join Logic Bug?

    bpportman 52825 (3/9/2011)


    @HowardW - please ignore my typo for the second query. What is important is the developer states the first query does not return data under 2K8 but...

    - 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: Error Evaluating Converted/Cast VARCHAR

    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: DR solution..Pls respond

    Manvendra (3/8/2011)


    Ok suppose i have to ceate a DR solution for a instance whihc has more than 100 dbs and b sizes is approx upto 30-40 gb.cost is not a...

    - 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: SQL 2008 Join Logic Bug?

    I don't think there's a difference.

    I just tested this in 2008 R2:

    CREATE TABLE #A (ID INT PRIMARY KEY) ;

    CREATE TABLE #B (ID INT PRIMARY KEY) ;

    INSERT INTO #A

    ...

    - 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: Connection "SourceConnectionFlatFile" failed validation

    If you want to simplify having an SSIS package move data between domains (local server vs different Windows domain), it's sometimes easiest to set up FTP on the target server/domain,...

    - 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 SQL shorthand notation for equi-joins, by way of the USING construct deprecated?

    "Using" is too common a word to do an effective search on. I can't speak for the standards or whatever, but I've never seen it used in a join.

    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: Error Evaluating Converted/Cast VARCHAR

    Unfortunately, the Where clause doesn't necessarily evaluate sequentially, so it doesn't work when you do that.

    The thing to do is first insert all the ones Where IsDate = 1 into...

    - 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: Foreign key question

    The reason you're having trouble with that is that Foreign Keys aren't built to work that way.

    What you've done, by having Code1, Code2, Code3 is violate First Normal Form for...

    - 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 - 4,681 through 4,695 (of 14,953 total)