Showing posts with label windows. Show all posts
Showing posts with label windows. Show all posts

Thursday, March 22, 2012

Calculated field is calculated wrong

Hi there,
(SQL Server 2000, running on Windows 2000 server, all service packs
installed)
I have a table with columns A, B and C, all three are tinyint. I added a
fourth column D, that has this formula:
(A * 3) + (B * 2) + C
This doesn't get calculated well, for example:
A = 8, B = 10, C = 10 -> D = 57
I worked around it by changing the formula into A + A + A + B + B + C which
works correctly, still I don't understand what is wrong with the first
formula... or is it a bug?
Any ideas are appreciated.
RayI could not reproduce this:
USE tempdb
CREATE TABLE t(A tinyint, B tinyint, C tinyint, D AS (A * 3) + (B * 2) + C)
INSERT INTO t (A, B, C) values(8, 10, 10)
SELECT * FROM t
A B C D
-- -- -- --
8 10 10 54
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
http://www.sqlug.se/
"R. van Laake" <nospam_r.vanlaake@.dfk.nl> wrote in message
news:41f4c08d$0$14112$d456229f@.news.routit.net...
> Hi there,
> (SQL Server 2000, running on Windows 2000 server, all service packs
> installed)
> I have a table with columns A, B and C, all three are tinyint. I added a
> fourth column D, that has this formula:
> (A * 3) + (B * 2) + C
> This doesn't get calculated well, for example:
> A = 8, B = 10, C = 10 -> D = 57
> I worked around it by changing the formula into A + A + A + B + B + C whi
ch
> works correctly, still I don't understand what is wrong with the first
> formula... or is it a bug?
> Any ideas are appreciated.
> Ray
>
>|||Hmmm... still I get it.
I entered the formula using Enterprise Manager. When I enter:
(A * 3) + (B * 2) + C
EM changes it into:
([A]*3 + [B]*2 + [C])
which should be correct of course... but it does get calculated wrong
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:uPiS6jfAFHA.4008@.TK2MSFTNGP09.phx.gbl...
> I could not reproduce this:
> USE tempdb
> CREATE TABLE t(A tinyint, B tinyint, C tinyint, D AS (A * 3) + (B * 2) +
C)
> INSERT INTO t (A, B, C) values(8, 10, 10)
> SELECT * FROM t
> A B C D
> -- -- -- --
> 8 10 10 54
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
> http://www.sqlug.se/
>
> "R. van Laake" <nospam_r.vanlaake@.dfk.nl> wrote in message
> news:41f4c08d$0$14112$d456229f@.news.routit.net...
which
>|||Did you run the code that Tibor posted? What result did you get? If in
doubt avoid Enterprise Manager for data and schema changes - TSQL code
gives you more control. However, I couldn't reproduce the problem even
using EM - the result I get is 54.
If you still think there's a problem after trying Tibor's code then
post a complete, tested set of steps to reproduce the problem: CREATE
TABLE, INSERT followed by the exact steps you performed in EM. Also
tell us your product edition, version and service pack.
--
David Portas
SQL Server MVP
--|||Tibor's code runs just fine. I just changed my workaround formula
(A+A+A+B+B+C) back to (A*3)+(B*2)+C and now it does seem to work
correctly... I really don't understand. I am 100% sure there was no typing
error, and that the calculation was wrong. I even changed some values in the
A, B and C columns and saw a wrong calculation over and over again.
I will keep the (A*3)+(B*2)+C formula and if I see that it goes wrong
again, post here again.
Thanks for all your help,
Ray
"David Portas" <REMOVE_BEFORE_REPLYING_dportas@.acm.org> wrote in message
news:1106563785.886482.117750@.c13g2000cwb.googlegroups.com...
> Did you run the code that Tibor posted? What result did you get? If in
> doubt avoid Enterprise Manager for data and schema changes - TSQL code
> gives you more control. However, I couldn't reproduce the problem even
> using EM - the result I get is 54.
> If you still think there's a problem after trying Tibor's code then
> post a complete, tested set of steps to reproduce the problem: CREATE
> TABLE, INSERT followed by the exact steps you performed in EM. Also
> tell us your product edition, version and service pack.
> --
> David Portas
> SQL Server MVP
> --
>

Thursday, March 8, 2012

caching problem

Hi all gurus
I am using windows 2003 sp2 with SQL Server 2005 SP2. Its a 16 GB
ram , intel xeon 8 processor machine.
We have 2 files file1 with 15,000 query and file2 with 60,000 query.
if run file2 alone it takes first 6 mins and if i run it second time
it takes 2 mins.
so this time it uses caches and returns result in 2 mins
So its taking benefit of cache.
file2 first 5 min
file2 second 2 min
But when i run file1 it takes 2 minutes and file2 takes 6 mins.
After then again if i run file1 again it takes again 2 mins and file2
takes 5 mins.
memory goes to 10 GB from 16 GB.
file1 first 2 min
file2 first 5 min
file1 second 2 min
file2 second 5 min
here second time when i run this files it doesn't take benefit of
cache and take same time
so why when i run both files sequentially 2 times 2nd time its not
taking benefit of caching even 6 GB of memory available.If there is 6
GB memory available then it should keep all data in cache and give
fast results second time.
Is there any limitation for caching or query plan? running 2 different
files will drop cache?
What exactly do you mean by files and 15,000 query? And if sql server is
using all 16GB then you have a problem with your configuration. You need to
set a MAX Memory setting of no more than 14GB to leave room for the OS to do
it's job.
Andrew J. Kelly SQL MVP
Solid Quality Mentors
<shahdharti@.gmail.com> wrote in message
news:e1cf9402-53a0-4cfc-932d-cb98811fe848@.i7g2000prf.googlegroups.com...
> Hi all gurus
> I am using windows 2003 sp2 with SQL Server 2005 SP2. Its a 16 GB
> ram , intel xeon 8 processor machine.
> We have 2 files file1 with 15,000 query and file2 with 60,000 query.
>
> if run file2 alone it takes first 6 mins and if i run it second time
> it takes 2 mins.
> so this time it uses caches and returns result in 2 mins
> So its taking benefit of cache.
> file2 first 5 min
> file2 second 2 min
> But when i run file1 it takes 2 minutes and file2 takes 6 mins.
> After then again if i run file1 again it takes again 2 mins and file2
> takes 5 mins.
> memory goes to 10 GB from 16 GB.
> file1 first 2 min
> file2 first 5 min
> file1 second 2 min
> file2 second 5 min
> here second time when i run this files it doesn't take benefit of
> cache and take same time
> so why when i run both files sequentially 2 times 2nd time its not
> taking benefit of caching even 6 GB of memory available.If there is 6
> GB memory available then it should keep all data in cache and give
> fast results second time.
> Is there any limitation for caching or query plan? running 2 different
> files will drop cache?
|||On Jan 10, 11:04 pm, "Andrew J. Kelly" <sqlmvpnooos...@.shadhawk.com>
wrote:[vbcol=seagreen]
> What exactly do you mean by files and 15,000 query? And if sql server is
> using all 16GB then you have a problem with your configuration. You need to
> set a MAX Memory setting of no more than 14GB to leave room for the OS to do
> it's job.
> --
> Andrew J. Kelly SQL MVP
> Solid Quality Mentors
> <shahdha...@.gmail.com> wrote in message
> news:e1cf9402-53a0-4cfc-932d-cb98811fe848@.i7g2000prf.googlegroups.com...
>
>
>
>
>
Hi Andrew
there are about 15000 select queries in first file and 60000 select
queries in second file. And MS is not using more than 10 GB.
Problem is that if i run only one file 2 times then at second time is
uses cache, but if I run file sequentially 2 time then its not using
cache.
why its doing so?
|||60K selects? Wow that is one heck of a report. You said initially that
the memory went from 10GB to 16GB and now you are saying it is not using
more than 10GB. How are you determining this? What I said memory wise is
still true regardless and should be changed if not that way now. The
scenario you use is in no way proof that the cache is not being used. There
are many things that can cause this behavior. Poorly executed parallel plans
or blocking for instance can easily account for these numbers. Did you check
for blocking? Did you look at the file stats to see how much physical I/O
you are doing? And how large is the database itself?
Andrew J. Kelly SQL MVP
Solid Quality Mentors
<shahdharti@.gmail.com> wrote in message
news:f38dfcd7-42f4-4875-a6fb-9326c08a55b5@.i72g2000hsd.googlegroups.com...
> On Jan 10, 11:04 pm, "Andrew J. Kelly" <sqlmvpnooos...@.shadhawk.com>
> wrote:
> Hi Andrew
> there are about 15000 select queries in first file and 60000 select
> queries in second file. And MS is not using more than 10 GB.
> Problem is that if i run only one file 2 times then at second time is
> uses cache, but if I run file sequentially 2 time then its not using
> cache.
> why its doing so?
|||On Jan 11, 12:22 am, "Andrew J. Kelly" <sqlmvpnooos...@.shadhawk.com>
wrote:[vbcol=seagreen]
> 60K selects? Wow that is one heck of a report. You said initially that
> the memory went from 10GB to 16GB and now you are saying it is not using
> more than 10GB. How are you determining this? What I said memory wise is
> still true regardless and should be changed if not that way now. The
> scenario you use is in no way proof that the cache is not being used. There
> are many things that can cause this behavior. Poorly executed parallel plans
> or blocking for instance can easily account for these numbers. Did you check
> for blocking? Did you look at the file stats to see how much physical I/O
> you are doing? And how large is the database itself?
> --
> Andrew J. Kelly SQL MVP
> Solid Quality Mentors
> <shahdha...@.gmail.com> wrote in message
> news:f38dfcd7-42f4-4875-a6fb-9326c08a55b5@.i72g2000hsd.googlegroups.com...
>
>
>
>
>
>
>
>
sorry there is a typo. from 16 gb memory 10 gb is used. so i think if
6 gb is available , I got this info from task manager it showes 10 gb
uses, then in second case when 2 files are sequentially run 2 times
then why its not using cache 2nd times?
|||Task manager does not tell you how much memory SQL Server is really using
you should use the Perfmon counters for that. What is the Min and Max
memory set to in SQL Server? And regardless that does not tell you if the
data is cached or not. There are too many other factors that can be
involved. Until you get the actual metrics that I mentioned you are just
guessing and probably barking up the wrong tree.
Andrew J. Kelly SQL MVP
Solid Quality Mentors
<shahdharti@.gmail.com> wrote in message
news:6b8e2894-1ccf-4b5c-9a3c-e6ed7c3208c7@.j78g2000hsd.googlegroups.com...
> On Jan 11, 12:22 am, "Andrew J. Kelly" <sqlmvpnooos...@.shadhawk.com>
> wrote:
> sorry there is a typo. from 16 gb memory 10 gb is used. so i think if
> 6 gb is available , I got this info from task manager it showes 10 gb
> uses, then in second case when 2 files are sequentially run 2 times
> then why its not using cache 2nd times?
>

caching problem

