Forum Replies Created

Viewing 15 posts - 31 through 45 (of 91 total)

  • RE: SUM of FLOAT inconsistency

    Brewmanz... keep them coming. That was great, and exactly what we all need! Good explanation, too. I found that it was dependent upon order, but could not figure...

    Todd Carrier
    MCITP - Database Administrator (SQL 2008)
    MCSE: Data Platform (SQL 2012)

  • RE: Deleting all entries, minus last 3

    Same type of logic here, but almost impossible to wrap one's head around the derived table and correlated subquery.

    To this day, I still have to deal with code that looks...

    Todd Carrier
    MCITP - Database Administrator (SQL 2008)
    MCSE: Data Platform (SQL 2012)

  • RE: Deleting all entries, minus last 3

    There are a couple of ways to skin the cat, but lately CTE's are in style.

    Here I am creating a temp table for demonstration:

    CREATE TABLE #TEST

    (Customer_id INT,

    last_name VARCHAR (25),

    ...

    Todd Carrier
    MCITP - Database Administrator (SQL 2008)
    MCSE: Data Platform (SQL 2012)

  • RE: Deleting all entries, minus last 3

    Hey there Larson,

    When you say time stamp... is that column the datatype of timestamp or datetime?

    Can you provide the definition of your table?

    SELECT COLUMN_NAME, DATA_TYPE

    FROM INFORMATION_SCHEMA.COLUMNS

    ...

    Todd Carrier
    MCITP - Database Administrator (SQL 2008)
    MCSE: Data Platform (SQL 2012)

  • RE: Moving the ReportServer database to another server

    SMPSMERS,

    Did you get it worked out?

    Seems to me like if you moved the ReportServer and ReportServerTemp dbs to another server, verified the account that you are connecting with, and change...

    Todd Carrier
    MCITP - Database Administrator (SQL 2008)
    MCSE: Data Platform (SQL 2012)

  • RE: Loadbalancing SQl Server 2005/2008

    And I third the suggestion!

    More often than not, tune the queries. That is the first place to start, and the biggest gains can be achieved there. I've seen...

    Todd Carrier
    MCITP - Database Administrator (SQL 2008)
    MCSE: Data Platform (SQL 2012)

  • RE: Insert data into single table from multiple tables

    Aiwa,

    I am confused by the source of your data to be inserted into resultTB. You say you have 2 different tables as source, but only list TB1.

    Also, is newColID...

    Todd Carrier
    MCITP - Database Administrator (SQL 2008)
    MCSE: Data Platform (SQL 2012)

  • RE: Know your UNION(s), NULL(s), COUNT(s) ?

    Aha,

    I am wrong in assuming COUNT (1) refers to the first column.

    SELECT COUNT (25)

    --or

    SELECT COUNT ('something')

    these both return 1, as the count of the literal expression, be it integer...

    Todd Carrier
    MCITP - Database Administrator (SQL 2008)
    MCSE: Data Platform (SQL 2012)

  • RE: Know your UNION(s), NULL(s), COUNT(s) ?

    KB,

    The 1 in count 1 refers to the column in the first ordinal position, 2 the second, 3 the third, etc.

    Here is a good example below...

    CREATE TABLE #TEST

    (A...

    Todd Carrier
    MCITP - Database Administrator (SQL 2008)
    MCSE: Data Platform (SQL 2012)

  • RE: Know your UNION(s), NULL(s), COUNT(s) ?

    It had been a while since I wrote the question, and I MISSED IT! The subtle but important difference between count (*) and count (columnname) is something I will...

    Todd Carrier
    MCITP - Database Administrator (SQL 2008)
    MCSE: Data Platform (SQL 2012)

  • RE: Returning Data from Stored Proc

    Cursor datatype, huh? Does somebody have any sample code to demonstrate? I've never used it before...

    Todd Carrier
    MCITP - Database Administrator (SQL 2008)
    MCSE: Data Platform (SQL 2012)

  • RE: SQL 2000 Active/Passive Cluster

    JM,

    The SQL 2000 install program is cluster aware... so in the install when you get to Computer Name dialog box, check the Virtual Server button (opposed to Local or Remote)...

    Todd Carrier
    MCITP - Database Administrator (SQL 2008)
    MCSE: Data Platform (SQL 2012)

  • RE: How to random dates

    Absolutely brilliant. Thanks again. I've got a new wrench in the toolbox!

    Todd Carrier
    MCITP - Database Administrator (SQL 2008)
    MCSE: Data Platform (SQL 2012)

  • RE: How to random dates

    Jeff,

    You're the master of set based thinking. Thanks for the contributions and the recent article on the tally tables. It is starting to form in my head (as...

    Todd Carrier
    MCITP - Database Administrator (SQL 2008)
    MCSE: Data Platform (SQL 2012)

  • RE: Attaching a database with error 9004

    Yup, that functionality is the same between 2000 and 2005.

    You will receive a message in Enterprise manager... The filename specified is incorrect. A new log filie may be created. ...

    Todd Carrier
    MCITP - Database Administrator (SQL 2008)
    MCSE: Data Platform (SQL 2012)

Viewing 15 posts - 31 through 45 (of 91 total)