Running XP_SubDirs for normal SQL users

I have a requirement where a normal SQL Autheticated user wants to run xp_subdirs.The user is simply a db_reader , db_writer on user database.
Could you advice how is it achievable ?
Please Vote & "Mark As Answer" if this post is helpful to you. Cheers Prakash Nandwana Bangalore , India

Most likely this falls under the same rules as normal security handling in SQL Server. I.e., create a user for the person in question (for the login)  in the master database and grant EXEC permissions to this xp to the user you just created.
Tibor Karaszi, SQL Server MVP |
web | blog

Similar Messages

  • Introduction to Oracle for Experienced SQL Users

    Dear members,
    where can i find the book for "Introduction to Oracle for Experienced SQL Users" on net in PDF format.
    please send my if someone....
    Muhammad Nadeem
    [email protected]
    092-0301-8334434

    you have to google for it. That's all
    "Introduction to Oracle for Experienced SQL Users"

  • Need query tool for new SQL users

    We have testers that need to see DB data. Not all of them are well versed in SQL. At the moment, we are looking at creating reports for them in Discoverer and allowing them to create their own workbooks, however, I am not sure if this is the route that we want to go. Would any one recommend SQL Developer in this situation, or do you need to be well versed in SQL in order to use it?
    Cheers
    K

    Well, in my knowledge, there's still no magical datamining tool. The more complex information you require, the more knowledge you need to be able to get it.
    Or you make your users all reports they need, or they learn SQL.
    Maybe sqldev isn't so bad; you could provide them like template reports, which they can then modify if needed. But bear in mind that poorly written queries at the end will return them wrong data and clog the database...
    Have fun,
    K.

  • Fingerprint utility is not working for normal users - Tecra M11

    Hi All,
    I installed windows 7 pro in Tecra M11 laptop and the Toshiba finger print utility is not working for normal users.
    It is working only for domain administrators. The TFPU is not working for, normal domain users, local users, local administrators. If we run the utility it will ask to enter the windows password and once we applied the password then the message saying "entered password is not valid" will prompt even if we are trying to use the utility first time.
    If we try with a domain admin account it will work without any problem. Can somebody help me to trouble shoot this issue?
    Thanks.

    People nowadays experienced that no matter How many times we glide our finger it have no response.In this instance, you might be very afraid of Windows password lost by reason that there is a plenty of important data on your PC.
    Then what should you do? One choose is fix the Fingerprint scanners, but this method will cost a lot of money. The other is use the Windows password function to solve the problem. Certainly, this is a very safer, faster and easier to use method for you.
    According my personal experience, you can try these three ways to re-access to your PC:
    Method 1: Login with the default administrator account
    * Step 1: Start Windows PC
    * Step 2: When you can see the Windows login screen, press ctrl+alt+del keys Twice and it'll show Classic Login box
    * Step 3: Type Administrator as Username and leave the password field blank
    * Step 4: Press the Enter Key and then you can be able to login the default windows administrator account which is it created by default when install windows.
    *Note:* This trick is only work for Windows XP. And when you input the key combination Please don't put the cursor on any account. And if you change the name or password before, you cannot login by this way.
    Method 2: Use the previous password reset disk
    This method describes how to create and use a password reset disk for a computer that is a member of a domain. You can use a Windows password reset disk to gain access to your Microsoft Windows Professional-based computer if you forget your Windows password. Please click here to learn more.
    Method 3: Using Windows Password Unlocker
    Using Windows password remove software is could be the fastest and easiest way for you to reset your Windows password while you didn't create a password reset disk before.
    There are 2 options for you: recover Windows password with a bootable CD/DVD or recover Windows password with a USB flash drive.
    Before starting, a bootable CD/DVD or USB flash drive and a computer with CD drive are required. (Internal CD drive and external CD drive are both OK.
    Option 1: Recover Windows password by burning a bootable CD/DVD
    Option 2: Recover Windows password by burning a USB flash drive
    The whole Windows password recovery process can be divided to 3 big steps:
    * >> Step 1: Burn a USB flash drive to remove lost Windows password
    * >> Step 2: Set your target computer to boot from USB
    * >> Step 3: Recover forgotten Windows password with the burned USB flash drive
    In fact, all you need is a *Windows Password Unlocker www.passwordunlocker.com/windows-password-recovery.html which can help you directly reset your windows xp password, and then you can login your XP without a password required. Of course, there are also some other ways to do it, but this way may be most convenient one.

  • Fireworks CS5.1 will not run for a specific user.

    I am in the IT dept. of my organization and we have Adobe Creative Suite 5.5 installed on many systems.  On one particular system, we installed the CS5.5 Web Premium suite and when the end user (who is not an administrator on their workstation) started to use it, she found that Fireworks CS5.1 will not load.  When she clicks on it to launch it, it starts to load, then she gets the spinning beachball and the application stops responding.
    I created a local (non-AD) account on her machine with admin privileges, and when she logs into it, Fireworks immediately loads and works properly.
    Our security rules do not allow users to operate as administrators on their workstations.  So my question is - what can I do to get Fireworks to load and run properly for a standard user account?
    Interestingly, all other CS5.5 apps seem to work just fine for her.
    Bob Reed

    Have you tried giving the user administrative privileges?

  • Reg: Background Processing Issue for a Particular USER ID

    Hi Experts,
    Iam facing problem in executing a BDC Program TCODE <b>FB50</b> in background for a system generated user id [AUTOSYS] its running fine for the remaining User id's.
    Please Suggest me a solution for this ASAP.
    Thanks in Advance.
    Regards,
    Swaroop.

    Check any entries present for this user in the table RSWR_PERS, If present then delete these entries and then create a bookmark afresh and see how this works...

  • Brief report of about 2 months for the sqls run under a specific user ?

    Hi,
    Is there a way i can get the brief report of about 2 months for the sqls run under a specific user in Oracle 11g.
    thanks in advance

    913410 wrote:
    Yes,
    auditing is enabled
    SQL> show parameter audit;
    NAME                                 TYPE        VALUE
    audit_file_dest                      string      /u01/app/oracle/admin/PRCMTDB/
    adump
    audit_sys_operations                 boolean     FALSE
    audit_syslog_level                   string
    audit_trail                          string      DBthen how to get the informationabove is necessary, but not SUFFICIENT
    default Oracle behavior is that NO specific actions are audited.
    You would have had to manually enable AUDIT for all SQL statement by single user

  • I cant re-start sql server (2008 developer) on win 7 workstation after enabling tcpIP -- been running fine for a year

    I had successfully installed sql server 2008 Developer edition on a win7 pro workstation about a year ago.  I has been running fine for the last year (locally and running .Net 4.5 framework).  All services (RS, Analysis) running fine.  
    Then today someone decided to enable tcpIP and went to services to restart the server on my workstation but it would not restart. I ran repair from the sql server installation center x64 - still nothing - the server wont restart. But Analysis server and Reporting
    services work fine -- these services can restart fine ... Just not the main server. I'm also running Sql Server express. that runs OK too. But I need my sql server 2008 Developer to run. I looked at the system event viewer -- it said this:
    The SQL Server (SQLDEVELOPER) service terminated with service-specific error The specified module could not be found..
    I went to Control panel ... services and looked at the properties for Sql Server Developer -- the path was listed as:
    C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQLDEVELOPER\MSSQL\Binn\sqlservr.exe" -sSQLDEVELOPER
    Everything in windows explorer appears to be in order.  How can I restart the server?  Do I need to uninstall it and then reinstall it?  Any suggestions appreciated.
    I rebooted the entire workstation a few times already also, but still server won't restart.  What to do?
    Rich P

    There were several Error Logs (for today) since I tried restart several times.  They appear to say the same thing:
    2014-07-14 12:57:31.27 Server Microsoft SQL Server 2008 R2 (RTM) - 10.50.1600.1 (X64)
    Apr 2 2010 15:48:46
    Copyright (c) Microsoft Corporation
    Developer Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)
    2014-07-14 12:57:31.27 Server (c) Microsoft Corporation.
    2014-07-14 12:57:31.27 Server All rights reserved.
    2014-07-14 12:57:31.27 Server Server process ID is 4452.
    2014-07-14 12:57:31.27 Server System Manufacturer: 'Dell Inc.', System Model: 'OptiPlex 9010'.
    2014-07-14 12:57:31.28 Server Authentication mode is WINDOWS-ONLY.
    2014-07-14 12:57:31.28 Server Logging SQL Server messages in file 'C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQLDEVELOPER\MSSQL\Log\ERRORLOG'.
    2014-07-14 12:57:31.28 Server This instance of SQL Server last reported using a process ID of 2640 at 7/14/2014 12:55:59 PM (local) 7/14/2014 7:55:59 PM (UTC). This is an informational message only; no user action is required.
    2014-07-14 12:57:31.28 Server Registry startup parameters:
    -d C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQLDEVELOPER\MSSQL\DATA\master.mdf
    -e C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQLDEVELOPER\MSSQL\Log\ERRORLOG
    -l C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQLDEVELOPER\MSSQL\DATA\mastlog.ldf
    2014-07-14 12:57:31.29 Server SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.
    2014-07-14 12:57:31.29 Server Detected 4 CPUs. This is an informational message; no user action is required.
    2014-07-14 12:57:31.38 Server Using dynamic lock allocation. Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node. This is an informational message only. No user action is required.
    2014-07-14 12:57:31.40 Server Node configuration: node 0: CPU mask: 0x000000000000000f:0 Active CPU mask: 0x000000000000000f:0. This message provides a description of the NUMA configuration for this computer. This is an informational message only. No user action is required.
    2014-07-14 12:57:31.41 spid7s Starting up database 'master'.
    2014-07-14 12:57:31.46 spid7s 1 transactions rolled forward in database 'master' (1). This is an informational message only. No user action is required.
    2014-07-14 12:57:31.46 spid7s 0 transactions rolled back in database 'master' (1). This is an informational message only. No user action is required.
    2014-07-14 12:57:31.46 spid7s Recovery is writing a checkpoint in database 'master' (1). This is an informational message only. No user action is required.
    2014-07-14 12:57:31.51 spid7s Resource governor reconfiguration succeeded.
    2014-07-14 12:57:31.51 spid7s SQL Server Audit is starting the audits. This is an informational message. No user action is required.
    2014-07-14 12:57:31.51 spid7s SQL Server Audit has started the audits. This is an informational message. No user action is required.
    2014-07-14 12:57:31.52 spid7s FILESTREAM: effective level = 0, configured level = 0, file system access share name = 'SQLDEVELOPER'.
    2014-07-14 12:57:31.54 spid7s SQL Trace ID 1 was started by login "sa".
    2014-07-14 12:57:31.55 spid7s Starting up database 'mssqlsystemresource'.
    2014-07-14 12:57:31.58 spid7s The resource database build version is 10.50.1600. This is an informational message only. No user action is required.
    2014-07-14 12:57:31.78 spid10s Starting up database 'model'.
    2014-07-14 12:57:31.78 Server Warning: Support for the VIA protocol is deprecated and will be removed in a future version of Microsoft SQL Server. If possible, use a different network protocol and disable VIA.
    2014-07-14 12:57:31.78 spid7s Server name is 'WKS308\SQLDEVELOPER'. This is an informational message only. No user action is required.
    2014-07-14 12:57:31.82 spid10s Clearing tempdb database.
    2014-07-14 12:57:31.89 Server A self-generated certificate was successfully loaded for encryption.
    2014-07-14 12:57:31.89 Server Error: 26055, Severity: 16, State: 1.
    2014-07-14 12:57:31.89 Server The SQL Server failed to initialize VIA support library [QLVipl.dll]. This normally indicates the VIA support library does not exist or is corrupted. Please repair or disable the VIA network protocol. Error: 0x7e.
    2014-07-14 12:57:31.89 Server Error: 17182, Severity: 16, State: 1.
    2014-07-14 12:57:31.89 Server TDSSNIClient initialization failed with error 0x7e, status code 0x60. Reason: Unable to initialize the VIA listener. The specified module could not be found.
    2014-07-14 12:57:31.89 Server Error: 17182, Severity: 16, State: 1.
    2014-07-14 12:57:31.89 Server TDSSNIClient initialization failed with error 0x7e, status code 0x1. Reason: Initialization failed with an infrastructure error. Check for previous errors. The specified module could not be found.
    2014-07-14 12:57:31.89 Server Error: 17826, Severity: 18, State: 3.
    2014-07-14 12:57:31.89 Server Could not start the network library because of an internal error in the network library. To determine the cause, review the errors immediately preceding this one in the error log.
    2014-07-14 12:57:31.89 Server Error: 17120, Severity: 16, State: 1.
    2014-07-14 12:57:31.89 Server SQL Server could not spawn FRunCM thread. Check the SQL Server error log and the Windows event logs for information about possible related problems.
    2014-07-14 12:57:31.97 spid10s Starting up database 'tempdb'.
    2014-07-14 12:57:32.19 spid14s A new instance of the full-text filter daemon host process has been successfully started.
    2014-07-14 12:57:32.22 spid13s Starting up database 'ReportServer$SQLDEVELOPER'.
    2014-07-14 12:57:32.22 spid10s Starting up database 'msdb'.
    2014-07-14 12:57:32.22 spid17s Starting up database 'Sales_DW'.
    2014-07-14 12:57:32.22 spid15s Starting up database 'DB1dev'.
    2014-07-14 12:57:32.22 spid18s Starting up database 'ConferenceData'.
    2014-07-14 12:57:32.22 spid14s Starting up database 'ReportServer$SQLDEVELOPERTempDB'.
    2014-07-14 12:57:32.22 spid19s Starting up database 'SubsDBstuff'.
    Cannot close event log because there are still event handle users active.
    Rich P

  • How to get the SQL Signon that Agent Jobs "Run As" or "Executed as User"

    How to get the SQL Signon that Agent Jobs "Run As" or "Executed as User"?
    I have an install SQL scripts that creates a Linked Server. I want to put some security on the Linked Server and only grant the Agent Job Signon (the "Run As" or "Executed as User") access to the linked server. I need to retrieve the
    Agent Job Signon (something like "NT SERVICE\SQLAgent$FIDEV360BI02").
    I could query certain jobs and SUBSTRING the Message column - using some form of the query below, which would return "Executed as user: NT SERVICE\SQLAgent$SSDEVBI02. The step succeeded." But that is pretty imprecise.
    use msdb
    SELECT [JobName] = JOB.name,
    [Step] = HIST.step_id,
    [StepName] = HIST.step_name,
    [Message] = HIST.message,
    [Status] = CASE WHEN HIST.run_status = 0 THEN 'Failed'
    WHEN HIST.run_status = 1 THEN 'Succeeded'
    WHEN HIST.run_status = 2 THEN 'Retry'
    WHEN HIST.run_status = 3 THEN 'Canceled'
    END,
    [RunDate] = HIST.run_date,
    [RunTime] = HIST.run_time,
    [Duration] = HIST.run_duration,
    [Retries] = HIST.retries_attempted
    FROM sysjobs JOB
    INNER JOIN sysjobhistory HIST ON HIST.job_id = JOB.job_id
    -- CHANGE THIS
    -- WHERE JOB.name like '%GroupMaster%' or Job.name like '%etlv%'
    ORDER BY HIST.run_date, HIST.run_time

    by default all sql jobs are executed as sql server agent account, unless otherwise a proxy is setup.
    you can get the proxy information as Olaf mentioned, if the proxy_id is null for the step, it implies that the job step was executed as sql server service account and in such case it will be null
    so, if it is null, it ran as sql server agent account.
    so, one work around is get the sql server agent service account and if the proxy is null, that means it ran as sql server agent account, so, use isnull function. the disadvantage would be if the sql server agent account was switched, you might not get the
    accurate information as the new account will show up though the job really ran as old account, to get this information, you need to  get this from the logmessage column as you mentioned above.
     try this code...
    /*from sql 2008r2 sp1, you get the service accounts using tsql,otherwise you have to query the registry keys*/
    declare @sqlserveragentaccount varchar(2000)
    select @sqlserveragentaccount= service_account
    from sys.dm_server_services
    where servicename like '%sql%server%agent%'
    select message,isnull(name,@sqlserveragentaccount) as AccountName
    from sysjobhistory a inner join sysjobsteps b
    on a.step_id=b.step_id and a.job_id=b.job_id
    left outer join sysproxies c on c.proxy_id=b.proxy_id
    Hope it Helps!!

  • ALSA won't work for normal user [solved]

    hello archers!
    alsa on my arch box doesn't work for normal user, just for root. when i attempt to run ogle, it gives this error:
    ALSA lib pcm_dmix.c:1102:(_snd_pcm_dmix_open) The field ipc_gid must be a valid group (create group audio)
    ERROR[ogle_audio]: Opening alsa pcm device 'default': Invalid argument
    FATAL[ogle_audio]: failed opening the alsa audio driver at default
    error in the first line accurs even when i attempt to open audio tab in winecfg. googling this error didn't help me. xmms with alsa output doesn't seem to work too giving the same error, it works just with oss output.
    hmm, and YES i DO HAVE audio group, and my user IS member of this group.
    [root@otovo /]# ls -l /dev/sound/
    total 0
    crw-rw---- 1 root audio 14, 12 2006-03-09 01:37 adsp
    crw-rw---- 1 root audio 14, 4 2006-03-09 01:37 audio
    crw-rw---- 1 root audio 14, 20 2006-03-09 01:37 audio1
    crw-rw---- 1 root audio 14, 3 2006-03-09 01:37 dsp
    crw-rw---- 1 root audio 14, 19 2006-03-09 01:37 dsp1
    crw-rw---- 1 root audio 14, 0 2006-03-09 01:37 mixer
    crw-rw---- 1 root audio 14, 16 2006-03-09 01:37 mixer1
    crw-rw---- 1 root audio 14, 1 2006-03-09 01:37 sequencer
    crw-rw---- 1 root audio 14, 8 2006-03-09 01:37 sequencer2
    can anyone help me? or should i provide more information?
    thanx & greetings
    ota

    I've found it!
    groups run under user gave just gids of groups, whilst under root it gave proper names. so i took look at /etc/group and here is the problem :shock:
    [root@otovo etc]# ls -l group
    -rw------- 1 root root 427 2006-03-09 01:32 group
    i've changed permissions to a+r and it's working.
    thanks Gandalf, you've helped to save the Middleearth again .
    ota

  • Query to return all SQL statements ran for a particular user.

    Good Morning,
    Is it possible to find all the SQL statements run for a particular user using the v$ views? I can do it it 10g however I am currently using 9i and the query below does not work.
    select a.username,a.logon_time,b.sql_fulltext
    from v$session a,v$sqlarea b
    where a.sql_id=b.sql_id
    and a.username='USER'
    order by a.logon_time descI assume some columns in these views do not exist in 9i. The release of 9 I am using is 9.2.0.1.0.
    You help is much appreciated.
    Thanks,
    Mark.

    Dear Mark!
    I suggest you to use auditing instead of v$sqlarea. Oracle Onlinedocumentation says the following about v$sqlarea:
    >
    V$SQLAREA lists statistics on shared SQL area and contains one row per SQL string. It provides statistics on SQL statements that are in memory, parsed, and ready for execution.
    >
    That means that you'll get only those SQL-Statements that are currently in memory. Older statements which are already deleted from memory are not visible for your query.
    By the way if you simply want to know what is wrong with your query then please post your errormessage.
    Yours sincerely
    Florian W.
    Edited by: Florian W. on 29.07.2009 12:03

  • How to create a jobsteps for a new user to run a report on portal

    Hello Experts,
    Is there any program that automatically creates a jobsteps for the new users for
    a role??
    My company BW roles are mapped with R/3. so whenever a new user is created in a R/3 role
    it comes and maps with BW Role and creates that users automatically in BW.
    Now the problem is if any new users are created in r/3 and mapped with BW. the report
    fails to run for the new users unless and until they really login in to the system.
    For ex: I have 5 new users which are created in R/3 and properly mapped with BW. But
    report fails to runs for the new users.
    ERROR: Jobs step fails for the User X
    Is there any programe that automatically creates a jobsteps for the new users??
    Please advice.
    Thanks in advance,
    Harish

    Hello Kedar,
    Do you manually add a new users to the role??
    How the reports run for new users in your company??
    Thanks,
    Harish

  • Using an NDS statement for a SQL stament run only once in a proceudure

    Hi,
    We're using Oracle 11.1.0.7.0.
    I'm going through code written by someone else. In this package they're using NDS for every SQL call whether it gets called multiple times or just once. Is that a good thing?
    I thought NDS was only reserved for SQL statements that get called over and over again in a procedure with possible varying 'WHERE clause' variables and so on...
    Is there ANY benefit to using NDS for SQL queries called only once in a procedure?
    Thanks

    There is no benefit unless you want to turn PL/SQL into SQL*Plus (parse once, run once)
    Procedures exist to make sure : parse at compile time, run many times.
    The code is shooting itself in its own foot.
    Or the developer must have got hold of Tom Kyte's unpublished one chapter book 'How to write unscalable applications'.
    Sybrand Bakker
    Senior Oracle DBA

  • SQL tab not working in V2.1 EA1 for non-DBA users -- how to fix?

    In v2.1 EA 1 the tab to show the SQL script (DDL) in the object browser is not working for non-DBA users. In the prior version, these users would see a message about DBMS_METADATA and then the message would indicate that an "internal generator" would be used to generate the DDL script. After that brief message the DDL would show up as expected. This doesn't seem to be the case in the newest version.
    I issued the following two grants to a particular user which worked, but I am reluctant to issue the grants to "PUBLIC".
    SQL> grant execute on DBMS_METADATA to XXXXX;
    SQL> grant select_catalog_role to XXXXX;
    So, my questions are:
    1) Will the old functionality (that didn't require these privileges) be added to V2 at some point?
    2) What security implications are there for issueing the above grants to PUBLIC?
    NOTE: After granting execute on the DBMS_METADATA package, it still didn't work. I left that grant in place and granted SELECT_CATAOG_ROLE, so I can't say for sure that the 1st grant was required.
    Edited by: user615070 on Nov 19, 2009 9:30 AM
    Edited by: user615070 on Nov 19, 2009 10:06 AM

    An OEM account is separate from the database account. You need to use OEM UI to create an OEM account, however, for certain tasks to be done in the databases which OEM is monitoring they will also require separate database accounts within those databases. For example, to view the performance tab in OEM UI, a database account is required.
    OEM only has two types of users, i.e. Super Administrator and Administrator, but don't go by the names. You can grant an OEM 'Administrator' account access to specific targets and what they can do within OEM, such as only viewing reports, targets, and so on. For access within a database, the user created need not be a DBA either.
    I hope you understand.

  • Photoshop Elements 11 installed on Mac Mini OS X 10.9.5. Application running successfully on bot main user and administrative accounts for considerable time with no warning messages. When established a new user account on same computer and try to call up

    Photoshop Elements 11 installed on Mac Mini OS X 10.9.5. Application running successfully on bot main user and administrative accounts for considerable time with no warning messages. When established a new user account on same computer and try to call up elements receive message “Some ot the application components are missing from the Application directory. Please reinstall the application.” How do I correct this problem without disturbing application in main user account?

    Brooks lansing if you create a new Administrator account does the same issue occur?  If so then it is likely that there is a file permission failure and file permissions have been set for the existing Users instead of the groups they belong to.
    Have you removed and reinstalled Photoshop Elements 11?  This may reset the file permissions to the correct state to allow it to work under new accounts.

Maybe you are looking for