Forum Replies Created

Viewing 15 posts - 76 through 90 (of 375 total)

  • RE: open and close, or just open?

    torpkev (4/22/2009)


    now and then all of a sudden theres a dozen or so connecting to my app

    I do not know if this comment references the application in question but one...

    ---------------------------------------------
    [font="Verdana"]Nothing is impossible.
    It is just a matter of time and money.[/font]

  • RE: open and close, or just open?

    I do not think this is a 'more personal approach' issue. It depends on the partcular case you want to solve. In most cases using the connection pooling is desirable...

    ---------------------------------------------
    [font="Verdana"]Nothing is impossible.
    It is just a matter of time and money.[/font]

  • RE: open and close, or just open?

    It depends on how you have your database access structured inside your app.

    If this is a web application you want to utilize the connection pooling and to close the connection...

    ---------------------------------------------
    [font="Verdana"]Nothing is impossible.
    It is just a matter of time and money.[/font]

  • RE: Update column with value from another row.

    Doesn't it feel better when you find the solution yourself?

    😀

    Good luck and come back if you have more issues...

    ---------------------------------------------
    [font="Verdana"]Nothing is impossible.
    It is just a matter of time and money.[/font]

  • RE: Update column with value from another row.

    Sorry, had too many meetings.

    Let me clarify something.

    If I understand properly you want to update the siteID to be the value found in a record with the highest projectID among...

    ---------------------------------------------
    [font="Verdana"]Nothing is impossible.
    It is just a matter of time and money.[/font]

  • RE: Update column with value from another row.

    You have to do a self join with a subquery to give you the max.

    If you can post some sample code to create a table and insert some sample...

    ---------------------------------------------
    [font="Verdana"]Nothing is impossible.
    It is just a matter of time and money.[/font]

  • RE: Table Columns count

    Edwin (4/17/2009)


    There is no sys.columns in SQL Server 2000.

    This is 2005 forum

    For 2000 you could use this.

    SELECT SO.name, COUNT(*)

    FROM syscolumns SC

    INNER JOIN sysobjects SO ON SC.id = SO.id

    WHERE SO.type...

    ---------------------------------------------
    [font="Verdana"]Nothing is impossible.
    It is just a matter of time and money.[/font]

  • RE: Need help displaying data

    Lucky you my lunch buddy is home sick today so I am having it at my desk.

    Gave me the extra time to play with the code. 😀

    ---------------------------------------------
    [font="Verdana"]Nothing is impossible.
    It is just a matter of time and money.[/font]

  • RE: Need help displaying data

    CREATE TABLE test

    (

    Accountname VARCHAR(10),

    Booknumber INT,

    Bookname VARCHAR(20)

    )

    ;

    GO

    ;

    INSERT INTO test (Accountname , Booknumber, Bookname) VALUES ('StoreOne', 1 ,'A1')

    INSERT INTO test (Accountname , Booknumber, Bookname) VALUES ('StoreOne', 2 ,'A2')

    INSERT INTO...

    ---------------------------------------------
    [font="Verdana"]Nothing is impossible.
    It is just a matter of time and money.[/font]

  • RE: Need help displaying data

    OK,

    I think you might be able to pull it off by using temp table. Create a temp table with an identity field, a bit field and all your other fields....

    ---------------------------------------------
    [font="Verdana"]Nothing is impossible.
    It is just a matter of time and money.[/font]

  • RE: Need help displaying data

    How many rows are we talking about? And how often do you need to run it?

    Can you link the 2000 servers to the 2005 server?

    Also the five columns you clear...

    ---------------------------------------------
    [font="Verdana"]Nothing is impossible.
    It is just a matter of time and money.[/font]

  • RE: Setting default input variable for stored proc

    Bob, after reading your post and re-reading lduvall original post I think I was wrong and what you have is what he needs.

    ---------------------------------------------
    [font="Verdana"]Nothing is impossible.
    It is just a matter of time and money.[/font]

  • RE: global temp table issue

    Connection pooling can not span multiple processes. So even if the other application is using the same method accessing the database and the same database they each will have a...

    ---------------------------------------------
    [font="Verdana"]Nothing is impossible.
    It is just a matter of time and money.[/font]

  • RE: Need help displaying data

    Yours is much simpler.

    Probably but not necessary. I think it looks simpler. 😀

    But looks could be deceiving.

    Remember we worked with a much simpler table then the final request. I think...

    ---------------------------------------------
    [font="Verdana"]Nothing is impossible.
    It is just a matter of time and money.[/font]

  • RE: global temp table issue

    Gift Peddie,

    In the original post it was indicated that the application that uses the global temp table is not the same application that uses the connection pooling (sp_reset_connection). At least...

    ---------------------------------------------
    [font="Verdana"]Nothing is impossible.
    It is just a matter of time and money.[/font]

Viewing 15 posts - 76 through 90 (of 375 total)