PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > ms.sqlserver.setup > SQL server Auth -> Windows Login mapping
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
ms.sqlserver.setup Questions about SQL Server.

SQL server Auth -> Windows Login mapping

Réponse
 
LinkBack Outils de la discussion
Vieux 05/02/2007, 23h46   #1
jamo
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut SQL server Auth -> Windows Login mapping

Hello people,

Im new to MS SQL server and I'm trying to port a MySQL based app to
run on an existing SQLServer. Its proving somewhat more difficult that
I first thought, due to the fact that MS SQL wont let a user select
another users table, without specifing the user in the SQL command.

Can you set up a windows user account that can login via SQL server
authentication (i.e specify user "Guest" on the jdbc connection
string, that has the same privilates as the "Guest" windows login
account)?

If this isnt possible, is there a SQL command that you can use that
will make all subsequent commands in the context of that user? For
example, if I could go "SET USER dbUser;" "SELECT * FROM hisTable"...
which would execute the same as "SELECT * FROM dbUser.hisTable".

Am I going about this competely the wrong way?

Any would be much appreciated!!!

Regards,

Jamo.

  Réponse avec citation
Vieux 06/02/2007, 01h44   #2
jamo
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: SQL server Auth -> Windows Login mapping

I just found a way around it. If you use JTDS as your driver, you can
specify your domain, and log in using windows authentication instead
of SQL authentication, which makes things a whole heap easier.
Thankyou JTDS!!!

On Feb 6, 10:46 am, "jamo" <nzj...@gmail.com> wrote:
> Hello people,
>
> Im new to MS SQL server and I'm trying to port a MySQL based app to
> run on an existing SQLServer. Its proving somewhat more difficult that
> I first thought, due to the fact that MS SQL wont let a user select
> another users table, without specifing the user in the SQL command.
>
> Can you set up a windows user account that can login via SQL server
> authentication (i.e specify user "Guest" on the jdbc connection
> string, that has the same privilates as the "Guest" windows login
> account)?
>
> If this isnt possible, is there a SQL command that you can use that
> will make all subsequent commands in the context of that user? For
> example, if I could go "SET USER dbUser;" "SELECT * FROM hisTable"...
> which would execute the same as "SELECT * FROM dbUser.hisTable".
>
> Am I going about this competely the wrong way?
>
> Any would be much appreciated!!!
>
> Regards,
>
> Jamo.



  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 11h16.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10473 seconds with 10 queries