|
-
Aug 7th, 2002, 09:05 PM
#1
Thread Starter
Fanatic Member
-
Aug 8th, 2002, 12:31 AM
#2
PowerPoster
I maybe missing something but doesnt your connection string do that???
cn.Open "Provider=sqloledb;" & _
"Data Source=myServerName;" & _
"Initial Catalog=DbName;" & _
"User Id=Username;" & _
"Password=Password"
-
Aug 8th, 2002, 06:11 AM
#3
Fanatic Member
I agree w/ Beacon on this. Try to make a connection to the server using the users login. Be sure to trap any errors. You can then check any error messages that are returned to see if the user has access to the server or not. That's how I handle it anyway.
Or...
If you're familiar with how SQL encrypts passwords in the syslogins table, you could check the userid and password against that table.
Chris
Master Of My Domain
Got A Question? Look Here First
-
Aug 8th, 2002, 09:00 PM
#4
Thread Starter
Fanatic Member
one thing for sure is....
I don't know how to get the user.
Suppose like this :
In Database "FtyDB", I have user list in user tab ==> mydomain\Wen_Lie, with wl as the password.
Can I just use what beacon said ???
__________________
Wille
-
Aug 8th, 2002, 11:07 PM
#5
PowerPoster
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|