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. Visual Basic
  4. Login Restriction

Login Restriction

Scheduled Pinned Locked Moved Visual Basic
database
4 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.
  • S Offline
    S Offline
    Sritanu _ Ghosh
    wrote on last edited by
    #1

    I am working at VS2008 and SQL Server2005.I want to put login restriction that after 100 logins is done by the same user after that he will not able to log thruogh the user name. :(

    L 1 Reply Last reply
    0
    • S Sritanu _ Ghosh

      I am working at VS2008 and SQL Server2005.I want to put login restriction that after 100 logins is done by the same user after that he will not able to log thruogh the user name. :(

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      On the database side you can use SQL Server's logon trigger to count the user's logins. On the app side you are on your own.

      S 1 Reply Last reply
      0
      • L Lost User

        On the database side you can use SQL Server's logon trigger to count the user's logins. On the app side you are on your own.

        S Offline
        S Offline
        Sritanu _ Ghosh
        wrote on last edited by
        #3

        Thanks for your reply.Can you give the query for SQLServer2005.Pls help me.

        L 1 Reply Last reply
        0
        • S Sritanu _ Ghosh

          Thanks for your reply.Can you give the query for SQLServer2005.Pls help me.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          No, because there is no query. I suggested either a trigger or counting it in your app. Neither requires a query.

          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