Forum Replies Created

Viewing 15 posts - 1,531 through 1,545 (of 2,894 total)

  • RE: Open Event Viewer from SQL Server

    It's hanging up because it's waiting for output.

    Try:

    exec xp_cmdshell 'start c:\windows\system32\eventvwr.msc'

    The above should return.

    Then check in Task Manager, you will see MMC.EXE process running.

    You will not be able to...

  • RE: Open Event Viewer from SQL Server

    khushbu (5/21/2012)


    Eugene Elutin (5/21/2012)


    khushbu (5/21/2012)


    derek.colley (5/21/2012)


    Yes, execute:

    xp_cmdshell 'eventvwr.msc', no_output in a new query window.

    If this fails prefix with c:\windows\system32.

    I already tried this .. strangely nothing happens and query keep on...

  • RE: Open Event Viewer from SQL Server

    khushbu (5/21/2012)


    derek.colley (5/21/2012)


    Yes, execute:

    xp_cmdshell 'eventvwr.msc', no_output in a new query window.

    If this fails prefix with c:\windows\system32.

    I already tried this .. strangely nothing happens and query keep on executing .. and...

  • RE: SQL 2005 - Encrypting column data while storing in tables

    I don't think there is any in-build way. You will need to use "instead of" triggers when inserting and updating data. Check this one, it has some good samples to...

  • RE: General Qestions

    k.subramanyam1017 (5/21/2012)


    Hi friends,

    could u please any one tell me the these questions

    1) what is your company file architecture and how much data u r handle.

    2) how...

  • RE: QUERY

    michael vessey (5/21/2012)


    (2,1,'NEWinforecieved','05/17/2012 24:36','bashdsu')

    are you taking the mick ? i think you ned to buy a new watch...

  • RE: How to retain the variable's value in a dynamic sql? Thanks.

    Tried this, also failed:

    EXEC sp_executesql

    @query = @sql,

    @params = N'@subTotal VARCHAR OUTPUT',

    @subTotal = @subTotal OUTPUT

    Error:

    Msg 214, Level 16, State 2, Procedure sp_executesql, Line 1

    Procedure expects parameter '@statement'...

  • RE: parse string

    Jeff Moden (5/16/2012)


    You know me... I don't go into these things blind. I always have test data. Helps me keep my alligator mouth from overloading my humming bird...

  • RE: Setting the Identity in a temp table using a variable

    Brandie Tarvin (5/17/2012)


    Eugene, I appreciate what you're saying, but please watch how you word it. Your tone in your last post came across very harsh and .. well, there's another...

  • RE: Switching number with counting

    You again provided insufficient sample of data, so people will advise you to use dens_rank and it's not what you need. If you could confirm the following:

    001 20100403...

  • RE: Result to a variable

    Yes, it is possible. You can declare variable of a table type (known as table variable).

    You will be able to insert all results into this "variable".

  • RE: Setting the Identity in a temp table using a variable

    OP wanted to start IDENTITY from the position calculated/given in variable. The only way to do this is to INSERT with INSERT_IDENTITY ON. It's impossible to do it with ALTER...

  • RE: What is the Query?

    Daxesh Patel (5/17/2012)


    Probably you want to reduce IO cost.

    Following may help if you have enough sql memory available. if not, this may dump the intermediate resultset in tempdb and eventually...

  • RE: Setting the Identity in a temp table using a variable

    Brandie Tarvin (5/17/2012)


    ...

    I'm a little confused. Why don't you just ALTER the table and set AllocationID as an IDENTITY field? You wouldn't have to fuss with variables, then.

    Could you please...

  • RE: How to retain the variable's value in a dynamic sql? Thanks.

    You should declare your @sql variable as NVARCHAR (not varchar)

Viewing 15 posts - 1,531 through 1,545 (of 2,894 total)