Forum Replies Created

Viewing 15 posts - 46,126 through 46,140 (of 49,571 total)

  • RE: conditional select statement

    You're missing an END on the case

    SELECT isnull([PAID],'NO') as [PAID] ,

    CASE WHEN isnull(a.[Refill Sales ID],0) = 0 then 'No Refil'

    ELSE...

  • RE: conditional select statement

    Should be possible with a case statement. Something like this (partial code only)

    SELECT ...

    CASE WHEN [Refill ID] IS NULL

    THEN 'No REFIL'

    ...

  • RE: SQL SERVER detected a logical consistency-based I/O error: torn page

    Could you post the entire error message please? The title gets cut short.

    No backup? Why not?

  • RE: wht happend if transactional log file is deleted

    Gone as in deleted from the operating system? how did that happen?

    Do you have a recent backup?

    How many log files did the database have?

    Was the database detached cleanly from...

  • RE: I am going for MS SQL Exam 70-431 but I don't know any idea for Simulation Q?

    Download the 180 day demo of SQL server if you don't have access to a SQL server and get familiar with management studio. The only way you're going to pass...

  • RE: Table var maximum row number

    Matt Miller (6/23/2008)


    Gail - in 2005, if you knew it was going to recompile - would you FORCE the recompile on a given statement?

    If I know absolutely, for...

  • RE: Truncate Log

    Add to that a full backup after switching back into full recovery mode. After truncating log you have no point-in-time recovery untill you take a full/diff backup.

  • RE: suspect

    Manoj (6/23/2008)


    That's perfact, I will do the same. If you can not able to do that then probably Last backup is the best one.

    Actually the restore of last backup should...

  • RE: Table var maximum row number

    Depends. I've seen some cases where the slightly less accurate plan was better than a recompile of the entire proc (SQL 2000). On 2005 with statement level recompiles, would probably...

  • RE: Table var maximum row number

    Yup, though you can still get a stats-based recompile from the temp table, sometimes even more than once.

  • RE: Table var maximum row number

    The main advantage I've seen for table vars is that they don't cause a stored proc to recompile.

    As for number of rows, it depends what you're going to do...

  • RE: Identifying stored procedures used by reporting services

    Perhaps you could run profiler for a while and filter on the application name. I'm not sure 100% what appname reporting services uses, but it should be fairly easy to...

  • RE: ROWIDTOCHAR

    SQL doesn't have an equivalent to the Oracle RowID.

    What are you trying to achieve?

  • RE: Killing processes no more possible

    And the process does exist? If you run sp_who2 <Spid> does ti return a row?

    Are you sysadmin on that server?

    Has the problem been around since the rebuild of the server...

  • RE: suspect

    Depends why it's suspect. Check though the error log, see if you can find an entry in the log saying that SQL is marking the database suspect. It should give...

Viewing 15 posts - 46,126 through 46,140 (of 49,571 total)