all groups > sql server new users > june 2005 >
You're in the

sql server new users

group:

Import SQL et Login NT...


Import SQL et Login NT... MAF
6/27/2005 12:00:00 AM
sql server new users:
Bonjour à tous,

Quelqu'un peut-il m'aider sur le problème suivant ? j'ai bien chercher
sur le net mais n'ai pas trouvé de réponses...

<CONTEXTE>
------------
Je doit importer une base cliente sur ma plateforme de dev
Ma plateforme est sous Windows 2003 et se trouve dans le groupe de
travail WORKGROUP
La base de donnée est SQLEXPRESS CTP

<PROBLEME>
------------
Dans le script sql que l'on ma fourni, j'ai la commande suivante :
[quoted text, click to view]

N'ayant pas de domaine, j'ai essaye de remplacer le nom de domaine par
le groupe de travail existant et j'ai creer le compte utilisateur
correpondant, ce qui me donne :
[quoted text, click to view]

Cela ne semble malheureusement pas fonctionner car j'obtient l'erreur
suivante :
[quoted text, click to view]
permission.

NOTE : La documentation SQL Server ne parle que de Domaine... je n'ai
pas trouve de cas explicitant le fonctionnement de cette commande avec
un groupe de travail
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_sp_addp_0n1u.asp)

<QUESTION>
------------
Comment faire pour adresser le login "ntusername" lorsque l'on n'est pas
sur un domaine ?
Si c'est impossible, puis-je envisager un contournement ??

Toute vos suggestions sont les bienvenues, car je ne sais vraiment plus
où chercher


Merci d'avance pour votre aide !!!

--
MAF <maf NO albert SPAM com>
Re: Import SQL et Login NT... MAF
6/27/2005 12:00:00 AM
Oups.. sorry, this one for the French NewsGroup...

But I'll try to explain it in english too :

How can I use the "exec sp_addsrvrolemember" in a sql script (.sql file)
when my windows does not belongs to a Domain but to a Workgroup instead ?

The msdn documentation says it has to be DOMAIN\Username
But as I told you, I have no DOMAIN !!


Does anyone already had this problem ???

--
MAF <maf NO albert SPAM com>
1024D/4B5B304C : 316E BAA2 DF76 8948 ECE8 F679 B1B5 A78A 4B5B 304C

MAF a écrit :
[quoted text, click to view]
Re: Import SQL et Login NT... Stu
6/27/2005 7:08:02 AM
MAF,

bonjour! Your English is much better than my French (6 years of French
classes wasted).

Anyway, Workgroup members share credentials by having a common password
(in some cases, it's a blank password) on all member computers in the
Workgroup; you have to create a user account on each machine in the
workgroup with the same password in order for it to work correctly.

A service that runs on a member computer prepends the account logging
on with the name of the computer as a DOMAIN name; in other words, user
JSmith wants to log on to SQL Server running on a machine named
JUPITER. Using Windows authentication, you can add JUPITER\JSmith to
the appropriate role.

When Jsmith tries to access SQL Server from his machine (Work1), it
should authenticate him (as JUPITER\Jsmith).

Does that help?
Stu
Re: Import SQL et Login NT... MAF
6/28/2005 2:10:59 PM
Stu a écrit :
[quoted text, click to view]

Thanks to 24, Lost, Alias and so on I think ;)

[quoted text, click to view]

Yes, really !
I'll try this beside another proposal from someone else :
"NT AUTHORITY\Jsmith"

Anyway, I understand what you mean and I now have a better overview of
this 'workgroup problem'

[quoted text, click to view]
--
MAF <maf NO albert SPAM com>
AddThis Social Bookmark Button