Forum Replies Created

Viewing 15 posts - 2,446 through 2,460 (of 2,462 total)

  • RE: Separate Login for a query in a stored procedure

    Dude please tel how to do it

    i have domain\sqlman account with admin rights on srvr1

    but if i use it as remote login in linked server then...

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

  • RE: Inserting new records fails

    try thi out

    ------------------------------------------------

    Declare @intEquipID int

    Declare @strMaintDescription varchar(50)

    Declare @intRecurr int

    Declare @i int

    Declare @intFrequency int

    Declare @dteMaintStartDate datetime

    Declare @MaintFlag numeric(18,0)

    Select @intEquipID = (Select EquipID From Inserted)

    Select @MaintFlag = (Select MaintFlag From Inserted)

    Select...

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

  • RE: Inserting new records fails

    try this out

    ---------------------------------------

    Declare @intEquipID int

    Declare @strMaintDescription varchar(50)

    Declare @intRecurr int

    Declare @i int

    Declare @intFrequency int

    Declare @dteMaintStartDate datetime

    Declare @MaintFlag numeric(18,0)

    Select @intEquipID = (Select EquipID From Inserted)

    Select @MaintFlag = (Select MaintFlag From Inserted)

    Select...

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

  • RE: Separate Login for a query in a stored procedure

    thanks...........:):):):) .vry mich .myjob started finally after vigorous efforts of 3 working days...thnx once again:).

    Earlier "Be made using logins current security context" was enabled

    But i enabled 4th option where...

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

  • RE: Separate Login for a query in a stored procedure

    procedure :

    ------------------------

    CREATE Proc [dbo].[ap_mtn_Sync_Table_data]

    @EndDate DATETIME,

    @prefix VARCHAR(100) ...

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

  • RE: Separate Login for a query in a stored procedure

    thanks ......but it didnt work

    the job contains following code:

    ---------------------------------------------------

    EXECUTE AS LOGIN = 'domain\sqlman'

    GO

    DECLARE @EndDate DATETIME

    SET @EndDate = GetDate()

    EXEC dbo.ap_mtn_Sync_Table_data @EndDate, 'LU_'

    ------------------------

    with above code it gives below error...

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

  • RE: How to add new table during Replication

    hi Markus Bohse,

    Can u please send me note for MCDBA paper .i m desperate to give exam...but i m not getting notes..

    Pleaseeeeeeeeeeeeeee..help mee

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

  • RE: SQL Server does not allow remote connections.".

    Already Enabled

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

  • RE: SQL Server does not allow remote connections.".

    thanks for your suggestion but it is already enabled.....any oher IDEA?

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

  • RE: why that happened

    it was pleasure to give you solution...well where do you work ,,are you working as DBA ......

    i am working as DBA ...in india

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

  • RE: Separate Login for a query in a stored procedure

    hi

    I will elaborate more about the problem.

    first server has sql agent login : DOMAIN\sqlman (sysadmin)

    AND second server has its sql agent login : DOMAIN\sqlman (sysadmin)

    More over both...

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

  • RE: why that happened

    hi i execute your sp in my server first of all it gave syntax error and moreover it didnt throw any error either on Master or anu user database

    ---------corrected...

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

  • RE: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.

    hey,

    actually i have 2 servers.

    i want to schedule a job on server A which will excute a query on linked server (server B)

    i m using sql login :...

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

  • RE: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.

    Actually no...can you tell me procedure to check it ?

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

  • RE: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.

    hi

    thanks for the reply.

    actually i tried your suggestion but it couldn't work

    i will elaborate more about the problem.

    first server has sql agent login : DOMAIN\sqlman (sysadmin)

    AND

    second server...

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

Viewing 15 posts - 2,446 through 2,460 (of 2,462 total)