Forum Replies Created

Viewing 15 posts - 22,006 through 22,020 (of 26,490 total)

  • 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...

  • RE: Update query is killing me..

    You can help us help you by reading the first article I have linked in my signature block below that regarding asking for assistance.

  • RE: T-Sql rant

    So, what don't you like about T-SQL? I find it quite easy to work with and haven't had any problem moving from a 3GL language (COBOL) to it.

    The paradigm...

  • RE: Loop to update table

    After stopping your code (still hadn't finished after 55 minutes), I reran the code I showed above and here are the results.

    My code:

    SQL Server Execution Times:

    CPU time...

  • RE: Loop to update table

    Now, you may be askiing "Why?" Check the second article (Running Totals and its variations) I have linked below in my signature block. If it has been republished...

  • RE: Loop to update table

    Manju (3/13/2009)


    I completely agree with your assesment of my query. I thought I had made that some what clear myself when I said "with the sample dataset"; but I should've...

  • RE: Loop to update table

    Manju (3/13/2009)


    Just tried the following for academic reasons -

    With the sample dataset, the execution plan seemed far simpler - you may want to give this a try too.

    update t set

    ...

  • RE: PHP with MS SQL SERVER CONNECTIONS

    Since this is a school project, it is best if you do your initial research first. As you find the various answers to your initial questions and need clarification...

  • RE: What is wrong with this statement

    ramadesai108 (3/13/2009)


    The output should be intID and ClientID. Take out the intID in the order by statement because that was a mistake. As seen by one of the responder, the...

  • RE: What is wrong with this statement

    ramadesai108 (3/13/2009)


    Hi,

    The index is on the intID column. here is the script to create table and add data

    create table Clients

    (

    intID INT,

    ...

  • RE: What is wrong with this statement

    Please post the DDL for your table, sample data (as INSERT statements that can be cut and paste into SSMS and run) including both numeric and non-nummeric client ids, and...

Viewing 15 posts - 22,006 through 22,020 (of 26,490 total)