Forum Replies Created

Viewing 15 posts - 3,961 through 3,975 (of 7,164 total)

  • RE: XML data in a row column

    It would help immensely if you were to provide the DDL for the destination table, and a representative sample of the data that would reside in that table using the...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: OpenRowSet saves image in which format?

    SQL Server is unaware of the image format. You could store a Word doc or a PDF in a VARBINARY(MAX) column for all it cares. The bits are stored in...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: merge query with multiple tables

    :exclamation: Note: this is a year-old thread.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Rollingback truncation in SSIS

    Koen Verbeeck (5/24/2012)


    opc.three (5/24/2012)


    The two Execute SQL Tasks you mention point to the same database, using the same connection, sounds good. What happens to that transaction if an exception occurs...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Transaction Isolation Level based on Login

    I'll second, third, and fourth that...education, education, education!

    If that is a lost cause, I know it was in some shops where I have been, you might look into enabling...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Inserting While Selecting a SQL Table

    It is a function, not a global variable. Try it like this:

    return SCOPE_IDENTITY()

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Sending email script

    A no-cursor option:

    DECLARE @sql NVARCHAR(MAX);

    SET @sql = N'';

    SELECT @sql = @sql + 'EXEC msdb.dbo.sp_send_dbmail

    @recipients = ''' + REPLACE(email,'''','''''') + ''',

    @subject...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: How to see the last execution date of database objects in sql server 2005

    This may help:

    SELECT TOP 10

    DB_NAME(x.dbid) AS db,

    OBJECT_SCHEMA_NAME(x.objectid, x.dbid) AS schemaname,

    ...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Converting DBCC REINDEX into ALTER INDEX

    Drenlin (5/24/2012)


    I have enough understanding to play further.

    By all means dig in and learn the internals but there is no sense in re-inventing the wheel. May I recommend a solution...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Rollingback truncation in SSIS

    Koen Verbeeck (5/24/2012)


    opc.three (5/23/2012)


    MisLead (5/23/2012)


    I have an execute task that truncates the table when the package runs. Downstream I have dataflow tasks that fetches fresh data and populates that data...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: PowerShell - Get Permissions

    What bruce provided is exactly what I described. You can use the Split-Path cmdlet to get the directory names as you move thorugh the collection of data and log files....

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: after migrate database

    sqlfriends (5/23/2012)


    Thanks, so when in what situations we should run update usage?

    Read the Remarks section here: DBCC UPDATEUSAGE

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: after migrate database

    sqlfriends (5/23/2012)


    Thanks, does udpateUsage need to be run after I changed the database compatiblity from 2005 to 2008?

    No, compat mode is not a concern for udpateUsage.

    I see it uses statistics...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: after migrate database

    sqlfriends (5/23/2012)


    Can we run [index rebuild and checkdb] maybe a week after the server swap?

    Sure. If you have to pick and choose then skip running checkdb and skip rebuilding all...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: after migrate database

    None are technically required. All three are a good idea. I would do 3 before 2 and would use sp_updatestats or UPDATE STATISTICS WITH COLUMNS on all tables.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

Viewing 15 posts - 3,961 through 3,975 (of 7,164 total)