473,386 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

User Access

Hi,
I have created an application in vb.net using SQL Server 2000 database .
What I want is to restrict users to access the application more than once,
from the same computer or from any other computer. What is the best way
doing it as database is disconnected.

Currenty I am storing/flag the login name in some table at the time of
appliation load, and remove it when the user close the application. But it
doesn't work always, especially when program closes abnormally. To remove
the flag I have created another program. I still dont know what is the right
way doing it.
Any help/suggestion would be appriciated.

Thanks, Kartic
Nov 20 '05 #1
1 1244
If using SQL Server I would set up a scheduled job to
check for users who are still logged on over a period of
time...

The other way is use a trsuted connection to connect to
the database... Then store there user name in a table on
the database. You could then run a stored procedure in a
job to check if the user is in the sysprocesses table in
the master database, if the use is located in your table
and not in the sysprocesses table then they have not
logged off the application correctly... (Also you should
use the system stored procedure sp_who2 rather then query
the sysprocesses table :) ).

Glenn
-----Original Message-----
Hello,

"Kartic" <kg****@csystemssoftware.com> schrieb:
I have created an application in vb.net using SQL
Server 2000 database . What I want is to restrict users
to access the application more than once, from the same computer or from any other computer. What is the best way doing it as database is disconnected.

Currenty I am storing/flag the login name in some table at the time of appliation load, and remove it when the user close the application. But it doesn't work always, especially when program closes abnormally. To remove the flag I have created another program. I still dont know what is the right
way doing it.
Maybe you want to create a trigger in the database which

removes users whodidn't perform an operation on the database for a certain period. That'sonly an idea, I think the database programmers will be able to give you abetter solution:

Newsgroup for .NET+database (ADO .NET) questions:

news://msnews.microsoft.com/microsof...c.dotnet.frame work.adonet
HTH,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET
http://www.mvps.org/dotnet
.

Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: premmehrotra | last post by:
I currently have a multi-user access database which is put on a shared drive L: on a Windows Servers. Entire database is one file premdb.mdb. Users access this database from their laptops....
8
by: Pete Wittig | last post by:
Hello, I am wondering if it is possible to create a networked application with C# that is seen as a windows user. For example, if Bob logged onto windows and then started the application, any...
5
by: Dave Kolb | last post by:
Is there any other solution for an ASPNET application to access network resources other than running as SYSTEM, using delegation (a nightmare to get to work) or the COM+ solution? I cannot seem to...
8
by: Razak | last post by:
Hi, I have a class which basically do Impersonation in my web application. From MS KB sample:- ++++++++++++++++++++code starts Dim impersonationContext As...
8
by: Joe | last post by:
I check for the NTLogin of a user by Page.User.Identity.Name, but when I put the app on the server the value for Page.User.Identity.Name is "" I had the <allow users="*/> attribute commented...
4
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
4
by: mrouleau | last post by:
I am sorry if this is the wrong group to ask, if so please point me in the correct direction. My problem is I have an MDB file with user-level security on it (mdw). When i move it over to a...
2
by: =?Utf-8?B?d2luZHNpbQ==?= | last post by:
Hi, I have a C# program that need to know whether the user that run the application is administrative user or limited user. Are there any methods in C# I can use? -- windsim
31
by: zdenko | last post by:
I have a multi user database and users were created by user level security wizzard - as I mentioned in message before. Everything works fine for those users, but now I have another problem. I have...
14
by: chromis | last post by:
Hi, I've been trying to implement a more OOP oriented approach to dealing with user security on one of my websites, and I am trying to validate the user against an array of roles, however I am...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.