Hi all gurus
I am using windows 2003 sp2 with SQL Server 2005 SP2. Its a 16 GB
ram , intel xeon 8 processor machine.
We have 2 files file1 with 15,000 query and file2 with 60,000 query.
if run file2 alone it takes first 6 mins and if i run it second time
it takes 2 mins.
so this time it uses caches and returns result in 2 mins
So its taking benefit of cache.
file2 first 5 min
file2 second 2 min
But when i run file1 it takes 2 minutes and file2 takes 6 mins.
After then again if i run file1 again it takes again 2 mins and file2
takes 5 mins.
memory goes to 10 GB from 16 GB.
file1 first 2 min
file2 first 5 min
file1 second 2 min
file2 second 5 min
here second time when i run this files it doesn't take benefit of
cache and take same time
so why when i run both files sequentially 2 times 2nd time its not
taking benefit of caching even 6 GB of memory available.If there is 6
GB memory available then it should keep all data in cache and give
fast results second time.
Is there any limitation for caching or query plan? running 2 different
files will drop cache?What exactly do you mean by files and 15,000 query? And if sql server is
using all 16GB then you have a problem with your configuration. You need to
set a MAX Memory setting of no more than 14GB to leave room for the OS to do
it's job.
--
Andrew J. Kelly SQL MVP
Solid Quality Mentors
<shahdharti@.gmail.com> wrote in message
news:e1cf9402-53a0-4cfc-932d-cb98811fe848@.i7g2000prf.googlegroups.com...
> Hi all gurus
> I am using windows 2003 sp2 with SQL Server 2005 SP2. Its a 16 GB
> ram , intel xeon 8 processor machine.
> We have 2 files file1 with 15,000 query and file2 with 60,000 query.
>
> if run file2 alone it takes first 6 mins and if i run it second time
> it takes 2 mins.
> so this time it uses caches and returns result in 2 mins
> So its taking benefit of cache.
> file2 first 5 min
> file2 second 2 min
> But when i run file1 it takes 2 minutes and file2 takes 6 mins.
> After then again if i run file1 again it takes again 2 mins and file2
> takes 5 mins.
> memory goes to 10 GB from 16 GB.
> file1 first 2 min
> file2 first 5 min
> file1 second 2 min
> file2 second 5 min
> here second time when i run this files it doesn't take benefit of
> cache and take same time
> so why when i run both files sequentially 2 times 2nd time its not
> taking benefit of caching even 6 GB of memory available.If there is 6
> GB memory available then it should keep all data in cache and give
> fast results second time.
> Is there any limitation for caching or query plan? running 2 different
> files will drop cache?|||On Jan 10, 11:04 pm, "Andrew J. Kelly" <sqlmvpnooos...@.shadhawk.com>
wrote:
> What exactly do you mean by files and 15,000 query? And if sql server is
> using all 16GB then you have a problem with your configuration. You need to
> set a MAX Memory setting of no more than 14GB to leave room for the OS to do
> it's job.
> --
> Andrew J. Kelly SQL MVP
> Solid Quality Mentors
> <shahdha...@.gmail.com> wrote in message
> news:e1cf9402-53a0-4cfc-932d-cb98811fe848@.i7g2000prf.googlegroups.com...
> > Hi all gurus
> > I am using windows 2003 sp2 with SQL Server 2005 SP2. Its a 16 GB
> > ram , intel xeon 8 processor machine.
> > We have 2 files file1 with 15,000 query and file2 with 60,000 query.
> > if run file2 alone it takes first 6 mins and if i run it second time
> > it takes 2 mins.
> > so this time it uses caches and returns result in 2 mins
> > So its taking benefit of cache.
> > file2 first 5 min
> > file2 second 2 min
> > But when i run file1 it takes 2 minutes and file2 takes 6 mins.
> > After then again if i run file1 again it takes again 2 mins and file2
> > takes 5 mins.
> > memory goes to 10 GB from 16 GB.
> > file1 first 2 min
> > file2 first 5 min
> > file1 second 2 min
> > file2 second 5 min
> > here second time when i run this files it doesn't take benefit of
> > cache and take same time
> > so why when i run both files sequentially 2 times 2nd time its not
> > taking benefit of caching even 6 GB of memory available.If there is 6
> > GB memory available then it should keep all data in cache and give
> > fast results second time.
> > Is there any limitation for caching or query plan? running 2 different
> > files will drop cache?
Hi Andrew
there are about 15000 select queries in first file and 60000 select
queries in second file. And MS is not using more than 10 GB.
Problem is that if i run only one file 2 times then at second time is
uses cache, but if I run file sequentially 2 time then its not using
cache.
why its doing so?|||60K selects? Wow that is one heck of a report. You said initially that
the memory went from 10GB to 16GB and now you are saying it is not using
more than 10GB. How are you determining this? What I said memory wise is
still true regardless and should be changed if not that way now. The
scenario you use is in no way proof that the cache is not being used. There
are many things that can cause this behavior. Poorly executed parallel plans
or blocking for instance can easily account for these numbers. Did you check
for blocking? Did you look at the file stats to see how much physical I/O
you are doing? And how large is the database itself?
--
Andrew J. Kelly SQL MVP
Solid Quality Mentors
<shahdharti@.gmail.com> wrote in message
news:f38dfcd7-42f4-4875-a6fb-9326c08a55b5@.i72g2000hsd.googlegroups.com...
> On Jan 10, 11:04 pm, "Andrew J. Kelly" <sqlmvpnooos...@.shadhawk.com>
> wrote:
>> What exactly do you mean by files and 15,000 query? And if sql server
>> is
>> using all 16GB then you have a problem with your configuration. You need
>> to
>> set a MAX Memory setting of no more than 14GB to leave room for the OS to
>> do
>> it's job.
>> --
>> Andrew J. Kelly SQL MVP
>> Solid Quality Mentors
>> <shahdha...@.gmail.com> wrote in message
>> news:e1cf9402-53a0-4cfc-932d-cb98811fe848@.i7g2000prf.googlegroups.com...
>> > Hi all gurus
>> > I am using windows 2003 sp2 with SQL Server 2005 SP2. Its a 16 GB
>> > ram , intel xeon 8 processor machine.
>> > We have 2 files file1 with 15,000 query and file2 with 60,000 query.
>> > if run file2 alone it takes first 6 mins and if i run it second time
>> > it takes 2 mins.
>> > so this time it uses caches and returns result in 2 mins
>> > So its taking benefit of cache.
>> > file2 first 5 min
>> > file2 second 2 min
>> > But when i run file1 it takes 2 minutes and file2 takes 6 mins.
>> > After then again if i run file1 again it takes again 2 mins and file2
>> > takes 5 mins.
>> > memory goes to 10 GB from 16 GB.
>> > file1 first 2 min
>> > file2 first 5 min
>> > file1 second 2 min
>> > file2 second 5 min
>> > here second time when i run this files it doesn't take benefit of
>> > cache and take same time
>> > so why when i run both files sequentially 2 times 2nd time its not
>> > taking benefit of caching even 6 GB of memory available.If there is 6
>> > GB memory available then it should keep all data in cache and give
>> > fast results second time.
>> > Is there any limitation for caching or query plan? running 2 different
>> > files will drop cache?
> Hi Andrew
> there are about 15000 select queries in first file and 60000 select
> queries in second file. And MS is not using more than 10 GB.
> Problem is that if i run only one file 2 times then at second time is
> uses cache, but if I run file sequentially 2 time then its not using
> cache.
> why its doing so?|||On Jan 11, 12:22 am, "Andrew J. Kelly" <sqlmvpnooos...@.shadhawk.com>
wrote:
> 60K selects? Wow that is one heck of a report. You said initially that
> the memory went from 10GB to 16GB and now you are saying it is not using
> more than 10GB. How are you determining this? What I said memory wise is
> still true regardless and should be changed if not that way now. The
> scenario you use is in no way proof that the cache is not being used. There
> are many things that can cause this behavior. Poorly executed parallel plans
> or blocking for instance can easily account for these numbers. Did you check
> for blocking? Did you look at the file stats to see how much physical I/O
> you are doing? And how large is the database itself?
> --
> Andrew J. Kelly SQL MVP
> Solid Quality Mentors
> <shahdha...@.gmail.com> wrote in message
> news:f38dfcd7-42f4-4875-a6fb-9326c08a55b5@.i72g2000hsd.googlegroups.com...
> > On Jan 10, 11:04 pm, "Andrew J. Kelly" <sqlmvpnooos...@.shadhawk.com>
> > wrote:
> >> What exactly do you mean by files and 15,000 query? And if sql server
> >> is
> >> using all 16GB then you have a problem with your configuration. You need
> >> to
> >> set a MAX Memory setting of no more than 14GB to leave room for the OS to
> >> do
> >> it's job.
> >> --
> >> Andrew J. Kelly SQL MVP
> >> Solid Quality Mentors
> >> <shahdha...@.gmail.com> wrote in message
> >>news:e1cf9402-53a0-4cfc-932d-cb98811fe848@.i7g2000prf.googlegroups.com...
> >> > Hi all gurus
> >> > I am using windows 2003 sp2 with SQL Server 2005 SP2. Its a 16 GB
> >> > ram , intel xeon 8 processor machine.
> >> > We have 2 files file1 with 15,000 query and file2 with 60,000 query.
> >> > if run file2 alone it takes first 6 mins and if i run it second time
> >> > it takes 2 mins.
> >> > so this time it uses caches and returns result in 2 mins
> >> > So its taking benefit of cache.
> >> > file2 first 5 min
> >> > file2 second 2 min
> >> > But when i run file1 it takes 2 minutes and file2 takes 6 mins.
> >> > After then again if i run file1 again it takes again 2 mins and file2
> >> > takes 5 mins.
> >> > memory goes to 10 GB from 16 GB.
> >> > file1 first 2 min
> >> > file2 first 5 min
> >> > file1 second 2 min
> >> > file2 second 5 min
> >> > here second time when i run this files it doesn't take benefit of
> >> > cache and take same time
> >> > so why when i run both files sequentially 2 times 2nd time its not
> >> > taking benefit of caching even 6 GB of memory available.If there is 6
> >> > GB memory available then it should keep all data in cache and give
> >> > fast results second time.
> >> > Is there any limitation for caching or query plan? running 2 different
> >> > files will drop cache?
> > Hi Andrew
> > there are about 15000 select queries in first file and 60000 select
> > queries in second file. And MS is not using more than 10 GB.
> > Problem is that if i run only one file 2 times then at second time is
> > uses cache, but if I run file sequentially 2 time then its not using
> > cache.
> > why its doing so?
sorry there is a typo. from 16 gb memory 10 gb is used. so i think if
6 gb is available , I got this info from task manager it showes 10 gb
uses, then in second case when 2 files are sequentially run 2 times
then why its not using cache 2nd times?|||Task manager does not tell you how much memory SQL Server is really using
you should use the Perfmon counters for that. What is the Min and Max
memory set to in SQL Server? And regardless that does not tell you if the
data is cached or not. There are too many other factors that can be
involved. Until you get the actual metrics that I mentioned you are just
guessing and probably barking up the wrong tree.
--
Andrew J. Kelly SQL MVP
Solid Quality Mentors
<shahdharti@.gmail.com> wrote in message
news:6b8e2894-1ccf-4b5c-9a3c-e6ed7c3208c7@.j78g2000hsd.googlegroups.com...
> On Jan 11, 12:22 am, "Andrew J. Kelly" <sqlmvpnooos...@.shadhawk.com>
> wrote:
>> 60K selects? Wow that is one heck of a report. You said initially that
>> the memory went from 10GB to 16GB and now you are saying it is not using
>> more than 10GB. How are you determining this? What I said memory wise
>> is
>> still true regardless and should be changed if not that way now. The
>> scenario you use is in no way proof that the cache is not being used.
>> There
>> are many things that can cause this behavior. Poorly executed parallel
>> plans
>> or blocking for instance can easily account for these numbers. Did you
>> check
>> for blocking? Did you look at the file stats to see how much physical
>> I/O
>> you are doing? And how large is the database itself?
>> --
>> Andrew J. Kelly SQL MVP
>> Solid Quality Mentors
>> <shahdha...@.gmail.com> wrote in message
>> news:f38dfcd7-42f4-4875-a6fb-9326c08a55b5@.i72g2000hsd.googlegroups.com...
>> > On Jan 10, 11:04 pm, "Andrew J. Kelly" <sqlmvpnooos...@.shadhawk.com>
>> > wrote:
>> >> What exactly do you mean by files and 15,000 query? And if sql
>> >> server
>> >> is
>> >> using all 16GB then you have a problem with your configuration. You
>> >> need
>> >> to
>> >> set a MAX Memory setting of no more than 14GB to leave room for the OS
>> >> to
>> >> do
>> >> it's job.
>> >> --
>> >> Andrew J. Kelly SQL MVP
>> >> Solid Quality Mentors
>> >> <shahdha...@.gmail.com> wrote in message
>> >>news:e1cf9402-53a0-4cfc-932d-cb98811fe848@.i7g2000prf.googlegroups.com...
>> >> > Hi all gurus
>> >> > I am using windows 2003 sp2 with SQL Server 2005 SP2. Its a 16 GB
>> >> > ram , intel xeon 8 processor machine.
>> >> > We have 2 files file1 with 15,000 query and file2 with 60,000 query.
>> >> > if run file2 alone it takes first 6 mins and if i run it second time
>> >> > it takes 2 mins.
>> >> > so this time it uses caches and returns result in 2 mins
>> >> > So its taking benefit of cache.
>> >> > file2 first 5 min
>> >> > file2 second 2 min
>> >> > But when i run file1 it takes 2 minutes and file2 takes 6 mins.
>> >> > After then again if i run file1 again it takes again 2 mins and
>> >> > file2
>> >> > takes 5 mins.
>> >> > memory goes to 10 GB from 16 GB.
>> >> > file1 first 2 min
>> >> > file2 first 5 min
>> >> > file1 second 2 min
>> >> > file2 second 5 min
>> >> > here second time when i run this files it doesn't take benefit of
>> >> > cache and take same time
>> >> > so why when i run both files sequentially 2 times 2nd time its not
>> >> > taking benefit of caching even 6 GB of memory available.If there is
>> >> > 6
>> >> > GB memory available then it should keep all data in cache and give
>> >> > fast results second time.
>> >> > Is there any limitation for caching or query plan? running 2
>> >> > different
>> >> > files will drop cache?
>> > Hi Andrew
>> > there are about 15000 select queries in first file and 60000 select
>> > queries in second file. And MS is not using more than 10 GB.
>> > Problem is that if i run only one file 2 times then at second time is
>> > uses cache, but if I run file sequentially 2 time then its not using
>> > cache.
>> > why its doing so?
> sorry there is a typo. from 16 gb memory 10 gb is used. so i think if
> 6 gb is available , I got this info from task manager it showes 10 gb
> uses, then in second case when 2 files are sequentially run 2 times
> then why its not using cache 2nd times?
>

