Showing posts with label instance. Show all posts
Showing posts with label instance. Show all posts

Monday, March 26, 2012

Number of SQL Server logins

Is there a limit on how many SQL logins can be created on an instance? If
so, where is this documented? Thanks in advance.
OscarNumber of users per database = 16,379
Number of roles per database = 16,367
Number of concurrent connections = 32,767
However, if you are approaching any of these limits, your design will
probably raise quite a few eyebrows...
--
http://www.aspfaq.com/
(Reverse address to reply.)
"Oscar" <Oscar@.discussions.microsoft.com> wrote in message
news:4159DD0F-0B77-4783-8AEA-A779E3138700@.microsoft.com...
> Is there a limit on how many SQL logins can be created on an instance? If
> so, where is this documented? Thanks in advance.
> Oscar|||Hi
Can't find documentation, but master.dbo.syslogins does not use a counter.
Good so far. Limitation here is number of unique combinations of charaters
that fit into "name" which is nvarchar(128)
In userdatabase.dbo.sysusers, uid is a smallint, so 32'767 would be the
limit per database.
So, it looks like only a per DB limit. Think it is time for me to do a bit
of an experiment.
Regards
Mike
"Oscar" wrote:
> Is there a limit on how many SQL logins can be created on an instance? If
> so, where is this documented? Thanks in advance.
> Oscar|||I compiled this list from a variety of sources, but IIRC, they were all
official:
http://www.aspfaq.com/2345
So I think there might be an enforced limit on users per database...
--
http://www.aspfaq.com/
(Reverse address to reply.)
"Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
news:257A5B67-9708-4FA0-B58C-897000078781@.microsoft.com...
> Hi
> Can't find documentation, but master.dbo.syslogins does not use a counter.
> Good so far. Limitation here is number of unique combinations of charaters
> that fit into "name" which is nvarchar(128)
> In userdatabase.dbo.sysusers, uid is a smallint, so 32'767 would be the
> limit per database.
> So, it looks like only a per DB limit. Think it is time for me to do a bit
> of an experiment.
> Regards
> Mike
> "Oscar" wrote:
> > Is there a limit on how many SQL logins can be created on an instance?
If
> > so, where is this documented? Thanks in advance.
> >
> > Oscar|||> In userdatabase.dbo.sysusers, uid is a smallint, so 32'767 would be the
> limit per database.
However, roles are also stored in sysusers, cutting down number of users to half. Below is a line
from sp_grantdbaccess:
where uid >= 5 and uid < (16384 - 1) -- stay in users range
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
http://www.sqlug.se/
"Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
news:257A5B67-9708-4FA0-B58C-897000078781@.microsoft.com...
> Hi
> Can't find documentation, but master.dbo.syslogins does not use a counter.
> Good so far. Limitation here is number of unique combinations of charaters
> that fit into "name" which is nvarchar(128)
> In userdatabase.dbo.sysusers, uid is a smallint, so 32'767 would be the
> limit per database.
> So, it looks like only a per DB limit. Think it is time for me to do a bit
> of an experiment.
> Regards
> Mike
> "Oscar" wrote:
>> Is there a limit on how many SQL logins can be created on an instance? If
>> so, where is this documented? Thanks in advance.
>> Oscar|||Thank You
"Aaron [SQL Server MVP]" wrote:
> Number of users per database = 16,379
> Number of roles per database = 16,367
> Number of concurrent connections = 32,767
> However, if you are approaching any of these limits, your design will
> probably raise quite a few eyebrows...
> --
> http://www.aspfaq.com/
> (Reverse address to reply.)
>
>
> "Oscar" <Oscar@.discussions.microsoft.com> wrote in message
> news:4159DD0F-0B77-4783-8AEA-A779E3138700@.microsoft.com...
> > Is there a limit on how many SQL logins can be created on an instance? If
> > so, where is this documented? Thanks in advance.
> >
> > Oscar
>
>|||Thank You
"Mike Epprecht (SQL MVP)" wrote:
> Hi
> Can't find documentation, but master.dbo.syslogins does not use a counter.
> Good so far. Limitation here is number of unique combinations of charaters
> that fit into "name" which is nvarchar(128)
> In userdatabase.dbo.sysusers, uid is a smallint, so 32'767 would be the
> limit per database.
> So, it looks like only a per DB limit. Think it is time for me to do a bit
> of an experiment.
> Regards
> Mike
> "Oscar" wrote:
> > Is there a limit on how many SQL logins can be created on an instance? If
> > so, where is this documented? Thanks in advance.
> >
> > Oscar|||Thank You
"Tibor Karaszi" wrote:
> > In userdatabase.dbo.sysusers, uid is a smallint, so 32'767 would be the
> > limit per database.
> However, roles are also stored in sysusers, cutting down number of users to half. Below is a line
> from sp_grantdbaccess:
> where uid >= 5 and uid < (16384 - 1) -- stay in users range
>
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
> http://www.sqlug.se/
>
> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
> news:257A5B67-9708-4FA0-B58C-897000078781@.microsoft.com...
> > Hi
> >
> > Can't find documentation, but master.dbo.syslogins does not use a counter.
> > Good so far. Limitation here is number of unique combinations of charaters
> > that fit into "name" which is nvarchar(128)
> >
> > In userdatabase.dbo.sysusers, uid is a smallint, so 32'767 would be the
> > limit per database.
> >
> > So, it looks like only a per DB limit. Think it is time for me to do a bit
> > of an experiment.
> >
> > Regards
> > Mike
> >
> > "Oscar" wrote:
> >
> >> Is there a limit on how many SQL logins can be created on an instance? If
> >> so, where is this documented? Thanks in advance.
> >>
> >> Oscar
>
>|||Hi
Yes you are right....my head has been a bit too much in Sybase today.
Busy writing some scripts to test what really happens when the 2 tables hit
their limits.
Cheers
--
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/
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:OaEph9D7EHA.2572@.tk2msftngp13.phx.gbl...
> > In userdatabase.dbo.sysusers, uid is a smallint, so 32'767 would be the
> > limit per database.
> However, roles are also stored in sysusers, cutting down number of users
to half. Below is a line
> from sp_grantdbaccess:
> where uid >= 5 and uid < (16384 - 1) -- stay in users range
>
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
> http://www.sqlug.se/
>
> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
> news:257A5B67-9708-4FA0-B58C-897000078781@.microsoft.com...
> > Hi
> >
> > Can't find documentation, but master.dbo.syslogins does not use a
counter.
> > Good so far. Limitation here is number of unique combinations of
charaters
> > that fit into "name" which is nvarchar(128)
> >
> > In userdatabase.dbo.sysusers, uid is a smallint, so 32'767 would be the
> > limit per database.
> >
> > So, it looks like only a per DB limit. Think it is time for me to do a
bit
> > of an experiment.
> >
> > Regards
> > Mike
> >
> > "Oscar" wrote:
> >
> >> Is there a limit on how many SQL logins can be created on an instance?
If
> >> so, where is this documented? Thanks in advance.
> >>
> >> Oscar
>

Number of SQL Server logins

Is there a limit on how many SQL logins can be created on an instance? If
so, where is this documented? Thanks in advance.
OscarNumber of users per database = 16,379
Number of roles per database = 16,367
Number of concurrent connections = 32,767
However, if you are approaching any of these limits, your design will
probably raise quite a few eyebrows...
http://www.aspfaq.com/
(Reverse address to reply.)
"Oscar" <Oscar@.discussions.microsoft.com> wrote in message
news:4159DD0F-0B77-4783-8AEA-A779E3138700@.microsoft.com...
> Is there a limit on how many SQL logins can be created on an instance? If
> so, where is this documented? Thanks in advance.
> Oscar|||Hi
Can't find documentation, but master.dbo.syslogins does not use a counter.
Good so far. Limitation here is number of unique combinations of charaters
that fit into "name" which is nvarchar(128)
In userdatabase.dbo.sysusers, uid is a smallint, so 32'767 would be the
limit per database.
So, it looks like only a per DB limit. Think it is time for me to do a bit
of an experiment.
Regards
Mike
"Oscar" wrote:

> Is there a limit on how many SQL logins can be created on an instance? If
> so, where is this documented? Thanks in advance.
> Oscar|||I compiled this list from a variety of sources, but IIRC, they were all
official:
http://www.aspfaq.com/2345
So I think there might be an enforced limit on users per database...
http://www.aspfaq.com/
(Reverse address to reply.)
"Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
news:257A5B67-9708-4FA0-B58C-897000078781@.microsoft.com...[vbcol=seagreen]
> Hi
> Can't find documentation, but master.dbo.syslogins does not use a counter.
> Good so far. Limitation here is number of unique combinations of charaters
> that fit into "name" which is nvarchar(128)
> In userdatabase.dbo.sysusers, uid is a smallint, so 32'767 would be the
> limit per database.
> So, it looks like only a per DB limit. Think it is time for me to do a bit
> of an experiment.
> Regards
> Mike
> "Oscar" wrote:
>
If[vbcol=seagreen]|||> In userdatabase.dbo.sysusers, uid is a smallint, so 32'767 would be the
> limit per database.
However, roles are also stored in sysusers, cutting down number of users to
half. Below is a line
from sp_grantdbaccess:
where uid >= 5 and uid < (16384 - 1) -- stay in users range
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
http://www.sqlug.se/
"Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
news:257A5B67-9708-4FA0-B58C-897000078781@.microsoft.com...[vbcol=seagreen]
> Hi
> Can't find documentation, but master.dbo.syslogins does not use a counter.
> Good so far. Limitation here is number of unique combinations of charaters
> that fit into "name" which is nvarchar(128)
> In userdatabase.dbo.sysusers, uid is a smallint, so 32'767 would be the
> limit per database.
> So, it looks like only a per DB limit. Think it is time for me to do a bit
> of an experiment.
> Regards
> Mike
> "Oscar" wrote:
>|||Thank You
"Aaron [SQL Server MVP]" wrote:

> Number of users per database = 16,379
> Number of roles per database = 16,367
> Number of concurrent connections = 32,767
> However, if you are approaching any of these limits, your design will
> probably raise quite a few eyebrows...
> --
> http://www.aspfaq.com/
> (Reverse address to reply.)
>
>
> "Oscar" <Oscar@.discussions.microsoft.com> wrote in message
> news:4159DD0F-0B77-4783-8AEA-A779E3138700@.microsoft.com...
>
>|||Thank You
"Tibor Karaszi" wrote:

> However, roles are also stored in sysusers, cutting down number of users t
o half. Below is a line
> from sp_grantdbaccess:
> where uid >= 5 and uid < (16384 - 1) -- stay in users range
>
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
> http://www.sqlug.se/
>
> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
> news:257A5B67-9708-4FA0-B58C-897000078781@.microsoft.com...
>
>|||Thank You
"Mike Epprecht (SQL MVP)" wrote:
[vbcol=seagreen]
> Hi
> Can't find documentation, but master.dbo.syslogins does not use a counter.
> Good so far. Limitation here is number of unique combinations of charaters
> that fit into "name" which is nvarchar(128)
> In userdatabase.dbo.sysusers, uid is a smallint, so 32'767 would be the
> limit per database.
> So, it looks like only a per DB limit. Think it is time for me to do a bit
> of an experiment.
> Regards
> Mike
> "Oscar" wrote:
>|||Hi
Yes you are right....my head has been a bit too much in Sybase today.
Busy writing some scripts to test what really happens when the 2 tables hit
their limits.
Cheers
--
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/
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:OaEph9D7EHA.2572@.tk2msftngp13.phx.gbl...
> However, roles are also stored in sysusers, cutting down number of users
to half. Below is a line
> from sp_grantdbaccess:
> where uid >= 5 and uid < (16384 - 1) -- stay in users range
>
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
> http://www.sqlug.se/
>
> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
> news:257A5B67-9708-4FA0-B58C-897000078781@.microsoft.com...
counter.[vbcol=seagreen]
charaters[vbcol=seagreen]
bit[vbcol=seagreen]
If[vbcol=seagreen]
>

