Forum Replies Created

Viewing 15 posts - 2,521 through 2,535 (of 3,616 total)

  • RE: Procedure locks self only on large datasets

    It depends on the design of your table. Is there something that will identify the updated records?

    If so I would be tempted to have some form of loop to...

  • RE: How to filter records based on the login credential

    If you run SELECT System_User it brings back the login name that you are currently logged in as.

    You can create a table that maps System_User to region and then do...

  • RE: Removing accounts

    I would remove it from MODEL.

    I have removed it from MSDB in my environment with no ill effects but I am not doing any complicated development with DTS or SQLServerAgent...

  • RE: Removing accounts

    You cannot remove guest from either master or tempdb.

    If you remove it from MODEL then it won't appear in any future databases that you add to the system. MODEL...

  • RE: Estimating Size of Tempdb

    I start with the assumption that I need a TEMPDB three times the size of my largest table.

    If I have to do a large sort or reindex TEMPDB grows...

  • RE: will adding primary key affect performance negatively?

    If you don't specify otherwise a primary key will be clustered. If the columns that you are proposing to become primary keys are not naturally ordered then having them...

  • RE: Denormalisation and the other option.

    Read http://www.sqlservercentral.com/columnists/dpeterson/lookuptablemadness.asp

    If you use foreign keys then I can see the potential for performance issues when it comes to deleting records.

    If you look at the execution plan of a...

  • RE: 3-2-1-1

    I've reached the age when I time things with a calendar.

    There is a great story about one of the old British colonies where the accuracy of the town clock was...

  • RE: getting incremental data

    I can't see a better way around the need to have a field per table.

    If your database design allows there to be a "common properties" table then your UpdatedDate field...

  • RE: Databases stuck in (Loading) state

    My SQL Script File is as follows

    use master

    go

    ------------------------------------------------------------------------------------

    -- If the backup device already exists then drop it and recreate it

    ------------------------------------------------------------------------------------

    IF EXISTS(SELECT 1 FROM sysdevices WHERE name='epos_Backup')

    exec sp_dropdevice 'epos_Backup'

    GO

    exec sp_addumpdevice 'disk','epos_Backup','D:\Epos\BACKUP\DW_EPOS.BAK'

    GO

    --...

  • RE: Securing Tables

    The roles that can DROP a table are DBO, DDL_Admin, obviously the SA login and other members of the SysAdmin role.

    Provided your user is not a member of such roles...

  • RE: Best way to identify the first SAT of a month

    I think you also need to consider the @@DATEFIRST setting which determines which day of the week is considered DAY 1.

    For example US English Sunday is Day 7. For...

  • RE: Create a CHM file out of SQL Server database?

    Innovasys DocumentX and Apex SQL Doc both do it.

    If you are only interested in SQL the Apex SQL Doc is the most detailed.

    If you want something that also does Access,...

  • RE: truncate_only

    Just as a matter of interest SQLBill do you use the straight SQL Backup or do you use a tool such as SQL Litespeed?

  • RE: DateTime without hour

    Why not

    SELECT CAST(CAST(GETDATE() AS INT) AS DATETIME)

Viewing 15 posts - 2,521 through 2,535 (of 3,616 total)