Cached Report and Windows Authentication

I want to use cached reports with Reporting Services 2005. But when I edit the execution properties of a report, an error message answser that I can't use cache because it has a connexion to Analysis Services with Windows Authentication.

I understand why I can't do that, but I still want to do so, because the reports take too much time to load. How can I do that ?

Thanks.

You can configure the datasource in the report to run using stored credentials. In report manager, go the report and then click on the DataSource tab on the left side, you can store the credentials using that UI.|||

Thanks. I tried this and it works, but I don't see better performance...

I thought that I would not see "Generating Report, please wait" any more...

|||

Query the ExecutionLog table in the report server catalog database to see if we are submitting the queries. You can tell by looking at the "rowcount" column. You will also see how much time we are spending in processing and rendering respectively. Processing is the time that it takes for us to create the snapshot, and should be minimized by rendering from the execution cache.

|||

TimeDataRetrieval 645 0
TimeProcessing 4855 347
TimeRendering 23518 1090
Source 1 2
ByteCount 10249 10249
RowCount 183 21

Thank you, it seems that the cache is used. The first column is created the first time when the cache is generated, and the second column is created when I open the report a second time. I still got a RowCount > 0, I don't know why... Isn't there a way to tell the ReportServer the generate a .html file as cache, I think it would be much faster.

But then again, it works, so I thank you for your help.

|||We will automatically cache whatever we think is safe to cache. HTML caching can be problematic because there is some session specific information which is embedded in the HTML, so we cannot simply serve up the same HTML to multiple users.

Cached Report and Windows Authentication

I want to use cached reports with Reporting Services 2005. But when I edit the execution properties of a report, an error message answser that I can't use cache because it has a connexion to Analysis Services with Windows Authentication.

I understand why I can't do that, but I still want to do so, because the reports take too much time to load. How can I do that ?

Thanks.

You can configure the datasource in the report to run using stored credentials. In report manager, go the report and then click on the DataSource tab on the left side, you can store the credentials using that UI.|||

Thanks. I tried this and it works, but I don't see better performance...

I thought that I would not see "Generating Report, please wait" any more...

|||

Query the ExecutionLog table in the report server catalog database to see if we are submitting the queries. You can tell by looking at the "rowcount" column. You will also see how much time we are spending in processing and rendering respectively. Processing is the time that it takes for us to create the snapshot, and should be minimized by rendering from the execution cache.

|||

TimeDataRetrieval 645 0
TimeProcessing 4855 347
TimeRendering 23518 1090
Source 1 2
ByteCount 10249 10249
RowCount 183 21

Thank you, it seems that the cache is used. The first column is created the first time when the cache is generated, and the second column is created when I open the report a second time. I still got a RowCount > 0, I don't know why... Isn't there a way to tell the ReportServer the generate a .html file as cache, I think it would be much faster.

But then again, it works, so I thank you for your help.

|||We will automatically cache whatever we think is safe to cache. HTML caching can be problematic because there is some session specific information which is embedded in the HTML, so we cannot simply serve up the same HTML to multiple users.

Wednesday, March 7, 2012

Cached Credentials & Database Diagrams

My Environment:
Laptop, Windows XP Prof., Member of a Domain.
SQL Server 2000 and SQL Server 2005 Express.
SQL Server Logon = Windows
Database dbo = my account (DOMAIN\USER).
Problem:
Am unable to to access/use datbase diagrams in SQL Server 2005 - tells me
that dbo is an invalid account in the following circumstances:
New database created in 2005: When not connected to network (i.e. logged on
to windows using cached credentials and no domain controller accessible).
Attached SQL 2000 database: ALWAYS - i.e. get the error whether connected to
network or not, and am completley unable to expand/access diagrams.
This makes VS2005 web express completely unusable for me.
Problem is compounded by failure of all sql 2005 help files to display pages
(only the contents tree is visible).
Help!!For attached 2000 databases you need to change the compatability mode to 90
in order for diagrams to work
EXEC sp_dbcmptlevel 'database name', '90'
For the other issue you could try changing the owner of the database to sa
and see if that helps. Within your database run
exec sp_changedbowner 'sa'
or
alter authorization on database::[databasename] to [sa]
HTH,
Jasper Smith (SQL Server MVP)
http://www.sqldbatips.com
"John F" <JohnF@.discussions.microsoft.com> wrote in message
news:CC587FF8-AB0A-4464-A8AD-79F336B89B0F@.microsoft.com...
> My Environment:
> Laptop, Windows XP Prof., Member of a Domain.
> SQL Server 2000 and SQL Server 2005 Express.
> SQL Server Logon = Windows
> Database dbo = my account (DOMAIN\USER).
> Problem:
> Am unable to to access/use datbase diagrams in SQL Server 2005 - tells me
> that dbo is an invalid account in the following circumstances:
> New database created in 2005: When not connected to network (i.e. logged
> on
> to windows using cached credentials and no domain controller accessible).
> Attached SQL 2000 database: ALWAYS - i.e. get the error whether connected
> to
> network or not, and am completley unable to expand/access diagrams.
> This makes VS2005 web express completely unusable for me.
> Problem is compounded by failure of all sql 2005 help files to display
> pages
> (only the contents tree is visible).
> Help!!
>|||Thanks for a clear and concise answer. Both suggestions work.
John
"Jasper Smith" wrote:

> For attached 2000 databases you need to change the compatability mode to 9
0
> in order for diagrams to work
> EXEC sp_dbcmptlevel 'database name', '90'
> For the other issue you could try changing the owner of the database to sa
> and see if that helps. Within your database run
> exec sp_changedbowner 'sa'
> or
> alter authorization on database::[databasename] to [sa]
> --
> HTH,
> Jasper Smith (SQL Server MVP)
> http://www.sqldbatips.com
>
> "John F" <JohnF@.discussions.microsoft.com> wrote in message
> news:CC587FF8-AB0A-4464-A8AD-79F336B89B0F@.microsoft.com...
>
>

Cache Hit Ratio Issue

I have a customer using SQL Server 2000 Enterprise Edition on two clustered
servers (Windows 2003 SP1) with the following spec (times two):
4 x Intel Xeon Processors @. 2.7GHz
3.5GB RAM
36GB Local Hard Drives
175GB of SAN space for Data and log files
The database is around 2.5 GB.
I have a Cache Hit Ratio that is static at 70. I've never seen a Cache Hit
Ratio this low on any other customers let alone one that doesn't change.
It doesn't fluctuate at all. It has a minimum of 70, an average of 70, and
a maximum of 70 over a 24 hour period with more than 240 user connections.
This seems strange to me. Is there a setting that caps the cache hit ratio?
I would expect it to be > 90.
Any comments or suggestions would be great.Can you run this command and post it back here
DBCC MEMORYSTATUS
--
Hilary Cotter
Director of Text Mining and Database Strategy
RelevantNOISE.Com - Dedicated to mining blogs for business intelligence.
This posting is my own and doesn't necessarily represent RelevantNoise's
positions, strategies or opinions.
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"Isaac Alexander" <isaacNOSPAM@.goNOSPAMprocura.com> wrote in message
news:u9F8XcqqGHA.2068@.TK2MSFTNGP03.phx.gbl...
>I have a customer using SQL Server 2000 Enterprise Edition on two clustered
> servers (Windows 2003 SP1) with the following spec (times two):
> 4 x Intel Xeon Processors @. 2.7GHz
> 3.5GB RAM
> 36GB Local Hard Drives
> 175GB of SAN space for Data and log files
> The database is around 2.5 GB.
> I have a Cache Hit Ratio that is static at 70. I've never seen a Cache
> Hit
> Ratio this low on any other customers let alone one that doesn't change.
> It doesn't fluctuate at all. It has a minimum of 70, an average of 70,
> and
> a maximum of 70 over a 24 hour period with more than 240 user connections.
> This seems strange to me. Is there a setting that caps the cache hit
> ratio?
> I would expect it to be > 90.
> Any comments or suggestions would be great.
>|||"Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
news:uv0XKFsqGHA.928@.TK2MSFTNGP04.phx.gbl...
> Can you run this command and post it back here
> DBCC MEMORYSTATUS
> --
As requested...
Buffer Distribution Buffers
-- --
Stolen 5444
Free 936
Procedures 37946
Inram 0
Dirty 6306
Kept 0
I/O 0
Latched 700
Other 155172
Buffer Counts Buffers
-- --
Commited 206504
Target 206504
Hashed 162178
InternalReservation 1214
ExternalReservation 47
Min Free 536
Visible 206504
Procedure Cache Value
-- --
TotalProcs 10694
TotalPages 37946
InUsePages 14862
Dynamic Memory Manager Buffers
-- --
Stolen 43379
OS Reserved 976
OS Committed 954
OS In Use 948
General 4588
QueryPlan 37474
Optimizer 993
Utilities 17
Connection 995
Global Memory Objects Buffers
-- --
Resource 2398
Locks 135
XDES 73
SQLCache 1536
Replication 2
LockBytes 2
ServerGlobal 32
Query Memory Objects Value
-- --
Grants 1
Waiting 0
Available (Buffers) 139633
Maximum (Buffers) 139691
Optimization Queue Value
-- --
Optimizing 1
Waiting 0
Available 31
Maximum 32
DBCC execution completed. If DBCC printed error messages, contact your
system administrator.
Thank you for your help so far.

Cache Hit Ratio Issue

I have a customer using SQL Server 2000 Enterprise Edition on two clustered
servers (Windows 2003 SP1) with the following spec (times two):
4 x Intel Xeon Processors @. 2.7GHz
3.5GB RAM
36GB Local Hard Drives
175GB of SAN space for Data and log files
The database is around 2.5 GB.
I have a Cache Hit Ratio that is static at 70. I've never seen a Cache Hit
Ratio this low on any other customers let alone one that doesn't change.
It doesn't fluctuate at all. It has a minimum of 70, an average of 70, and
a maximum of 70 over a 24 hour period with more than 240 user connections.
This seems strange to me. Is there a setting that caps the cache hit ratio?
I would expect it to be > 90.
Any comments or suggestions would be great.Can you run this command and post it back here
DBCC MEMORYSTATUS
--
Hilary Cotter
Director of Text Mining and Database Strategy
RelevantNOISE.Com - Dedicated to mining blogs for business intelligence.
This posting is my own and doesn't necessarily represent RelevantNoise's
positions, strategies or opinions.
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"Isaac Alexander" <isaacNOSPAM@.goNOSPAMprocura.com> wrote in message
news:u9F8XcqqGHA.2068@.TK2MSFTNGP03.phx.gbl...
>I have a customer using SQL Server 2000 Enterprise Edition on two clustered
> servers (Windows 2003 SP1) with the following spec (times two):
> 4 x Intel Xeon Processors @. 2.7GHz
> 3.5GB RAM
> 36GB Local Hard Drives
> 175GB of SAN space for Data and log files
> The database is around 2.5 GB.
> I have a Cache Hit Ratio that is static at 70. I've never seen a Cache
> Hit
> Ratio this low on any other customers let alone one that doesn't change.
> It doesn't fluctuate at all. It has a minimum of 70, an average of 70,
> and
> a maximum of 70 over a 24 hour period with more than 240 user connections.
> This seems strange to me. Is there a setting that caps the cache hit
> ratio?
> I would expect it to be > 90.
> Any comments or suggestions would be great.
>|||"Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
news:uv0XKFsqGHA.928@.TK2MSFTNGP04.phx.gbl...
> Can you run this command and post it back here
> DBCC MEMORYSTATUS
> --
As requested...
Buffer Distribution Buffers
-- --
Stolen 5444
Free 936
Procedures 37946
Inram 0
Dirty 6306
Kept 0
I/O 0
Latched 700
Other 155172
Buffer Counts Buffers
-- --
Commited 206504
Target 206504
Hashed 162178
InternalReservation 1214
ExternalReservation 47
Min Free 536
Visible 206504
Procedure Cache Value
-- --
TotalProcs 10694
TotalPages 37946
InUsePages 14862
Dynamic Memory Manager Buffers
-- --
Stolen 43379
OS Reserved 976
OS Committed 954
OS In Use 948
General 4588
QueryPlan 37474
Optimizer 993
Utilities 17
Connection 995
Global Memory Objects Buffers
-- --
Resource 2398
Locks 135
XDES 73
SQLCache 1536
Replication 2
LockBytes 2
ServerGlobal 32
Query Memory Objects Value
-- --
Grants 1
Waiting 0
Available (Buffers) 139633
Maximum (Buffers) 139691
Optimization Queue Value
-- --
Optimizing 1
Waiting 0
Available 31
Maximum 32
DBCC execution completed. If DBCC printed error messages, contact your
system administrator.
Thank you for your help so far.