Number of SQL Server logins

Is there a limit on how many SQL logins can be created on an instance? If
so, where is this documented? Thanks in advance.
Oscar
Number of users per database = 16,379
Number of roles per database = 16,367
Number of concurrent connections = 32,767
However, if you are approaching any of these limits, your design will
probably raise quite a few eyebrows...
http://www.aspfaq.com/
(Reverse address to reply.)
"Oscar" <Oscar@.discussions.microsoft.com> wrote in message
news:4159DD0F-0B77-4783-8AEA-A779E3138700@.microsoft.com...
> Is there a limit on how many SQL logins can be created on an instance? If
> so, where is this documented? Thanks in advance.
> Oscar
|||Hi
Can't find documentation, but master.dbo.syslogins does not use a counter.
Good so far. Limitation here is number of unique combinations of charaters
that fit into "name" which is nvarchar(128)
In userdatabase.dbo.sysusers, uid is a smallint, so 32'767 would be the
limit per database.
So, it looks like only a per DB limit. Think it is time for me to do a bit
of an experiment.
Regards
Mike
"Oscar" wrote:

> Is there a limit on how many SQL logins can be created on an instance? If
> so, where is this documented? Thanks in advance.
> Oscar
|||I compiled this list from a variety of sources, but IIRC, they were all
official:
http://www.aspfaq.com/2345
So I think there might be an enforced limit on users per database...
http://www.aspfaq.com/
(Reverse address to reply.)
"Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
news:257A5B67-9708-4FA0-B58C-897000078781@.microsoft.com...[vbcol=seagreen]
> Hi
> Can't find documentation, but master.dbo.syslogins does not use a counter.
> Good so far. Limitation here is number of unique combinations of charaters
> that fit into "name" which is nvarchar(128)
> In userdatabase.dbo.sysusers, uid is a smallint, so 32'767 would be the
> limit per database.
> So, it looks like only a per DB limit. Think it is time for me to do a bit
> of an experiment.
> Regards
> Mike
> "Oscar" wrote:
If[vbcol=seagreen]
|||> In userdatabase.dbo.sysusers, uid is a smallint, so 32'767 would be the
> limit per database.
However, roles are also stored in sysusers, cutting down number of users to half. Below is a line
from sp_grantdbaccess:
where uid >= 5 and uid < (16384 - 1) -- stay in users range
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
http://www.sqlug.se/
"Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
news:257A5B67-9708-4FA0-B58C-897000078781@.microsoft.com...[vbcol=seagreen]
> Hi
> Can't find documentation, but master.dbo.syslogins does not use a counter.
> Good so far. Limitation here is number of unique combinations of charaters
> that fit into "name" which is nvarchar(128)
> In userdatabase.dbo.sysusers, uid is a smallint, so 32'767 would be the
> limit per database.
> So, it looks like only a per DB limit. Think it is time for me to do a bit
> of an experiment.
> Regards
> Mike
> "Oscar" wrote:
|||Thank You
"Aaron [SQL Server MVP]" wrote:

> Number of users per database = 16,379
> Number of roles per database = 16,367
> Number of concurrent connections = 32,767
> However, if you are approaching any of these limits, your design will
> probably raise quite a few eyebrows...
> --
> http://www.aspfaq.com/
> (Reverse address to reply.)
>
>
> "Oscar" <Oscar@.discussions.microsoft.com> wrote in message
> news:4159DD0F-0B77-4783-8AEA-A779E3138700@.microsoft.com...
>
>
|||Thank You
"Tibor Karaszi" wrote:

> However, roles are also stored in sysusers, cutting down number of users to half. Below is a line
> from sp_grantdbaccess:
> where uid >= 5 and uid < (16384 - 1) -- stay in users range
>
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
> http://www.sqlug.se/
>
> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
> news:257A5B67-9708-4FA0-B58C-897000078781@.microsoft.com...
>
>
|||Thank You
"Mike Epprecht (SQL MVP)" wrote:
[vbcol=seagreen]
> Hi
> Can't find documentation, but master.dbo.syslogins does not use a counter.
> Good so far. Limitation here is number of unique combinations of charaters
> that fit into "name" which is nvarchar(128)
> In userdatabase.dbo.sysusers, uid is a smallint, so 32'767 would be the
> limit per database.
> So, it looks like only a per DB limit. Think it is time for me to do a bit
> of an experiment.
> Regards
> Mike
> "Oscar" wrote:
|||Hi
Yes you are right....my head has been a bit too much in Sybase today.
Busy writing some scripts to test what really happens when the 2 tables hit
their limits.
Cheers
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/
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:OaEph9D7EHA.2572@.tk2msftngp13.phx.gbl...
> However, roles are also stored in sysusers, cutting down number of users
to half. Below is a line[vbcol=seagreen]
> from sp_grantdbaccess:
> where uid >= 5 and uid < (16384 - 1) -- stay in users range
>
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
> http://www.sqlug.se/
>
> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
> news:257A5B67-9708-4FA0-B58C-897000078781@.microsoft.com...
counter.[vbcol=seagreen]
charaters[vbcol=seagreen]
bit[vbcol=seagreen]
If
>
sql

Friday, March 23, 2012

Number of Nodes and Instance on Windows 2003 Cluster

