Forum Replies Created

Viewing 15 posts - 721 through 735 (of 1,319 total)

  • RE: TSQL

    Jason Shadonix (3/26/2009)


    RBarryYoung (3/26/2009)


    ganeshi (3/26/2009)


    This works on both SQL 2000 and 2005 and produces answer (c). Please amend the question to be more specific about SQL versions.

    Ganesh

    I have tested it...

  • RE: TSQL

    RichardB (3/26/2009)


    What a crap question.

    Plain wrong, in fact.

    That's two "clunkers" in the last 2 weeks. I answered the question correctly, from a SQL 2000 standpoint, and was told it...

  • RE: Why my Join does not work ?

    Just a hunch based on what your expected output is but category ID is 11, 12 and 13 not 1, Maybe where left(categoryId, 1) = 1 is what you're trying...

  • RE: DateDiff if null

    Should be getdate() not [date]

    Select case when (leavedate is null)

    then datediff (day,enterdate,getdate())

    else datediff (day,enterdate,leavedate)

    end as 'totaldays'

    from reservations

  • RE: Test Server Syncing with Production

    You'll need to make the obvious database/mdf/ldf/path name changes. Look up restore database in BOL for more options.

    RESTORE DATABASE [LIVE1]

    FROM DISK = 'C:\Backup\LIVE.bak'

    WITH...

  • RE: Demo: Full msdb log error#9002 and Demo: Full tempdb

    There are a few "demo" alerts that come with SQL server 2000, these being two of them. Mine are enabled so they will fire if a threshold has been reached,...

  • RE: SQL Server Job Notification

    One thing I would suggest - email on failure only. You'd be surprised how de-sensitized you will become to the influx of emails, especially if 99.9% are successes. If the...

  • RE: Shrinking Database file

    SUBRAHMANYA HEDGE (3/23/2009)


    But I think one can use Truncate_only with proper planning...

    There is no proper planning for this type of task. It should be used on rare occasions where a...

  • RE: Named Instances

    On the SQL server machine, right-click on my computer and select "Manage". Expand shared folders and click on "Open Files". Search for your file name to determine who has a...

  • RE: Large Transaction log Backup failing with OS error 33

    Please don't tell us you haven't had a backup in nearly 6 months???? And is so, what took so long to find a resolution?

  • RE: Wierd error in Differential Backup

    Can you locate the script that's generating the backups? You cannot do a differential via a maintenance plan so there has to be a script somewhere. One of the backup...

  • RE: Secondary Data file (ndf)

    And, obviously, be sure you have a full, clean backup before starting. It should be a pretty straight forward process but you never know.

  • RE: How to import data from text file into SQL

    dmoldovan (3/19/2009)


    As I can see from the sample data, the quote seems rather the "text qualifier"...

    Halifaxdal, can you tell which separator was used when creating the text file?

    I realized that...

  • RE: How to import data from text file into SQL

    Based on your sample data, wouldn't you use quote separated or am I missing something? Using the import wizard, I believe it's the first or second screen after you select...

Viewing 15 posts - 721 through 735 (of 1,319 total)