Saturday, February 25, 2012

c0000005 EXCEPTION_ACCESS_VIOLATION on Linked server access

Hi,
My server is running SQL Server 7.00.1063 on Windows 2000 Server SP3. A couple of linked server are configured on this server. These linked servers connect to SQL 7 servers, and also SQL 2000 servers.
If I try to use one of these linked servers in a SELECT query, I always get an access violation. System tables or user tables in any database, it don't work. A simple query like SELECT * from LINK1.master.dbo.sysprocesses crashes. Even a query on a non
-existing table (i.e. SELECT * FROM LINK1.my_db.dbo.unknowntable) crashes with an acces violation. I tried to create a new linked server, but this new one still don't work. Even worse: if I try SELECT * FROM A.B.C.D, It crashed with an access violation
instead of raising an error telling that A is not in sysservers...
I tried to reboot the server, but that didn't solve anything.
I ran a DBCC CHECKDB on all databases, but no error was found.
If this can helps to identify the problem, this is the Short Stack Dump found in the SQL000000.dmp files:
0x780011cd Module(MSVCRT+11cd) (wcslen+4)
0x005ec588 Module(sqlservr+1ec588) (FEqWsz+20)
0x00540ae6 Module(sqlservr+140ae6) (FOpenRange+ce)
0x004406f6 Module(sqlservr+406f6) (colnames+dac)
0x00440388 Module(sqlservr+40388) (colnames+7a)
0x004402d6 Module(sqlservr+402d6) (CProchdr::NormQuery+30)
0x00532811 Module(sqlservr+132811) (CProchdr::FCompile+1bf)
0x0040e1c8 Module(sqlservr+e1c8) (CSQLSource::FTransform+234)
0x00537769 Module(sqlservr+137769) (CSQLObject::FTransform2+31c)
0x0046b90d Module(sqlservr+6b90d) (CSQLObject::FGetFromDisk+627)
0x0041ff1c Module(sqlservr+1ff1c) (CSQLObject::FTransform+21a)
0x0060737b Module(sqlservr+20737b) (CSQLObject::PtrGetCmd+3e)
0x00636b94 Module(sqlservr+236b94) (FGetViewColumns+f6)
0x00540dcb Module(sqlservr+140dcb) (FOpenRange+412)
0x004406f6 Module(sqlservr+406f6) (colnames+dac)
0x00440388 Module(sqlservr+40388) (colnames+7a)
0x004402d6 Module(sqlservr+402d6) (CProchdr::NormQuery+30)
0x0043df13 Module(sqlservr+3df13) (CProchdr::FCompile+23f)
0x0040e1c8 Module(sqlservr+e1c8) (CSQLSource::FTransform+234)
0x00420394 Module(sqlservr+20394) (CSQLObject::FTransform2+1ab)
0x0046b90d Module(sqlservr+6b90d) (CSQLObject::FGetFromDisk+627)
0x0041ff1c Module(sqlservr+1ff1c) (CSQLObject::FTransform+21a)
0x0040dd22 Module(sqlservr+dd22) (CSQLSource::Execute+11d)
0x004ff1e3 Module(sqlservr+ff1e3) (CStmtExec::XretLocalExec+127)
0x004ff0a2 Module(sqlservr+ff0a2) (CStmtExec::XretExecute+253)
0x0040e9ab Module(sqlservr+e9ab) (CMsqlExecContext::ExecuteStmts+11b)
0x0040e4c0 Module(sqlservr+e4c0) (CMsqlExecContext::Execute+1bb)
This server has been built a year ago, and linked servers had always worked as expected until today...
Does anyone have an idea on how to solve this?
Thank you very much.
Eric Prevost
Hi,
I solved my problem. @.@.servername was returning NULL instead of server name. I used sp_dropserver / sp_addserver and restarted SQL Server. The problem is gone.

c0000005 EXCEPTION_ACCESS_VIOLATION on Linked server access

Hi,
My server is running SQL Server 7.00.1063 on Windows 2000 Server SP3. A cou
ple of linked server are configured on this server. These linked servers co
nnect to SQL 7 servers, and also SQL 2000 servers.
If I try to use one of these linked servers in a SELECT query, I always get
an access violation. System tables or user tables in any database, it don't
work. A simple query like SELECT * from LINK1.master.dbo.sysprocesses cras
hes. Even a query on a non
-existing table (i.e. SELECT * FROM LINK1.my_db.dbo.unknowntable) crashes wi
th an acces violation. I tried to create a new linked server, but this new
one still don't work. Even worse: if I try SELECT * FROM A.B.C.D, It crash
ed with an access violation
instead of raising an error telling that A is not in sysservers...
I tried to reboot the server, but that didn't solve anything.
I ran a DBCC CHECKDB on all databases, but no error was found.
If this can helps to identify the problem, this is the Short Stack Dump foun
d in the SQL000000.dmp files:
0x780011cd Module(MSVCRT+11cd) (wcslen+4)
0x005ec588 Module(sqlservr+1ec588) (FEqWsz+20)
0x00540ae6 Module(sqlservr+140ae6) (FOpenRange+ce)
0x004406f6 Module(sqlservr+406f6) (colnames+dac)
0x00440388 Module(sqlservr+40388) (colnames+7a)
0x004402d6 Module(sqlservr+402d6) (CProchdr::NormQuery+30)
0x00532811 Module(sqlservr+132811) (CProchdr::FCompile+1bf)
0x0040e1c8 Module(sqlservr+e1c8) (CSQLSource::FTransform+234)
0x00537769 Module(sqlservr+137769) (CSQLObject::FTransform2+31c)
0x0046b90d Module(sqlservr+6b90d) (CSQLObject::FGetFromDisk+627)
0x0041ff1c Module(sqlservr+1ff1c) (CSQLObject::FTransform+21a)
0x0060737b Module(sqlservr+20737b) (CSQLObject::PtrGetCmd+3e)
0x00636b94 Module(sqlservr+236b94) (FGetViewColumns+f6)
0x00540dcb Module(sqlservr+140dcb) (FOpenRange+412)
0x004406f6 Module(sqlservr+406f6) (colnames+dac)
0x00440388 Module(sqlservr+40388) (colnames+7a)
0x004402d6 Module(sqlservr+402d6) (CProchdr::NormQuery+30)
0x0043df13 Module(sqlservr+3df13) (CProchdr::FCompile+23f)
0x0040e1c8 Module(sqlservr+e1c8) (CSQLSource::FTransform+234)
0x00420394 Module(sqlservr+20394) (CSQLObject::FTransform2+1ab)
0x0046b90d Module(sqlservr+6b90d) (CSQLObject::FGetFromDisk+627)
0x0041ff1c Module(sqlservr+1ff1c) (CSQLObject::FTransform+21a)
0x0040dd22 Module(sqlservr+dd22) (CSQLSource::Execute+11d)
0x004ff1e3 Module(sqlservr+ff1e3) (CStmtExec::XretLocalExec+127)
0x004ff0a2 Module(sqlservr+ff0a2) (CStmtExec::XretExecute+253)
0x0040e9ab Module(sqlservr+e9ab) (CMsqlExecContext::ExecuteStmts+11b)
0x0040e4c0 Module(sqlservr+e4c0) (CMsqlExecContext::Execute+1bb)
This server has been built a year ago, and linked servers had always worked
as expected until today...
Does anyone have an idea on how to solve this?
Thank you very much.
Eric PrevostHi,
I solved my problem. @.@.servername was returning NULL instead of server name
. I used sp_dropserver / sp_addserver and restarted SQL Server. The proble
m is gone.

c0000005 EXCEPTION_ACCESS_VIOLATION

We have SQL Server 2000 with SP3 installed on Windows 2000 Advance Server. Server has 8 GB RAM and 4 CPU. Few days back we have installed multiple named instance on this server .Now we have assign each CPU to individual instance and min server memory to 1024 and max server memory is kept open.

After this we are facing an issue with default instance for exception_access_violation as below ...
Memory
MemoryLoad = 83%
Total Physical = 7679 MB
Available Physical = 1252 MB
Total Page File = 15480 MB
Available Page File = 7756 MB
Total Virtual = 2047 MB
Available Virtual = 344 MB

