Forum Replies Created

Viewing 15 posts - 3,331 through 3,345 (of 3,615 total)

  • RE: Two Best Practices!

    Sorry, forgot the language barrier.

    They say that eskimos have thousands of names for snow, the British have millions that can be used as insults.

    Bodily parts can be used as insults...

  • RE: Two Best Practices!

    I used to work on an HP3000 mini-computer where the console had ultimate control followed by administrators followed by users.

    We had a utility that let us impersonate differing levels of...

  • RE: Two Best Practices!

    In my environment yes because

    • I have a suitable carrot (the keys to the bosses drinks cabinet and the ability to sign expense forms).
    • I have a suitable stick (I contribute...
  • RE: Two Best Practices!

    As a DBA I expect all submitted code to be commented.

    The comments should detail up front which tables are going to be used, what variables if any are declared and...

  • RE: msdb size

    Do you mean the physical size of the database or the amount of data within the database?

    If you use sp_helpfile within your database this will give you the files used...

  • RE: Use of Cursors

    I've had situations where I have had to use cursors.

    I had a recordset containing the stages in securing a sale for customers.

    The complete set of stages was called a chain.

    Certain...

  • RE: Use of Cursors

    quote:


    SQL Server is based on the relational model ....but not a very good implementation of it.

    Of course, since SQL Server is not...

  • RE: Best Practices in an Adhoc Environment

    I would add that stored procedure names should not start with sp_ because SQL Server will search the MASTER database for the stored procedure first and then the user database....

  • RE: Whats wrong with these indices?

    It looks like you are creating two indices on the SID column of your tables.

    To compound it, one is the primary key and the other is a unique index.

    CREATE TABLE...

  • RE: updating multiple rows in one shot

    quote:


    UPDATE a

    SET a = b.a,

    b = b.b,

    c = b.c,

    d = b.d

    FROM a,b

    WHERE a.id = b.id


  • RE: Use of Cursors

    In short, SQL Server works best with sets of data rather than at an individual record level so in most cases eliminating cursors will yield a performance boost.

    Cursors are there...

  • RE: Need to break large text field into rows

    I'm not sure if this helps because it loops through your table and your data within a stored procedure.

    
    
    CREATE PROC usp_SplitMyBigText AS

    SET NOCOUNT ON
    declare @lId...
  • RE: SQL Server Security: Fixed Database Roles

    Nice summary.

    The one thing that puzzles me is that in SQL6.5 we used the sp_addalias in order to alias users to the dbo as there wasn't a db_owner role.

    This got...

  • RE: text -> ntext causes massive size increase...

    Is it purely your text fields or have you converted varchar to nvarchar, char to nchar etc?

    If you used nchar and nvarchar then not only does the base data take...

  • RE: Backup cannot be performed on this DB

    I got caught on this one as well.

    If a database is in "simple" recovery mode then the transaction log backup portion of the maintenance plan will fail.

    Coming from SQL 6.5...

Viewing 15 posts - 3,331 through 3,345 (of 3,615 total)