Forum Replies Created

Viewing 15 posts - 26,281 through 26,295 (of 26,487 total)

  • RE: Dynamic SQL - Drop Table

    Like I said, arguing is pointless.  Neither of us is going to be swayed to the other side.  You can continue to write your code your way and I will...

  • RE: Truncating Transaction Logs

    Don't do an explicit log truncate after a transaction log backup.  You may truncate a transaction that completes after the transaction log backup.  Let the transaction log backup handle deleting...

  • RE: Dynamic SQL - Drop Table

    Sorry to disappoint you, but I am knowledgeable about the subject, although I may not be an expert.  It is better to explicitly destroy that which is explicitly created.  It...

  • RE: Dynamic SQL - Drop Table

    The other issue to consider: system performance and scalability.  When does SQL Server destroy your #table temporary tables?  Do they automatically get destroyed and free up disk space in tempdb...

  • RE: Dynamic SQL - Drop Table

    In a properly designed system, if you create a temporay table, you should drop it.  You should not rely on the system to clean up after you.

     

  • RE: Pivot or CrossTab problem

    Try this:

    select count(*) from (

    select

        a.IDP,

        a.IDQ,

        b.IDQ

    from

        dbo.ENC_ANSWERS a

        inner join dbo.ENC_ANSWERS b

            on (a.IDP = b.IDP)

    where

        a.IDQ = 'Male'

        and b.IDQ = 'Office'

    ) t

     

    hth

  • RE: Dynamic SQL - Drop Table

    Agree. It is always a good idea to drop the temp table rather than relying on SQL to clean up when the table passes out of scope.

     

  • RE: Unable to schedule a DTS package that I can run manually.

    Definately sounds like a permissions issue.  As above, look at the account that SQL Server is running under on the server.  It needs to have access to the Linux server...

  • RE: Server CAL question

    I think that depends on how you do authentication.  If you will be using Windows Authentication, then the answer is most likely, yes.  If you are using SQL Authentication, then...

  • RE: DB from SQL Server 2000 to 2005 - what is the best method

    The two methods I have had success with are the detach/attach and backup/restore.  I have not had any success with the Copy Database method using SQL Management Object method.

    hth

  • RE: Truncating Transaction Logs

    Luke L,

    One thing in your explaination about backups: full and differential backups do not truncate the transaction log.  That is only done by the transaction log backup.  Full and Differential...

  • RE: Truncating Transaction Logs

    When you truncate the transaction log, you are deleting all commited transactions that have been checkpointed (written to the database).

    If you are no doing transaction log backups, and only truncating the...

  • RE: xp_sendmail error...

    Is it safe to say that this is the format of your exec:

    exec master.dbo.xp_sendmail @recipients = N'username@company.com', @message = N'Test'

    If so, I have no idea as this works for...

  • RE: Dynamic SQL - Drop Table

    declare @tableName sysname -- your parameter

    set @tableName = 'dbo.tmpSalesRollUpUserId'

    declare @sqlCmd nvarchar(4000)

    set @sqlCmd = N'drop table ' + @tableName

    exec (@sqlCmd)

     

    hth!

  • RE: Cannot use column aliases in "Group By" clause?

    Using a derived table should also work.

Viewing 15 posts - 26,281 through 26,295 (of 26,487 total)