*Stack Dump being sent to D:\Program Files\Microsoft SQL Server\MSSQL\log\SQLDu
mp0022.txt
* ************************************************** ***************************
**
*
* BEGIN STACK DUMP:
* 07/24/07 00:46:02 spid 16
*
* Exception Address = 008405D8 (DeadlockMonitor::ResolveDeadlock + 00000025 L
ine 0+00000000)
* Exception Code = c0000005 EXCEPTION_ACCESS_VIOLATION
* Access Violation occurred reading address 00000000
*
*
* MODULE BASE END SIZE
* sqlservr 00400000 00B2CFFF 0072d000
* ntdll 77F80000 77FFCFFF 0007d000
* KERNEL32 7C570000 7C627FFF 000b8000
* ADVAPI32 7C2D0000 7C331FFF 00062000
* RPCRT4 77D30000 77D9EFFF 0006f000
* USER32 77E10000 77E74FFF 00065000
* GDI32 77F40000 77F7DFFF 0003e000
* OPENDS60 41060000 41065FFF 00006000
* MSVCRT 78000000 78044FFF 00045000
* UMS 41070000 4107CFFF 0000d000
* SQLSORT 42AE0000 42B6FFFF 00090000
* MSVCIRT 780A0000 780B1FFF 00012000
* sqlevn70 41080000 41086FFF 00007000
* NETAPI32 028D0000 0291FFFF 00050000
* Secur32 02920000 0292EFFF 0000f000
* NTDSAPI 02930000 02940FFF 00011000
* DNSAPI 02950000 02973FFF 00024000
* WSOCK32 02980000 02987FFF 00008000
* WS2_32 02990000 029A3FFF 00014000
* WS2HELP 029B0000 029B7FFF 00008000
* WLDAP32 029C0000 029E9FFF 0002a000
* NETRAP 029F0000 029F5FFF 00006000
* SAMLIB 02A00000 02A0EFFF 0000f000
* ole32 02D70000 02E5EFFF 000ef000
* XOLEHLP 02E60000 02E67FFF 00008000
* MSDTCPRX 02E70000 02F2AFFF 000bb000
* MTXCLU 02F30000 02F3FFFF 00010000
* VERSION 02F40000 02F46FFF 00007000
* LZ32 02F50000 02F55FFF 00006000
* CLUSAPI 02F60000 02F6FFFF 00010000
* RESUTILS 02F70000 02F7CFFF 0000d000
* USERENV 02F80000 02FE0FFF 00061000
* rnr20 02FF0000 02FFBFFF 0000c000
* iphlpapi 03040000 03052FFF 00013000
* ICMP 03060000 03064FFF 00005000
* MPRAPI 03070000 03086FFF 00017000
* OLEAUT32 03090000 0312AFFF 0009b000
* ACTIVEDS 03130000 0315EFFF 0002f000
* ADSLDPC 03160000 03182FFF 00023000
* RTUTILS 03190000 0319DFFF 0000e000
* SETUPAPI 031A0000 0322DFFF 0008e000
* RASAPI32 03230000 03262FFF 00033000
* RASMAN 03270000 03280FFF 00011000
* TAPI32 03290000 032B1FFF 00022000
* COMCTL32 032C0000 03343FFF 00084000
* SHLWAPI 03350000 033B5FFF 00066000
* DHCPCSVC 033C0000 033D8FFF 00019000
* winrnr 03880000 03887FFF 00008000
* rasadhlp 03890000 03894FFF 00005000
* SSNETLIB 04040000 04054FFF 00015000
* SSNMPN70 04090000 04095FFF 00006000
* security 043B0000 043B3FFF 00004000
* msafd 04850000 0486DFFF 0001e000
* wshtcpip 048B0000 048B6FFF 00007000
* SSmsLPCn 04940000 04946FFF 00007000
* mswsock 049D0000 049E1FFF 00012000
* msv1_0 04A30000 04A50FFF 00021000
* CRYPT32 04A60000 04AE6FFF 00087000
* MSASN1 04B10000 04B1FFFF 00010000
* rsabase 04F40000 04F62FFF 00023000
* CLBCATQ 05280000 0530EFFF 0008f000
* SQLOLEDB 05310000 05382FFF 00073000
* MSDART 05390000 053AEFFF 0001f000
* comdlg32 053B0000 053EDFFF 0003e000
* SHELL32 053F0000 05635FFF 00246000
* MSDATL3 05640000 05654FFF 00015000
* oledb32 05CE0000 05D45FFF 00066000
* OLEDB32R 05D50000 05D5FFFF 00010000
* xpstar 05DE0000 05E26FFF 00047000
* SQLRESLD 05E30000 05E36FFF 00007000
* SQLSVC 05E40000 05E56FFF 00017000
* ODBC32 05E60000 05E91FFF 00032000
* odbcbcp 05EA0000 05EA5FFF 00006000
* W95SCM 05EB0000 05EBBFFF 0000c000
* SQLUNIRL 10000000 1002CFFF 0002d000
* WINSPOOL 05EC0000 05EDDFFF 0001e000
* MPR 05EE0000 05EEFFFF 00010000
* SHFOLDER 05EF0000 05EF7FFF 00008000
* odbcint 061C0000 061D5FFF 00016000
* NDDEAPI 061E0000 061E6FFF 00007000
* SQLSVC 061F0000 061F5FFF 00006000
* xpstar 06200000 06208FFF 00009000
* xplog70 06AA0000 06AB1FFF 00012000
* xplog70 06AC0000 06AC3FFF 00004000
* xpsqlbot 06AD0000 06AD5FFF 00006000
* SQLFTQRY 09200000 09231FFF 00032000
* impprov 094E0000 094F8FFF 00019000
* DBNETLIB 09A80000 09A8EFFF 0000f000
* SQLOLEDB 09BD0000 09BDEFFF 0000f000
* sqlvdi 09C20000 09C2BFFF 0000c000
* dbghelp 07BE0000 07C94FFF 000b5000
*

Any idea ?Can you install SP4? this KB seems to indicate this is fixed in SP4: http://support.microsoft.com/kb/821741/en-us?spid=2852&sid=1070

What's in the SQL Server log file just before the dump?|||Is there any workaround other than upgrading to SP4. as SQL Server crashing daily twise and SP4 upgrade testing will take atleast a week time.|||I don't have a workaround for you, sorry. Maybe PSS could suggest one if you call them.|||As suggested only MS PSS can give more idea why the stack dump is created. It is better to proceed that way to resolve this issue and also SP3 for SQL2000 is no more supported, you have to test and upgrade to SP4 for SQL.

C:\SQL.LOG File, And growing very large

We have a Micrsoft SQL Server 7.0, running on Windows 2000 Server SP 4. The
problem is while the SQL service is running it will create a file,
C:\SQL.LOG and it will grow very large. Over a 5 minute period it was about
1.5 M. As you can imagine, it doesn't take long for this file to grow into
Gigs. Any idea what is causing this file? here are some of the contents:
sqlagent 31c-4bc ENTER SQLAllocEnv
HENV * 410F6438
sqlagent 31c-4bc EXIT SQLAllocEnv with return code 0 (SQL_SUCCESS)
HENV * 0x410F6438 ( 0x00581540)
sqlagent 31c-81c ENTER SQLAllocHandle
SQLSMALLINT 1 <SQL_HANDLE_ENV>
SQLHANDLE 00000000
SQLHANDLE * 00CDE1D8
sqlagent 31c-81c EXIT SQLAllocHandle with return code 0
(SQL_SUCCESS)
SQLSMALLINT 1 <SQL_HANDLE_ENV>
SQLHANDLE 00000000
SQLHANDLE * 0x00CDE1D8 ( 0x005815e8)
sqlagent 31c-81c ENTER SQLSetEnvAttr
SQLHENV 005815E8
SQLINTEGER 200 <SQL_ATTR_ODBC_VERSION>
SQLPOINTER 0x00000003
SQLINTEGER -5
sqlagent 31c-81c EXIT SQLSetEnvAttr with return code 0
(SQL_SUCCESS)
SQLHENV 005815E8
SQLINTEGER 200 <SQL_ATTR_ODBC_VERSION>
SQLPOINTER 0x00000003 (BADMEM)
SQLINTEGER -5
sqlagent 31c-81c ENTER SQLAllocHandle
SQLSMALLINT 2 <SQL_HANDLE_DBC>
SQLHANDLE 005815E8
SQLHANDLE * 00CDE1DC
sqlagent 31c-81c EXIT SQLAllocHandle with return code 0
(SQL_SUCCESS)
SQLSMALLINT 2 <SQL_HANDLE_DBC>
SQLHANDLE 005815E8
SQLHANDLE * 0x00CDE1DC ( 0x00581690)
sqlagent 31c-81c ENTER SQLSetConnectAttrW
SQLHDBC 00581690
SQLINTEGER 103 <SQL_ATTR_LOGIN_TIMEOUT>
SQLPOINTER 0x0000001E
SQLINTEGER -5
sqlagent 31c-81c EXIT SQLSetConnectAttrW with return code 0
(SQL_SUCCESS)
SQLHDBC 00581690
SQLINTEGER 103 <SQL_ATTR_LOGIN_TIMEOUT>
SQLPOINTER 0x0000001E (BADMEM)
SQLINTEGER -5
sqlagent 31c-81c ENTER SQLSetConnectAttrW
SQLHDBC 00581690
SQLINTEGER 1217 <unknown>
SQLPOINTER [Unknown attribute 1217]
SQLINTEGER -5
sqlagent 31c-81c EXIT SQLSetConnectAttrW with return code 0
(SQL_SUCCESS)
SQLHDBC 00581690
SQLINTEGER 1217 <unknown>
SQLPOINTER [Unknown attribute 1217]
SQLINTEGER -5
sqlagent 31c-81c ENTER SQLSetConnectAttrW
SQLHDBC 00581690
SQLINTEGER 112 <SQL_ATTR_PACKET_SIZE>
SQLPOINTER 0x00000000
SQLINTEGER -5
sqlagent 31c-81c EXIT SQLSetConnectAttrW with return code 0
(SQL_SUCCESS)
SQLHDBC 00581690
SQLINTEGER 112 <SQL_ATTR_PACKET_SIZE>
SQLPOINTER 0x00000000
SQLINTEGER -5
sqlagent 31c-81c ENTER SQLSetConnectAttrW
SQLHDBC 00581690
SQLINTEGER 1203 <unknown>
SQLPOINTER [Unknown attribute 1203]
SQLINTEGER -5
sqlagent 31c-81c EXIT SQLSetConnectAttrW with return code 0
(SQL_SUCCESS)
SQLHDBC 00581690
SQLINTEGER 1203 <unknown>
SQLPOINTER [Unknown attribute 1203]
SQLINTEGER -5
sqlagent 31c-81c ENTER SQLDriverConnectW
HDBC 00581690
HWND 00000000
WCHAR * 0x1F7C48DC [ -3] "******\ 0"
SWORD -3
WCHAR * 0x1F7C48DC
SWORD 8
SWORD * 0x00000000
UWORD 0 <SQL_DRIVER_NOPROMPT>
sqlagent 31c-81c EXIT SQLDriverConnectW with return code 1
(SQL_SUCCESS_WITH_INFO)
HDBC 00581690
HWND 00000000
WCHAR * 0x1F7C48DC [ -3] "******\ 0"
SWORD -3
WCHAR * 0x1F7C48DC
SWORD 8
SWORD * 0x00000000
UWORD 0 <SQL_DRIVER_NOPROMPT>
DIAG [01000] [Microsoft][ODBC SQL Server Driver][SQL Server]Changed
database context to 'msdb'. (5701)
DIAG [01000] [Microsoft][ODBC SQL Server Driver][SQL Server]Changed
language setting to us_english. (5703)
There's more, but I'll spare you.
Ryan
Woops, sorry, forgot I turned on ODBC tracing. It was on the Tracing tab on
odbcad32
I turned it off and it went away.
"Ryan McAtee" <rmcatee_fwd@.verizon.net> wrote in message
news:%23TH%23KphGHHA.4688@.TK2MSFTNGP04.phx.gbl...
> We have a Micrsoft SQL Server 7.0, running on Windows 2000 Server SP 4.
> The problem is while the SQL service is running it will create a file,
> C:\SQL.LOG and it will grow very large. Over a 5 minute period it was
> about 1.5 M. As you can imagine, it doesn't take long for this file to
> grow into Gigs. Any idea what is causing this file? here are some of the
> contents:
>
> sqlagent 31c-4bc ENTER SQLAllocEnv
> HENV * 410F6438
> sqlagent 31c-4bc EXIT SQLAllocEnv with return code 0
> (SQL_SUCCESS)
> HENV * 0x410F6438 ( 0x00581540)
> sqlagent 31c-81c ENTER SQLAllocHandle
> SQLSMALLINT 1 <SQL_HANDLE_ENV>
> SQLHANDLE 00000000
> SQLHANDLE * 00CDE1D8
> sqlagent 31c-81c EXIT SQLAllocHandle with return code 0
> (SQL_SUCCESS)
> SQLSMALLINT 1 <SQL_HANDLE_ENV>
> SQLHANDLE 00000000
> SQLHANDLE * 0x00CDE1D8 ( 0x005815e8)
> sqlagent 31c-81c ENTER SQLSetEnvAttr
> SQLHENV 005815E8
> SQLINTEGER 200 <SQL_ATTR_ODBC_VERSION>
> SQLPOINTER 0x00000003
> SQLINTEGER -5
> sqlagent 31c-81c EXIT SQLSetEnvAttr with return code 0
> (SQL_SUCCESS)
> SQLHENV 005815E8
> SQLINTEGER 200 <SQL_ATTR_ODBC_VERSION>
> SQLPOINTER 0x00000003 (BADMEM)
> SQLINTEGER -5
> sqlagent 31c-81c ENTER SQLAllocHandle
> SQLSMALLINT 2 <SQL_HANDLE_DBC>
> SQLHANDLE 005815E8
> SQLHANDLE * 00CDE1DC
> sqlagent 31c-81c EXIT SQLAllocHandle with return code 0
> (SQL_SUCCESS)
> SQLSMALLINT 2 <SQL_HANDLE_DBC>
> SQLHANDLE 005815E8
> SQLHANDLE * 0x00CDE1DC ( 0x00581690)
> sqlagent 31c-81c ENTER SQLSetConnectAttrW
> SQLHDBC 00581690
> SQLINTEGER 103 <SQL_ATTR_LOGIN_TIMEOUT>
> SQLPOINTER 0x0000001E
> SQLINTEGER -5
> sqlagent 31c-81c EXIT SQLSetConnectAttrW with return code 0
> (SQL_SUCCESS)
> SQLHDBC 00581690
> SQLINTEGER 103 <SQL_ATTR_LOGIN_TIMEOUT>
> SQLPOINTER 0x0000001E (BADMEM)
> SQLINTEGER -5
> sqlagent 31c-81c ENTER SQLSetConnectAttrW
> SQLHDBC 00581690
> SQLINTEGER 1217 <unknown>
> SQLPOINTER [Unknown attribute 1217]
> SQLINTEGER -5
> sqlagent 31c-81c EXIT SQLSetConnectAttrW with return code 0
> (SQL_SUCCESS)
> SQLHDBC 00581690
> SQLINTEGER 1217 <unknown>
> SQLPOINTER [Unknown attribute 1217]
> SQLINTEGER -5
> sqlagent 31c-81c ENTER SQLSetConnectAttrW
> SQLHDBC 00581690
> SQLINTEGER 112 <SQL_ATTR_PACKET_SIZE>
> SQLPOINTER 0x00000000
> SQLINTEGER -5
> sqlagent 31c-81c EXIT SQLSetConnectAttrW with return code 0
> (SQL_SUCCESS)
> SQLHDBC 00581690
> SQLINTEGER 112 <SQL_ATTR_PACKET_SIZE>
> SQLPOINTER 0x00000000
> SQLINTEGER -5
> sqlagent 31c-81c ENTER SQLSetConnectAttrW
> SQLHDBC 00581690
> SQLINTEGER 1203 <unknown>
> SQLPOINTER [Unknown attribute 1203]
> SQLINTEGER -5
> sqlagent 31c-81c EXIT SQLSetConnectAttrW with return code 0
> (SQL_SUCCESS)
> SQLHDBC 00581690
> SQLINTEGER 1203 <unknown>
> SQLPOINTER [Unknown attribute 1203]
> SQLINTEGER -5
> sqlagent 31c-81c ENTER SQLDriverConnectW
> HDBC 00581690
> HWND 00000000
> WCHAR * 0x1F7C48DC [ -3] "******\ 0"
> SWORD -3
> WCHAR * 0x1F7C48DC
> SWORD 8
> SWORD * 0x00000000
> UWORD 0 <SQL_DRIVER_NOPROMPT>
> sqlagent 31c-81c EXIT SQLDriverConnectW with return code 1
> (SQL_SUCCESS_WITH_INFO)
> HDBC 00581690
> HWND 00000000
> WCHAR * 0x1F7C48DC [ -3] "******\ 0"
> SWORD -3
> WCHAR * 0x1F7C48DC
> SWORD 8
> SWORD * 0x00000000
> UWORD 0 <SQL_DRIVER_NOPROMPT>
> DIAG [01000] [Microsoft][ODBC SQL Server Driver][SQL Server]Changed
> database context to 'msdb'. (5701)
> DIAG [01000] [Microsoft][ODBC SQL Server Driver][SQL Server]Changed
> language setting to us_english. (5703)
>
> There's more, but I'll spare you.
> Ryan
>

