Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP7 Login Form On SQL Server 2000
Message
De
16/05/2003 04:47:19
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
16/05/2003 02:27:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00789105
Message ID:
00789130
Vues:
30
>Hi Everyone
>
>I know This in not the first time i am asking this but i need some help asap!
>
>Problem 1
>---------
>
>I Have a vfp7 application with an Sql Server Database.
>
>On The Sql Server Enterprise Manager i add new logins and then add users to my database.
>
>
>What i want is to have a login screen(in VFP7) to validate the user name and password as enetered on the SQL Server before a uses starts using my application.
>
>How can i do This?
>
>Does any one have any examples to help me?
>
>
>Any Help Would Be Appreciated.
>
>
>Problem 2
>---------
>
>Is it possible to 'Copy' users from one Database to another programatically ?
>
>
>
>Tnx in Advance
>Anthi

1)
* Get user name and pwd

sqlsetprop(0,'DispWarnings',.f.) && Prevent error message
sqlsetprop(0,'DispLogin',3) && Disable login dialog

* Try to connect
* If couldn't get a handle check with aError
arrError[1] = 1526 && VFP error number
arrError[5] = 18456 && SQL server 'login failed'

2) I think you could do that with DTS tool.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform