Re: Sql Server Login

From: nntp.broadband.rogers.com (hemang_at_hemang.net)
Date: 01/09/05


Date: Sun, 9 Jan 2005 08:37:17 -0500

Thank you so much for your reply.

Ok, firstly I was under the impression SQL authenticaiton will be better
because how will the cient's computer have my userid for windows
authentication.

But now I know windows authentication is recommended. So I'll use that.

However I'm still confused as to how will the client be able to use it ?

Let me explain what I mean.

I install MDSE on my computer at work with "windows authentication" (as
default). I create a database on it and I'll have to select windows
authentication during that. I create tables, relations and develop my
application using c# to talk to it.

Migrate client's old data from access to this database.(any kb articles on
this?) Now my application is ready and talking to this database in MSDE.

Now the question is:

How do I give my client permission to this database when I don't know their
userid and have no access to their windows security model. I haven't gone
through the articles you pointed me to, but these questions poped up in my
mind and thought would ask you.

Another question I had while I was reading the readme of MSDE is that I can
install up to 16 instances of MSDE on a single computer.

If I can create multiple databases in MSDE, why would I need multiple
instances ? What is an instance and the advantages of having more than one
on the same computer.

Thanks for all the help.

Hemang

"Andrea Montanari" <andrea.sqlDMO@virgilio.it> wrote in message
news:<34011eF450qukU1@individual.net>...

> hi again,

> "Andrea Montanari" <andrea.sqlDMO@virgilio.it> ha scritto nel

> messaggio news:33vvkpF43u1qrU1@individual.net

> >>

> >> Which is better for creating the database on one computer and then

> >> deploying it at the customer site.

> >>

> >> Are there any documents which explain how to copy a database from

> >> development site to production site?

> >>

>

> as regard this last part, I personally am aware of 3 ways to do it..

> and ech of them has it's drawbacks...

> 1) you can detach your dev database, copy it on the user's machine,

> and reattach it .. using sp_detach_db to detach it and sp_attach_db

> for reattach, see BOL for further info....

> 2) you can backup your dev database and restore in on the user's
> machine...

> see backup database and restore database in BOL for further info....

>

> these 2 methods are quite easy to perform but suffer from some drawbacks..

> - they can raise orphan users issue (please see

> http://www.sqlservercentral.com/columnists/nboyle/fixingbrokenlogins.a

> sp for further info and details on how to solve this)

> - they do not make use of user's model database... every database

> inherits settings, dbobjects, sometimes permissions, from the current

> model database... if you deploy your database schema these way you

> simply export YOUR settings and preferences..

> - they inherits your settings regarding collation and sort order....

> this is no more a problem with SQL Server 200 becouse it supports

> different collations, but was a major issue for SQL Server 7.0
> deployment..

>

> 3) you can script out your DDL database schema with tools like

> Enterprise Manager or other (free) scripting tools...

> this method is the more elastic one, even if it require more deal...

> I currently deploy my dbs this way...

> I deploy sql DDL script to re-create the schema, sql permission

> scripts to generate privileges and users, sql DML "Insert Into" script

> to pre-load some application's system-tables and/or txt files to BCP in
> data...

> I do use a companion application which parses a private defintion

> files that includes settings as long as a list of files to be

> "executed" some way... I do use ADO and/or SQL-DMO, but oSql.exe can

> be an alternative, even if it does not set the OS error level status

> on Win9x boxes... I chose not to use oSql for this reason...

> even if more complicated, this method allows me to deploy database

> upgrades with no pain, providing the sql DDL script to morphe

> databases to current release.. several tools can help you for this

> please have a look at http://tinyurl.com/64jjy for a little more

> detailed explanation about the method...

>

> recently Microsoft released an excellent article base on scripting you

> can read at

> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsql

> mag01/html/scriptingacustomdatabaseinstallation.asp

> and this is by far the best article I ever read about..

> --

> Andrea Montanari (Microsoft MVP - SQL Server)

> http://www.asql.biz/DbaMgr.shtm http://italy.mvps.org

> DbaMgr2k ver 0.9.1 - DbaMgr ver 0.55.1 (my vb6+sql-dmo little try to

> provide MS MSDE 1.0 and MSDE 2000 a visual

> interface)

> --------- remove DMO to reply

>