C:\SQL.LOG File, And growing very large

We have a Micrsoft SQL Server 7.0, running on Windows 2000 Server SP 4. The
problem is while the SQL service is running it will create a file,
C:\SQL.LOG and it will grow very large. Over a 5 minute period it was about
1.5 M. As you can imagine, it doesn't take long for this file to grow into
Gigs. Any idea what is causing this file? here are some of the contents:
sqlagent 31c-4bc ENTER SQLAllocEnv
HENV * 410F6438
sqlagent 31c-4bc EXIT SQLAllocEnv with return code 0 (SQL_SUCCESS)
HENV * 0x410F6438 ( 0x00581540)
sqlagent 31c-81c ENTER SQLAllocHandle
SQLSMALLINT 1 <SQL_HANDLE_ENV>
SQLHANDLE 00000000
SQLHANDLE * 00CDE1D8
sqlagent 31c-81c EXIT SQLAllocHandle with return code 0
(SQL_SUCCESS)
SQLSMALLINT 1 <SQL_HANDLE_ENV>
SQLHANDLE 00000000
SQLHANDLE * 0x00CDE1D8 ( 0x005815e8)
sqlagent 31c-81c ENTER SQLSetEnvAttr
SQLHENV 005815E8
SQLINTEGER 200 <SQL_ATTR_ODBC_VERSION>
SQLPOINTER 0x00000003
SQLINTEGER -5
sqlagent 31c-81c EXIT SQLSetEnvAttr with return code 0
(SQL_SUCCESS)
SQLHENV 005815E8
SQLINTEGER 200 <SQL_ATTR_ODBC_VERSION>
SQLPOINTER 0x00000003 (BADMEM)
SQLINTEGER -5
sqlagent 31c-81c ENTER SQLAllocHandle
SQLSMALLINT 2 <SQL_HANDLE_DBC>
SQLHANDLE 005815E8
SQLHANDLE * 00CDE1DC
sqlagent 31c-81c EXIT SQLAllocHandle with return code 0
(SQL_SUCCESS)
SQLSMALLINT 2 <SQL_HANDLE_DBC>
SQLHANDLE 005815E8
SQLHANDLE * 0x00CDE1DC ( 0x00581690)
sqlagent 31c-81c ENTER SQLSetConnectAttrW
SQLHDBC 00581690
SQLINTEGER 103 <SQL_ATTR_LOGIN_TIMEOUT>
SQLPOINTER 0x0000001E
SQLINTEGER -5
sqlagent 31c-81c EXIT SQLSetConnectAttrW with return code 0
(SQL_SUCCESS)
SQLHDBC 00581690
SQLINTEGER 103 <SQL_ATTR_LOGIN_TIMEOUT>
SQLPOINTER 0x0000001E (BADMEM)
SQLINTEGER -5
sqlagent 31c-81c ENTER SQLSetConnectAttrW
SQLHDBC 00581690
SQLINTEGER 1217 <unknown>
SQLPOINTER [Unknown attribute 1217]
SQLINTEGER -5
sqlagent 31c-81c EXIT SQLSetConnectAttrW with return code 0
(SQL_SUCCESS)
SQLHDBC 00581690
SQLINTEGER 1217 <unknown>
SQLPOINTER [Unknown attribute 1217]
SQLINTEGER -5
sqlagent 31c-81c ENTER SQLSetConnectAttrW
SQLHDBC 00581690
SQLINTEGER 112 <SQL_ATTR_PACKET_SIZE>
SQLPOINTER 0x00000000
SQLINTEGER -5
sqlagent 31c-81c EXIT SQLSetConnectAttrW with return code 0
(SQL_SUCCESS)
SQLHDBC 00581690
SQLINTEGER 112 <SQL_ATTR_PACKET_SIZE>
SQLPOINTER 0x00000000
SQLINTEGER -5
sqlagent 31c-81c ENTER SQLSetConnectAttrW
SQLHDBC 00581690
SQLINTEGER 1203 <unknown>
SQLPOINTER [Unknown attribute 1203]
SQLINTEGER -5
sqlagent 31c-81c EXIT SQLSetConnectAttrW with return code 0
(SQL_SUCCESS)
SQLHDBC 00581690
SQLINTEGER 1203 <unknown>
SQLPOINTER [Unknown attribute 1203]
SQLINTEGER -5
sqlagent 31c-81c ENTER SQLDriverConnectW
HDBC 00581690
HWND 00000000
WCHAR * 0x1F7C48DC [ -3] "******\ 0"
SWORD -3
WCHAR * 0x1F7C48DC
SWORD 8
SWORD * 0x00000000
UWORD 0 <SQL_DRIVER_NOPROMPT>
sqlagent 31c-81c EXIT SQLDriverConnectW with return code 1
(SQL_SUCCESS_WITH_INFO)
HDBC 00581690
HWND 00000000
WCHAR * 0x1F7C48DC [ -3] "******\ 0"
SWORD -3
WCHAR * 0x1F7C48DC
SWORD 8
SWORD * 0x00000000
UWORD 0 <SQL_DRIVER_NOPROMPT>
DIAG [01000] [Microsoft][ODBC SQL Server Driver][SQL Server]Changed
database context to 'msdb'. (5701)
DIAG [01000] [Microsoft][ODBC SQL Server Driver][SQL Server]Changed
language setting to us_english. (5703)
There's more, but I'll spare you.
RyanWoops, sorry, forgot I turned on ODBC tracing. It was on the Tracing tab on
odbcad32
I turned it off and it went away.
"Ryan McAtee" <rmcatee_fwd@.verizon.net> wrote in message
news:%23TH%23KphGHHA.4688@.TK2MSFTNGP04.phx.gbl...
> We have a Micrsoft SQL Server 7.0, running on Windows 2000 Server SP 4.
> The problem is while the SQL service is running it will create a file,
> C:\SQL.LOG and it will grow very large. Over a 5 minute period it was
> about 1.5 M. As you can imagine, it doesn't take long for this file to
> grow into Gigs. Any idea what is causing this file? here are some of the
> contents:
>
> sqlagent 31c-4bc ENTER SQLAllocEnv
> HENV * 410F6438
> sqlagent 31c-4bc EXIT SQLAllocEnv with return code 0
> (SQL_SUCCESS)
> HENV * 0x410F6438 ( 0x00581540)
> sqlagent 31c-81c ENTER SQLAllocHandle
> SQLSMALLINT 1 <SQL_HANDLE_ENV>
> SQLHANDLE 00000000
> SQLHANDLE * 00CDE1D8
> sqlagent 31c-81c EXIT SQLAllocHandle with return code 0
> (SQL_SUCCESS)
> SQLSMALLINT 1 <SQL_HANDLE_ENV>
> SQLHANDLE 00000000
> SQLHANDLE * 0x00CDE1D8 ( 0x005815e8)
> sqlagent 31c-81c ENTER SQLSetEnvAttr
> SQLHENV 005815E8
> SQLINTEGER 200 <SQL_ATTR_ODBC_VERSION>
> SQLPOINTER 0x00000003
> SQLINTEGER -5
> sqlagent 31c-81c EXIT SQLSetEnvAttr with return code 0
> (SQL_SUCCESS)
> SQLHENV 005815E8
> SQLINTEGER 200 <SQL_ATTR_ODBC_VERSION>
> SQLPOINTER 0x00000003 (BADMEM)
> SQLINTEGER -5
> sqlagent 31c-81c ENTER SQLAllocHandle
> SQLSMALLINT 2 <SQL_HANDLE_DBC>
> SQLHANDLE 005815E8
> SQLHANDLE * 00CDE1DC
> sqlagent 31c-81c EXIT SQLAllocHandle with return code 0
> (SQL_SUCCESS)
> SQLSMALLINT 2 <SQL_HANDLE_DBC>
> SQLHANDLE 005815E8
> SQLHANDLE * 0x00CDE1DC ( 0x00581690)
> sqlagent 31c-81c ENTER SQLSetConnectAttrW
> SQLHDBC 00581690
> SQLINTEGER 103 <SQL_ATTR_LOGIN_TIMEOUT>
> SQLPOINTER 0x0000001E
> SQLINTEGER -5
> sqlagent 31c-81c EXIT SQLSetConnectAttrW with return code 0
> (SQL_SUCCESS)
> SQLHDBC 00581690
> SQLINTEGER 103 <SQL_ATTR_LOGIN_TIMEOUT>
> SQLPOINTER 0x0000001E (BADMEM)
> SQLINTEGER -5
> sqlagent 31c-81c ENTER SQLSetConnectAttrW
> SQLHDBC 00581690
> SQLINTEGER 1217 <unknown>
> SQLPOINTER [Unknown attribute 1217]
> SQLINTEGER -5
> sqlagent 31c-81c EXIT SQLSetConnectAttrW with return code 0
> (SQL_SUCCESS)
> SQLHDBC 00581690
> SQLINTEGER 1217 <unknown>
> SQLPOINTER [Unknown attribute 1217]
> SQLINTEGER -5
> sqlagent 31c-81c ENTER SQLSetConnectAttrW
> SQLHDBC 00581690
> SQLINTEGER 112 <SQL_ATTR_PACKET_SIZE>
> SQLPOINTER 0x00000000
> SQLINTEGER -5
> sqlagent 31c-81c EXIT SQLSetConnectAttrW with return code 0
> (SQL_SUCCESS)
> SQLHDBC 00581690
> SQLINTEGER 112 <SQL_ATTR_PACKET_SIZE>
> SQLPOINTER 0x00000000
> SQLINTEGER -5
> sqlagent 31c-81c ENTER SQLSetConnectAttrW
> SQLHDBC 00581690
> SQLINTEGER 1203 <unknown>
> SQLPOINTER [Unknown attribute 1203]
> SQLINTEGER -5
> sqlagent 31c-81c EXIT SQLSetConnectAttrW with return code 0
> (SQL_SUCCESS)
> SQLHDBC 00581690
> SQLINTEGER 1203 <unknown>
> SQLPOINTER [Unknown attribute 1203]
> SQLINTEGER -5
> sqlagent 31c-81c ENTER SQLDriverConnectW
> HDBC 00581690
> HWND 00000000
> WCHAR * 0x1F7C48DC [ -3] "******\ 0"
> SWORD -3
> WCHAR * 0x1F7C48DC
> SWORD 8
> SWORD * 0x00000000
> UWORD 0 <SQL_DRIVER_NOPROMPT>
> sqlagent 31c-81c EXIT SQLDriverConnectW with return code 1
> (SQL_SUCCESS_WITH_INFO)
> HDBC 00581690
> HWND 00000000
> WCHAR * 0x1F7C48DC [ -3] "******\ 0"
> SWORD -3
> WCHAR * 0x1F7C48DC
> SWORD 8
> SWORD * 0x00000000
> UWORD 0 <SQL_DRIVER_NOPROMPT>
> DIAG [01000] [Microsoft][ODBC SQL Server Driver][SQL Server]Changed
> database context to 'msdb'. (5701)
> DIAG [01000] [Microsoft][ODBC SQL Server Driver][SQL Server]Changed
> language setting to us_english. (5703)
>
> There's more, but I'll spare you.
> Ryan
>

C:\SQL.LOG File, And growing very large

We have a Micrsoft SQL Server 7.0, running on Windows 2000 Server SP 4. The
problem is while the SQL service is running it will create a file,
C:\SQL.LOG and it will grow very large. Over a 5 minute period it was about
1.5 M. As you can imagine, it doesn't take long for this file to grow into
Gigs. Any idea what is causing this file? here are some of the contents:
sqlagent 31c-4bc ENTER SQLAllocEnv
HENV * 410F6438
sqlagent 31c-4bc EXIT SQLAllocEnv with return code 0 (SQL_SUCCESS)
HENV * 0x410F6438 ( 0x00581540)
sqlagent 31c-81c ENTER SQLAllocHandle
SQLSMALLINT 1 <SQL_HANDLE_ENV>
SQLHANDLE 00000000
SQLHANDLE * 00CDE1D8
sqlagent 31c-81c EXIT SQLAllocHandle with return code 0
(SQL_SUCCESS)
SQLSMALLINT 1 <SQL_HANDLE_ENV>
SQLHANDLE 00000000
SQLHANDLE * 0x00CDE1D8 ( 0x005815e8)
sqlagent 31c-81c ENTER SQLSetEnvAttr
SQLHENV 005815E8
SQLINTEGER 200 <SQL_ATTR_ODBC_VERSION>
SQLPOINTER 0x00000003
SQLINTEGER -5
sqlagent 31c-81c EXIT SQLSetEnvAttr with return code 0
(SQL_SUCCESS)
SQLHENV 005815E8
SQLINTEGER 200 <SQL_ATTR_ODBC_VERSION>
SQLPOINTER 0x00000003 (BADMEM)
SQLINTEGER -5
sqlagent 31c-81c ENTER SQLAllocHandle
SQLSMALLINT 2 <SQL_HANDLE_DBC>
SQLHANDLE 005815E8
SQLHANDLE * 00CDE1DC
sqlagent 31c-81c EXIT SQLAllocHandle with return code 0
(SQL_SUCCESS)
SQLSMALLINT 2 <SQL_HANDLE_DBC>
SQLHANDLE 005815E8
SQLHANDLE * 0x00CDE1DC ( 0x00581690)
sqlagent 31c-81c ENTER SQLSetConnectAttrW
SQLHDBC 00581690
SQLINTEGER 103 <SQL_ATTR_LOGIN_TIMEOUT>
SQLPOINTER 0x0000001E
SQLINTEGER -5
sqlagent 31c-81c EXIT SQLSetConnectAttrW with return code 0
(SQL_SUCCESS)
SQLHDBC 00581690
SQLINTEGER 103 <SQL_ATTR_LOGIN_TIMEOUT>
SQLPOINTER 0x0000001E (BADMEM)
SQLINTEGER -5
sqlagent 31c-81c ENTER SQLSetConnectAttrW
SQLHDBC 00581690
SQLINTEGER 1217 <unknown>
SQLPOINTER [Unknown attribute 1217]
SQLINTEGER -5
sqlagent 31c-81c EXIT SQLSetConnectAttrW with return code 0
(SQL_SUCCESS)
SQLHDBC 00581690
SQLINTEGER 1217 <unknown>
SQLPOINTER [Unknown attribute 1217]
SQLINTEGER -5
sqlagent 31c-81c ENTER SQLSetConnectAttrW
SQLHDBC 00581690
SQLINTEGER 112 <SQL_ATTR_PACKET_SIZE>
SQLPOINTER 0x00000000
SQLINTEGER -5
sqlagent 31c-81c EXIT SQLSetConnectAttrW with return code 0
(SQL_SUCCESS)
SQLHDBC 00581690
SQLINTEGER 112 <SQL_ATTR_PACKET_SIZE>
SQLPOINTER 0x00000000
SQLINTEGER -5
sqlagent 31c-81c ENTER SQLSetConnectAttrW
SQLHDBC 00581690
SQLINTEGER 1203 <unknown>
SQLPOINTER [Unknown attribute 1203]
SQLINTEGER -5
sqlagent 31c-81c EXIT SQLSetConnectAttrW with return code 0
(SQL_SUCCESS)
SQLHDBC 00581690
SQLINTEGER 1203 <unknown>
SQLPOINTER [Unknown attribute 1203]
SQLINTEGER -5
sqlagent 31c-81c ENTER SQLDriverConnectW
HDBC 00581690
HWND 00000000
WCHAR * 0x1F7C48DC [ -3] "******\ 0"
SWORD -3
WCHAR * 0x1F7C48DC
SWORD 8
SWORD * 0x00000000
UWORD 0 <SQL_DRIVER_NOPROMPT>
sqlagent 31c-81c EXIT SQLDriverConnectW with return code 1
(SQL_SUCCESS_WITH_INFO)
HDBC 00581690
HWND 00000000
WCHAR * 0x1F7C48DC [ -3] "******\ 0"
SWORD -3
WCHAR * 0x1F7C48DC
SWORD 8
SWORD * 0x00000000
UWORD 0 <SQL_DRIVER_NOPROMPT>
DIAG [01000] [Microsoft][ODBC SQL Server Driver][SQL Server]
Changed
database context to 'msdb'. (5701)
DIAG [01000] [Microsoft][ODBC SQL Server Driver][SQL Server]
Changed
language setting to us_english. (5703)
There's more, but I'll spare you.
RyanWoops, sorry, forgot I turned on ODBC tracing. It was on the Tracing tab on
odbcad32
I turned it off and it went away.
"Ryan McAtee" <rmcatee_fwd@.verizon.net> wrote in message
news:%23TH%23KphGHHA.4688@.TK2MSFTNGP04.phx.gbl...
> We have a Micrsoft SQL Server 7.0, running on Windows 2000 Server SP 4.
> The problem is while the SQL service is running it will create a file,
> C:\SQL.LOG and it will grow very large. Over a 5 minute period it was
> about 1.5 M. As you can imagine, it doesn't take long for this file to
> grow into Gigs. Any idea what is causing this file? here are some of the
> contents:
>
> sqlagent 31c-4bc ENTER SQLAllocEnv
> HENV * 410F6438
> sqlagent 31c-4bc EXIT SQLAllocEnv with return code 0
> (SQL_SUCCESS)
> HENV * 0x410F6438 ( 0x00581540)
> sqlagent 31c-81c ENTER SQLAllocHandle
> SQLSMALLINT 1 <SQL_HANDLE_ENV>
> SQLHANDLE 00000000
> SQLHANDLE * 00CDE1D8
> sqlagent 31c-81c EXIT SQLAllocHandle with return code 0
> (SQL_SUCCESS)
> SQLSMALLINT 1 <SQL_HANDLE_ENV>
> SQLHANDLE 00000000
> SQLHANDLE * 0x00CDE1D8 ( 0x005815e8)
> sqlagent 31c-81c ENTER SQLSetEnvAttr
> SQLHENV 005815E8
> SQLINTEGER 200 <SQL_ATTR_ODBC_VERSION>
> SQLPOINTER 0x00000003
> SQLINTEGER -5
> sqlagent 31c-81c EXIT SQLSetEnvAttr with return code 0
> (SQL_SUCCESS)
> SQLHENV 005815E8
> SQLINTEGER 200 <SQL_ATTR_ODBC_VERSION>
> SQLPOINTER 0x00000003 (BADMEM)
> SQLINTEGER -5
> sqlagent 31c-81c ENTER SQLAllocHandle
> SQLSMALLINT 2 <SQL_HANDLE_DBC>
> SQLHANDLE 005815E8
> SQLHANDLE * 00CDE1DC
> sqlagent 31c-81c EXIT SQLAllocHandle with return code 0
> (SQL_SUCCESS)
> SQLSMALLINT 2 <SQL_HANDLE_DBC>
> SQLHANDLE 005815E8
> SQLHANDLE * 0x00CDE1DC ( 0x00581690)
> sqlagent 31c-81c ENTER SQLSetConnectAttrW
> SQLHDBC 00581690
> SQLINTEGER 103 <SQL_ATTR_LOGIN_TIMEOUT>
> SQLPOINTER 0x0000001E
> SQLINTEGER -5
> sqlagent 31c-81c EXIT SQLSetConnectAttrW with return code 0
> (SQL_SUCCESS)
> SQLHDBC 00581690
> SQLINTEGER 103 <SQL_ATTR_LOGIN_TIMEOUT>
> SQLPOINTER 0x0000001E (BADMEM)
> SQLINTEGER -5
> sqlagent 31c-81c ENTER SQLSetConnectAttrW
> SQLHDBC 00581690
> SQLINTEGER 1217 <unknown>
> SQLPOINTER [Unknown attribute 1217]
> SQLINTEGER -5
> sqlagent 31c-81c EXIT SQLSetConnectAttrW with return code 0
> (SQL_SUCCESS)
> SQLHDBC 00581690
> SQLINTEGER 1217 <unknown>
> SQLPOINTER [Unknown attribute 1217]
> SQLINTEGER -5
> sqlagent 31c-81c ENTER SQLSetConnectAttrW
> SQLHDBC 00581690
> SQLINTEGER 112 <SQL_ATTR_PACKET_SIZE>
> SQLPOINTER 0x00000000
> SQLINTEGER -5
> sqlagent 31c-81c EXIT SQLSetConnectAttrW with return code 0
> (SQL_SUCCESS)
> SQLHDBC 00581690
> SQLINTEGER 112 <SQL_ATTR_PACKET_SIZE>
> SQLPOINTER 0x00000000
> SQLINTEGER -5
> sqlagent 31c-81c ENTER SQLSetConnectAttrW
> SQLHDBC 00581690
> SQLINTEGER 1203 <unknown>
> SQLPOINTER [Unknown attribute 1203]
> SQLINTEGER -5
> sqlagent 31c-81c EXIT SQLSetConnectAttrW with return code 0
> (SQL_SUCCESS)
> SQLHDBC 00581690
> SQLINTEGER 1203 <unknown>
> SQLPOINTER [Unknown attribute 1203]
> SQLINTEGER -5
> sqlagent 31c-81c ENTER SQLDriverConnectW
> HDBC 00581690
> HWND 00000000
> WCHAR * 0x1F7C48DC [ -3] "******\ 0"
> SWORD -3
> WCHAR * 0x1F7C48DC
> SWORD 8
> SWORD * 0x00000000
> UWORD 0 <SQL_DRIVER_NOPROMPT>
> sqlagent 31c-81c EXIT SQLDriverConnectW with return code 1
> (SQL_SUCCESS_WITH_INFO)
> HDBC 00581690
> HWND 00000000
> WCHAR * 0x1F7C48DC [ -3] "******\ 0"
> SWORD -3
> WCHAR * 0x1F7C48DC
> SWORD 8
> SWORD * 0x00000000
> UWORD 0 <SQL_DRIVER_NOPROMPT>
> DIAG [01000] [Microsoft][ODBC SQL Server Driver][SQL Serv
er]Changed
> database context to 'msdb'. (5701)
> DIAG [01000] [Microsoft][ODBC SQL Server Driver][SQL Serv
er]Changed
> language setting to us_english. (5703)
>
> There's more, but I'll spare you.
> Ryan
>

