Forum Replies Created

Viewing 15 posts - 871 through 885 (of 1,409 total)

  • RE: Backup failed

    If I recall correctly the SQL Engine service of SQL 2000 is named "MS SQL Server". When you have the services sorted on name (default) the Engine service is -not-...

  • RE: Date Validations?

    If you want to validate text-strings in a table field, you can use a TALLY table to match the values against.

    Create a table with a datetime field and fill it...

  • RE: Continue control from rollback in trigger to procedure

    You posted this question in the SQL 2000 forum, so I don't know if you can use this.

    If you are on SQL version 2005+ then you have the ability to...

  • RE: Blocked

    Or to make use of the DMV's:

    select count(*)

    from sys.dm_exec_requests

    where blocking_session_id <> 0

  • RE: Blocked

    select count(*) as blocked_actions

    from master..sysprocesses

    where blocked <> 0

  • RE: Update Problem

    P.S.: No need to use all capital letters

    You can execute a simple update command to alter the value in the shift_table (the @new_value and @shift_id are variables with the values...

  • RE: Update Problem

    Do you need to change the values in a generic way (i.e.: add a fixed value, replace with a fixed value, etc.)?

    Do you need to change the values in a...

  • RE: Update Problem

    immaduddinahmed (7/19/2013)


    dont fix the values please

    ??

    I don't understand what you mean. Please clearify.

  • RE: Update Problem

    update shift_table

    set shift = case shift_id

    when 1 then 'C'

    when 2 then 'B'

    else shift_id

    end

    where shift_id < 3

    You can expand and/or alter the CASE statement to your specific needs. Also try to...

  • RE: where filter col <> 0 returns error, col > 0 works, col contains no 0

    You can remove the CONVERT part from the SELECT to get the (estimated) query plan. But that doesn't remove the incorrect value.

    You really should fix this incorrect value(s) first.

  • RE: Help needed in writing a stored procedure

    The query execution won't get any better with this solution. But the code below will do what you want:create procedure search_row

    (

    @search_1 nvarchar(100) = null

    , @search_2 nvarchar(100) = null

    , @search_3 nvarchar(100)...

  • RE: Update Problem

    Without proper DDL (create table) statements and sample data it is hard for us to understand and help you.

    If I understand correct you have a view with data from 2...

  • RE: Help needed in writing a stored procedure

    iiit.raju (7/19/2013)


    Instead of this : exec search_row null, null, 'Bang' i want exec search_row 'bang'

    I don't want any null values to be written.similarly all others.hope you got me.

    For this case...

  • RE: Help needed in writing a stored procedure

    dwain.c (7/19/2013)


    I recommend that you read the article that I posted too.

    Thanks Dwain, I've read the post.

    But sometimes (when the table is small) a stored procedure that is easier to...

  • RE: Help needed in writing a stored procedure

    If you are able to specify on which column you are searching, then below is a simple solution:

    create procedure search_row

    (

    @skills nvarchar(100) = null

    , @position nvarchar(40) = null

    , @location nvarchar(50) =...

Viewing 15 posts - 871 through 885 (of 1,409 total)