Showing posts with label application. Show all posts
Showing posts with label application. Show all posts

Friday, March 30, 2012

Numerous Login failed for user 'sa' entries in the event viewer

Hello,
We have a Windows 2000 Server and SQL Server 2000. Lately in my event
viewer - Application Log I see just thousands of entries that state
18456 :
Login failed for user 'sa'. It happens just at random times and as far
as I know doesn't affect the server or access to it in any way.
Has anyone experinced this before? My first guess would be that it
could be some program trying to use the local 'sa' userID to login in
to SQL.
Any suggestions?
Any help would be greatly appreciated.
AlekHi Alek,
I would suggest using SQL Profiler to trace the login attempts. If your
server is accessed via the Internet I would also look at your firewall logs.
Mike O.
"Alek" <alek@.widernet.org> wrote in message
news:7703dc03.0401151430.e66191f@.posting.google.com...
quote:

> Hello,
> We have a Windows 2000 Server and SQL Server 2000. Lately in my event
> viewer - Application Log I see just thousands of entries that state
> 18456 :
> Login failed for user 'sa'. It happens just at random times and as far
> as I know doesn't affect the server or access to it in any way.
> Has anyone experinced this before? My first guess would be that it
> could be some program trying to use the local 'sa' userID to login in
> to SQL.
> Any suggestions?
> Any help would be greatly appreciated.
>
> Alek

Numerous event 17137 in event log

Hello,
I am using SQL SERVER 2005 EXPRESS SP1 with an ASP.NET application, and I
get an event 17137 "Starting database MyDB" at each connection to my
database, which is a very frequent event.
The problem is that the application event log of the machine is full of this
event, with the consequence on old servers like Windows 2000 to get a message
saying the log is full and you have to empty it.
I would like to know how I can turn off the logging of SQL SERVER event 17137.
--
Olivier GIL
LAFON SAOliver GIL,
Is your MyDB in AUTO_CLOSE = ON mode? If so, you can turn this OFF, thus
keeping MyDB open by:
ALTER DATABASE MyDB SET AUTO_CLOSE OFF
That should get rid of the messages and make your accesses to MyDB run more
quickly.
RLF
"Olivier GIL" <ogil@.newsgroup.nospam> wrote in message
news:D985059D-D4CD-490B-8299-FB4924A4FF7F@.microsoft.com...
> Hello,
> I am using SQL SERVER 2005 EXPRESS SP1 with an ASP.NET application, and I
> get an event 17137 "Starting database MyDB" at each connection to my
> database, which is a very frequent event.
> The problem is that the application event log of the machine is full of
> this
> event, with the consequence on old servers like Windows 2000 to get a
> message
> saying the log is full and you have to empty it.
> I would like to know how I can turn off the logging of SQL SERVER event
> 17137.
> --
> Olivier GIL
> LAFON SA|||Hello,
AUTO_CLOSE OFF actually solves the problem.
It is surprising this option not being the default value for a CREATE
DATABASE command, knowing that the performance is better in that case.
--
Olivier GIL
LAFON SA
"Russell Fields" wrote:
> Oliver GIL,
> Is your MyDB in AUTO_CLOSE = ON mode? If so, you can turn this OFF, thus
> keeping MyDB open by:
> ALTER DATABASE MyDB SET AUTO_CLOSE OFF
> That should get rid of the messages and make your accesses to MyDB run more
> quickly.
> RLF
> "Olivier GIL" <ogil@.newsgroup.nospam> wrote in message
> news:D985059D-D4CD-490B-8299-FB4924A4FF7F@.microsoft.com...
> > Hello,
> >
> > I am using SQL SERVER 2005 EXPRESS SP1 with an ASP.NET application, and I
> > get an event 17137 "Starting database MyDB" at each connection to my
> > database, which is a very frequent event.
> >
> > The problem is that the application event log of the machine is full of
> > this
> > event, with the consequence on old servers like Windows 2000 to get a
> > message
> > saying the log is full and you have to empty it.
> >
> > I would like to know how I can turn off the logging of SQL SERVER event
> > 17137.
> >
> > --
> > Olivier GIL
> > LAFON SA
>
>|||Hi Olivier,
Regarding your concerns, you can find the following description regarding
AUTO_CLOSE OFF in SQL Server Books Online:
AUTO_CLOSE Default Value:
ON for all databases when using Microsoft SQL Server 2000 Desktop Engine or
SQL Server 2005 Express Edition, and OFF for all other editions, regardless
of operating system.
(REF: http://msdn2.microsoft.com/en-us/library/ms190249.aspx)
"The AUTO_CLOSE option is useful for desktop databases because it allows
database files to be managed as normal files. They can be moved, copied to
make backups, or even e-mailed to other users. The AUTO_CLOSE option should
not be used for databases accessed by an application that repeatedly makes
and breaks connections to SQL Server. The overhead of closing and reopening
the database between each connection will impair performance."
(REF: http://technet.microsoft.com/en-us/library/aa933082(SQL.80).aspx)
Please feel free to let us know if you have any other questions or
concerns. Have a nice day!
Best regards,
Charles Wang
Microsoft Online Community Support
=====================================================When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from this issue.
======================================================This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================|||Hello Olivier,
AUTO_CLOSE option if ON by default only for MSDE and Express Editions.
I suggest you to take a look at the following link for further info:
http://msdn2.microsoft.com/en-us/library/ms190249.aspx
--
Ekrem Ã?nsoy
"Olivier GIL" <ogil@.newsgroup.nospam> wrote in message
news:C20E229A-83E5-4D09-9B1F-F830E84EA438@.microsoft.com...
> Hello,
> AUTO_CLOSE OFF actually solves the problem.
>
> It is surprising this option not being the default value for a CREATE
> DATABASE command, knowing that the performance is better in that case.
> --
> Olivier GIL
> LAFON SA
>
> "Russell Fields" wrote:
>> Oliver GIL,
>> Is your MyDB in AUTO_CLOSE = ON mode? If so, you can turn this OFF,
>> thus
>> keeping MyDB open by:
>> ALTER DATABASE MyDB SET AUTO_CLOSE OFF
>> That should get rid of the messages and make your accesses to MyDB run
>> more
>> quickly.
>> RLF
>> "Olivier GIL" <ogil@.newsgroup.nospam> wrote in message
>> news:D985059D-D4CD-490B-8299-FB4924A4FF7F@.microsoft.com...
>> > Hello,
>> >
>> > I am using SQL SERVER 2005 EXPRESS SP1 with an ASP.NET application, and
>> > I
>> > get an event 17137 "Starting database MyDB" at each connection to my
>> > database, which is a very frequent event.
>> >
>> > The problem is that the application event log of the machine is full of
>> > this
>> > event, with the consequence on old servers like Windows 2000 to get a
>> > message
>> > saying the log is full and you have to empty it.
>> >
>> > I would like to know how I can turn off the logging of SQL SERVER event
>> > 17137.
>> >
>> > --
>> > Olivier GIL
>> > LAFON SA
>>

Numerous event 17137 in event log

Hello,
I am using SQL SERVER 2005 EXPRESS SP1 with an ASP.NET application, and I
get an event 17137 "Starting database MyDB" at each connection to my
database, which is a very frequent event.
The problem is that the application event log of the machine is full of this
event, with the consequence on old servers like Windows 2000 to get a messag
e
saying the log is full and you have to empty it.
I would like to know how I can turn off the logging of SQL SERVER event 1713
7.
Olivier GIL
LAFON SAOliver GIL,
Is your MyDB in AUTO_CLOSE = ON mode? If so, you can turn this OFF, thus
keeping MyDB open by:
ALTER DATABASE MyDB SET AUTO_CLOSE OFF
That should get rid of the messages and make your accesses to MyDB run more
quickly.
RLF
"Olivier GIL" <ogil@.newsgroup.nospam> wrote in message
news:D985059D-D4CD-490B-8299-FB4924A4FF7F@.microsoft.com...
> Hello,
> I am using SQL SERVER 2005 EXPRESS SP1 with an ASP.NET application, and I
> get an event 17137 "Starting database MyDB" at each connection to my
> database, which is a very frequent event.
> The problem is that the application event log of the machine is full of
> this
> event, with the consequence on old servers like Windows 2000 to get a
> message
> saying the log is full and you have to empty it.
> I would like to know how I can turn off the logging of SQL SERVER event
> 17137.
> --
> Olivier GIL
> LAFON SA|||Hello,
AUTO_CLOSE OFF actually solves the problem.
It is surprising this option not being the default value for a CREATE
DATABASE command, knowing that the performance is better in that case.
Olivier GIL
LAFON SA
"Russell Fields" wrote:

> Oliver GIL,
> Is your MyDB in AUTO_CLOSE = ON mode? If so, you can turn this OFF, thus
> keeping MyDB open by:
> ALTER DATABASE MyDB SET AUTO_CLOSE OFF
> That should get rid of the messages and make your accesses to MyDB run mor
e
> quickly.
> RLF
> "Olivier GIL" <ogil@.newsgroup.nospam> wrote in message
> news:D985059D-D4CD-490B-8299-FB4924A4FF7F@.microsoft.com...
>
>|||Hi Olivier,
Regarding your concerns, you can find the following description regarding
AUTO_CLOSE OFF in SQL Server Books Online:
AUTO_CLOSE Default Value:
ON for all databases when using Microsoft SQL Server 2000 Desktop Engine or
SQL Server 2005 Express Edition, and OFF for all other editions, regardless
of operating system.
(REF: http://msdn2.microsoft.com/en-us/library/ms190249.aspx)
"The AUTO_CLOSE option is useful for desktop databases because it allows
database files to be managed as normal files. They can be moved, copied to
make backups, or even e-mailed to other users. The AUTO_CLOSE option should
not be used for databases accessed by an application that repeatedly makes
and breaks connections to SQL Server. The overhead of closing and reopening
the database between each connection will impair performance."
(REF: http://technet.microsoft.com/en-us/library/aa933082(SQL.80).aspx)
Please feel free to let us know if you have any other questions or
concerns. Have a nice day!
Best regards,
Charles Wang
Microsoft Online Community Support
========================================
=============
When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from this issue.
========================================
==============
This posting is provided "AS IS" with no warranties, and confers no rights.
========================================
==============|||Hello Olivier,
AUTO_CLOSE option if ON by default only for MSDE and Express Editions.
I suggest you to take a look at the following link for further info:
http://msdn2.microsoft.com/en-us/library/ms190249.aspx
Ekrem ?nsoy
"Olivier GIL" <ogil@.newsgroup.nospam> wrote in message
news:C20E229A-83E5-4D09-9B1F-F830E84EA438@.microsoft.com...[vbcol=seagreen]
> Hello,
> AUTO_CLOSE OFF actually solves the problem.
>
> It is surprising this option not being the default value for a CREATE
> DATABASE command, knowing that the performance is better in that case.
> --
> Olivier GIL
> LAFON SA
>
> "Russell Fields" wrote:
>

Numerous event 17137 in event log

Hello,
I am using SQL SERVER 2005 EXPRESS SP1 with an ASP.NET application, and I
get an event 17137 "Starting database MyDB" at each connection to my
database, which is a very frequent event.
The problem is that the application event log of the machine is full of this
event, with the consequence on old servers like Windows 2000 to get a message
saying the log is full and you have to empty it.
I would like to know how I can turn off the logging of SQL SERVER event 17137.
Olivier GIL
LAFON SA
Oliver GIL,
Is your MyDB in AUTO_CLOSE = ON mode? If so, you can turn this OFF, thus
keeping MyDB open by:
ALTER DATABASE MyDB SET AUTO_CLOSE OFF
That should get rid of the messages and make your accesses to MyDB run more
quickly.
RLF
"Olivier GIL" <ogil@.newsgroup.nospam> wrote in message
news:D985059D-D4CD-490B-8299-FB4924A4FF7F@.microsoft.com...
> Hello,
> I am using SQL SERVER 2005 EXPRESS SP1 with an ASP.NET application, and I
> get an event 17137 "Starting database MyDB" at each connection to my
> database, which is a very frequent event.
> The problem is that the application event log of the machine is full of
> this
> event, with the consequence on old servers like Windows 2000 to get a
> message
> saying the log is full and you have to empty it.
> I would like to know how I can turn off the logging of SQL SERVER event
> 17137.
> --
> Olivier GIL
> LAFON SA
|||Hello,
AUTO_CLOSE OFF actually solves the problem.
It is surprising this option not being the default value for a CREATE
DATABASE command, knowing that the performance is better in that case.
Olivier GIL
LAFON SA
"Russell Fields" wrote:

> Oliver GIL,
> Is your MyDB in AUTO_CLOSE = ON mode? If so, you can turn this OFF, thus
> keeping MyDB open by:
> ALTER DATABASE MyDB SET AUTO_CLOSE OFF
> That should get rid of the messages and make your accesses to MyDB run more
> quickly.
> RLF
> "Olivier GIL" <ogil@.newsgroup.nospam> wrote in message
> news:D985059D-D4CD-490B-8299-FB4924A4FF7F@.microsoft.com...
>
>
|||Hi Olivier,
Regarding your concerns, you can find the following description regarding
AUTO_CLOSE OFF in SQL Server Books Online:
AUTO_CLOSE Default Value:
ON for all databases when using Microsoft SQL Server 2000 Desktop Engine or
SQL Server 2005 Express Edition, and OFF for all other editions, regardless
of operating system.
(REF: http://msdn2.microsoft.com/en-us/library/ms190249.aspx)
"The AUTO_CLOSE option is useful for desktop databases because it allows
database files to be managed as normal files. They can be moved, copied to
make backups, or even e-mailed to other users. The AUTO_CLOSE option should
not be used for databases accessed by an application that repeatedly makes
and breaks connections to SQL Server. The overhead of closing and reopening
the database between each connection will impair performance."
(REF: http://technet.microsoft.com/en-us/library/aa933082(SQL.80).aspx)
Please feel free to let us know if you have any other questions or
concerns. Have a nice day!
Best regards,
Charles Wang
Microsoft Online Community Support
================================================== ===
When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from this issue.
================================================== ====
This posting is provided "AS IS" with no warranties, and confers no rights.
================================================== ====
|||Hello Olivier,
AUTO_CLOSE option if ON by default only for MSDE and Express Editions.
I suggest you to take a look at the following link for further info:
http://msdn2.microsoft.com/en-us/library/ms190249.aspx
Ekrem ?nsoy
"Olivier GIL" <ogil@.newsgroup.nospam> wrote in message
news:C20E229A-83E5-4D09-9B1F-F830E84EA438@.microsoft.com...[vbcol=seagreen]
> Hello,
> AUTO_CLOSE OFF actually solves the problem.
>
> It is surprising this option not being the default value for a CREATE
> DATABASE command, knowing that the performance is better in that case.
> --
> Olivier GIL
> LAFON SA
>
> "Russell Fields" wrote:
sql

NUMERIC or INTEGER ?

Hi,
Is there any difference between NUMERIC and INTEGER datatype?
I am currently migrating my application from oracle to sqlserver hence i need to know the best equivalent:
Oracle
var_int int(38);
SQLServer:
@.var_int numeric(38) or @.var_integer integer
Please let me know the best equivalent
--SrikSrik
The basic different between numeric and interger is the size that u want to allocate to the fields

Just try to do this
--ERROR
create table test
(
p numeric(38),
x integer(38) --This will not table the width mean its fixed and it cannot be changed.
)
go

--CORRECT
create table test
(
p numeric(38),
x integer
)
go

and when u display the structure.

p numeric no 17 38 0 yes (n/a) (n/a) NULL
x int no 4 10 0 yes (n/a) (n/a) NULL
17 and 4 is the length of the field
38 and 10 is the precision of the fields respectively.

So it is better we use numeric instead of integer when converting Oracle to Sql server.

Hope this helps you|||Use integer in SQL Server for Oracle int. NUMBER is close to NUMERIC. Numeric implementation between Oracle and SQL Server is also slightly different. It has to do with storage and how we calculate precision/scale of resulting expression. It is best to understand those rules before using numeric otherwise you may get truncated or wrong results.|||thanks Dinesh and Umachandar for the info

Wednesday, March 28, 2012

Numbers problems in PDF

Dear All,

i am developing an application in arabic languge we had use the reporting service as our report engine we export the report to PDF format for printing or display

i have a problem with the numbers: when export to PDF the numbers not take the localization language i mean it always displayed in arabic number in need to be display in indean numbers

can u hlep me

hope my problem is clear.

Bolos

Hi,
you can check if your problem is resolved with SP2 :
http://support.microsoft.com/?kbid=889640

Numbering the SQL Query statements

Using the TOAD application for Oracle, I am able to number the SQL query lines for readability. Can the same be done for SQL Server 2005?

Hi,

I think you mean in SQL Server Management Studio.
This is possible by performing the following steps:

In SQL Server Management Studio go to Tools\Options|||

Yes... In Server Management Studio, choose Options from the menu bar.

Expand "Text Editor", Expand "All Languages" and click on General

Under "Display", check the "Line Numbers" box...

sql

Wednesday, March 21, 2012

Number of indexes can affect performance event in nearly read-only table?

I have a table with something like 4.000.000 rows, but only once per
day about 200 rows are inserted by an application, running as a
scheduled job.
So few writes per day are performed, but many reads are executed.
We have on this table 1 clustered index and 5 non-clustered indexes:
this is because the queryes applied to this table are very different,
and we have to use very different indexes.
Could the number of indexes affect performance, even if this is mainly
a read-only table?
Is there a 'maximum' number of indexes suggested for such large tables,
or i can build as many indexes as i want, nearly one for each 'where'
clause applied to the table?
Thnx i.a. for the answer
MarcoM. Simioni (m.simioni@.gmail.com) writes:
> Could the number of indexes affect performance, even if this is mainly
> a read-only table?
> Is there a 'maximum' number of indexes suggested for such large tables,
> or i can build as many indexes as i want, nearly one for each 'where'
> clause applied to the table?
The maximum number of tables is 250 if memory serves.
Can the number of index on a read-only table affect performance negatively?
Yes, from two different angles: 1) the optimizer gets more choices, and it
can take longer time to build the query plan. 2) the optimizer can pick an
index which it shouldn't. None of these issues should be given too much
weight. Most of the time the compilation time for a query is worth the
wait. And it's only occasionally the optimizer picks the wrong index. (But
I ran into that yesterday, when a customer got a problem with running a
stored procedure, and all that had happened was that I had added an index
to a table.)
So, if you feel that your table could benefit from more indexes, just do
adding them.
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 Hits

Hey folks,
I want to run through a large C# application we built to ensure it is
properly optimized.
Is there a way I can tell in SQL server how many times it's been hit/queried
in the last 20 seconds? In other words, I want to load a form on the
application and ensure that there is a minimal number of queries called
(Stored Procedures or simple Select statements).
How would I find out how many times it was queried within a certain
timespan?
Thanks!
Try using the profiler - it can show all (well most) iteractions with
the database.
Nigel Rivett
www.nigelrivett.net
*** Sent via Developersdex http://www.codecomments.com ***
Don't just participate in USENET...get rewarded for it!
|||Perfect. Thx!
"Nigel Rivett" <sqlnr@.hotmail.com> wrote in message
news:ukP5V0e8EHA.3828@.TK2MSFTNGP09.phx.gbl...
> Try using the profiler - it can show all (well most) iteractions with
> the database.
> Nigel Rivett
> www.nigelrivett.net
> *** Sent via Developersdex http://www.codecomments.com ***
> Don't just participate in USENET...get rewarded for it!
|||Perfect. Thx!
"Nigel Rivett" <sqlnr@.hotmail.com> wrote in message
news:ukP5V0e8EHA.3828@.TK2MSFTNGP09.phx.gbl...
> Try using the profiler - it can show all (well most) iteractions with
> the database.
> Nigel Rivett
> www.nigelrivett.net
> *** Sent via Developersdex http://www.codecomments.com ***
> Don't just participate in USENET...get rewarded for it!

Number Of Hits

Hey folks,
I want to run through a large C# application we built to ensure it is
properly optimized.
Is there a way I can tell in SQL server how many times it's been hit/queried
in the last 20 seconds? In other words, I want to load a form on the
application and ensure that there is a minimal number of queries called
(Stored Procedures or simple Select statements).
How would I find out how many times it was queried within a certain
timespan?
Thanks!Try using the profiler - it can show all (well most) iteractions with
the database.
Nigel Rivett
www.nigelrivett.net
*** Sent via Developersdex http://www.codecomments.com ***
Don't just participate in USENET...get rewarded for it!|||Perfect. Thx!
"Nigel Rivett" <sqlnr@.hotmail.com> wrote in message
news:ukP5V0e8EHA.3828@.TK2MSFTNGP09.phx.gbl...
> Try using the profiler - it can show all (well most) iteractions with
> the database.
> Nigel Rivett
> www.nigelrivett.net
> *** Sent via Developersdex http://www.codecomments.com ***
> Don't just participate in USENET...get rewarded for it!|||Perfect. Thx!
"Nigel Rivett" <sqlnr@.hotmail.com> wrote in message
news:ukP5V0e8EHA.3828@.TK2MSFTNGP09.phx.gbl...
> Try using the profiler - it can show all (well most) iteractions with
> the database.
> Nigel Rivett
> www.nigelrivett.net
> *** Sent via Developersdex http://www.codecomments.com ***
> Don't just participate in USENET...get rewarded for it!sql

Number Of Hits

Hey folks,
I want to run through a large C# application we built to ensure it is
properly optimized.
Is there a way I can tell in SQL server how many times it's been hit/queried
in the last 20 seconds? In other words, I want to load a form on the
application and ensure that there is a minimal number of queries called
(Stored Procedures or simple Select statements).
How would I find out how many times it was queried within a certain
timespan?
Thanks!Try using the profiler - it can show all (well most) iteractions with
the database.
Nigel Rivett
www.nigelrivett.net
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!|||Perfect. Thx!
"Nigel Rivett" <sqlnr@.hotmail.com> wrote in message
news:ukP5V0e8EHA.3828@.TK2MSFTNGP09.phx.gbl...
> Try using the profiler - it can show all (well most) iteractions with
> the database.
> Nigel Rivett
> www.nigelrivett.net
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!|||Perfect. Thx!
"Nigel Rivett" <sqlnr@.hotmail.com> wrote in message
news:ukP5V0e8EHA.3828@.TK2MSFTNGP09.phx.gbl...
> Try using the profiler - it can show all (well most) iteractions with
> the database.
> Nigel Rivett
> www.nigelrivett.net
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!

number of connections

How can I know the number of open connections to a database from a client application (via ADO)?To find out how many users are connected:

select count(*)
from master..sysprocesses
where uid <> 1

The 'uid <> 1' excludes system connections.|||select count(*)
from master..sysprocesses
where dbid = db_id('dbname')
and hostname = 'appname'

You will have to check the hostname in sysprocesses to find how the application connects.
You can also log all connects and disconnects to a table or text file using the profiler.

Tuesday, March 20, 2012

Number of Concurrent Queries

Hi,
I am developing an application that may required up to 68 concurrent
connections to the database. I was using MSDE 2000 until now. Since MSDE has
been optimized for 8 concurrent queries, I am planning to upgrade to SQL
Server Workgroup edition. When I was testing my application using SQL Server
2005 CTP Workgroup Edition I got the same error (8 concurrent queries). Is
this a limitation of SQL Server Workgroup edition or the CTP edition?
Aravind Melatur
Hi
Are you sure you connected to the CTP version and not MSDE?
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/
"Aravind Melatur" <AravindMelatur@.discussions.microsoft.com> wrote in
message news:6302E6AB-027D-4051-9F5C-8B402AFA69B2@.microsoft.com...
> Hi,
> I am developing an application that may required up to 68 concurrent
> connections to the database. I was using MSDE 2000 until now. Since MSDE
> has
> been optimized for 8 concurrent queries, I am planning to upgrade to SQL
> Server Workgroup edition. When I was testing my application using SQL
> Server
> 2005 CTP Workgroup Edition I got the same error (8 concurrent queries). Is
> this a limitation of SQL Server Workgroup edition or the CTP edition?
> --
> Aravind Melatur

Number of Concurrent Queries

Hi,
I am developing an application that may required up to 68 concurrent
connections to the database. I was using MSDE 2000 until now. Since MSDE has
been optimized for 8 concurrent queries, I am planning to upgrade to SQL
Server Workgroup edition. When I was testing my application using SQL Server
2005 CTP Workgroup Edition I got the same error (8 concurrent queries). Is
this a limitation of SQL Server Workgroup edition or the CTP edition?
--
Aravind MelaturHi
Are you sure you connected to the CTP version and not MSDE?
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/
"Aravind Melatur" <AravindMelatur@.discussions.microsoft.com> wrote in
message news:6302E6AB-027D-4051-9F5C-8B402AFA69B2@.microsoft.com...
> Hi,
> I am developing an application that may required up to 68 concurrent
> connections to the database. I was using MSDE 2000 until now. Since MSDE
> has
> been optimized for 8 concurrent queries, I am planning to upgrade to SQL
> Server Workgroup edition. When I was testing my application using SQL
> Server
> 2005 CTP Workgroup Edition I got the same error (8 concurrent queries). Is
> this a limitation of SQL Server Workgroup edition or the CTP edition?
> --
> Aravind Melatur

Number of Concurrent Queries

Hi,
I am developing an application that may required up to 68 concurrent
connections to the database. I was using MSDE 2000 until now. Since MSDE has
been optimized for 8 concurrent queries, I am planning to upgrade to SQL
Server Workgroup edition. When I was testing my application using SQL Server
2005 CTP Workgroup Edition I got the same error (8 concurrent queries). Is
this a limitation of SQL Server Workgroup edition or the CTP edition?
--
Aravind MelaturHi
Are you sure you connected to the CTP version and not MSDE?
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/
"Aravind Melatur" <AravindMelatur@.discussions.microsoft.com> wrote in
message news:6302E6AB-027D-4051-9F5C-8B402AFA69B2@.microsoft.com...
> Hi,
> I am developing an application that may required up to 68 concurrent
> connections to the database. I was using MSDE 2000 until now. Since MSDE
> has
> been optimized for 8 concurrent queries, I am planning to upgrade to SQL
> Server Workgroup edition. When I was testing my application using SQL
> Server
> 2005 CTP Workgroup Edition I got the same error (8 concurrent queries). Is
> this a limitation of SQL Server Workgroup edition or the CTP edition?
> --
> Aravind Melatur

Number of CAL's for SQL Server 2000 SP3 & ASP app

I need to know how many SQL Server 2000 CAL's I will need to serve an
ASP web application that will connect to our SQL Server. The
application vendor told me to ask Microsoft, so I'm asking in this
forum. Thanks in advance. The current version of the software is
written in ASP, the new version that will be coming out soon is written
in ASP.NET. Thanks.
Stewart@.UGA
One for every user who will access SQL Server through your application. If you don't have control
over this, you need to go Per Processor licensing.
http://www.microsoft.com/sql/howtobuy/faq.asp
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
http://www.sqlug.se/
"Stewart Harrison" <stewharr@.uga.edu> wrote in message
news:%23O808m7LFHA.2980@.TK2MSFTNGP10.phx.gbl...
>I need to know how many SQL Server 2000 CAL's I will need to serve an ASP web application that will
>connect to our SQL Server. The application vendor told me to ask Microsoft, so I'm asking in this
>forum. Thanks in advance. The current version of the software is written in ASP, the new version
>that will be coming out soon is written in ASP.NET. Thanks.
> Stewart@.UGA
|||If it's a public-facing web app then you'll need to go for Processor
Licensing rather than Server/CAL licensing. If it's an internal app
with a known number of client users or devices then you should
determine whether Processor or CAL licensing is more cost-effective for
you. See:
http://www.microsoft.com/sql/howtobuy/default.asp
BTW note that this forum isn't "Microsoft" and I'm not a Microsoft
employee. For the definitive answer talk to a Microsoft Sales rep.
David Portas
SQL Server MVP

Number of CAL's for SQL Server 2000 SP3 & ASP app

I need to know how many SQL Server 2000 CAL's I will need to serve an
ASP web application that will connect to our SQL Server. The
application vendor told me to ask Microsoft, so I'm asking in this
forum. Thanks in advance. The current version of the software is
written in ASP, the new version that will be coming out soon is written
in ASP.NET. Thanks.
Stewart@.UGAOne for every user who will access SQL Server through your application. If y
ou don't have control
over this, you need to go Per Processor licensing.
http://www.microsoft.com/sql/howtobuy/faq.asp
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
http://www.sqlug.se/
"Stewart Harrison" <stewharr@.uga.edu> wrote in message
news:%23O808m7LFHA.2980@.TK2MSFTNGP10.phx.gbl...
>I need to know how many SQL Server 2000 CAL's I will need to serve an ASP w
eb application that will
>connect to our SQL Server. The application vendor told me to ask Microsoft
, so I'm asking in this
>forum. Thanks in advance. The current version of the software is written
in ASP, the new version
>that will be coming out soon is written in ASP.NET. Thanks.
> Stewart@.UGA|||If it's a public-facing web app then you'll need to go for Processor
Licensing rather than Server/CAL licensing. If it's an internal app
with a known number of client users or devices then you should
determine whether Processor or CAL licensing is more cost-effective for
you. See:
http://www.microsoft.com/sql/howtobuy/default.asp
BTW note that this forum isn't "Microsoft" and I'm not a Microsoft
employee. For the definitive answer talk to a Microsoft Sales rep.
David Portas
SQL Server MVP
--

Number of CAL's for SQL Server 2000 SP3 & ASP app

I need to know how many SQL Server 2000 CAL's I will need to serve an
ASP web application that will connect to our SQL Server. The
application vendor told me to ask Microsoft, so I'm asking in this
forum. Thanks in advance. The current version of the software is
written in ASP, the new version that will be coming out soon is written
in ASP.NET. Thanks.
Stewart@.UGAOne for every user who will access SQL Server through your application. If you don't have control
over this, you need to go Per Processor licensing.
http://www.microsoft.com/sql/howtobuy/faq.asp
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
http://www.sqlug.se/
"Stewart Harrison" <stewharr@.uga.edu> wrote in message
news:%23O808m7LFHA.2980@.TK2MSFTNGP10.phx.gbl...
>I need to know how many SQL Server 2000 CAL's I will need to serve an ASP web application that will
>connect to our SQL Server. The application vendor told me to ask Microsoft, so I'm asking in this
>forum. Thanks in advance. The current version of the software is written in ASP, the new version
>that will be coming out soon is written in ASP.NET. Thanks.
> Stewart@.UGA|||If it's a public-facing web app then you'll need to go for Processor
Licensing rather than Server/CAL licensing. If it's an internal app
with a known number of client users or devices then you should
determine whether Processor or CAL licensing is more cost-effective for
you. See:
http://www.microsoft.com/sql/howtobuy/default.asp
BTW note that this forum isn't "Microsoft" and I'm not a Microsoft
employee. For the definitive answer talk to a Microsoft Sales rep.
--
David Portas
SQL Server MVP
--

Monday, March 19, 2012

number of active connections

Hi.
I have to buy a license for MS SQL Server 2000 and I need to know how many active connections I will need.
I could try by running the application with multiple users and see how many connections there are.

The questions is: How can I know the number of active connections to the Server?

Thanks!sql server is licensed per seat or per proccessor. small to medium sized business with no web exposure usually do per seat. a bigger company or a web exposed app using sql server usually goes per processor.|||this one is helpfull, cant find the active connection yet
Hope this servers well

SELECT GETDATE() AS 'Today Date and Time', @.@.CONNECTIONS AS 'Login Attempts'
SELECT @.@.MAX_CONNECTIONS

number formats (again!)

Hi

I'm having a problem with displaying my reports through my application at runtime. One of the formula fields on the report contains the id of the record I'm displaying and if the record's Verified field = True, it also shows a string. The formula is this:

If {?PubNoVer} = "Yes" then
if {View_TM_Get_BookID_BY_Surname.Verified} = True Then
{View_TM_Get_BookID_BY_Surname.BookID} & " Verified"
Else
{View_TM_Get_BookID_BY_Surname.BookID} & " "
Else
" "

In the report preview window, this all looks fine but running it through my application made any four digit id look wrong because it added a thousand separator and decimal places e.g. 1,512.00

In a previous post on another forum, a user very kindly showed me that using ToText on the ID field would get rid of the decimal places, so that's fine, but I still have the thousand separator and can't get rid of it!

Does anyone have any ideas?just format the field


right click on field, select format field, go to number that and select the format u want to display in|||just format the field


right click on field, select format field, go to number that and select the format u want to display in

Yeah, I did that but it only shows the correct format in the preview window, when running the report through the application, it shows the thousand separator and the decimal places even though i'd specified for that not to happen!

OK, I've found half an answer on another site. To get rid of both the decimal places and the thousands separators you use:

ToText({fieldname},0,"")

This works but because I'm also grouping on the id field, the ids still show with a thousands separator on the group tree at the side of the report! Anybody know how to format that?!|||You could create a formula like:

right('0000000000' & totext({fieldname}, 0, ""), 10)

and then group on that formula instead of the fieldname.
Trouble is you get a load of leading zeros in front of the number in the group tree.
You could limit this by finding the maximum length of the field with a whilereadingrecords formula and changing the formula to
right(replicatestring('0', {@.maxlen}) & totext({fieldname}, 0, ""), {@.maxlen})

You could use a space instead of a zero, but the numbers in the group tree won't line up, although they will still be in numeric order.

If anyone knows another way (apart from setting the PC's local settings) I'd like to know...|||You could create a formula like:

right('0000000000' & totext({fieldname}, 0, ""), 10)

and then group on that formula instead of the fieldname.
Trouble is you get a load of leading zeros in front of the number in the group tree.

Thanks JaganEllis. Instead of the formula you suggested, I used ToText({fieldname}, 0, "") and grouped on it and this worked perfectly!|||I can see how that helps with the format of the group tree data, but what about the group ordering? Unless all your number have the same number of digits, the order will be messed up (if important to you).
e.g. 300 will be after 2000 because the string '3' is > the string '2'|||I can see how that helps with the format of the group tree data, but what about the group ordering? Unless all your number have the same number of digits, the order will be messed up (if important to you).
e.g. 300 will be after 2000 because the string '3' is > the string '2'

Ah right... I see what you mean! I've used spaces instead of zeros. Thanks!