Re: Naming convention for Login names?
- From: "Arnie Rowland" <arnie@xxxxxxxx>
- Date: Tue, 1 Aug 2006 09:35:51 -0700
Normally, valid names should contain only letters and numbers, starting with
a letter.
The inclusion of '\' with your TestUser name is what caused it to be
invalid.
--
Arnie Rowland, Ph.D.
Westwood Consulting, Inc
Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous
"ANeelima" <neelima@xxxxxxxxxxxxxxxxx> wrote in message
news:EBA5FA3C-6B21-4304-8943-81C8928086D3@xxxxxxxxxxxxxxxx
I have a VB 6.0 application using SQL DMO that adds user Logins to SQL
Server
2005 Express programmatically.
I would like to validate
the logins before they get added. I was wondering what the naming
conventions
are?
For example, If I use 'TestUser\' as login name, I get the following error
from Microsoft.SQLServer.Express.SMO
"TestUser\ is not a valid name because it contains invalid characters".
How would one know ahead of time whether the login contains invalid
characters or not? What sort of characters should I be testing the name
against?
--
ANeelima
.
- Follow-Ups:
- Re: Naming convention for Login names?
- From: Steven Cheng[MSFT]
- Re: Naming convention for Login names?
- Prev by Date: Re: Moving C2 Audits
- Next by Date: Re: View permissions
- Previous by thread: Re: sp_detach_db
- Next by thread: Re: Naming convention for Login names?
- Index(es):
Relevant Pages
|