Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by thamms

  1. thamms

    Syntax needed

    thanks
  2. thamms

    sp_add_job syntax error

    Hi, Why doesn't this work: CREATE PROCEDURE myProc @JobName NVARCHAR(400) AS BEGIN EXEC sp_add_job @job_name = @JobName, --@JobName is a parameter @delete_level = 0 END Error message: Cannot add rows to sysdepends for the current object because it depends on the missing object...
  3. thamms

    Syntax needed

    Help What is the t-sql syntax to drop a job? Thanks
  4. thamms

    Syntax doesn't work

    I figured it out: @command = ' + 'N'''+ '' + @SPName + ' ' + @Params + ''''
  5. thamms

    Syntax doesn't work

    Thanks... Now I am having this problem. Here's my code: alter PROCEDURE [dbo].[CreateAndRunDynamicJob] (@JobName NVARCHAR(400), @DBName NVARCHAR(400), @SPName NVARCHAR(400), @Params NVARCHAR(400)) AS BEGIN DECLARE @SQL NVARCHAR(400) SET @SQL = 'sp_add_job @job_name = ' + @JobName EXECUTE...
  6. thamms

    Syntax doesn't work

    Help, I can't get this to work: declare @JobName nvarchar(100) SET @JobName = 'XXX' sp_add_jobstep @job_name = @JobName, @step_name = N'Run job step', @subsystem = N'TSQL', @command = N'EXEC Staging.dbo.test' Error: Msg 102, Level 15, State 1, Line 3 Incorrect syntax near...
  7. thamms

    2005 Installation questions

    I wanted to add something to my original post. If you are installing the 64 bit version of SQL Server 2005 standard edition from downloaded files, you definitely need both CD's, not just CD1. I ran into myriad problems under the previous assumption of only needing one disk, even though CD2 only...
  8. thamms

    msdn licensing question

    Hi, If I install the msdn version of SQL Server 2005 on a development machine, is it possible to later upgrade the license to "standard" edition, when the machine is changed to a production server? How easy/hard is this to do? Thanks
  9. thamms

    2005 Installation questions

    Thanks. Is there a way to specify a separate location for the system db data and log files? That is, putting the log files in their own location?
  10. thamms

    Selecting a proxy account

    Hi Mr. Denny, What should the minimum permissions be if all I want to do is run xp_cmdshell? That's what I'm having trouble determining. Thanks
  11. thamms

    Selecting a proxy account

    Hi, I need to set up a proxy account to allow users to run xp_cmdshell on a linked server. My question is, is there a preferred window account to use for the proxy? Thanks
  12. thamms

    Moving logins

    Hi, Let's say you have Database "Joe", that has 10 users mapped to it. Now, let's say you have Database "Fred" on another server, and you want to set up the same 10 "Joe" users in "Fred," with the same exact permissions as they have on "Joe." Is there a simple way to do this without having to...
  13. thamms

    2005 Installation questions

    Hi, I just did an installation, and I want to get a reality check. Q1.) I downloaded SQL Server 2005 (x86) from the developer website as ISO files. There were 2 files: CD 1 and CD 2. I mounted the ISO files so I could read the contents. I ran setup.exe from CD 1. The installation only...
  14. thamms

    Truncate or DBCC CHECKIDENT ?

    The identity field is just used to determine which row (in a staging table) is next to another for our programmer's purposes; the rows change every day anyways, there's no fixed data to begin with.
  15. thamms

    sp_start_job problem

    Hi, I have a non-admin user that I would like to grant "sp_start_job" permissions to. I ran this statement successfully: grant execute on sp_start_job to myNonAdminUser However, when I log in as this user, and attempt to start a job, it says that the "@job_name does not exist" The job does...

Part and Inventory Search

Back
Top