Forum Replies Created

Viewing 15 posts - 5,671 through 5,685 (of 7,187 total)

  • RE: How Truncate statement ?

    wware (10/21/2010)


    Truncate does not fail for me...?

    That's because you haven't defined a foreign key constraint.

    John

  • RE: Column value changed?

    Unless you already had something set up to track changes on your tables, there is no way of doing what you require. For the future, create triggers on those...

  • RE: SQL Server Agent service can not start

    I've seen this happen before where the location for the SQL Server Agent log file doesn't have the right permissions on it or doesn't exist.

    John

  • RE: Database backup policy

    yjeevanrao.net (10/21/2010)


    Hi john,

    Thanks for your spontaneous response. can you please give me any guide lines how to do this.

    Jeevan.

    Jeevan

    Search on the internet for introductory tutorials for SSIS, then work...

  • RE: Database backup policy

    Jeevan

    You can write scripts to do this in T-SQL, but file manipulation isn't what T-SQL is designed for, so you're probably best creating a SSIS package to back up the...

  • RE: How Truncate statement ?

    Hugo Kornelis (10/21/2010)


    Iulian -207023 (10/21/2010)


    With all these restrictions what kind of application would use truncate table?

    An application that does not use triggers, is not involved in transactional replication or merge...

  • RE: Script to delete old bak files in sql server 2008

    As far as I know, xp_delete_file and others like it are undocumented, not deprecated. That means you should take care when using them since they could be deprecated or...

  • RE: Script to delete old bak files in sql server 2008

    Use maintenance plans. I think the task you need is called Maintenance Cleanup.

    John

  • RE: Insert trigger not working

    I think I would start by removing the cursor from the trigger and instead insert the data as one set into the timetable table. You'll get performance problems when...

  • RE: Data archive

    Something nobody's mentioned is foreign key constraints. If another table has a dependency on the table you are deleting from, and your foreign keys don't have cascading deletes, you'll...

  • RE: Insert duplicate records into an alternative table

    Please will you provide some sample data in the form of INSERT statements, and show us what you've already tried? You'll find that more people will be willing to...

  • 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

Viewing 15 posts - 5,671 through 5,685 (of 7,187 total)