Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Urgent

Urgent

Scheduled Pinned Locked Moved C#
csharpdatabasedesignsecurityquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Shiv5
    wrote on last edited by
    #1

    Dear All, How do i set the Database object security from the frontend for the SQLServer with User Interface Like If you create new login , What are all the privilege i need to give to that user I m going to do this using Front End using C# with SQLServer. With GreatRegards, Siva

    C 1 Reply Last reply
    0
    • S Shiv5

      Dear All, How do i set the Database object security from the frontend for the SQLServer with User Interface Like If you create new login , What are all the privilege i need to give to that user I m going to do this using Front End using C# with SQLServer. With GreatRegards, Siva

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      Shiv5 wrote:

      Urgent

      Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?

      Shiv5 wrote:

      How do i set the Database object security from the frontend for the SQLServer with User Interface

      What do you mean by your use of the proper noun "User Interface"? Do you mean using Enterprise Manager? Or did you mean "user interface" (adjective + noun combination)?

      Shiv5 wrote:

      Like If you create new login , What are all the privilege i need to give to that user

      What do you want the user to be able to do? What do you want them not to be able to do?

      Shiv5 wrote:

      I m going to do this using Front End using C# with SQLServer

      What is this proper noun "Front End"? Is it a new IDE? I'm gussing you mean you want to write a program in C# that will create a new user and assign privileges to that user. Is that correct? You can run just about any SQL code through a SqlCommand object. If you can write in in Query Analyzer you can run it through a SqlCommand object (Just remember every time you see a GO in query analyzer that is new SqlCommand. The SQL commands that you need are likely to be: * sp_grantlogin[^] * sp_grantdbaccess[^] * GRANT {SELECT / UPDATE / INSERT / DELETE / EXECUTE} ON {object} ON{security account}[^]


      "On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the

      L 1 Reply Last reply
      0
      • C Colin Angus Mackay

        Shiv5 wrote:

        Urgent

        Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?

        Shiv5 wrote:

        How do i set the Database object security from the frontend for the SQLServer with User Interface

        What do you mean by your use of the proper noun "User Interface"? Do you mean using Enterprise Manager? Or did you mean "user interface" (adjective + noun combination)?

        Shiv5 wrote:

        Like If you create new login , What are all the privilege i need to give to that user

        What do you want the user to be able to do? What do you want them not to be able to do?

        Shiv5 wrote:

        I m going to do this using Front End using C# with SQLServer

        What is this proper noun "Front End"? Is it a new IDE? I'm gussing you mean you want to write a program in C# that will create a new user and assign privileges to that user. Is that correct? You can run just about any SQL code through a SqlCommand object. If you can write in in Query Analyzer you can run it through a SqlCommand object (Just remember every time you see a GO in query analyzer that is new SqlCommand. The SQL commands that you need are likely to be: * sp_grantlogin[^] * sp_grantdbaccess[^] * GRANT {SELECT / UPDATE / INSERT / DELETE / EXECUTE} ON {object} ON{security account}[^]


        "On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the

        L Offline
        L Offline
        led mike
        wrote on last edited by
        #3

        Colin Angus Mackay wrote:

        Perhaps a little planning would be helpful?

        ROTFLMAO :laugh::laugh::laugh:

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups