Showing posts with label databases. Show all posts
Showing posts with label databases. Show all posts

Monday, March 26, 2012

Number of User Databases

Hello,

I am being asked to support a third part y app that will create a new database per session with upwards of 500 databases being created per month, now I know that this is not good but my bosses are asking for the technical reasons why this is not good, can someone help please? There are the obvious #of databases to maintain ie backup etc but what else can I add?

Thanks

Julian

I can think of a couple. First is memory consumption. Each open database will have in memory structures that consume virtual address space. See this article for one of the issues:http://support.microsoft.com/kb/316749/en-us

There is also some disk space implications. Each new database will need it's own system tables, allocation pages, Index roots, etc. Say this adds up to even 2mb per database that's 1000 MB/month just for metadata. If everything were in a single database you could safely assume only a few MB total over the life of the database for metadata and allocation pages.

Next is sheer capacity of the server. SQL Server currently supports 32767 databases, at over 500 databases/month that will get you by for about 65 months. Do you really want to go with a solution that will leave you high and dry after a few years.

not to mention the overhead of trying to replicate schema or index changes to thousands of databases.

HTH

-Jerome

Wednesday, March 21, 2012

Number of databases per. MSDE instance?

Is there a limit on how many databases you can have per. MSDE instance?
Best regards
Erling Johansen
Norway
Hi
Standard SQL Server limit of 32'737
Regards
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Erling Johansen" <erlingpj@.hotmail.com> wrote in message
news:e6sGVMj6FHA.3136@.TK2MSFTNGP09.phx.gbl...
> Is there a limit on how many databases you can have per. MSDE instance?
> Best regards
> Erling Johansen
> Norway
>
|||Lets get practical here. Assuming that not all databases are used at once
and autoclose is on I believe you could support 1000 or so. Maybe more, but
you do run into some Windows limits because of the number of open files.
There was a design done at Microsoft years ago for a bCentral hosted
accounting solution that was released and then pulled from the market when
Mcrosoft acquired Great Plains. It used this technique (a database per
customer using autoclose so that a much smaller number of databases/files
were open at any given time). A white paper (that didn't reference what
actual application they were talking about) described how to do this. I can
no longer find the white paper. Anyway, I believe they proved they could
support a few thousand databases.
Hal Berenson, President
PredictableIT, LLC
www.predictableit.com
"Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
news:OukkDRj6FHA.1140@.tk2msftngp13.phx.gbl...
> Hi
> Standard SQL Server limit of 32'737
> Regards
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "Erling Johansen" <erlingpj@.hotmail.com> wrote in message
> news:e6sGVMj6FHA.3136@.TK2MSFTNGP09.phx.gbl...
>

Number of databases on a virtual server

Is there a limit to the number of databases exposed through a virtual server?
I'm looking at porting over 200 databases from 12 different servers into a clustered environment and want to minimize the number of SQL Server installs that need to be performed on the cluster.
Thanks in advance.
The limits for standalone SQL Server holds true for virtual SQL Server.
Databases per instance of SQL Server --> 32,767
Database size --> 1,048,516 TB
Filegroups per database --> 256
Files per database --> 32,767
File size (data) --> 32 TB
File size (log) --> 32 TB
For more information, please refer to
Maximum Capacity Specifications
http://msdn.microsoft.com/library/de...ar_ts_8dbn.asp
Best Regards,
Uttam Parui
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.
Are you secure? For information about the Strategic Technology Protection Program and to order your FREE Security Tool Kit, please visit
http://www.microsoft.com/security.
Microsoft highly recommends that users with Internet access update their Microsoft software to better protect against viruses and security vulnerabilities. The easiest way
to do this is to visit the following websites: http://www.microsoft.com/protect
http://www.microsoft.com/security/guidance/default.mspx
|||also check out the links below - which document well the potential issues
you may face when consolidating SQL Server .
http://www.microsoft.com/windows2000...ble/bpdcac.asp
http://www.microsoft.com/technet/pro...olidation.mspx
cheers,
Andy
"poul0004" <poul0004@.discussions.microsoft.com> wrote in message
news:BFAC1003-8F16-4EDD-AD15-7B6050E59B51@.microsoft.com...
> Is there a limit to the number of databases exposed through a virtual
server?
> I'm looking at porting over 200 databases from 12 different servers into a
clustered environment and want to minimize the number of SQL Server installs
that need to be performed on the cluster.
> Thanks in advance.
|||also slightly more detailed - more planning orientated
http://www.microsoft.com/technet/pro.../sql2kcon.mspx
"poul0004" <poul0004@.discussions.microsoft.com> wrote in message
news:BFAC1003-8F16-4EDD-AD15-7B6050E59B51@.microsoft.com...
> Is there a limit to the number of databases exposed through a virtual
server?
> I'm looking at porting over 200 databases from 12 different servers into a
clustered environment and want to minimize the number of SQL Server installs
that need to be performed on the cluster.
> Thanks in advance.
sql

number of databases in sql server 2005

Hello,

If I have a database of 5 GB with only 20 tables in it, how many of
those can we put in how many database servers on a high end machine
(Dual Xeon 8 GB on windows 2003)?
It is to maka a quotation and an estimation of the cost.

TIA

Mariosledge (Witdoek@.gmail.com) writes:

Quote:

Originally Posted by

If I have a database of 5 GB with only 20 tables in it, how many of
those can we put in how many database servers on a high end machine
(Dual Xeon 8 GB on windows 2003)?
It is to maka a quotation and an estimation of the cost.


The lowest of 32762 and (the available disk space/5GB).

If you mean the practical limit, before the machine suffocates under the
load, that's impossible to answer, without knowing the traffic per
database.

--
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pr...oads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodin...ions/books.mspx

Number of databases

This may sound like a silly question, but is their a limit
to how many databases you can have on a SQL 2000
Enterprise Edition?
Our orginization has a Clustered SQL server and I have
always just put all of our databases on it. I am having
no problems with performance but was chastised for having
so many on it any way. I have 83 databases.
Anyway I was curious if Microsoft has a reccomendation of
max amount of db.
Thanks
jjThis is a multi-part message in MIME format.
--=_NextPart_000_0190_01C35B57.E055FD40
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
You're allowed 32,727 database per instance of SQL Server.
-- Tom
---
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada
www.pinnaclepublishing.com/sql
"John Jarrett" <jarrej@.yahoo.com> wrote in message =news:013c01c35b78$7a919430$a401280a@.phx.gbl...
This may sound like a silly question, but is their a limit to how many databases you can have on a SQL 2000 Enterprise Edition?
Our orginization has a Clustered SQL server and I have always just put all of our databases on it. I am having no problems with performance but was chastised for having so many on it any way. I have 83 databases.
Anyway I was curious if Microsoft has a reccomendation of max amount of db.
Thanks
jj
--=_NextPart_000_0190_01C35B57.E055FD40
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
&

You're allowed 32,727 database per =instance of SQL Server.
-- Tom
---T=homas A. Moreau, BSc, PhD, MCSE, MCDBASQL Server MVPColumnist, SQL =Server ProfessionalToronto, ON Canadahttp://www.pinnaclepublishing.com/sql">www.pinnaclepublishing.com=/sql
"John Jarrett" wrote in =message news:013c01c35b78$7a=919430$a401280a@.phx.gbl...This may sound like a silly question, but is their a limit to how many =databases you can have on a SQL 2000 Enterprise Edition?Our =orginization has a Clustered SQL server and I have always just put all of our databases =on it. I am having no problems with performance but was chastised =for having so many on it any way. I have 83 databases. Anyway I was curious if Microsoft has a reccomendation of =max amount of db.Thanksjj

--=_NextPart_000_0190_01C35B57.E055FD40--|||> This may sound like a silly question, but is their a limit
> to how many databases you can have on a SQL 2000
> Enterprise Edition?
Yes. The limit is 32767 per server instance.
> Anyway I was curious if Microsoft has a reccomendation of
> max amount of db.
The above is the limit stated in BOL. Other factors (such as size, number of
users / transactions) will be far more significant constraints on
performance than the number of DBs. Possibly you might want to limit the
number of DBs per server for administrative reasons or in the interests of
availability and resilience but I'm looking at 4 servers which have a total
of 188 DBs between them, so 83 doesn't seem excessive by that benchmark.
--
David Portas
--
Please reply only to the newsgroup
--|||I have a client who is currently running 700 databases on 1 server. And
while the system seems to be functioning, they are seeing latency in data
showing up. Meaning that a record that is added or updated to the database
doesent seem to show up for hours.
These databases average about 150MB each. Is there any configuration option
that would help this, or is this something that they just need to throw more
hardware at?
"David Portas" <REMOVE_BEFORE_REPLYING_dportas@.acm.org> wrote in message
news:eVHkQu3WDHA.3248@.tk2msftngp13.phx.gbl...
> > This may sound like a silly question, but is their a limit
> > to how many databases you can have on a SQL 2000
> > Enterprise Edition?
> Yes. The limit is 32767 per server instance.
> > Anyway I was curious if Microsoft has a reccomendation of
> > max amount of db.
> The above is the limit stated in BOL. Other factors (such as size, number
of
> users / transactions) will be far more significant constraints on
> performance than the number of DBs. Possibly you might want to limit the
> number of DBs per server for administrative reasons or in the interests of
> availability and resilience but I'm looking at 4 servers which have a
total
> of 188 DBs between them, so 83 doesn't seem excessive by that benchmark.
> --
> David Portas
> --
> Please reply only to the newsgroup
> --
>
>|||You should run performance monitor, and run various SQL, cpu, memory and
disk counters to try to determine where the bottleneck is. I was almost
about to suggest changing the affinity mask if you had more than two
processors (because I remember that from studying). When you get
performance counter measurements back, you can tell whether to throw more
memory, CPU, upgrade the disk subsystem or if it is something more
configurable software wise (adjusting system properties to favor background
processes, adjusting pagefile size and location, creating filegroups to move
database objects to other disks, etc). Good luck.
--
*************************************
Andy S.
andy_mcdba@.yahoo.com
*************************************
"Robert Barr" <RobertLBarr@.cox.net> wrote in message
news:%23jn7wEXfDHA.1712@.TK2MSFTNGP11.phx.gbl...
> I have a client who is currently running 700 databases on 1 server. And
> while the system seems to be functioning, they are seeing latency in data
> showing up. Meaning that a record that is added or updated to the database
> doesent seem to show up for hours.
> These databases average about 150MB each. Is there any configuration
option
> that would help this, or is this something that they just need to throw
more
> hardware at?
>
> "David Portas" <REMOVE_BEFORE_REPLYING_dportas@.acm.org> wrote in message
> news:eVHkQu3WDHA.3248@.tk2msftngp13.phx.gbl...
> > > This may sound like a silly question, but is their a limit
> > > to how many databases you can have on a SQL 2000
> > > Enterprise Edition?
> >
> > Yes. The limit is 32767 per server instance.
> >
> > > Anyway I was curious if Microsoft has a reccomendation of
> > > max amount of db.
> >
> > The above is the limit stated in BOL. Other factors (such as size,
number
> of
> > users / transactions) will be far more significant constraints on
> > performance than the number of DBs. Possibly you might want to limit the
> > number of DBs per server for administrative reasons or in the interests
of
> > availability and resilience but I'm looking at 4 servers which have a
> total
> > of 188 DBs between them, so 83 doesn't seem excessive by that benchmark.
> >
> > --
> > David Portas
> > --
> > Please reply only to the newsgroup
> > --
> >
> >
> >
>

Number of Databases

I have started administrating a system that has 44 databases running on the
same server. That is 44 user databases.
This is running under NT4 SP 6a and SQL 7 SP3
I am sure that SQL was not meant to support this number of databases on the
same server but unable to find any documentation to support this.
Does any one have any experience of working with this number of databases or
point me in the right direction to documentation on the number of supported
databases.
Any help would be appreciatedSQL 7.0 and 200 support up to 32.767 databases
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/architec/8
_ar_ts_8dbn.asp). But personally I prefer to limit the number per instance;
however, it really depends on application(s). If everything is working and
users are not complaining, why worry? If you have performance problems and
you have applications using different databases, then it really might be the
simplest solution to install another SQL Server on another box and transfer
half of the databases.
--
Dejan Sarka, SQL Server MVP
FAQ from Neil & others at: http://www.sqlserverfaq.com
Please reply only to the newsgroups.
PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org
"Mark Jones" <mark.jones@.nospam.kimdata.plus.com> wrote in message
news:FR%ab.8119$vX3.1275275@.wards.force9.net...
> I have started administrating a system that has 44 databases running on
the
> same server. That is 44 user databases.
> This is running under NT4 SP 6a and SQL 7 SP3
> I am sure that SQL was not meant to support this number of databases on
the
> same server but unable to find any documentation to support this.
> Does any one have any experience of working with this number of databases
or
> point me in the right direction to documentation on the number of
supported
> databases.
> Any help would be appreciated
>|||How many databases your application can or should support involves far too
many variables for someone to answer "44 is too many" or "44 is fine."
> point me in the right direction to documentation on the number of
supported
> databases.
This shows some of the fixed limits in the product, however there is really
no way for there to be an "official" declaration of how many databases
*your* unique application can and should support.
http://www.aspfaq.com/2345
Follow-ups set only to server.|||We regularly host over 50 databases on a server. You can have many more if
the databases are quiet. But then, you may have to settle for far fewer on a
server if the databases are heavy CPU/Disk/Memory or Nework consumers.
In general, I wouldn't consider 44 databases as too many. The number of
databases is often not the most important factor. Ultimately, it's a
resource issue (CPU, memory, disk, or Network, etc)
--
Linchi Shea
linchi_shea@.NOSPAMml.com
"Mark Jones" <mark.jones@.nospam.kimdata.plus.com> wrote in message
news:FR%ab.8119$vX3.1275275@.wards.force9.net...
> I have started administrating a system that has 44 databases running on
the
> same server. That is 44 user databases.
> This is running under NT4 SP 6a and SQL 7 SP3
> I am sure that SQL was not meant to support this number of databases on
the
> same server but unable to find any documentation to support this.
> Does any one have any experience of working with this number of databases
or
> point me in the right direction to documentation on the number of
supported
> databases.
> Any help would be appreciated
>|||I'm not sure about SQL Server 7.0 at this point, the comments below really
apply to SQL Server 2000.
There was a white paper at www.microsoft.com that discussed a scenario in
which a single instance supported several hundred databases. It was the
architecture that Microsoft used for a bCentral's hosted small business
financials offering (before they acquired Great Plains and decided to drop
the hosted offering). Unfortunately last time I looked I was unable to find
the white paper.
There are really two limits on the PRACTICAL number of databases that a
single instance can support. The first is a limit on the number of file
handles that Windows allows a process to have open at any one time. In the
hundreds of databases example it is clear that only a small subset are
actually in use at any given time and so setting the databases to autoclose
when not in use solves the handle problem. The second problem is that SQL
Enterprise Manager has some algorithms that don't scale to hundreds of
databases. Basically, it loads metadata for all of the databases whenever
you connect to the instance. With hundreds of databases this can take a
long time (I've heard someone mention an example where it took over an hour
to start Enterprise Manager). The solution here is to do all management
from the command line and not use Enterprise Manager to manage hundreds of
databases. Neither of these problems apply when you are only talking about
44-50 databases. That should work just fine without any special handling.
--
Hal Berenson, SQL Server MVP
True Mountain Group LLC
"Mark Jones" <mark.jones@.nospam.kimdata.plus.com> wrote in message
news:FR%ab.8119$vX3.1275275@.wards.force9.net...
> I have started administrating a system that has 44 databases running on
the
> same server. That is 44 user databases.
> This is running under NT4 SP 6a and SQL 7 SP3
> I am sure that SQL was not meant to support this number of databases on
the
> same server but unable to find any documentation to support this.
> Does any one have any experience of working with this number of databases
or
> point me in the right direction to documentation on the number of
supported
> databases.
> Any help would be appreciated
>|||Greg;
My guess is that you'd probably run into other PRACTICAL issues before you
run into the file handle issue. I'd generally advise against using
auto-close for any serious production database. The option has the potential
to cause too many maintenance problems, and has the performance issue.
--
Linchi Shea
linchi_shea@.NOSPAMml.com
"Hal Berenson" <haroldb@.truemountainconsulting.com> wrote in message
news:uPr1iW9fDHA.2152@.tk2msftngp13.phx.gbl...
> I'm not sure about SQL Server 7.0 at this point, the comments below really
> apply to SQL Server 2000.
> There was a white paper at www.microsoft.com that discussed a scenario in
> which a single instance supported several hundred databases. It was the
> architecture that Microsoft used for a bCentral's hosted small business
> financials offering (before they acquired Great Plains and decided to drop
> the hosted offering). Unfortunately last time I looked I was unable to
find
> the white paper.
> There are really two limits on the PRACTICAL number of databases that a
> single instance can support. The first is a limit on the number of file
> handles that Windows allows a process to have open at any one time. In
the
> hundreds of databases example it is clear that only a small subset are
> actually in use at any given time and so setting the databases to
autoclose
> when not in use solves the handle problem. The second problem is that SQL
> Enterprise Manager has some algorithms that don't scale to hundreds of
> databases. Basically, it loads metadata for all of the databases whenever
> you connect to the instance. With hundreds of databases this can take a
> long time (I've heard someone mention an example where it took over an
hour
> to start Enterprise Manager). The solution here is to do all management
> from the command line and not use Enterprise Manager to manage hundreds of
> databases. Neither of these problems apply when you are only talking
about
> 44-50 databases. That should work just fine without any special handling.
> --
> Hal Berenson, SQL Server MVP
> True Mountain Group LLC
>
> "Mark Jones" <mark.jones@.nospam.kimdata.plus.com> wrote in message
> news:FR%ab.8119$vX3.1275275@.wards.force9.net...
> > I have started administrating a system that has 44 databases running on
> the
> > same server. That is 44 user databases.
> >
> > This is running under NT4 SP 6a and SQL 7 SP3
> >
> > I am sure that SQL was not meant to support this number of databases on
> the
> > same server but unable to find any documentation to support this.
> >
> > Does any one have any experience of working with this number of
databases
> or
> > point me in the right direction to documentation on the number of
> supported
> > databases.
> >
> > Any help would be appreciated
> >
> >
>|||Sorry, I meant, Hal (not Greg).
--
Linchi Shea
linchi_shea@.NOSPAMml.com
"Linchi Shea" <linchi_shea@.NOSPAMml.com> wrote in message
news:e%2398WpAgDHA.3200@.tk2msftngp13.phx.gbl...
> Greg;
> My guess is that you'd probably run into other PRACTICAL issues before you
> run into the file handle issue. I'd generally advise against using
> auto-close for any serious production database. The option has the
potential
> to cause too many maintenance problems, and has the performance issue.
> --
> Linchi Shea
> linchi_shea@.NOSPAMml.com
>
> "Hal Berenson" <haroldb@.truemountainconsulting.com> wrote in message
> news:uPr1iW9fDHA.2152@.tk2msftngp13.phx.gbl...
> > I'm not sure about SQL Server 7.0 at this point, the comments below
really
> > apply to SQL Server 2000.
> >
> > There was a white paper at www.microsoft.com that discussed a scenario
in
> > which a single instance supported several hundred databases. It was the
> > architecture that Microsoft used for a bCentral's hosted small business
> > financials offering (before they acquired Great Plains and decided to
drop
> > the hosted offering). Unfortunately last time I looked I was unable to
> find
> > the white paper.
> >
> > There are really two limits on the PRACTICAL number of databases that a
> > single instance can support. The first is a limit on the number of file
> > handles that Windows allows a process to have open at any one time. In
> the
> > hundreds of databases example it is clear that only a small subset are
> > actually in use at any given time and so setting the databases to
> autoclose
> > when not in use solves the handle problem. The second problem is that
SQL
> > Enterprise Manager has some algorithms that don't scale to hundreds of
> > databases. Basically, it loads metadata for all of the databases
whenever
> > you connect to the instance. With hundreds of databases this can take a
> > long time (I've heard someone mention an example where it took over an
> hour
> > to start Enterprise Manager). The solution here is to do all management
> > from the command line and not use Enterprise Manager to manage hundreds
of
> > databases. Neither of these problems apply when you are only talking
> about
> > 44-50 databases. That should work just fine without any special
handling.
> >
> > --
> > Hal Berenson, SQL Server MVP
> > True Mountain Group LLC
> >
> >
> > "Mark Jones" <mark.jones@.nospam.kimdata.plus.com> wrote in message
> > news:FR%ab.8119$vX3.1275275@.wards.force9.net...
> > > I have started administrating a system that has 44 databases running
on
> > the
> > > same server. That is 44 user databases.
> > >
> > > This is running under NT4 SP 6a and SQL 7 SP3
> > >
> > > I am sure that SQL was not meant to support this number of databases
on
> > the
> > > same server but unable to find any documentation to support this.
> > >
> > > Does any one have any experience of working with this number of
> databases
> > or
> > > point me in the right direction to documentation on the number of
> > supported
> > > databases.
> > >
> > > Any help would be appreciated
> > >
> > >
> >
> >
>

Monday, February 20, 2012

NULL login name as dbo in database

Hi all!
Recently, every database i create - regardless the user -
comes with the dbo user with NULL login name.
My older databases were created correctly, with "sa" as "dbo".
I am running SQL Server 2000 SP3 on PIII 800Mhz 512MB
Tanks in advance!
DiegoYou can change database ownership to the correct owner using
sp_changedbowner:
USE MyDatabase
EXEC sp_changedbowner 'sa'
I'm not sure why new databases would get created with a NULL dbo. What
does sp_helpdb and sp_helpuser report?
--
Hope this helps.
Dan Guzman
SQL Server MVP
--
SQL FAQ links (courtesy Neil Pike):
http://www.ntfaq.com/Articles/Index.cfm?DepartmentID=800
http://www.sqlserverfaq.com
http://www.mssqlserver.com/faq
--
"Diego Dias" <diego.dias@.terra.com.br> wrote in message
news:053601c38d11$14ed91e0$a301280a@.phx.gbl...
> Hi all!
> Recently, every database i create - regardless the user -
> comes with the dbo user with NULL login name.
> My older databases were created correctly, with "sa" as "dbo".
> I am running SQL Server 2000 SP3 on PIII 800Mhz 512MB
> Tanks in advance!
> Diego|||This occurs when you use EM and are connected with NT-authentication.
EM then shows you NT-account and when you select the ussers-tab, dbo has no
accout associatted.
(personaly, I always reroute dbo to sa, even if my developers don't like it
because they have to create tables dbo.** and have to code the 'dbo.'-part )
Jobi
"Dan Guzman" <danguzman@.nospam-earthlink.net> wrote in message
news:uRT5rfUjDHA.1284@.TK2MSFTNGP09.phx.gbl...
> You can change database ownership to the correct owner using
> sp_changedbowner:
> USE MyDatabase
> EXEC sp_changedbowner 'sa'
> I'm not sure why new databases would get created with a NULL dbo. What
> does sp_helpdb and sp_helpuser report?
> --
> Hope this helps.
> Dan Guzman
> SQL Server MVP
> --
> SQL FAQ links (courtesy Neil Pike):
> http://www.ntfaq.com/Articles/Index.cfm?DepartmentID=800
> http://www.sqlserverfaq.com
> http://www.mssqlserver.com/faq
> --
> "Diego Dias" <diego.dias@.terra.com.br> wrote in message
> news:053601c38d11$14ed91e0$a301280a@.phx.gbl...
> > Hi all!
> >
> > Recently, every database i create - regardless the user -
> > comes with the dbo user with NULL login name.
> >
> > My older databases were created correctly, with "sa" as "dbo".
> >
> > I am running SQL Server 2000 SP3 on PIII 800Mhz 512MB
> >
> > Tanks in advance!
> >
> > Diego
>|||> This occurs when you use EM and are connected with NT-authentication.
> EM then shows you NT-account and when you select the ussers-tab, dbo
has no
> accout associatted.
This can be corrected with sp_changedbowner. This may occur when a
database is restored or attached but I haven't seen the problem with
CREATE DATABASE.
--
Hope this helps.
Dan Guzman
SQL Server MVP
"jobi" <jobi@.reply2.group> wrote in message
news:bm0b8s$6q4$1@.reader08.wxs.nl...
> This occurs when you use EM and are connected with NT-authentication.
> EM then shows you NT-account and when you select the ussers-tab, dbo
has no
> accout associatted.
> (personaly, I always reroute dbo to sa, even if my developers don't
like it
> because they have to create tables dbo.** and have to code the
'dbo.'-part )
> Jobi
>
> "Dan Guzman" <danguzman@.nospam-earthlink.net> wrote in message
> news:uRT5rfUjDHA.1284@.TK2MSFTNGP09.phx.gbl...
> > You can change database ownership to the correct owner using
> > sp_changedbowner:
> >
> > USE MyDatabase
> > EXEC sp_changedbowner 'sa'
> >
> > I'm not sure why new databases would get created with a NULL dbo.
What
> > does sp_helpdb and sp_helpuser report?
> >
> > --
> > Hope this helps.
> >
> > Dan Guzman
> > SQL Server MVP
> >
> > --
> > SQL FAQ links (courtesy Neil Pike):
> >
> > http://www.ntfaq.com/Articles/Index.cfm?DepartmentID=800
> > http://www.sqlserverfaq.com
> > http://www.mssqlserver.com/faq
> > --
> >
> > "Diego Dias" <diego.dias@.terra.com.br> wrote in message
> > news:053601c38d11$14ed91e0$a301280a@.phx.gbl...
> > > Hi all!
> > >
> > > Recently, every database i create - regardless the user -
> > > comes with the dbo user with NULL login name.
> > >
> > > My older databases were created correctly, with "sa" as "dbo".
> > >
> > > I am running SQL Server 2000 SP3 on PIII 800Mhz 512MB
> > >
> > > Tanks in advance!
> > >
> > > Diego
> >
> >
>|||<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Dan and everybody that ansewered,<br>
<br>
You're all right, i was connected in EM as NT Admin account. <br>
<br>
I ran the sp_changedbowner and solved my problem.<br>
<br>
Thanks!<br>
<br>
Diego Dias<br>
Brazil<br>
<br>
Dan Guzman wrote:<br>
<blockquote type="cite"
cite="mid%23BrzYOZjDHA.4008@.TK2MSFTNGP11.phx.gbl">
<blockquote type="cite">
<pre wrap="">This occurs when you use EM and are connected with NT-authentication.
EM then shows you NT-account and when you select the ussers-tab, dbo
</pre>
</blockquote>
<pre wrap=""><!-->has no
</pre>
<blockquote type="cite">
<pre wrap="">accout associatted.
</pre>
</blockquote>
<pre wrap=""><!-->
This can be corrected with sp_changedbowner. This may occur when a
database is restored or attached but I haven't seen the problem with
CREATE DATABASE.
</pre>
</blockquote>
<br>
</body>
</html>

