Forum Replies Created

Viewing 15 posts - 1,786 through 1,800 (of 3,232 total)

  • RE: Take each row from .txt file(s) and INSERT it into a SQL table

    Have you tried using DTS? This would be a pretty simple task using the text file source connection.

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: How to create a View with rows from multiple tables with different columns?

    SELECT 'A',

    aID,

    Col,

    aBol1,

    ...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Another Crappy Cursor

    I'll second that. In fact, it would be good if you'd include sample data from before and after your cursor runs. This seems like a pretty straight forward...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Aggregate counting - monthly totals

    Thanks for picking this one up Matt. I think I messed with the query just before posting it becuase I had the COUNT(*) included when I was playing with...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Error Handling

    Put the error code into a variable so you can return it.

    SET @SQLError = @@ERROR

    IF @SQLError <> 0 .......

    You can then later query @SQLError and get the actual...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: performance problem

    Your average CPU time looks good. When your CPU usage goes up to 100%, how long does it stay there for? If you are just seeing spikes up...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Aggregate counting - monthly totals

    SET NOCOUNT ON

    DECLARE @r TABLE (ID int, DateShipped datetime, ItemId int)

    INSERT INTO @r

    SELECT 1, '1/1/2005', 1 UNION ALL

    SELECT 2, '1/1/2005', 2 UNION ALL

    SELECT 3, '1/2/2005', 1 UNION ALL

    SELECT 4,...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Aggregate counting - monthly totals

    We'll need more helpful information from you on this. You've posted part of your table, where's the rest? The table you've posted has 2 columns, but the...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: help with a join to return unique records

    If SQL Oracle's answer does not do it for you, you'll want to give us some more info such as sample data, expected results, and how 'bout posting the queries...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Restoring database from another server

    Great. Thanks for posting your results.

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Restoring database from another server

    This is a simple task if you use the RESTORE DATABASE T-SQL command.

    First, get the file info from the backup file:

    RESTORE FILELISTONLY

    FROM DISK='backup file path and name'

    Then, restore WITH...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Joining 3 tables.

    What you need is another outer join. Check out this example and see if you can get your UPDATE statement from it:

    DECLARE @STU TABLE (SC int, SN int)

    DECLARE @PRG...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: procedure cache hit rate vs buffer cache hit ratio

    Procedure cache hit rate refers to how often a stored procedures execution plan is found in the procedure cache. Buffer cache hit rate refers to how often a request...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Joining 3 tables.

    From your description, I am not clear on whether you are trying to update the 3rd table or simply add it to the JOIN. Can you clarify this for...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Initializing global variables

    Create an ActiveX task and simply set the variables to zero/blank depending on the data types.

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

Viewing 15 posts - 1,786 through 1,800 (of 3,232 total)