"Andrea Montanari" <andrea.sqlDMO@virgilio.it> wrote in message
news:34011eF450qukU1@individual.net...
> hi again,
> "Andrea Montanari" <andrea.sqlDMO@virgilio.it> ha scritto nel messaggio
> news:33vvkpF43u1qrU1@individual.net
>>>
>>> Which is better for creating the database on one computer and then
>>> deploying it at the customer site.
>>>
>>> Are there any documents which explain how to copy a database from
>>> development site to production site?
>>>
>
> as regard this last part, I personally am aware of 3 ways to do it.. and
> ech
> of them has it's drawbacks...
> 1) you can detach your dev database, copy it on the user's machine, and
> reattach it .. using sp_detach_db to detach it and sp_attach_db for
> reattach, see BOL for further info....
> 2) you can backup your dev database and restore in on the user's
> machine...
> see backup database and restore database in BOL for further info....
>
> these 2 methods are quite easy to perform but suffer from some drawbacks..
> - they can raise orphan users issue (please see
> http://www.sqlservercentral.com/columnists/nboyle/fixingbrokenlogins.asp
> for
> further info and details on how to solve this)
> - they do not make use of user's model database... every database inherits
> settings, dbobjects, sometimes permissions, from the current model
> database... if you deploy your database schema these way you simply export
> YOUR settings and preferences..
> - they inherits your settings regarding collation and sort order.... this
> is
> no more a problem with SQL Server 200 becouse it supports different
> collations, but was a major issue for SQL Server 7.0 deployment..
>
> 3) you can script out your DDL database schema with tools like Enterprise
> Manager or other (free) scripting tools...
> this method is the more elastic one, even if it require more deal...
> I currently deploy my dbs this way...
> I deploy sql DDL script to re-create the schema, sql permission scripts to
> generate privileges and users, sql DML "Insert Into" script to pre-load
> some
> application's system-tables and/or txt files to BCP in data...
> I do use a companion application which parses a private defintion files
> that
> includes settings as long as a list of files to be "executed" some way...
> I
> do use ADO and/or SQL-DMO, but oSql.exe can be an alternative, even if it
> does not set the OS error level status on Win9x boxes... I chose not to
> use
> oSql for this reason...
> even if more complicated, this method allows me to deploy database
> upgrades
> with no pain, providing the sql DDL script to morphe databases to current
> release.. several tools can help you for this
> please have a look at http://tinyurl.com/64jjy for a little more detailed
> explanation about the method...
>
> recently Microsoft released an excellent article base on scripting you can
> read at
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsqlmag01/html/scriptingacustomdatabaseinstallation.asp
> and this is by far the best article I ever read about..
> --
> Andrea Montanari (Microsoft MVP - SQL Server)
> http://www.asql.biz/DbaMgr.shtm http://italy.mvps.org
> DbaMgr2k ver 0.9.1 - DbaMgr ver 0.55.1
> (my vb6+sql-dmo little try to provide MS MSDE 1.0 and MSDE 2000 a visual
> interface)
> --------- remove DMO to reply
>



Relevant Pages

  • Re: Login failed for ServerGuest
    ... I think it is not a limitation in Windows 2000. ... access SQL server on Win2000 server by using Windows authenctication if I ... | I have noticed that when I try to log in using Windows Authentication ...
    (microsoft.public.sqlserver.connect)
  • RE: Integrated Authentication (Kerberos) Problem
    ... Verify the SPN for the SQL service account is registered such as the ... >Thread-Topic: Integrated Authentication Problem ... A Windows XP SP1 with IE6 client machine ...
    (microsoft.public.inetserver.iis.security)
  • Re: User authentication
    ... What I want to do is configure scheduled backup. ... However, if possible, I would like to use Windows authentication as opposed ... the backup job in SQL server. ...
    (microsoft.public.sqlserver.clients)
  • File Ownership failing for Domain Accounts
    ... I am having a consistent problem on several instances of SQL 2005 setting ... the ownership of database files to a windows user. ... Right-click on any user database, ...
    (microsoft.public.sqlserver.security)
  • Re: How to SELECT records based upon ASP.NET Roles
    ... security principals directly. ... be able to use SQL row-level security as well (which is something I've never ... When using Windows ... authentication in IIS, this will be a WindowsPrincipal object, but it would ...
    (microsoft.public.dotnet.security)