Forum Replies Created

Viewing 15 posts - 26,116 through 26,130 (of 26,490 total)

  • RE: problem revoking a users'''' access to msdb

    You could use dynamic sql in your stored procedure.  It would look sort of like this:

    declare @SqlCmd nvarchar(4000)

    set @SqlCmd = N'use msdb;exec your procedure'

    exec @SqlCmd

    hth

  • RE: restore to a different DB name

    Could you post the SQL you are using to restore the database?

  • RE: SQL 2005 on new server performance issues

    Part of the problem could be that you have SQL Server on domain controller.  That alone could take up quite a bit of system resources even if there are only...

  • RE: union problem

    You showed us what you are getting and what you want, but you also need to provide us with some sample data as well (preferable the same data used to...

  • RE: Working with Months

    Try this:

    declare @month varchar(15)

    set @month = datename(mm,dateadd(mm,-1,getdate()))

    select @month -- to see what you got

  • RE: Return Code

    Yes, I could, but I won't.  maybe some one else will, but we aren't doing you any favors just giving you the answers.  You need to take the time to...

  • RE: Return Code

    This:  If @retval = 0 then successfull, else failure. was a comment telling you that if @retval = 0 then the stored procedure executed successfully, else it failed.

    Please try taking...

  • RE: Return Code

    This:  If @retval = 0 then successfull, else failure. was a comment telling you that if @retval = 0 then the stored procedure executed successfully, else it failed.

    Please try taking...

  • RE: Return Code

    declare @retval int

    exec @reval = Load_Audit_Excel.Sp_Start_job @Audit = 'Audit Data Load'

    select @retval

    If @retval = 0 then successfull, else failure.

    Try reading BOL, all of this is there.

  • RE: Insert from cursor

    For us to help you, you need to show us what you have already done, and what you are trying to accomplish.

  • RE: Getting around ''''Grantor does not have GRANT permission''''

    The login (user) you are logged in has needs to have grant permission on the stored procedure for you to be able to grant permissions to others.  You either need to...

  • RE: operating system error 64??? Backup job failing!

    Even if you want to backup to a network server for failover purposes, I would still do the backup to a local drive and then move it seperately.  The backup...

  • RE: operating system error 64??? Backup job failing!

    I'm not a network person, but it looks like you have lost connection to the remote server you are trying to backup the database to.  If you have the space,...

  • RE: How to avoid fast growth of Transaction Logs

    Do you need point-in-time recovery of your database or is a single nightly backup good enough for your purposes.  If you don't need point-in-time recovery, change your recovery mode to...

  • RE: How to avoid fast growth of Transaction Logs

    If your database is in Full Recovery Mode, as I assume, just completing a full backup nightly is the reason your transaction log is getting so big.  Full backups and...

Viewing 15 posts - 26,116 through 26,130 (of 26,490 total)