Null DB Owner

I have a handful of databases that for some reason, have a null dbowner. I
exec sp_changedbowner 'sa' on one of the databases, now when I run sp_helpdb
i get the following error:
Server: Msg 515, Level 16, State 2, Procedure sp_helpdb, Line 53
Cannot insert the value NULL into column '', table ''; column does not allow
nulls. INSERT fails.
The statement has been terminated.
How do I go about changing the owner if sp_changedbowner didn't correct the
problem?
Thanks,
MorganMorgan,
I had a similar problem once and fixed it through a two-step process. Try
this:
exec sp_changedbowner 'SomeOtherLogin' --login must exist, of course
go
exec sp_changedbowner 'sa'
go
If this does not work, careful surgery on the system tables might fix it,
but that is to be avoided.
Russell Fields
"Morgan" <abcd@.senditon.com> wrote in message
news:uQDg7Rc6DHA.2712@.tk2msftngp13.phx.gbl...
quote:

> I have a handful of databases that for some reason, have a null dbowner. I
> exec sp_changedbowner 'sa' on one of the databases, now when I run

sp_helpdb
quote:

> i get the following error:
> Server: Msg 515, Level 16, State 2, Procedure sp_helpdb, Line 53
> Cannot insert the value NULL into column '', table ''; column does not

allow
quote:

> nulls. INSERT fails.
> The statement has been terminated.
> How do I go about changing the owner if sp_changedbowner didn't correct

the
quote:

> problem?
>
> Thanks,
> Morgan
>
|||Hi Russell,
Thanks for the tip. I went through and assigned to another user, then
reassigned back to sa and that appears to have fixed it.
Thanks,
Morgan
"Russell Fields" <RussellFields@.NoMailPlease.Com> wrote in message
news:ecXvClc6DHA.3704@.tk2msftngp13.phx.gbl...
quote:

> Morgan,
> I had a similar problem once and fixed it through a two-step process. Try
> this:
> exec sp_changedbowner 'SomeOtherLogin' --login must exist, of course
> go
> exec sp_changedbowner 'sa'
> go
> If this does not work, careful surgery on the system tables might fix it,
> but that is to be avoided.
> Russell Fields
> "Morgan" <abcd@.senditon.com> wrote in message
> news:uQDg7Rc6DHA.2712@.tk2msftngp13.phx.gbl...
I[QUOTE]
> sp_helpdb
> allow
> the
>