Friday, February 24, 2012

C# --sqloledb in Windows 2000

While Connectiong to SQL Server 2000 from Windows 2000, i am getting this error.

The 'sqloledb' provider is not registered on the local machine.

Hi,

could you further elaborate your problem? As to what Visual Studio you are using? And please post a code snippet to where you think that the problem is occuring.

From the info that you have given, I could say that the .net framework is not present on the machine. Is your Windows 2000 a target machine (the machine that you installed your app)?

cheers,

Paul June A. Domag

|||You should not be using sqloledb from C# you should be suing SQL Client in the system.data namespace.

C# is ignored on 2000 Server in mssearch

With Windows 2000 Server and SQL Server 2000 I have a full text indexed
database.
I want to be able to search for C# (the content are resumes) but cannot
because it is an 'ignored word'.
I believe the issue is due to the operating system version of the mssearch
component, which explains why it works just fine on my 2003 Server laptop*
installation.
What I am asking (a year on) is : do I really have to upgrade my production
Windows 2000 server machine to 2003 solely to get the full text search to
index C# ? Or can I upgrade my mssearch component somehow?
-simon
*yes i did day 2003 server and laptop
Andy,
Actually, it's not due to the OS version of a MSSearch component, but to the
OS supplied wordbreaker, infosoft.dll for Win2K and the newer langwrbk.dll
for Win2003 and WinXP. Also, there was a specific fix in Win2K SP3 for C#,
that may also be a factor.
Since you have SQL Server 2000 installed on Win2K, SQL FTS is using the
OS-supplied wordbreaker dll - infosoft.dll - and this wordbreaker is
different from Win2003 and it's new wordbreaker dll - langwbrk.dll and
therefore, you will get different results based upon searching for C (or any
other single letter) and punctuation that is in contact with the single
letter, such as C++ or J++ or C#.
I've done some testing with c vs. c++ vs. c# on both Win2K and Win2003 with
both CONTAINS and FREETEXT. Below are some of my results for this somewhat
problematic and very frequently asked question and I can supply the details,
but here are the summary:
FREETEXT will find C++ c# C- but NOT C without Error 7619 on Win2K SP3 with
SQL2K RTM when C is in noise files.
CONTAINS will find C++ c# C- but Error 7619 with C on Win2K SP3 with SQL2K
RTM when C is in noise files.
FREETEXT will find all rows contain C regardless of punctuation on Win2K SP3
with SQL2K RTM when C is NOT in noise files.
CONTAINS will find all rows contain C regardless of punctuation on Win2K SP3
with SQL2K RTM when C is NOT in noise files.
FREETEXT will find C++ C# C- but NOT C without Error 7619 on Win2003 with
SQL2K SP2 when C is in noise files.
CONTAINS will find C++ C# C- but Error 7619 with C on Win2003 with SQL2K SP2
when C is in noise files.
FREETEXT will find all rows contain C and C<punctuation> on Win2003 with
SQL2K SP2 when C is NOT in noise files
CONTAINS will find only rows containing C regardless of punctuation, but
multiple rows depending upon Capitalization on Win2003 with SQL2K SP2 when
C is NOT in noise files.
You can "have your cake, but not eat it" with this kind of SQL FTS search on
just a single letter and punctuation, you best bet is to AND it with another
SQL FTS query using either a special made-up word or a special phrase, for
example CSharp or "C Sharp"...
Note, that the US_English wordbreaker will "break" words based upon
language-specific conditions, only the Neutral wordbreaker "breaks" words
based upon "white space" on any OS platform and that on Win2K SP3 and above
there was a specific fix for C++ vs. C (note capitalization).
Regards,
John
"Andy Gilman" <andygilman2@.hotmail.com> wrote in message
news:eS6Lub6YEHA.3128@.TK2MSFTNGP09.phx.gbl...
> With Windows 2000 Server and SQL Server 2000 I have a full text indexed
> database.
> I want to be able to search for C# (the content are resumes) but cannot
> because it is an 'ignored word'.
> I believe the issue is due to the operating system version of the mssearch
> component, which explains why it works just fine on my 2003 Server laptop*
> installation.
> What I am asking (a year on) is : do I really have to upgrade my
production
> Windows 2000 server machine to 2003 solely to get the full text search to
> index C# ? Or can I upgrade my mssearch component somehow?
> -simon
>
> *yes i did day 2003 server and laptop
>
|||i have similar problem and it is giving wrong results
can anyone help?
*** Sent via Developersdex http://www.codecomments.com ***
Don't just participate in USENET...get rewarded for it!
|||brijesh,
What is your environment? SQL Server version, language as well as OS
Platform? Could post the output of the following sql script on the server
where you hare having your problem? Also, could you post your query and the
expected results?
use <your_database_name_here>
go
SELECT @.@.language
SELECT @.@.version
sp_configure 'default full-text language'
EXEC sp_help_fulltext_catalogs
EXEC sp_help_fulltext_tables
EXEC sp_help_fulltext_columns
EXEC sp_help <your_FT-enable_table_name_here>
go
Regards,
John
"brijesh Tekrawala" <brijesh@.jzero.com> wrote in message
news:efMd2zmaEHA.4052@.TK2MSFTNGP10.phx.gbl...
> i have similar problem and it is giving wrong results
> can anyone help?
>
>
> *** Sent via Developersdex http://www.codecomments.com ***
> Don't just participate in USENET...get rewarded for it!
|||SELECT @.@.language
output
us_english
SELECT @.@.version
output
Microsoft SQL Server 2000 - 8.00.760 (Intel X86)
Dec 17 2002 14:22:05
Copyright (c) 1988-2003 Microsoft Corporation
Enterprise Edition on Windows NT 5.0 (Build 2195: Service Pack 4)
EXEC sp_help_fulltext_catalogs
output
5 Search Courses C:\Program Files\Microsoft SQL
Server\MSSQL\FTDATA
EXEC sp_help_fulltext_tables
Table_NAME
Courses
*** Sent via Developersdex http://www.codecomments.com ***
Don't just participate in USENET...get rewarded for it!
|||brijesh,
The reason I asked for additional information is to determine your
environment and provide you with the answer to your question.
However, the below reply is not complete, but for now enough provide you
with feedback as well as to ask for additional required information, if my
reply does not provide you with the expected answer to your question.
You are using SQL Server 2000 (SQL2K) SP3 on Windows 2000 Server (Win2K) SP4
with the default language of US_English, however, the language of the text
in your FT-enabled table "Courses" textual column is unknown at this time.
Additionally, you did not provide an example of your FTS query (CONTAINS or
FREETEXT ?) along with the exact search word or expected results.
At this point, I'm going to make some assumptions, that due to a lack of
information, may not provide you with a correct response to your question.
Specifically, have you removed the single letter "C" from the noise.enu file
located under \FTDATA\SQLServer\Config where your SQL Server 2000 is
installed. If so, have you also run a Full Population after removing this
single letter?
Since you have SQL Server 2000 installed on Win2K, SQL FTS is using the
OS-supplied wordbreaker dll - infosoft.dll.
In your environment, you will encounter the following results:
FREETEXT will find C++, c#, C-, but NOT C without Error 7619 on Win2K SP4
with SQL2K SP3 when C is in noise.enu.
CONTAINS will find C++ c# C- but Error 7619 with C on Win2K SP4 with SQL2K
SP3 when C is in noise.enu.
FREETEXT will find all rows contain C regardless of punctuation on Win2K SP4
with SQL2K SP3 when C is NOT in noise.enu.
CONTAINS will find all rows contain C regardless of punctuation on Win2K SP4
with SQL2K SP3 when C is NOT in noise.enu.
If you have further questions, please post your exact SQL query, search
word, and sample data.
Regards,
John
"brijesh Tekrawala" <brijesh@.jzero.com> wrote in message
news:O6aGYznaEHA.2908@.TK2MSFTNGP10.phx.gbl...
>
> SELECT @.@.language
> output
> us_english
> SELECT @.@.version
> output
> Microsoft SQL Server 2000 - 8.00.760 (Intel X86)
> Dec 17 2002 14:22:05
> Copyright (c) 1988-2003 Microsoft Corporation
> Enterprise Edition on Windows NT 5.0 (Build 2195: Service Pack 4)
>
> EXEC sp_help_fulltext_catalogs
> output
> 5 Search Courses C:\Program Files\Microsoft SQL
> Server\MSSQL\FTDATA
>
> EXEC sp_help_fulltext_tables
> Table_NAME
> Courses
>
> *** Sent via Developersdex http://www.codecomments.com ***
> Don't just participate in USENET...get rewarded for it!
>
|||i have removed C char from noise file. and also restarted full
population....still it is giving wrong results.
Sample Query is as follow
Select[KEY], RANK,CourseName
fromContainsTable(Courses, *, 'c#') S,
Courses E
WhereE.CourseID = S.[KEY]
Order by Rank desc
it is returning rows contains...
c Programming
c++ Programming
C# Programming
*** Sent via Developersdex http://www.codecomments.com ***
Don't just participate in USENET...get rewarded for it!
|||This seems to be working. What rows is is missing?
Hilary Cotter
Looking for a book on SQL Server replication?
http://www.nwsu.com/0974973602.html
"brijesh Tekrawala" <brijesh@.jzero.com> wrote in message
news:eLCYMrvaEHA.4092@.TK2MSFTNGP11.phx.gbl...
> i have removed C char from noise file. and also restarted full
> population....still it is giving wrong results.
>
> Sample Query is as follow
> Select [KEY], RANK,CourseName
> from ContainsTable(Courses, *, 'c#') S,
> Courses E
> Where E.CourseID = S.[KEY]
> Order by Rank desc
>
> it is returning rows contains...
> c Programming
> c++ Programming
> C# Programming
>
>
> *** Sent via Developersdex http://www.codecomments.com ***
> Don't just participate in USENET...get rewarded for it!
|||Hilary,
it is returning wrong results...
c Programming
c++ Programming
C# Programming
it should return only rows containing C# word... so only one row...
*** Sent via Developersdex http://www.codecomments.com ***
Don't just participate in USENET...get rewarded for it!
|||put the c back in your noise word list and rebuild your catalog.
Hilary Cotter
Looking for a book on SQL Server replication?
http://www.nwsu.com/0974973602.html
"brijesh Tekrawala" <brijesh@.jzero.com> wrote in message
news:e0xZMGyaEHA.3752@.TK2MSFTNGP12.phx.gbl...
> Hilary,
> it is returning wrong results...
> c Programming
> c++ Programming
> C# Programming
> --
>
> it should return only rows containing C# word... so only one row...
>
>
> *** Sent via Developersdex http://www.codecomments.com ***
> Don't just participate in USENET...get rewarded for it!

Sunday, February 19, 2012

c# and sql server for windows ce

hello,
i use in c# the following line:
using System.Data.SqlServerCe;
the following error is visible
"The type or namespace name 'SqlCeEngine' could not be found"
how can i fix this problem?Have you added a reference to SQLCe?
Have you installed SQL Ce on the device?
"Steiner Hubert" <nospam@.firemail2.de> wrote in message
news:O9vYtTx6DHA.1596@.TK2MSFTNGP10.phx.gbl...
> hello,
> i use in c# the following line:
> using System.Data.SqlServerCe;
> the following error is visible
> "The type or namespace name 'SqlCeEngine' could not be found"
> how can i fix this problem?
>

C# + SQLServer CE

How i can create an application in windows mobile 6 using C# and SQL Server compact edition?

1. Purchase VS 2005 SE or above and install it.

2. Install WM 6.0 SDK.

3. Install SQL CE (probably 3.1).

4. Create WM 6.0 project.

5. Write code and/or use designers to access the database.

Thursday, February 16, 2012

by vb.net create exe File to update sql server

is there any chance to create an exe file to update the sql server database by uisng windows schdule ?

for example this exe file will run to update my database, every night @. 12:00 AM.

this exe should be in vb.net

pllllzzzz help

What is your design for that ? Do you want to execute DDL or DML or just maintainance on the database ? You might check the option of the SQL Server Agent, which does Scheduling for SQL Server. More information would be helpful to help you.

HTH, Jens K. Suessmeyer.

http://www.sqlserver2005.de|||

You can also VBScript from SQL Agent…