Granting read/write to user for SQL agent

Hi all, I'm new to SQL, SSMS, TSQL etc. How do I grant read/write permission to a user for SQL agent, so they can see the SQL Server Agent part in object explorer?
Thanks in advance :)

Hi all, I'm new to SQL, SSMS, TSQL etc. How do I grant read/write permission to a user for SQL agent, so they can see the SQL Server Agent part in object explorer?
Thanks in advance :)
Please refer to below two links
http://msdn.microsoft.com/en-us/library/ms187901.aspx
http://msdn.microsoft.com/en-us/library/ms188283.aspx
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
My TechNet Wiki Articles

Similar Messages

  • Grant privileges to a user for user_lock

    user_lock.sleep (3000);
    i am using it in my procedure.
    is it require to grant privileges to a user for user_lock.

    There is no built-in package namely user_lock. Actually it is dbms_lock.
    http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_lock.htm#sthref3898
    I was using dbms_lock few days ago. Yes dba has to give the privilege to use this package.
    SQL> grant execute on dbms_lock to scott;
    Grant succeeded.
    [My experiment]
    http://mamohiuddin.blogspot.com/2007/02/plsql-block-abnormal-termination-ed.html

  • User created SQL Agent Job that uses linked server with Windows authentication

    OK, here's what I want to do, but not sure exactly what I need to accomplish it.
    Environment
    Windows 2008 Enterprise
    SQL 2012 Enterprise
    SQL Server & SQL Agent running under AD account (which has local Windows Administrative privileges...yes, I know..bad!)
    Linked server to Teradata utilizing AD account mappings (the linked server works successfully and each windows login is mapped to a Teradata LDAP login)
    Requirement
    Allow non sysadmins to create SQL Agent jobs which execute TSQL statements which use OPENQUERY(LDAPLinkedServer, '....) syntax
    I've already given the non sysadmins the necessary permissions to create and run SQL Agent jobs, and I understand that the jobs run under their login context, but I suspect that I'm missing something when it comes to the linked server.
    Each windows user could have access to different databases/tables on the Teradata system that even I (the SQL Server sysadmin) don't have access to.
    How can I facilitate this functionality?  Any ideas?

    I think I may have been over complicating the Teradata piece.  The authentication methodology in Teradata is LDAP, which just means that it authenticates against AD, but you still have to submit your Windows login & password.  It doesn't automatically
    authenticate you just because you're logged into Windows.  
    The linked server has the mapping for the individual windows logins like:
    Local Login = <domain>.<windows id>
    Remote User = <windows id>
    Remote Password = <windows password>
    This setup requires the user to have to change the passwords in the linked server whenever they change their passwords according to domain policy (every xx days)...but we've created a utility proc that they can use to do this.
    So, I'm thinking that Teradata isn't really part of this equation.

  • Granting read/write permissions on Oracle Server processes

    Hi
    I'm trying to set up a BFILE datatype in a table. I have created the directory and the current user has permissions to read and write to that folder. (The current user has the create any directory permission granted). The insert statement does not give an error but when I look at the table the BFILE column contains an error of <Value Error>.
    I suspect it may be because the current user does not have server read/write permissions on the directory I'm using. Can anybody help me with a correcting this please?
    Here is what I've used so far:
    CREATE or replace DIRECTORY pic_dir AS 'c:\temp'
    INSERT INTO picture (pic_id, filename)
    VALUES (1, bfilename('pic_dir', 'image1.jpg'))

    Many thanks for the reply.
    I am using the procedure as below (formats better if copied into Notepad). Gives me an error of "ORA-22285: non-existent directory or file for FILEOPEN operation" referring to the line containing the DBMS_LOB.FILEOPEN command.
    I suspect there is something wrong with the SELECT statement because I can get the procedure to run fine on the text file if I provide the BFILE location directly into the bfile_loc variable (as opposed to using the SELECT statement to retrieve it from the db).
    I created a directory: CREATE OR REPLACE DIRECTORY pic_dir AS 'C:\temp'
    I then created a table: CREATE TABLE picture (pic_id NUMBER, filename BFILE)
    Next I added a row: INSERT INTO picture VALUES(1, BFILENAME('pic_dir', 'testfile.txt'))
    CREATE OR REPLACE PROCEDURE read_bfile IS
    sep_char CONSTANT RAW(100) := UTL_RAW.CAST_TO_RAW(CHR(32));      --separating character (space)
    end_file CONSTANT RAW(100) := UTL_RAW.CAST_TO_RAW(CHR(10));      --end of file character (new line)
    bfile_loc BFILE;                               --pointer to BFILE
    cur_pos NUMBER := 1;                          --current position in file
    char_read BINARY_INTEGER := 0;                     --number of characters read
    read_buff VARCHAR2(500);                          --read buffer
    end_word NUMBER;                              --end of current word
    ret_val BOOLEAN := FALSE;                         --return value
    BEGIN
    select filename into bfile_loc from picture where pic_id = 1;
    DBMS_LOB.FILEOPEN(bfile_loc, dbms_lob.file_readonly);
    LOOP
    -- establish end of current word
    end_word := DBMS_LOB.INSTR(bfile_loc, sep_char, cur_pos, 1);
    -- process end-of-file
    IF (end_word = 0) THEN
    end_word := DBMS_LOB.INSTR(bfile_loc, end_file, cur_pos, 1);
    char_read:= end_word - cur_pos - 1;
    DBMS_LOB.READ(bfile_loc, char_read, cur_pos, read_buff);
    dbms_output.put_line(UTL_RAW.CAST_TO_VARCHAR2(read_buff));
    EXIT;
    END IF;
    -- read until end-of-file
    char_read:= end_word - cur_pos;
    DBMS_LOB.READ(bfile_loc, char_read, cur_pos, read_buff);
    dbms_output.put_line(UTL_RAW.CAST_TO_VARCHAR2(read_buff));
    cur_pos := cur_pos + char_read+ 1;
    END LOOP;
    DBMS_LOB.CLOSE(bfile_loc);
    END;

  • ATTN Java Gurus: udf.policy - Unable to Grant Read,Write to Specific File

    NOTE: A correct answer to this question will receive the rarely used OTN 25pt <font color="silver" size="3" face="script">Platinum Star</font><font color="silver" size="4" face="script"> &#9733;</font> *
    Essbase 9.3.1
    Using a Java CDF that reads and writes to a file
    I'm trying to grant permission to a specific file in the file system by granting permission in the udf.policy file.
    When I uncomment the line permission java.security.AllPermission; the CDF works fine and interacts with the file correctly. This is just to prove that the CDF works, I need to tighten this up to a single file. I stop and start the app after each edit.(I've also tried bouncing the Essbase server too)
    When I use the following, I get an exception, shown below. Nothing of consequence is being written to the app or essbase logs
    grant {
      permission java.io.FilePermission "C:/test/essbase/CalcProfile.db", "write, read";
    };java.security.AccessControlException: access denied (java.io.FilePermission C:\esstest\Server\PlugIns\Essbase read)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
         at java.security.AccessController.checkPermission(AccessController.java:546)
         at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
         at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
         at com.hyperion.essbase.calculator.ESecurityManager.checkRead(ESecurityManager.java:80)
         at java.io.File.exists(File.java:731)
         at org.sqlite.Conn.open(Conn.java:98)
         at org.sqlite.Conn.<init>(Conn.java:57)
         at org.sqlite.JDBC.createConnection(JDBC.java:77)
         at org.sqlite.JDBC.connect(JDBC.java:64)
         at java.sql.DriverManager.getConnection(DriverManager.java:582)
         at java.sql.DriverManager.getConnection(DriverManager.java:207)
         at com.accelatis.essbase.calcprofile.cdf.CalcComment.calcComment(CalcComment.java:16)
    >
    I've tried creating the policy using PolicyTool, same result. However, I have no idea what or if I should put in the "CodeBase" field.
    Has anyone had success creating read & write permissions to a single file using the udf.policy file? What is the magic syntax?
    Regards,
    Robb Salzmann
    * <font face="small" size=".2em" color="silver">right after the platinum star award is created</font>

    Hi Robb,
    Never heard of the OTN 25pt Platinum Star award... It sounds appetizing, but I know I won't get it since I've got no Java experience. :)
    I was just gonna ask if you've thought about posting the same question on one of the Java forums?
    https://forums.oracle.com/forums/category.jspa?categoryID=285
    Cheers,
    Mehmet

  • Online read + write from/to ms sql server database

    hi all,
    we're using R 4.6C. Want to connect to MS Sql server database and read/write data from abap program.
    what's the best (and fastest) way do to this ?
    joerg

    I know only DBCON (Database multiconnect): see the notes 178949 and 323151 for more details.
    Message was edited by: max bianchi

  • How do I give myself read/write access/permissions for my external drive?

    Im a brand new Mac user, so please stay with me.
    I have an external drive and I can't delete, modify, ANYTHING on it. When I go to "Get Info" it says "You can only read" under sharing & permissions. How do I change this?

    When you get info on the external drive, at the very bottom is a box you can check
    "Ignore ownership on this volume"...
    If you check that, then see if you can delete and move things around.
    If that doesn't work then try clicking on the + sign and adding you as an admin so you can Read & Write.

  • Grant read permission on List for Anonymous user for public facing site in Sharepoint 2013 Online

    I have a public facing SP site ( SP online 2013 with Office 365 ). There are certain app parts added to it which read data from a
    custom list created on that site. By default anonymous users do not have read permissions list. I want users to see the list data without login in . I tried modifying the settings for anonymous users , however I am unable to do it as the "anonymous user"
    permissions cannot be checked by me.
    How do I provide read permissions to anonymous users?
    Thanks in advance

    once you make the web site online anonymous users get the read access to list.
    You can add the list view webpart and show the details to anonymous users. In the below link i have added the announcement list view webpart to a page.
    https://velegandla-public.sharepoint.com/Pages/Page.aspx
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • Authorizations for Projects (Restricting Read/Write to users )

    Hi
    I want to know how I can .
    1) Restrict one users from editing projects of each others in xMII Workbench.
    (for ex. User A shud not be able to modify the projects created by user B)
    Tell me the steps.
    Regards
    Tulip

    Just some info on MI 12.1 if you are thinking about upgrading...
    MI 12.1's Content Management could solve your issue. In this version of MI, you can restrict content developers to shared projects. Shared projects are versioned by the repository thereby allowing developers to track revisions to all MI objects (queries, display templates, HTML pages, etc.). So if developer 1 makes incorrect changes to developer 2's web page, developer 2 can create a new version based on his previous correct version. You should evaluate CM if you are upgrading to 12.1 and have curious developers deleting important content.  
    Regards,
    Kevin

  • How to retrive error message for sql agent job failure

    My sql server agent job failed and didn't store any error message in the job history. Is there any other table from where I can get the error info????
    The job has sql_message_id = 16389 and sql_severity = 16. What does they mean????

    this link will solve your problem
    http://www.sqlservercentral.com/articles/SQL+Server+Agent/67726/
    ebro
    CREATE PROCEDURE pr_GetStepFailureData
    @JobName VARCHAR(250)
    AS
    This procedure gets failure log data for the failed step of a SQL Server Agent job
    DECLARE @job_id UNIQUEIDENTIFIER
    SELECT @job_id = job_id FROM dbo.sysjobs WHERE [name] = @JobName
    SELECT 'Step ' + CAST(JH.step_id AS VARCHAR(3)) + ' of ' + (SELECT CAST(COUNT(*) AS VARCHAR(5)) FROM dbo.sysjobsteps WHERE job_id = @job_id) AS StepFailed,
    CAST(RIGHT(JH.run_date,2) AS CHAR(2)) + '/' + CAST(SUBSTRING(CAST(JH.run_date AS CHAR(8)),5,2) AS CHAR(2)) + '/' + CAST(LEFT(JH.run_date,4) AS CHAR(4)) AS DateRun,
    LEFT(RIGHT('0' + CAST(JH.run_time AS VARCHAR(6)),6),2) + ':' + SUBSTRING(RIGHT('0' + CAST(JH.run_time AS VARCHAR(6)),6),3,2) + ':' + LEFT(RIGHT('0' + CAST(JH.run_time AS VARCHAR(6)),6),2) AS TimeRun,
    JS.step_name,
    JH.run_duration,
    CASE
    WHEN JSL.[log] IS NULL THEN JH.[Message]
    ELSE JSL.[log]
    END AS LogOutput
    FROM dbo.sysjobsteps JS INNER JOIN dbo.sysjobhistory JH
    ON JS.job_id = JH.job_id AND JS.step_id = JH.step_id
    LEFT OUTER JOIN dbo.sysjobstepslogs JSL
    ON JS.step_uid = JSL.step_uid
    WHERE INSTANCE_ID >
    (SELECT MIN(INSTANCE_ID)
    FROM (
    SELECT top (2) INSTANCE_ID, job_id
    FROM dbo.sysjobhistory
    WHERE job_id = @job_id
    AND STEP_ID = 0
    ORDER BY INSTANCE_ID desc
    ) A
    AND JS.step_id <> 0
    AND JH.job_id = @job_id
    AND JH.run_status = 0
    ORDER BY JS.step_id
    EXEC pr_GetStepFailureData 'JobName'

  • Read/Write Permissions question for Nokia 6120 (Sy...

    Hi All,
    Recently got my 6120 on Three. Very pleased with it and doing more than I ever imagined with a mobile phone!
    Quick question though. For applications that I have downloaded and am using, currently the phone asks for permission every time it exchanges/receives data. (This includes the applications consilient Push and GCalSync).
    Any ideas how I can solve this? Can't see an 'always yes' option - but not sure where to look?
    Cheers, Chris

    You see that's the thing, I'm not using it for a picture camera. The camera prob wouldnt read the card anyway. I'm using it as a storage device for my Nintendo Wii, I have files that I put on there to use as channels for my Wii Home Screen.

  • How do read/write records from a SQL server hosted on the Web?

    If I have a MS SQL  Server hosted on the internet, how can I use Labview to access it? Examples appreciated.
    TIA,
    Les 
    Solved!
    Go to Solution.

    I have a web-hosted MySQL database.  I set up an ODBC data source (Windows) and use a UDL file and am able to connect just as easily as I can an Access database on my PC.
    Message Edited by jcarmody on 04-23-2009 09:12 AM
    Jim
    You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
    Attachments:
    datasource.PNG ‏26 KB

  • What is available to read write copy paste for word documents?

    Need an office document program compatible with ms word.......suggestions please.....

    Need an office document program compatible with ms word.......suggestions please.....

  • How do you create default Read/Write Permissions for more than 1 user?

    My wife and I share an iMac, but use separate User accounts for separate mail accounts, etc.
    However, we have a business where we both need to have access to the same files and both have Read/Write permissions on when one of us creates a new file/folder.
    By default new files and folders grant Read/Write to the creator of the new file/folder, and read-only to the Group "Staff" in our own accounts or "Wheel" in the /Users/Public/ folder, and read-only to Everyone.
    We are both administrators on the machine, and I know we can manually override the settings for a particular file/folder by changing the permissions, but I would like to set things up so that the Read/Write persmissions are assigned for both of us in the folder for that holds our business files.
    It is only the 2 of us on the machine, we trust each other and need to have complete access to these many files that we share. I have archiveing programs running so I can get back old versions if we need that, so I'm not worried about us overwriting the file with bad info. I'm more concerned with us having duplicates that are not up to date in our respective user accounts.
    Here is what I have tried so far:
    1. I tried to just set the persmissions of the containing folder with us both having read/write persmissions, and applied that to all containing elements.
    RESULT -> This did nothing for newly created files or folders, they still had the default permissions of Read/Write for the creating User, Read for the default Group, Read for Everyone
    2. I tried using Sandbox ( http://www.mikey-san.net/sandbox/ ) to set the inheritance of the folder using the methods laid out at http://forums.macosxhints.com/showthread.php?t=93742
    RESULT -> Still this did nothing for newly created files or folders, they still had the default permissions of Read/Write for the creating User, Read for the default Group, Read for Everyone
    3. I have set the umask to 002 ( http://support.apple.com/kb/HT2202 ) so that new files and folders have a default permission that gives the default group Read/Write permissions. This unfortunately changes the default for the entire computer, not just a give folder.
    I then had to add wife's user account to the "Staff" group because for some reason her account was not included in that. I think this is due to the fact that her account was ported into the computer when we upgraded, where as mine was created new. I read something about that somewhere, but don't recall where now. I discovered what groups we were each in by using the Terminal and typing in "groups username" where username was the user I was checking on.
    I added my wife to the "Staff" group, and both of us to the "Wheel" group using the procedures I found at
    http://discussions.apple.com/thread.jspa?messageID=8765421&#8765421
    RESULT -> I could create a new file using TextEdit and save it anywhere in my account and it would have the permissions: My Username - Read/Write, "Staff" or "Wheel" (depending on where I saved it) - Read/Write, Everyone - Read Only, as expected from the default umask.
    I could then switch over to my wife's account, open the file, edited it, and save it, but then the permissions changed to: Her Username - Read/Write, (unknown) - Read/Write, Everyone - Read Only.
    And when I switch back to my account, now I can open the file, but I can't save it with my edits.
    I'm at my wits end with this, and I can believe it is impossible to create a common folder that we can both put files in to have Read/Write permissions on like a True Shared Folder. Anyone who has used windows knows what you can do with the Shared folder in that operating system, ie. Anyone with access can do anything with those files.
    So if anyone can provide me some insight on how to accomplish what I really want to do here and help me get my system back to remove the things it seems like I have screwed up, I greatly appreciate it.
    I tried to give as detailed a description of the problem and what I have done as possible, without being to long winded, but if you need to know anything else to help me, please ask, I certainly won't be offended!
    Thanks In Advance!
    Steve

    Thanks again, V.K., for your assistance and especially for the very prompt responses.
    I was unaware that I could create a volume on the HD non-destructively using disk utility. This may then turn out to be the better solution after all, but I will have to free up space on this HD and try that.
    Also, I was obviously unaware of the special treatment of file creation by TextEdit. I have been using this to test my various settings, and so the inheritance of ACLs has probably been working properly, I just have been testing it incorrectly. URGH!
    I created a file from Word in my wife's account, and it properly inherited the permissions of the company folder: barara - Custom, steve - Custom, barara - Read/Write, admin - Read Only, Everyone - Read Only
    I tried doing the chmod commands on $TMPDIR for both of us from each of our accounts, but I still have the same behavior for TextEdit files though.
    I changed the group on your shared folder to admin from wheel as you instructed with chgrp. I had already changed the umask to 002, and I just changed it back to 022 because it didn't seem to help. But now I know my testing was faulty. I will leave it this way though because I don't think it will be necessary to have it set to 002.
    I do apparently still have a problem though, probably as a result of all the things I have tried to get this work while I was testing incorrectly with TextEdit.
    I have just discovered that the "unknown user" only appears when I create the a file from my wife's account. It happens with any file or folder I create in her account, and it exists for very old files and folders that were migrated from the old computer. i.e. new and old files and foders have permissions: barara - Read/Write, unknown user - Read Only, Everyone - Read Only
    Apparently the unknown user gets the default permissions of a group, as the umask is currently set to 022 and unknown user now gets Read Only permissions on new items, but when I had umask set to 002, the unknown user got Read/Write permissions on new items.
    I realize this is now taking this thread in a different direction, but perhaps you know what might be the cause of this and how to correct or at least know where to point me to get the answer.
    Also, do you happen to know how to remove users from groups? I added myself and my wife to the Wheel group because that kept showing up as the default group for folders in /Users/Shared
    Thanks for your help on this, I just don't know how else one can learn these little "gotchas" without assistance from people like you!
    Steve

  • Logs for sql server agent restart

    Hi,
      Can I get log on the sql server agent  restart history of week. I mean the sql server agent has been restarted several times in last week I want to know the date and time when the sql server agent restarted in that week. Is it possible to get
    the info?
    Thanks in advance,
    Pavan
    Pavan

    In addition to Uri's post, here is some more information that might help you:
    SQLAGENT.OUT, the log file for SQL Agent. SQL Server Agent can maintain up to 10 Error Logs files. The currently used SQL Server Agent Error Log will be named SQLAGENT.OUT
    where is the SQLAGENT.OUT file?
    C:\Program Files\Microsoft SQL Server\MSSQL11.SQL2012\MSSQL\Log\
    What will be when a new file create?
    The old file should get a name like SQLAGENT.X and the new file get the name SQLAGENT.OUT (X is numbers 1-9)
    This can help you to get more information on sql agent properties (like the location of the log file, the user that start the service and more):
    EXEC msdb..sp_get_sqlagent_properties
    [Personal Site] [Blog] [Facebook]

Maybe you are looking for