Forum Replies Created

Viewing 15 posts - 21,991 through 22,005 (of 26,484 total)

  • RE: Are the posted questions getting worse?

    Jack Corbett (3/13/2009)


    Lynn Pettis (3/13/2009)


    Anyone else care to join the fray??

    I prefer not to be the Saint of Lost Causes. I looked at his other posts and he acts...

  • RE: T-Sql rant

    foxjazz (3/13/2009)


    It isn't insulting to critisize a product because it deserves criticism. And the fact that they slightly improved on the language in 2008 justifies this case.

    No it isn't. ...

  • RE: T-Sql rant

    foxjazz (3/13/2009)


    First off, I don't "struggle" with t-sql, I use it a lot.

    A lot of what I have to do is use cursors, because of how my database is structured,...

  • RE: T-Sql rant

    foxjazz,

    I believe I met your requirement. We all are still waiting to hear back from you.

  • RE: Loop to update table

    I killed it back before my last post. I'm not sure I will try it against a 1,000,000 row table again. I think it will take too long...

  • RE: Are the posted questions getting worse?

    Anyone else care to join the fray??

  • RE: T-Sql rant

    foxjazz (3/13/2009)


    ok example sort of (my computer is sick so I can't give you something already done)

    select name from mynametable where changedate > @yesterday

    fetch from @sel into @name

    while (@@fetch_status =...

  • RE: T-Sql rant

    foxjazz (3/13/2009)


    Gee lynn are you dense. Do I have to write it in t-sql for you to get it?

    I don't like cursors.

    wtf

    Really? That is really necessary? No, I'm...

  • RE: T-Sql rant

    Let's give every employee a 10% raise:

    update dbo.employee set

    Salary = Salary * 1.1;

  • RE: T-Sql rant

    foxjazz (3/13/2009)


    Ok here is what I would like to do:

    run a query or view that gets a datatable (in t-sql) not c#

    Then run through each record in the datatable that...

  • RE: T-Sql rant

    foxjazz (3/13/2009)


    cursors heh

    Excatly my point.... So why doesn't t-sql accomodate sets?

    Why would I need a cursor to do updates like ?

    foreach(select * from table)

    {

    insert into othertable (field) value(myfield) ?...

  • RE: T-Sql rant

    foxjazz (3/13/2009)


    I don't think it's my problem that sql server is so inefficient with the use of cursors. Maybe they should have designed sql server better eh?

    Yes shortening of stuff...

  • RE: DATEDIFF question

    I'd say minimal difference, but I'd personally use the second option.

  • RE: T-Sql rant

    foxjazz (3/13/2009)


    also instead of using cursurs like they are now, wouldn't it be easier to say:

    foreach( select myfield from tbl where myotherfield > 3)

    {

    insert into myothertable (myotherfield) values (myfield)

    }

    I think...

  • RE: T-Sql rant

    Your complaints are a bit of the mark IMHO. There is nothing wrong with the sematics of T-SQL. It's just different the C# just like C# is different...

Viewing 15 posts - 21,991 through 22,005 (of 26,484 total)