Forum Replies Created

Viewing 15 posts - 706 through 720 (of 3,221 total)

  • RE: Using split funtion for multiple values

    I suggest that you test Jeff Moden's 8K splitter.

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

    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: TRUNCATE TABLE and ROLLBACK TRAN

    Nice question - good to know my memory is not failing me

    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: t-sql help

    if memory serves me correcting xp_backup_database is a Litespeed product and technically the error is from SQL Server and not lightspeed at the root of the failure, but lightspeed itself...

    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: reduce the size of transaction log

    If you run this

    EXEC sp_helpdb 'tempdb'

    What values are returned for maxsize and growth of templog ?

    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: Upgrading from 2000

    Before making the upgrade you might want to do some testing.

    The Developer Edition of SQL 2005 is I think still available at a cost of about $50 (although not from...

    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: I am trying to avoid cursors, what other option can I use?

    I would suggest checking BOL (Books On Line) for the MERGE STATEMENT.

    SQL Server 2008 Books Online (July 2009)

    Inserting, Updating, and Deleting Data by Using MERGE ...

    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: Deleting Duplicated data

    You can use a CTE (Common Table Expression) for example:

    CREATE TABLE #T(Date_Stamp DATETIME,KW1 DECIMAL(5,1), KW2 DECIMAL(5,1))

    INSERT INTO #T

    SELECT '12/10/2010', 5.3, 3.1 UNION ALL

    SELECT '12/10/2010', 5.3, 3.1 UNION ALL

    SELECT '12/9/2010', 4,...

    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: INSERT OUTPUT

    Going back to the basics - Nice 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: Rounding problem in sql 2008

    Read the prior post by Jeff Moden. Using it

    DECLARE @Amount Money

    SET @Amount = -158.98

    SELECT @Amount = @Amount - @Amount % .05

    SELECT @Amount

    Result:

    (No column name)

    -158.95

    DECLARE @Amount Money

    SET @Amount =...

    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: Are the posted questions getting worse?

    Prior last post Posted Today @ 1:03 PM

    Now 8:25 PM DECLARE @t TIME

    SELECT @t = '7:22'

    SELECT DATEDIFF(mi, 0, @t)

    Which is 442 minutes

    What did the site crash, this thread get...

    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: Copies row into the same table if not exists

    You could use the MERGE statement. For an explanation and an example go to

    http://technet.microsoft.com/en-us/library/bb510625.aspx

    or

    http://www.simple-talk.com/sql/learn-sql-server/the-merge-statement-in-sql-server-2008/

    or

    SQL SERVER – 2008 – Introduction to Merge Statement – One Statement for INSERT, UPDATE,...

    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: Export memo field to Excel truncates values

    For EXCEL read the following as EXCEL by default will only display a maximum of 255 characters in a text cell, the links below should be of assistance.

    http://office.microsoft.com/en-us/excel-help/excel-specifications-and-limits-HP010073849.aspx#top

    and

    http://ewbi.blogs.com/develops/2005/02/autofit_an_exce.html

    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: Delete data from table issue

    Be very careful when using IDENTITY_INSERT note what may occur if you are not very careful

    CREATE TABLE #City(Id INT IDENTITY(1,1),[Name] VARCHAR(10))

    INSERT INTO #City

    SELECT 'ABC' UNION ALL

    SELECT 'yz' UNION ALL

    SELECT 'Etc'

    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: Computed Columns 1

    Revenant (1/31/2012)


    A simple yer or no, and I got it wrong... Thanks, Bitbucket -- a good lesson!

    My thanks to you. I have followed your posting here on SSC and...

    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: Deduplication Help

    Siva Ramasamy (1/30/2012)


    Hi,

    I was just following this thread and understood the requirement and I also executed your solution and found that it satisfies the requirement...but not able to understand how...

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