Forum Replies Created

Viewing 15 posts - 5,686 through 5,700 (of 7,191 total)

  • RE: remove duplicate records from a table

    Ah, so this is an interview question!

    (1) Create the table and use the SELECT statement to add the data into it.

    (2) "name" is the name of the column you supplied...

  • RE: remove duplicate records from a table

    I take it your comma key is missing or your Parse button doesn't work?

    Anyway, I corrected your code and here are your options:

    (1) Create a new table and select filtered...

  • RE: remove duplicate records from a table

    Please can we have table DDL and sample data in the form of INSERT statements. Then we'll be able to help you.

    Thanks

    John

  • RE: SSIS - Assign value to a variable

    Chris

    Yes, that's how I'd do it.

    John

  • RE: SSIS - Assign value to a variable

    I assume that either the source or destination of your data flow is a SQL Server table? If it is, then you can create an Execute SQL task to...

  • RE: Procedure recompile

    Frank

    If the procedure is being called 1000 times but does not use the most appropriate execution plan every time, could this be because you are supplying different parameters each time?...

  • RE: Views with NULL values

    Would this work?

    COALESCE(MyCol + CHAR(13),'') + COALESCE(MyNextCol + CHAR(13,'') + ....

    John

  • RE: Scripting help

    Have you considered using SSIS? It has built-in file manipulation tasks, so it should be just what you need.

    John

  • RE: SQL Server Job Monitoring

    I'm afraid I don't know of any such stored procedure and I've never written a query myself to get this information. I don't think it's possible to take account...

  • RE: SQL Server Job Monitoring

    Does this need to work for absolutely any schedule, or are you going to use it only on certain types of schedule, for example transaction log backups that occur every...

  • RE: Optimizing the Query..

    vijay1327-891581 (10/6/2010)


    NOTE: Use this NOLOCK only if its astatic table, else you will be DIRTY reading.

    If it's a static table then NOLOCK won't help since there won't be any locks...

  • RE: database access

    If all your stored procedures are in the same schema, just grant execute on the schema.

    John

  • RE: last backup date query

    Mmmm.... surely by adding the line [font="Courier New"]WHERE r.type = 'L'[/font] at the end?

    John

  • RE: last backup date query

    Roland

    Try this.

    John

  • RE: Grouping Out Of Order

    DECLARE @BookLoans table

    (

    BookID int,

    StudentID int,

    LoanDate datetime,

    ReturnDate datetime

    )

    INSERT INTO @BookLoans

    ...

Viewing 15 posts - 5,686 through 5,700 (of 7,191 total)