How many Ressource group or Virtual SQL server may I run on on Windows 2003
cluster node ?
How many nodes can I have for an SQL Cluster architecture ? Apparently Four
? May someone confirm this number ? and is it four active instances or 3
active/ 1 passive ?
What happend if I have four SQL resource group with a eight nodes Windows
2003 cluter ?
answers inline below...
Cheers,
Rod
MVP - Windows Server - Clustering
http://www.nw-america.com - Clustering
"Jean-Michel Remiche" <jmr@.visionitgroup.com> wrote in message
news:B59BD2B2-E7DF-4642-9613-78722FA27374@.microsoft.com...
> How many Ressource group or Virtual SQL server may I run on on Windows
> 2003
> cluster node ?
>
SQL supports a 4 node cluster on a 32-bit OS. Each SQL supports 16
instances. Given that you have monster machines and an A/A/A/A cluster you
could have 64 databases in the cluster.
I am not aware of a limit to resource groups in clustering. Files shares
have been limited in the past
(http://support.microsoft.com/default...NoWebContent=1)
but I have not seen anything on Groups.

> How many nodes can I have for an SQL Cluster architecture ?
Windows 2000 = 2
Windows 2003 32 bit = 4
Windows 2003 64 bit = 8

>Apparently Four
> ?
With the 32-bit OS, yes.
May someone confirm this number ?
I just did

>and is it four active instances or 3
> active/ 1 passive ?
>
You can do all 4 Active, though I would never do this.

> What happend if I have four SQL resource group with a eight nodes Windows
> 2003 cluter ?
SQL will only install on any 4, though I have not tested this.
Source of information:
http://www.microsoft.com/usa/webcasts/ondemand/1751.asp
|||Under Windows 2003 and SQL 2000 here are the rules.
Each cluster can have 8 host nodes.
Each cluster can have 16 instances. (Note that this is a Cluster-wide limit,
not a host node limit.
Each SQL instance can be installed on up to 4 nodes. (8 for 64-bit, it is an
installer limitation)
Each SQL Resource group = 1 instance.
Each SQL instance = 1 Resource group.
You can have non-SQL resource groups in the cluster, but it is generally a
bad idea except for the MSDTC resource group.
Forget you ever heard of 'active/active' or 'active/passive' or any
variation of those. Those terms referred to some technical limitations of
SQL 7.0 clustering and have no real meaning for SQL 2000 clustering.
Geoff N. Hiten
Microsoft SQL Server MVP
Senior Database Administrator
Careerbuilder.com
I support the Professional Association for SQL Server
www.sqlpass.org
"Rodney R. Fournier [MVP]" <rod@.die.spam.die.nw-america.com> wrote in
message news:%23ojM6JOkEHA.644@.tk2msftngp13.phx.gbl...
> answers inline below...
> Cheers,
> Rod
> MVP - Windows Server - Clustering
> http://www.nw-america.com - Clustering
> "Jean-Michel Remiche" <jmr@.visionitgroup.com> wrote in message
> news:B59BD2B2-E7DF-4642-9613-78722FA27374@.microsoft.com...
> SQL supports a 4 node cluster on a 32-bit OS. Each SQL supports 16
> instances. Given that you have monster machines and an A/A/A/A cluster you
> could have 64 databases in the cluster.
> I am not aware of a limit to resource groups in clustering. Files shares
> have been limited in the past
>
(http://support.microsoft.com/default...microsoft.com
:80/support/kb/articles/Q185/2/12.ASP&NoWebContent=1)[vbcol=seagreen]
> but I have not seen anything on Groups.
>
> Windows 2000 = 2
> Windows 2003 32 bit = 4
> Windows 2003 64 bit = 8
>
> With the 32-bit OS, yes.
> May someone confirm this number ?
> I just did
>
> You can do all 4 Active, though I would never do this.
Windows
> SQL will only install on any 4, though I have not tested this.
> Source of information:
> http://www.microsoft.com/usa/webcasts/ondemand/1751.asp
>
sql

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 current connections?

How do you find out the current number of connections to a SQL Server 2005 instance in SQL Server Managment Studio? I need to see if my number of connections is exceeding my Maximum Worker Threads.

Thanks,

Joe

You can use execute "EXEC sp_who" or "EXEC sp_who2" and look for the information about which application is using the connection. This is also built into the management studio under Management -> Activity Monitor.

Also there is a system monitor (sysmon.exe) you can use on your system to monitor the number of concurrent connections, the number of connection pools, etc.

--Nathan Zaugg

|||

This will work:

-- Get SQL users that are connected and how many sessions they have

SELECT login_name,count(session_id)as session_count

FROMsys.dm_exec_sessions

GROUPBY login_name

Tuesday, March 20, 2012

Number of Bytes Read/Write Per Day

Does anybody know how to get the total number of bytes read/write for a
period
of time on an instance of SQL Server (No include other instances on the same
server)?
Thanks,
Lijun
Hi
@.@.TOTAL_READ and @.@.TOTAL_WRITE give the number of disk reads (not cache
reads) and writes (respectively) by Microsoft SQL Server since the instance
last started. If you run this at the start of the period and then at the end
you can subtract the two values. sp_monitor will return these value and
others.
John
"Lijun Zhang" wrote:

> Does anybody know how to get the total number of bytes read/write for a
> period
> of time on an instance of SQL Server (No include other instances on the same
> server)?
> Thanks,
> Lijun
>
>
|||Lijun;
If I understand what you are trying to accomplish from an earlier thread in
this newsgroup, I'd say that these total numbers of bytes per day would not
be very useful. To determine the I/O bandwidth requirements or to determine
how your current I/O bandwith is being used in order to determine what I/O
bandwidth you may need to acquire, I'd track the I/O perfmon counters over
time and identify the specific I/O bottlenecks, if any. and their specific
nature.
Knowing only the total number of bytes read or written doesn't tell you much
about how the I/O subsystem is used. For instance, if you are doing a lot of
large sequential I/Os, you can pump through far more bytes on a given I/O
path than if you are doing small random I/Os.
Linchi
"Lijun Zhang" wrote:

> Does anybody know how to get the total number of bytes read/write for a
> period
> of time on an instance of SQL Server (No include other instances on the same
> server)?
> Thanks,
> Lijun
>
>

Number of Bytes Read/Write Per Day

Does anybody know how to get the total number of bytes read/write for a
period
of time on an instance of SQL Server (No include other instances on the same
server)?
Thanks,
LijunHi
@.@.TOTAL_READ and @.@.TOTAL_WRITE give the number of disk reads (not cache
reads) and writes (respectively) by Microsoft SQL Server since the instance
last started. If you run this at the start of the period and then at the end
you can subtract the two values. sp_monitor will return these value and
others.
John
"Lijun Zhang" wrote:
> Does anybody know how to get the total number of bytes read/write for a
> period
> of time on an instance of SQL Server (No include other instances on the same
> server)?
> Thanks,
> Lijun
>
>|||Lijun;
If I understand what you are trying to accomplish from an earlier thread in
this newsgroup, I'd say that these total numbers of bytes per day would not
be very useful. To determine the I/O bandwidth requirements or to determine
how your current I/O bandwith is being used in order to determine what I/O
bandwidth you may need to acquire, I'd track the I/O perfmon counters over
time and identify the specific I/O bottlenecks, if any. and their specific
nature.
Knowing only the total number of bytes read or written doesn't tell you much
about how the I/O subsystem is used. For instance, if you are doing a lot of
large sequential I/Os, you can pump through far more bytes on a given I/O
path than if you are doing small random I/Os.
Linchi
"Lijun Zhang" wrote:
> Does anybody know how to get the total number of bytes read/write for a
> period
> of time on an instance of SQL Server (No include other instances on the same
> server)?
> Thanks,
> Lijun
>
>

Number of Bytes Read/Write Per Day

Does anybody know how to get the total number of bytes read/write for a
period
of time on an instance of SQL Server (No include other instances on the same
server)?
Thanks,
LijunHi
@.@.TOTAL_READ and @.@.TOTAL_WRITE give the number of disk reads (not cache
reads) and writes (respectively) by Microsoft SQL Server since the instance
last started. If you run this at the start of the period and then at the end
you can subtract the two values. sp_monitor will return these value and
others.
John
"Lijun Zhang" wrote:

> Does anybody know how to get the total number of bytes read/write for a
> period
> of time on an instance of SQL Server (No include other instances on the sa
me
> server)?
> Thanks,
> Lijun
>
>|||Lijun;
If I understand what you are trying to accomplish from an earlier thread in
this newsgroup, I'd say that these total numbers of bytes per day would not
be very useful. To determine the I/O bandwidth requirements or to determine
how your current I/O bandwith is being used in order to determine what I/O
bandwidth you may need to acquire, I'd track the I/O perfmon counters over
time and identify the specific I/O bottlenecks, if any. and their specific
nature.
Knowing only the total number of bytes read or written doesn't tell you much
about how the I/O subsystem is used. For instance, if you are doing a lot of
large sequential I/Os, you can pump through far more bytes on a given I/O
path than if you are doing small random I/Os.
Linchi
"Lijun Zhang" wrote:

> Does anybody know how to get the total number of bytes read/write for a
> period
> of time on an instance of SQL Server (No include other instances on the sa
me
> server)?
> Thanks,
> Lijun
>
>

Monday, February 20, 2012

Null Instance

So I have a little snippet of code as follows:

_nsServer = smo.Server(nsServerName);
_notificationServices = _nsServer.NotificationServices;
_nmoInstance = _notificationServices.Instances[instanceName];
_nmoApplication = _nmoInstance.Applications[applicationName];

This is in a class that's in a library. When I consume it with a console app, everything seems to work fine, but now I'm trying to wrap it in a web service, and I'm running into a lot of issues. Under the web service, after I initialize _nmoInstance in the above code, it's still null. In fact, the Instances property of _notificationServices is an empty collection. Anyone know why that might be? I have a feeling it might be DB permissions related, but I can't pin it down. For the record, I've granted access to the Network Service account for the database of the instance in question, and all the strings (nsServerName, instanceName, applicationName) have the correct values.

Thanks in advance,

-Francis

Never mind, was a DB permissions thing. I've got to narrow down exactly what I needed, but I've got it working now.