Forum Replies Created

Viewing 15 posts - 1,006 through 1,020 (of 3,011 total)

  • RE: Memory Spec for Enterprise says 2TB Max

    The 2 TB limit applies only to SQL Server 2008 R2 Enterprise Edition.

    For SQL Server 2008 Enterprise Edition, the limit is Operating system maximum.

  • RE: Critique - Common SQL Server Mistakes

    I think the big mistake that beginners make with triggers is using them at all. They see them as a sort of event driven solution, and don't really understand...

  • RE: Should SSIS sit on its own server?

    We have been using centralized servers for DTS and SSIS for several years for packages that mainly produce scheduled customer reporting deliverables like spreadsheets.

    A big advantage is that it allows...

  • RE: Automate restores on another server

    The script on this link shows how to generate a restore command using output of the restore HeaderOnly and restore FilelistOnly commands. Using this as a base, you can...

  • RE: Is this a Proper Backup?

    Transaction log backups should be scheduled to run much more often than once per day.

    We usually run them every 15 minutes, 24x7. If the database has very high activity,...

  • RE: Critique - Common SQL Server Mistakes

    You could expand with more on database design:

    Failure to normalize

    No primary keys or unique constraints

    Inappropriate data types

    Failing to define columns as not null

    No foreign keys or DRI

    No check constraints

    Many...

  • RE: Select data for a year

    It is best to do the selection on a date range, and not use a selection where your column is in a function call. If your column is used...

  • RE: Can I add an explicit lock to hold a record?

    No need for that. Just do the INSERT in one statement so no one can get in between.

    declare @MyTable (Run_id int not null )

    INSERT INTO dbo.Jobs

    ( Run_id )

    OUTPUT

    INSERTED.Run_id

    INTO

    @MyTable

    SELECT...

  • RE: How to calculate average run times between SQL Agent Jobs

    Convert it to total seconds first, and then you can compute the average seconds.

    select

    TotalSeconds =((Hours*3600)+(Minutes*60)+Seconds),

    *

    from

    (

    select

    Hours= duration/10000,

    Minutes = (duration/100)%100,

    Seconds = duration%100,

    *

    from

    ( -- Test Data

    select duration = 43856

    ) a

    ) aa

    Results:

    TotalSeconds Hours...

  • RE: How to add date and time

    Serge, you should port your question on a new thread, instead of hijacking an old unrelated thread.

  • RE: Scaling Up

    The most important thing with databases that size is to not give the job to inexperienced database designers and developers. No amount of hardware resources will make up for...

  • RE: Not able to restore in WIndows 2008 Enterprise Edition from Standard Edition

    You cannot restore a backup of a SQL Server 2008 R2 database to a SQL Server 2008 server.

  • RE: How to add date and time

    You can just add them together. Example:

    select

    a.[Date]+a.[Time] as DatePlusTime,

    a.*

    from

    (

    select-- Test Data

    [Date] = convert(datetime,'2010-09-29 11:53:00') ,

    [Time] = convert(datetime,'01:00:00')

    ) a

    Results:

    DatePlusTime ...

  • RE: Converting table-valued function to dynamic SQL

    Why do you want to replace this? Is it causing some performance problem?

    WHERE X_Column IN (SELECT parameter FROM fn_getParmTable(@input_parameter))

    Trying to turn the the delimited parameter list into dynamic SQL...

  • RE: Index Fragmentation

    You can see the fillfactor with this query. If it is 0 or 100, that means to completely fill the pages.

    You can try reducing the fill factor by 10...

Viewing 15 posts - 1,006 through 1,020 (of 3,011 total)