Forum Replies Created

Viewing 15 posts - 676 through 690 (of 1,583 total)

  • RE: How to get the next ID

    DECLARE @ID int

    SET @ID = 3

    SELECT ID + 1 WHERE ID = @ID

    ?

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: Tracking a change to the notifications on an Agent job

    Place trigger on the msdb..sysjobs table for each server you wish to monitor - something like the code attached will work, just add in the statements to check the INSERTED...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: Weird Performance problem. Fast on standalone laptop, slow on super-duper server.

    What's the network connection/switches between all this hardware? Is the DB server connected to the SAN via a fiber-channel or regular ethernet? Also does the same performance issues...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: Multiple Data and Log Files

    Not meaning to hijack the thread (but I have a question that is directly-related). If dealing with 2 logs files (the primary LDF file and an additional) and log...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: Conversion to Date

    Also, the date datatype won't work in SQL 2005, it's new to SQL 2008

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: Conversion to Date

    Something simple?

    DECLARE @Tmp TABLE (col1 varchar(8))

    INSERT INTO @Tmp

    SELECT '201210' UNION ALL

    SELECT '201211' UNION ALL

    SELECT '201212' UNION ALL

    SELECT '201301' UNION ALL

    SELECT '201202'

    SELECT CONVERT(date, col1 + '01', 101) FROM @Tmp

    (Date)

    2012-10-01

    2012-11-01

    2012-12-01

    2013-01-01

    2012-02-01

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: transaction log size reduction

    If you haven't specified it during the initial install, it's set to 0 by default, meaning that it happens automatically (running approximately every 1 minutes for active DB's)

    Reference MSDN here

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: problem in select command

    How can I remove my post?

    😀

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: Transact replication on two computers

    The issue is it can't read the file at D:\unc\DAMIAN-PC$PCTWO_TESTOWA_TEST

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: Transact replication on two computers

    This error is "The system cannot find the path specified"

    Check that the service account (running your replication agents, etc.) have the necessary permissions to the directory(ies) - currently it can't...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: Transact replication on two computers

    At the SQL Server instance level do you have the publisher and subscriber to "Allow Remote Connections?"

    And in your linked server, have you enabled "data access"?

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: problem in select command

    I'm going to assume there's more rows in the table than 2, and you want just the last 2 of them ordered in ascending order?

    Try:

    ;WITH MyData AS (

    ...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: How to find cause of Replication delay?

    There are many alerts you can set up via the replication monitor (I encourage you to set those up as well). To create a custom process to track (this...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: Suggestions on TEMPDB Setup

    GilaMonster (3/15/2013)


    Why? TempDB files, like user database files, are used with a proportional fill algorithm, so there's no difference between 2 files of 140GB and 4 files of 70GB, it's...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: Suggestions on TEMPDB Setup

    I'd recommend you place your TEMPDB Log file on a different drive...

    Seems like nice hardware for the server regarding CPU's but what about RAM and the disk subsystem? I...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

Viewing 15 posts - 676 through 690 (of 1,583 total)