Forum Replies Created

Viewing 15 posts - 3,076 through 3,090 (of 3,221 total)

  • RE: Sort Order - Include Null al last

    Not to be picky but the T-SQL in answer #2 is:

    Select EmpName, DateOfLeaving from Employees order by isnull(DateOfLeaving,10/10/9999'),EmpName asc

    Now notice the single quotation marks surrounding 10/10/9999.

    Executing the statement...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: How do I extract Column info for a particular column?

    Did below, while rbarryyoung was posting a better answer then I had:

    Look in BOL at data available in these system views

    sys.allcolumns

    sys.objects

    sys.columns

    sys.tables

    and "Querying the SQL Server System Catalog FAQ" (Yes this...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Condional Update/insert from one table to other.

    Your answer to Jeff Moden's question

    No, temp table don't contain all records of orgininal table. it contains new inserted records + some of existing record with updated values.

    Does not agree...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Condional Update/insert from one table to other.

    Modified your T-SQL to be a select rather than a delete for testing purposes only (eliminated the typing error of "where WHERE") and did not get the desired result:

    Here is...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Rules, Defaults and the SQL Standard

    ...but what I'd like to see a couple more years of support for each version, perhaps 7 years, so that a company can really get value for their investment.

    Steve this...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Condional Update/insert from one table to other.

    Starazam a somewhat theoretical question for you.

    What happens, how are you informed if a Store stops selling a product - how do you delete that (if you must) from the...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Condional Update/insert from one table to other.

    I believe you have to use a two step procedure

    1. Update existing values:

    IF EXISTS(SELECT p.ProductName,p.StoreName FROM Products p, temptable t

    WHERE p.ProductName = t.productname AND p.storename =...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Condional Update/insert from one table to other.

    Need a lot of additional information.

    1. What consitutes an updatable row ... comparing one columns entry, multiple columns in temptable with what columns in "originalTable"

    2. Supply if...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Get TempTable name

    Using BOL partial definition of column in sys.sysobjects

    Name Type Descripition

    uid smallint Schema...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Get TempTable name

    Try this to determine if it gives you enough information, using any database on the server (preferably a development db NOT a production db

    CREATE TABLE ##MyTempTable (cola INT PRIMARY KEY)

    INSERT...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: ANY

    Steve thanks for an eye opening question. Never knew nor would I ever find out about the "some / any" operators.

    Now answer the following question: ...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Alter table script in SQL server 2005 Express

    My question is why do you want the tables columns created in a specific order? When you write a select statement the columns are returned in the sequence that...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: how to find out unuseddatabase objects in sql server 2005

    What you are asking can be quite a complex task, especially if application code is using dynamic SQL statements in lieu of stored procedures. That said might I refer...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Tips for practicing SQL at home

    Developer edition available from Amazon.com

    http://www.amazon.com/s/ref=nb_ss_gw?url=search-alias%3Daps&field-keywords=sQL+Server+developer+edition&x=18&y=18

    for 44.95 and will ship next day if you elect to do so.

    Did same and found it easy to install, once installed go to Microsoft...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Parse delimited data in column to multiple columns

    Jeff Moden,

    Jeff tried to send you a PM, but was not allowed to do so said something about you have too many of them.

    Just...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

Viewing 15 posts - 3,076 through 3,090 (of 3,221 total)