Provide truncate table permission for a user

Please let me know the best possible way to provide truncate table permission to a SQL Server Database user (ddl_admin role cannot be granted to the user in my case)

Grant CONTROL permissions on table, user will be able to truncate table.
GRANT CONTROL ON user_table TO User
http://www.sqlservercentral.com/blogs/steve_jones/2011/03/07/sql-server-truncate-table-permissions/
Other ways check this:
Grant Truncate Table Permissions in SQL Server without ALTER Table  
http://www.mssqltips.com/sqlservertip/2583/grant-truncate-table-permissions-in-sql-server-without-alter-table/
The ALTER permission provides the access required to alter the schema of a tables, this includes truncating the data in the table.
http://www.jasonstrate.com/2013/05/security-questions-truncate-table-permissions/

Similar Messages

  • Can grant truncate table permission to a user?

    Whether can grant  truncate table permission to a user separately.
    I know that the role db_ddladmin can do,but the create,alter and drop permissions will be granted the same time(These permissions are not what we want to
    grant to user).
    Is there any solution?
    Best regards!!
    If you haven't all the things you want,be grateful for the things you don't have that you didn't want.

    You can't grant truncate because for whatever reason, that permission doesn't exist.  What you can do is use a stored procedure and use EXECUTE AS OWNER to get around it.
    create database foo
    go
    create login foobar with password = 'alkdsfji9eorngv';
    go
    use foo
    go
    create user foobar from login foobar;
    go
    create table test(rowid int identity)
    go
    insert into test default values;
    go
    select * from test
    go
    create procedure dbo.truncate_test
    with execute as owner
    as
    truncate table test
    go
    grant execute on dbo.truncate_test to foobar
    go
    execute as login='foobar'
    execute dbo.truncate_test
    revert
    go
    select * from test
    go
    use master
    go
    drop database foo
    drop login foobar
    This keeps your database safe and allows you to grant execute on the truncate procedure to allow them to truncate the table.Jonathan Kehayias
    http://sqlblog.com/blogs/jonathan_kehayias/
    http://www.twitter.com/SQLSarg
    http://www.sqlclr.net/
    Please click the Mark as Answer button if a post solves your problem!

  • Hoe to provide a download help for the user

    hi all
    How to provide a download help for users, i.e. if i select download radia button and
    if i place cursor on file path it should provide the user to select what ever the drive and folder he needs can any body help asap.
    regards
    reddy.

    Check this..
    parameters : p_file like rlgrap-filename  .
    at selection-screen on value-request for p_file.
      perform f4_on_filename using p_file .
    *&      Form  F4_ON_FILENAME
          text
         -->P_P_FILE  text
    form f4_on_filename using i_file .
      data:l_maske(100) type c, l_subrc type sy-subrc ,
           w_fileinfo   type ocs_f_info .
      data:t_fileinfo   type  table of ocs_f_info     .
      concatenate 'Text Files (.prn;.txt;*.csv)'(006)
                  '|.prn;.txt;*.csv|'
                  into l_maske.
      call function 'OCS_FILENAME_GET'
        exporting
          pi_mask     = l_maske
        tables
          pt_fileinfo = t_fileinfo
        exceptions
          others      = 6.
      l_subrc = sy-subrc.
      if l_subrc is initial.
        read table t_fileinfo into w_fileinfo index 1.
        concatenate w_fileinfo-file_path w_fileinfo-file_name into i_file.
      else.
        clear i_file.
        message id sy-msgid type 'S' number sy-msgno with sy-msgv1 sy-msgv2
                                                          sy-msgv3 sy-msgv4.
      endif.
    endform.                    " F4_ON_FILENAME
    it will come on F4 help... not by placing cursor. that is not possible. One thing you can do is.. you can disable this file name parameter.. when the radio-button for file load is unchecked.

  • SCSM 2012 SSP Permission for End users

    Hello Experts,
    I have an issues with SSP - SCSM 2012 SP1.
    As an admin user, I can see theOfferings, see the pending requests, can see the requests I have submitted, Approve them etc. But when I am an end user, browsing from my laptop, I see a blank Home page. I dont see the Service offerings in the
    homepage..even I dont see the Need Help? text. What is the issue? FYI : Silver light is already installed on my laptop.
    Interestingly, I see the Need Help? text with the same end user credential when I am opening the browser inside the server wher SSP is installed.
    But, in both the cases, whether I browse in the server or from my laptop, I dont see the service offerings anywhere when i am an end user. I followed the below article..but no success.. :(
    http://systemcentertech.com/2012/06/28/scsm-2012-portal-service-catalog-empty-for-end-users/
    Please help...
    Thanks!
    Thanks

    Hi,
    Did you add the Service Offerings and Request Offerings to the Catalog Group? Here is another good blog on this you can reference:
    http://www.concurrency.com/blog/scsmportalpermisions/
    My Blog | www.buchatech.com | www.systemcenterportal.com
    If you found this post helpful, please give it a "Helpful" vote. If it answered your question, remember to mark it as an "Answer". This posting is provided "AS IS" with no warranties and confers no rights! Always test ANY suggestion
    in a test environment before implementing!

  • Apple Needs to Provide Magic Mouse support for Tiger Users

    While it's always a good thing to upgrade software to take advantage of new hardware and features, some of us longstanding Mac Users are still happy with our non-Intel hardware (have owned Macs from the Mac 512K to my current PowerPC Dual Core G5). How hard can it be to provide a software update for Tiger that allows full functionality for the new BlueTooth Mouse. My understanding is that while I could upgrade the OS to Leopard, it is not recommended for PowerPCs for performance and other issues. Not asking for cross compatibility to OS 1, but there are a lot of us out here running the PowerPC G5s at OS 10.4.11 who would appreciate some consideration here.
    Thanks for listening.
    Cheers,
    Tom

    I sympathize with the sentiment. I upgraded to SL from Tiger just so I could use the Magic Mouse. It's that cool. I think doing what you suggest would be impossible for Apple. For one, so few people are using Tiger now that economically, it just wouldn't make sense for Apple to develop it any further. For another thing, the first Mac with multi-touch technology was the Macbook Air, and it debuted during the Leopard era. The foundation for multi-touch technology just isn't built into Tiger. I do think it was a mistake for Apple to take the bluetooth Mighty Mouse off the market. That was a good mouse, and there was no reason it had to go.

  • Authentication prompt issue when opening an office file in a document library with read permission for domain users

    An user as part of the domain users tries to open an office file from a document library but he got an authentication prompt asking him to authenticate. Domain users has only access to this library and not to the whole site. This uses to work in SharePoint
    2007 without any problem but not in SharePoint 2013, we didn't have a workflow on SP2007.
    Domain users has read access to only this document library in the site, but he shouldn't get an authentication prompt since he is part of the domain users and he is not trying to modify the document, he can open the document but gets two prompts, he can't
    also see the list using explorer view since nothings appears using the explorer view.
    Now, when opening the file, we can see..Updating Workflow Status, but we don't have any workflow working on this site or library, event any feature related to workflow.
    If we go to the event viewer in the server, we find this information,
    I also checked this thread but I couldn't find this scenario.
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/91bc770b-bb70-4885-a4ad-a243edb88753/event-id-8026-workflow-soap-getworkflowdataforitem-failed-doc-library-no-workflow?forum=sharepointgeneralprevious
    I also created another list with the same permissions and using other office files but got the same behavior.
    Now, we have migrated this site from SP2007 to SP2013.
    Any ideas?

    OK, I am going to throw out a lot of ideas here so hopefully they get you closer to a diagnosis. Hang on :)
    Does it happen to work for some users but not others? If so, try logging in on the "good" computer with the "bad" username. This will tell you if the problem is related to the end-user's system. Also, once the user downloads a document
    successfully can they open and work on it in Word? Also, does the document library have any custom content types associated with it or does it just use 'Document'?
    I notice that there are other folks on the web that have run into this same problem and the similarity seems to be that they are either on SharePoint 2007 or have upgraded from 2007. Did this doc library start out as a 2007 library?
    What you might want to do is this: Make a site collection from scratch in 2013 (or find one that you know was created in 2013). Choose team site (or whatever you want) for the root web and set up the security the same way you have it on the malfunctioning
    library. Now, use windows explorer to copy and paste some of the documents to the new location. Be sure you recreate any needed content types. Now test it from the troubled user's computer.
    I'm thinking there may be something that is different about the library since it was migrated through various versions and updates since 2007. I've sometimes found that there can be problems (especially with user profiles but that's a different story) with
    things that go through this evolution.

  • How to grant create table privilege for a user on a specific table

    Hi:
    I created a user, for a test scenario. I granted this user create any table, and I made the default tablespace as example.
    When I connect as the user and try to create a table, I get this:
    SQL> create table T1 (NAME varchar2 (500), AGE number(2));
    create table T1 (NAME varchar2 (500), AGE number(2))
    ERROR at line 1:
    ORA-01950: no privileges on tablespace 'EXAMPLE'
    How can I grant the necessary privilege to have user create/delete tables on tablespace example?
    Thanks.
    DA

    create user ADAM identified by radge default tablespace EXAMPLE
    quota 10M on EXAMPLE;
    for example 10Mbytes given to Example tablespace.... or you can write:
    .....quota unlimited on EXAMPLE
    and
    grant connect to ADAM
    grant create table to ADAM .....
    or
    grant connect , resource to ADAM .... although grant resource is not recommended...
    ....and something else....
    you should define temporary tablespace in create user command... otherwise the system would be used...
    Greetings...
    Sim
    Message was edited by:
    sgalaxy

  • Trying to provide a "visual" means for a user to filter data.

    I have a very smple vi written to import an excel spreadheet, choose the data in two columns and plot it out on an x y graph.  The trick y part is: the user would like to be able to view the chart and - using two markers - select the range of data he is intersted in actually saving.  Since he always wants to save the same span (a given temperature range....say 200 degrees), he would like to move either the upper or lower marker, and have the other one follow, creating a sliding range of values.  Once he positions the markers, he'd like to creat a new array, including just the values for the selected x range.  This visual technique would provide a much faster means of the user selecting meaningful data than for him to go through the raw data.  The requirements for choosing "good" data over "bad" data vary from test to test, so there's really no vible way to let LabVIEW do it mathematically.  Can this sort of thing be done?
    Attachments:
    ppv data filter.vi ‏122 KB

    Your vertical markers would be cursors. With the Cursor Index property and the cursors locked to the plot, you can get the information needed to use the array subset information. Here's a simple example that shows how to use cursors. I didn't do the array subset and you would also need some logic to take care of the case when the user drags cursor b before cursor a.
    Attachments:
    Graph with Cursors.vi ‏40 KB

  • How to provide an easy way for end users to join a specific sharepoint group

    Hi,
    I have created a sharepoint group with auto accept requests to join the group.
    However to join the group users have to go to the specific membership of the group and click "actions->join group" on the url: <a href="http:///_layouts/15/people.aspx?MembershipGroupId=592"> Surely there is a more user friendly
    way to join a group in SP2013 right? Can I create a link users can simply click on that joins them to the specific group?
    Thanks in advance

    I'm not sure this was ever designed to be user friendly as typically only Admins or those with elevated permissions would see these groups.  There isn't as far as I can see, any way to add this step within a Wokflow too, unless you're able to install
    some third party steps.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • BASED ON SYSTEM LOGIN HOW TO ASSIGN SHARE POINT PAGE WITH OUT HAVING GROUP PERMISSION FOR THAT USER?

    Hi All,
    I am Srinivas, 
    How can i give permissions to Active Directory login User in SharePoint 2010. But user not in a group member  of SharePoint site.  is there any chance to assign a
    particular page to Active Directory user (He is not a member in SharePoint Group).
    Thank You
    Srinivas

    He doesn't need to be a member of a SharePoint Group.  You can create a SharePoint User based on the AD user and assign permissions to that user.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • User Profile Service - Permission for Service User to Read All (also "only me fields")

    Hey there,
    we have a webapplication that needs to read all info from a user profile. Even if it is set to "only me".
    I want to set the least privileges needed. So set the user to "Manage Profiles" in the CA seems to be wrong.
    How can i achieve that?
    Best regards
    Stephan

    You could run that piece of code in the vacation app using "runwithelevatedprivileges". That may also resolve it, as it will be running under the context of the App Pool account (which you could grant the appropriate rights on the UPSA).
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Table name in Oracle for the User Mapping field?

    Does anyone know the table name for the user Mapping field in EP6.0?
    Thanks

    Hi Alan,
    why do you want to access the DB directly?! You can access the information via the Java API, which is in general the most secure way for the DB scheme is always "subject to change without notice"...
    Best regards
    Detlev

  • How to Generate Audit table entries for user navigation in ADF application?

    Hi all,
    I have a requirement that I need to have audit table entries for each user action in my application. Along with entries for user actions like insertion,deletion and updation I also need to have entries in the audit log even when a user simply navigates to or views any page.
    Although I was successful in creating the entries for user actions like insertion,deletion and updation I failed to do so for simple user navigation through the pages.
    Can anyone please help me out?
    Thanks in advance,
    Arijit

    Hi,
    Thanks for the quick reply. I am using JSF for my ADF application.Could u please elaborate how to use the PhaseListener for Auditing user navigation?
    Arijit

  • Advanced permission for files and folders

    Advanced permission for files and folders
    Hi,
    Just wanted to raise a quick query on setting a unique NTFS Security permission.
    My requirement
    A shared folder with the below listed access for users
    A group of users should be able to create, read, rename files and folders inside a shared folder.
    The group of users should not have the right to delete any folder or file from the shared folder.
    This is what I have tried. 
    Gave modify permission to the Security group.
    On Advanced permissions, denied delete subfolders and file & delete permission.
    The effective permission for a user who is member of the security group over a file inside the shared folder is as shown.
    https://onedrive.live.com/redir?resid=835A81FDD1D9D9FC!109&authkey=!AGQFP11QTFaLHQM&v=3&ithint=photo%2cpng
    But while trying to rename or modify the file, getting the below error message.
    https://onedrive.live.com/redir?resid=835A81FDD1D9D9FC%21110
    Any help to achieve my requirement would be really appreciated.
    Thanks,
    JD

    Hi JD,
    Removing delete permission from the user or group brings a limitation that the user will not be able to rename the folder. This is because of the reason that the "rename" operation is also included within the "Delete" permission.
    Thus if you want to prevent user from deleting the shared file, it's also not allowed to rename.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • WPC for Anonymous user

    Dear All,
    We are on SAP NW 7.3 and trying to provide the WPC page for anonymous users.
    Have designed the WPC content, connected to a role and gave the role to anonymous user, but when we go to portal
    http://<host>:<port>/irj/portal/anonymous it gives a logon page. To resolve the issue have gone thru all the posts and recommendations but still the same error.
    Tried to follow the blog 'Webpage composer Anonymous User access' but in NW 7.3 can find the PCD location 'WebpageComposer', - but in templates we have the WPC Templates and have given the required permissions
    Also the security zones are changed.
    Has it something to do with the 'Staging Area' folder  (Navigating through the role Accesible Area Management -> content Editor), because when we create any new Area/Page(WPC Area/Page) it creates the same in this folder, which is present as a KM Folder. This folder does not allow to set the permissions (Accesible Area Management -> Content Library -> Staging Area -> Details -> Permissions)
    Your valuable suggestions would really help me to resolve this issue.
    Thanks,
    Srv

    Dear All,
    Got the reply from SAP to perform the below steps and its working fine for us.. just in case any one of you needs this info.
    1. Add the "authentication scheme" property to the WPC design time page template: a. Go to "System Administration" ' "Content Model Management" ' "Property Classification" b. Under "Object Type" select "Page" c. Under "Template" select "WPC Design Time Page" d. Under "Available Properties" locate "Authentication Scheme" and add it to the "Selected Properties" 2. Go to the Area Management Role and locate the area and the page that you would like to be available to anonymous users 3. Set End User permissions for "Anonymous" group on the area 4. Publish the page(s) and the area 5. Navigate to "Content Administration". Make sure the "Area Management"role isn't open in some other tab or browser window 6. In the Portal Content Catalog, locate the role which is available to anonymous users and has the WPC area connected to it. 7. Open the role, open the connection 8. For each page under the workset (area): a. Open the page b. For each iview and page under the page, open the iview/page and navigate to its properties: i. Locate the "Authentication Scheme" property and change it to "anonymous" ii. Save the object iii. For pages, open the page and perform the same process for each iview under the page iv. Save

Maybe you are looking for

  • Using table as a queue - or rowlocking + readpast.

    I am using a database table as a queue (not my design) in an application which is currently single-threaded. I need to enable multiple threads/applications processing against this table/queue. Each thread must get exactly one row to process at a time

  • Pivot table subtraction row

    Hi there, Is it possible to subtract the values of two rows in a pivot table and show as the third row if we can assure that there will always be only two rows in the pivot table? Pivot table view: h2. Year  M01   M02   M03    Q01 Total_ *2009*    49

  • CS6 Trial - Error Code A12E1?

    I go to download the CS6 trial so of course it's downloading tralalala and next thing I know, it says: "We've encountered the following issues: Sorry, there seems to be a problem with the installation process (Error Code: A12E1). For troubleshooting

  • Caching in Apache proxy

    Good day, I am trying to boost the performance of our WLP 10.2 cluster by enabling disk caching at the Apache proxy layer in front of the WLP servers. I have enabled disk caching but nothing seems to be cached. When I dug into it, I found that the JS

  • Serial Generation Problem

    I defined item attribute to "Predefined" Serial Generation, but when i am going to generate the serial numbers, item is not appearing in the list while i change the attribute to "At Receipt" it is working fine. Kindly solve my problem. Regards