Forum Replies Created

Viewing 15 posts - 2,551 through 2,565 (of 3,221 total)

  • RE: Removing Duplicates from very large table

    Whoops did not realize this was SQL 2000 - sorry Thanks Sergiy

    Have you looked at ROW_NUMBER (Transact-SQL) in BOL? It is very useful and quite fast for...

    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: Date time by hour

    yulichka

    SELECT COUNT(*) AS 'Staff Count'

    FROM #Table GROUP BY DATEPART(m, SignIn),DATEPART(d, SignIn),DATEPART(yy, SignIn),DATEPART(hh, SignIn)

    for your use just substitute the fully qualified table name as your schema name your tables name...

    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: Data loading using cursors for row by row fetch, check and insert,very slow help please.

    John_Chrome

    but the data to be validated is such that it isnt just nulls to be checked a lot more needs to be checked

    and

    check for valid data in the table...

    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: Date time by hour

    Using T-SQL and a temporary table for illustration

    CREATE TABLE #Table

    (SignIn DATETIME)

    INSERT INTO #Table

    SELECT '4/6/2009 6:10:17 AM' UNION ALL

    SELECT '4/6/2009 6:10:51 AM' UNION ALL

    SELECT '4/6/2009 6:11:22 AM' UNION ALL

    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: Data loading using cursors for row by row fetch, check and insert,very slow help please.

    john_chrome

    Step 1. Import all the data without any additional processing this is what I imitated in creating the temporary table #Table1.

    Step 2. Identify all rows in #Table1 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: Data loading using cursors for row by row fetch, check and insert,very slow help please.

    Assuming I read your post correctly and more importantly what the Cursor was utilized for, you might want to try the following to eliminate the Row by Row cursor processing

    CREATE...

    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: The T-SQL Paradigm

    From Dataphor SQL RAC

    Dataphor - Sql: what does Update..From mean?

    What is really wrong with the "UPDATE.. FROM.." syntax?

    This example uses MS Sql Server 2005

    and

    the D4 language 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: Best Replaces for Cursor

    Removed as confusing to too many

    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: Best Replaces for Cursor

    Paul White

    The answer is..."it depends!"

    Sometimes, a cursor *is* the optimal solution. Not often, but it does happen.

    Paul care to post some code that shows an example of where a cursor...

    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: Best Replaces for Cursor

    I highly recommend an article by Jeff Moden

    http://www.sqlservercentral.com/articles/TSQL/62867/

    If you really want to get into the depths of replacing a cursor follow this forum here on SSC

    http://www.sqlservercentral.com/Forums/Topic695508-338-1.aspx

    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: SQL Server Agent - Job History - Output Log

    In the msdb database check the following stored procedure:

    sp_sqlagent_log_jobhistory - I believe it is what you are looking for. It is a long proc so read it all.

    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: vb sort by row

    I am going to guess the answer is Yes. But with the data you have given, it is difficult if not impossible to assist you. Please read 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: insert and update issue

    Are you sure you are passing in a value - paraphrasing your procedure

    CREATE PROC dbo.myproc

    @Exists INT

    AS

    IF @EXISTS = 1

    BEGIN

    PRINT 'UPDATE METHOD HERE'

    END

    IF @EXISTS =0

    BEGIN

    PRINT 'INSERT METHOD HERE'

    END

    dbo.myproc NULL -- imitating...

    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: Randomising values in a given column

    Suggest that you view this School Video by Randy Warren

    http://www.sqlservercentral.com/articles/Video/65076/. It appears to fit perfectly as a answer to your problem

    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: New to SQL Server

    I know that this will not be the real answer to your final deployment on a hosted server, but have you examined the availability of SQL Server 2008 DEVELOPER EDITION....

    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 - 2,551 through 2,565 (of 3,221 total)