Forum Replies Created

Viewing 15 posts - 811 through 825 (of 3,221 total)

  • RE: select for date field

    Will this do what you need ?

    SELECT CAST(DATEPART(mm, GETDATE()) AS VARCHAR(2)) + '/' +

    CAST(DATEPART(dd, GETDATE()) AS VARCHAR(2)) + '/' +

    ...

    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: Network Protocols

    Steve - suprised at you for letting us off so easy at the end of the week - or was this a TGIF (Thank God Its Friday) to all of...

    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: ssis expression- calculate age by using birthdate

    You might try:

    declare @dob datetime,

    @age int,

    @day datetime

    set @day = GETDATE()

    set...

    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: Rank two tables

    To help those who can help you please post table definition(s), sample data following the first link in my signature block, which article includes sample code to make the postings...

    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: Limiting to 1 Row per Name using Stored Procedures

    Will this assist you?

    CREATE TABLE #T(Name VARCHAR(10), Country VARCHAR(10),Date_Submitted DATE)

    INSERT INTO #T

    SELECT 'Mary','USA','Dec 20 2011'

    SELECT 'Bill','USA','Mar 10 2010' UNION ALL

    SELECT 'Bill','Canada','Feb 2 2009' UNION ALL

    SELECT 'Mary','USA','Feb 20 2010'

    ;with numbered as(SELECT...

    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: DMV to get all column names in the database along with its table name and column length

    For those objects within a single database ... check BOL (Books On Line) subject

    SQL Server 2008 Books Online (July 2009)

    sys.all_objects (Transact-SQL)

    or on line at:

    http://msdn.microsoft.com/en-us/library/ms178618.aspx

    Then link...

    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: DATETIME 1

    Revenant (12/6/2011)


    bitbucket, you are thereby appointed an SQLServerCentral sneak in residence. 🙂

    Thanks for an interesting QotD!

    Why thank you for the compliment. And when you try my next QOD...

    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: Not able to start sql server due to model database location change

    Another DB you must be concerned about is:

    http://msdn.microsoft.com/en-us/library/ms190940.aspx

    Now put the Model DB back in its original location ....

    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: TSQL Performance when using Parameters

    When posting performance problems it helps those who want to help you if you follow the instructions in this article

    http://www.sqlservercentral.com/articles/SQLServerCentral/66909/

    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: % of data completeness

    Do not know if this will truly assist you, it is long and cumbersome, but it might get started.

    CREATE TABLE #T(field01 int, field02 VARCHAR(3), field03 VARCHAR(3), field04 VARCHAR(3)

    , field05 VARCHAR(3),...

    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: Count Words in Text Field and/or Column (frequency of use)

    In case Jeff Moden does not see your request, I believe this is the article he was referring to:

    http://www.sqlservercentral.com/articles/Tally+Table/72993/

    The articles title is:

    Tally OH! An Improved SQL 8K “CSV Splitter” Function

    By...

    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: Complex joins

    A nice, complex question, but a darn good one.

    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: Unable to import all rows from .csv

    Kevin Drysdale (12/5/2011)


    Pretty sure I checked thoroughly and it looks clean. The last column did contain data with commas, and the delimiter was a comma. I requested they send a...

    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: Count Words in Text Field and/or Column (frequency of use)

    I searched the archives for this and could not find a solution.

    I have a comment table and would like to get a word count.

    Are you aware of SQL Server's Full...

    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: No Overtime

    Lynn Pettis

    The occasional extra time is one thing, but constant is over the top. If you give us comp-time, give us time to use it, and also don't limit...

    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 - 811 through 825 (of 3,221 total)