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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. How I use an Applicaton Role?

How I use an Applicaton Role?

Scheduled Pinned Locked Moved C#
questioncsharpdatabasevisual-studiosecurity
3 Posts 2 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.
  • A Offline
    A Offline
    aecordoba
    wrote on last edited by
    #1

    Hi folks! I'm coding a very simple Windows Application on VS 2005 (C#) in order to see the records of Customers table of Northwind database. This Windows Application works fine by "Debugging" on VS 2005 enviroment with "Windows Authentication" to connect to the database. Now, I thinking to deploy the application, so I created an "Application Role" in the Northwind database. But, how do I use that Application Role in my application? How do I invoke it? Can somebody help me? (Details and reference to step by step guides will be appreciated.)

    -- Adrián Córdoba

    K 1 Reply Last reply
    0
    • A aecordoba

      Hi folks! I'm coding a very simple Windows Application on VS 2005 (C#) in order to see the records of Customers table of Northwind database. This Windows Application works fine by "Debugging" on VS 2005 enviroment with "Windows Authentication" to connect to the database. Now, I thinking to deploy the application, so I created an "Application Role" in the Northwind database. But, how do I use that Application Role in my application? How do I invoke it? Can somebody help me? (Details and reference to step by step guides will be appreciated.)

      -- Adrián Córdoba

      K Offline
      K Offline
      KaptinKrunch
      wrote on last edited by
      #2

      I'm waiting for the day google does not have the answer. http://msdn2.microsoft.com/en-us/library/5k850zwb.aspx[^]

      Just because we can; does not mean we should.

      A 1 Reply Last reply
      0
      • K KaptinKrunch

        I'm waiting for the day google does not have the answer. http://msdn2.microsoft.com/en-us/library/5k850zwb.aspx[^]

        Just because we can; does not mean we should.

        A Offline
        A Offline
        aecordoba
        wrote on last edited by
        #3

        KaptinKrunch wrote:

        I'm waiting for the day google does not have the answer. http://msdn2.microsoft.com/en-us/library/5k850zwb.aspx\[^\]

        KaptinKrunch: I'm talking about to use "Application Roles" (from MS SQL Server's roles) in my application for connecting to the database. I'm not talking about roles for my applicaton. In other words, how do I modify my application (now using Windows Authentication) to connect to the database by using an application role that I created in the database (SQL Server Management Studio)? I saw several sites found by mean Google, but I didn't find a good guide for this purpose. Anyway, thank you for your answer.

        -- Adrián Córdoba

        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