Forum Replies Created

Viewing 15 posts - 1,996 through 2,010 (of 6,036 total)

  • RE: How to pass where condition as parameter of stored procedure

    The best way is not to do it.

  • RE: datetime comparison behaving oddly

    The couse of this trouble is "resolving views" or "opening derived tables" behaviour which was once fixed in SQL2000 SP3 and sadly reintroduced in SQL2000 SP4.

    It stays with us since...

  • RE: error in Transactions... need urget help

    You probably do not need all that excessive "in code" checking.

    The whole point of those checks is to make sure there would not be any error.

    Which is good (as for...

  • RE: Table variable is not automatically dropped in TempDB

    I made up a quick test to verify Gila's suggestion.

    Very interesting outcome.

    Whoever is curios try to run this:

    SET ANSI_NULLS ON

    GO

    SET QUOTED_IDENTIFIER ON

    GO

    create proc [dbo].

    as

    begin

    declare @i table (id int, NAME nvarchar(150))

    select...

  • RE: Search data.

    What dynamic SQL is for?

    CREATE PROCEDURE [dbo].[ProSearchStudent]

    @search varchar(50) = ''

    AS

    IF (DATALENGTH(RTRIM(LTRIM((@Search))))) = 0

    ...

  • RE: Cannot shrink log

    opc.three (4/26/2013)


    For a database that does not need point in time recovery,

    Which means - can afford to lose data.

    Which is not the case by default.

    yes, I would recommend changing...

  • RE: Cannot shrink log

    Are you in some kind of competition for a stupidiest advice ever?

    Is it what you suggest your poor customers: switch recovery mode on all databases to SIMPLE???

    So they do not...

  • RE: Why powershell?

    opc.three (4/26/2013)


    PowerShell has security scaffolding in place

    You might be surprised - but SQL Server has it too.

    And cowboy developers may (most certainly will) ignore that scaffolding in PowerShell as well...

  • RE: Why powershell?

    opc.three (4/24/2013)


    I would also like to mention again that Microsoft has initialized the xp_cmdshell option as "disabled" since SQL 2005 and just about every "Security Best Practices" document, book...

  • RE: Why powershell?

    opc.three (4/26/2013)


    A stand-alone PowerShell prompt on Homer's machine does not offer much over a stand-alone CmdShell prompt on Homer's machine in the way of added security, only in functionality. Both...

  • RE: Cannot shrink log

    FULL backup takes care only about data pages from data files.

    It does not touch TRN log file at all.

    You need to release some sppace in log file by doing BACKUP...

  • RE: Why powershell?

    VBS is out of fashion.

    There is a new kid on the block with huge marketing budget attached to it.

    Everybody must immediately forget about the old and proven tool.

  • RE: Catching culprits of high tempdb growth

    j.a.c (3/27/2013)


    Hi,

    Are there any sessions that have been running for a long time? Any by long time I mean running for days.

    Yep, first thing to look.

    Faced the same problem...

  • RE: filter duplicate students via T-SQL

    geoff5 (4/23/2013)


    After reading through the thread, I see that none of the solutions offered thus far have recognized the necessity of treating the rows with a known IDNo differently than...

  • RE: Trigger to delete old data before Insert

    INSTEAD OF trigger would be useful for the task.

    Look up BOL for details.

    But I support Andrew in his suggestions - regular job is more preferrable for such tasks.

    Or call deletion...

Viewing 15 posts - 1,996 through 2,010 (of 6,036 total)