Forum Replies Created

Viewing 15 posts - 1,966 through 1,980 (of 2,462 total)

  • RE: Script to delete orphaned users

    its working in my side , please test before run it ; "PRINT @cmd"

    for it USE [master]

    GO

    SET NOCOUNT ON

    DECLARE @cmd varchar(4000)

    BEGIN TRY

    Create table #Orphan_User_Tbl

    (

    [Database_Name] sysname...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: SQL Agent

    Sorry i just saw there is no option i ADD REMOVE programs.

    refer below link .it might help you http://www.sqlservercentral.com/articles/Service+Packs/sp3/138/

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: SQL Agent

    Which server it is ? any details from error log ?

    I pray that should not be production server, as far as i think we can roll back SP3 by...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Proper Case Problem

    Rob Schripsema (3/30/2010)


    Great idea, Bhuvnesh, but that won't work when there are no Roman numerals at the end.

    JOHN JONES will end up as John JONES.

    But you could use your idea...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Best way to transpose multiple rows onto 1 row?

    i replaced "| |" with | (single)

    SELECT DISTINCT

    A.[StaffNo],

    A.[Name]

    ,REPLACE( STUFF(( SELECT ' | ' + StartDate +' | ' + EndDate +' | ' + CAST(Salary as VARCHAR (15))FROM...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Best way to transpose multiple rows onto 1 row?

    Carolyn Richardson (3/30/2010)


    You could play around with this to make it more readable but I think it does display the data in the format you want.

    SELECT DISTINCT

    A.[StaffNo],

    A.[Name],

    STUFF(( SELECT '...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: EXEC sp_configure 'user options', 512 not working

    ben-564110 (3/30/2010)


    Ok an update: when I try with osql instead of SSMS it works. It seems SSMS overrides this setting unless you explicitly turn SET NOCOUNT ON in the query...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Who Created A Table

    @lowell : you have shown great feature, thanks

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: EXEC sp_configure 'user options', 512 not working

    i tried , its not working for me also

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: SQL Agent

    Sp3 would be fine , ignore my previous post

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: SQL Agent

    SP3 or SP2 ?

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Normalization

    Click:A Normalization Primer[/url] and From MSDN

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: how to find out who dropped a database

    Andrew Gothard-467944 (3/30/2010)


    It's enabled by default

    you are right, thanks for correcting me

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: how to find out who dropped a database

    Andrew Gothard-467944 (3/30/2010)


    THe following gives a good guide to pulling the relevant info from the default trace

    http://blogs.msdn.com/cindygross/archive/2009/12/16/sql-server-s-default-trace.aspx

    But for this Default trace should be enabled Default trace - A Beginner's...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Proper Case Problem

    i needed to play with data.

    Declare @tbl table ( main_text nvarchar(200), Without_Roman_values nvarchar(100),Roman_values nvarchar(50) )

    insert into @tbl (main_text)

    select 'BHUVH III'

    union

    SELECT 'DEXY V'

    UNION

    SELECT 'JACK TONY VIII'

    update @tbl

    set Without_Roman_values = reverse(substring(reverse(main_text),charindex('...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

Viewing 15 posts - 1,966 through 1,980 (of 2,462 total)