Forum Replies Created

Viewing 9 posts - 3,631 through 3,640 (of 3,640 total)

  • RE: Worst Practices - Part 1 of a Very Long Series!

    I agree with using Hungarian notation for objects and variables.

    I would NOT use it for anything that a user might see such as a column name.

    I picked up the idea...

  • RE: dbo user with a NULL Login

    Trawling through the Microsoft site it turns out that this is a known bug when SQL is configured for Windows NT Authentication.

    The work around is, as Andy recommended, to use...

  • RE: dbo user with a NULL Login

    Thanks.

    I've tried that but it doesn't let me reassign the SA account back to the dbo user.

    I'm a bit concerned that any further databases created all seem to have this...

  • RE: Best Practices for maintaining a healthy Database?

    I was recently asked to install some databases for a client and their support company specified that the database should be split into 3 filegroups.

    1. PRIMARY - to be...

  • RE: Avoiding Dynamic SQL in Stored Procedures

    The problem is that the number of queries you need to write grows geometrically.

    1 variable = 2 queries.

    2 variables = 4 queries.

    3 variables = 8 queries etc.

    In other words the...

  • RE: Best use of indices

    Just to clarify:-

    The index is on ColA, ColB.

    If the WHERE clause searches on ColA only will the index be used?

  • RE: Avoiding Dynamic SQL in Stored Procedures

    Yes, it works.

    I read somewhere that evaluating NULLs has a performance hit, although I suspect it is very minor in this case

  • RE: Returning Values From Stored Procedures

    They say that lazy people take most pains!

    I had seen a syntax for an INSERT statement that went something like:-

    INSERT Tbl_X

    EXECUTE Sp_Y

    Where Sp_Y returns a recordset.

    I was wondering if there...

  • RE: Using Xp_sendmail With the Recipients Generated From a Query

    Here is the same thing avoiding CURSORs.

    Use Test

    GO

    Declare @MyRecipients nvarchar (255)

    Declare @MyMessage nvarchar (255)

    Set @MyRecipients=''

    Set @MyMessage = ‘Your timesheet is overdue, please send it ASAP.'

    WHILE @MyRecipients IS NOT NULL

    ...

Viewing 9 posts - 3,631 through 3,640 (of 3,640 total)