Hi all
Is there a way to calculate mean, median and mode as in Crystal? If so could
you point me to a source, I am not much on programming but willing to give
that a go if I have to.
thanks.In the current release of RS there is not a way to do this - I'm not sure if
RS 2005 will have this capability.
I had to calculate median values for a report that I designed and ended up
having to do the calculations in a stored procedure that my dataset was
using. You stated that you're not to up on programming so I'll tell you the
theory behind what I did and if you want the source I'll be glad to send it
to you.
Basically to get the median value for a dataset what you need to do is total
up the number of rows for the dataset/table and divide by 2. Once you have
that value all you have to do then is go in and retrieve the value that
resides at that row number and that will give you the median value.
hth,
Bill Youngman
Anexinet, Inc.
"darwin" <darwin@.discussions.microsoft.com> wrote in message
news:A6FD67C6-41BE-43A9-B89C-F690EDE564D4@.microsoft.com...
> Hi all
> Is there a way to calculate mean, median and mode as in Crystal? If so
could
> you point me to a source, I am not much on programming but willing to give
> that a go if I have to.
> thanks.
>
Showing posts with label mode. Show all posts
Showing posts with label mode. Show all posts
Tuesday, March 20, 2012
Saturday, February 25, 2012
c2 audit on SQL 7?
dear gurus,
as far as i know, c2 mode is doable on sql 2000 running
in NT4.
is it any possibility to have c2 auditting on SQL7 in NT4?
any seizing tool to evaluate the windows/sql resource
consumption if c2 is enabled?
thanks,
May ChengC2 Auditing is not available on SQL Server 7 - it's only available on
SQL Server 2000.
-Sue
On Mon, 11 Oct 2004 09:35:09 -0700, "may cheng"
<anonymous@.discussions.microsoft.com> wrote:
>dear gurus,
>as far as i know, c2 mode is doable on sql 2000 running
>in NT4.
>is it any possibility to have c2 auditting on SQL7 in NT4?
>any seizing tool to evaluate the windows/sql resource
>consumption if c2 is enabled?
>thanks,
>May Cheng
as far as i know, c2 mode is doable on sql 2000 running
in NT4.
is it any possibility to have c2 auditting on SQL7 in NT4?
any seizing tool to evaluate the windows/sql resource
consumption if c2 is enabled?
thanks,
May ChengC2 Auditing is not available on SQL Server 7 - it's only available on
SQL Server 2000.
-Sue
On Mon, 11 Oct 2004 09:35:09 -0700, "may cheng"
<anonymous@.discussions.microsoft.com> wrote:
>dear gurus,
>as far as i know, c2 mode is doable on sql 2000 running
>in NT4.
>is it any possibility to have c2 auditting on SQL7 in NT4?
>any seizing tool to evaluate the windows/sql resource
>consumption if c2 is enabled?
>thanks,
>May Cheng
C2 Audit and BCP
I have a system that requires the functionality of c2 audit mode.
Unfortunately most the manipulations that will be taking place on this
system will be using BCP (actually they'll be using IRowsetFastLoad, but the
effect is the same).
If I use Profiler to record SQL statements each of the BCP transactions
comes out as insert bulk SQL statement.
But the audit event just contains garbage (little squares, non-printable
characters) and does not enable me to determine anything useful at all.
Has anyone else encountered this?
Has anyone been able to log BCP statements using c2 audit on SQL Server 2000
SP3a?
Does anyone know if a bug already exists for this?
Thanks.
J.T.BCP will use Native mode by default unless you specify character mode.
What exactly are you wanting to see?
Thanks,
Kevin McDonnell
Microsoft Corporation
This posting is provided AS IS with no warranties, and confers no rights.|||I'd like to be able to identify that an "insert bulk" statement has
occurred.
All of the SQL Statements that are run are identified solely by the
permission event, we have to look at the text data column in Profiler to
establish what the SQL was - but when we use BCP we get a few permission
events but nothing legible in the text data column.
This isn't an issue with the functionality of BCP, it's an issue with the
audit events that profiler picks up.
What I'd like is to find the same text captured in the permissions event
(which is part of the audit set of events) as it captured by the SQL
statements events (which logs the "insert bulk" statement and identifies the
table and columns).
Thanks.
J.T.
"Kevin McDonnell [MSFT]" <kevmc@.online.microsoft.com> wrote in message
news:cLXa5U3QEHA.3960@.cpmsftngxa10.phx.gbl...
> BCP will use Native mode by default unless you specify character mode.
> What exactly are you wanting to see?
>
> Thanks,
> Kevin McDonnell
> Microsoft Corporation
> This posting is provided AS IS with no warranties, and confers no rights.
>
>
Unfortunately most the manipulations that will be taking place on this
system will be using BCP (actually they'll be using IRowsetFastLoad, but the
effect is the same).
If I use Profiler to record SQL statements each of the BCP transactions
comes out as insert bulk SQL statement.
But the audit event just contains garbage (little squares, non-printable
characters) and does not enable me to determine anything useful at all.
Has anyone else encountered this?
Has anyone been able to log BCP statements using c2 audit on SQL Server 2000
SP3a?
Does anyone know if a bug already exists for this?
Thanks.
J.T.BCP will use Native mode by default unless you specify character mode.
What exactly are you wanting to see?
Thanks,
Kevin McDonnell
Microsoft Corporation
This posting is provided AS IS with no warranties, and confers no rights.|||I'd like to be able to identify that an "insert bulk" statement has
occurred.
All of the SQL Statements that are run are identified solely by the
permission event, we have to look at the text data column in Profiler to
establish what the SQL was - but when we use BCP we get a few permission
events but nothing legible in the text data column.
This isn't an issue with the functionality of BCP, it's an issue with the
audit events that profiler picks up.
What I'd like is to find the same text captured in the permissions event
(which is part of the audit set of events) as it captured by the SQL
statements events (which logs the "insert bulk" statement and identifies the
table and columns).
Thanks.
J.T.
"Kevin McDonnell [MSFT]" <kevmc@.online.microsoft.com> wrote in message
news:cLXa5U3QEHA.3960@.cpmsftngxa10.phx.gbl...
> BCP will use Native mode by default unless you specify character mode.
> What exactly are you wanting to see?
>
> Thanks,
> Kevin McDonnell
> Microsoft Corporation
> This posting is provided AS IS with no warranties, and confers no rights.
>
>
Labels:
audit,
bcp,
database,
functionality,
manipulations,
microsoft,
mode,
mysql,
oracle,
requires,
server,
sql,
system,
thissystem,
unfortunately
c2 audit ,about hostname coloum value
Hi!
When the audit mode is set to 1 and reconfigured ,
Sql Profiler can read audit file which have a colum called HostName record
the computer name of source Computer. How can I change this vaue to the
source computer's IP address.
And Can I change the audit's file to another directory ?
thanks .HI,
There is no data column named Host IP address in profiler, as well as you
cant change the
data columns for C2 Audit option.
Can I change the audit's file to another directory ?
No, you cant change the directory.
Thanks
Hari
MCDBA
"william.huang" <william.huang@.saturn.yzu.edu.tw> wrote in message
news:OBTku6kXEHA.2972@.TK2MSFTNGP12.phx.gbl...
> Hi!
> When the audit mode is set to 1 and reconfigured ,
> Sql Profiler can read audit file which have a colum called HostName
record
> the computer name of source Computer. How can I change this vaue to the
> source computer's IP address.
> And Can I change the audit's file to another directory ?
> thanks .
>
When the audit mode is set to 1 and reconfigured ,
Sql Profiler can read audit file which have a colum called HostName record
the computer name of source Computer. How can I change this vaue to the
source computer's IP address.
And Can I change the audit's file to another directory ?
thanks .HI,
There is no data column named Host IP address in profiler, as well as you
cant change the
data columns for C2 Audit option.
Can I change the audit's file to another directory ?
No, you cant change the directory.
Thanks
Hari
MCDBA
"william.huang" <william.huang@.saturn.yzu.edu.tw> wrote in message
news:OBTku6kXEHA.2972@.TK2MSFTNGP12.phx.gbl...
> Hi!
> When the audit mode is set to 1 and reconfigured ,
> Sql Profiler can read audit file which have a colum called HostName
record
> the computer name of source Computer. How can I change this vaue to the
> source computer's IP address.
> And Can I change the audit's file to another directory ?
> thanks .
>
Thursday, February 16, 2012
Bypass transaction log
Hi,
I have a database in full mode, can i issue a delete
command that deletes a single row bypassing the
transaction log?
Thanks in advance
MiguelYou can use TRUNCATE TABLE to delete the contents of the
entire table without logging. I am unaware of any way to
do this at the row level.
>--Original Message--
>Hi,
>I have a database in full mode, can i issue a delete
>command that deletes a single row bypassing the
>transaction log?
>Thanks in advance
>Miguel
>.
>|||That's not possible.
Linchi
>--Original Message--
>Hi,
>I have a database in full mode, can i issue a delete
>command that deletes a single row bypassing the
>transaction log?
>Thanks in advance
>Miguel
>.
>
I have a database in full mode, can i issue a delete
command that deletes a single row bypassing the
transaction log?
Thanks in advance
MiguelYou can use TRUNCATE TABLE to delete the contents of the
entire table without logging. I am unaware of any way to
do this at the row level.
>--Original Message--
>Hi,
>I have a database in full mode, can i issue a delete
>command that deletes a single row bypassing the
>transaction log?
>Thanks in advance
>Miguel
>.
>|||That's not possible.
Linchi
>--Original Message--
>Hi,
>I have a database in full mode, can i issue a delete
>command that deletes a single row bypassing the
>transaction log?
>Thanks in advance
>Miguel
>.
>
bypass mode
i have setup replication that works fine, after adding some article while
applying changes, my db went to suspect mode,
by running following script
Sp_configure "allow updates", 1
go
Reconfigure with override
GO
Update sysdatabases set status = 32768 where name = 'criticaldevices'
go
Sp_configure "allow updates", 0
go
Reconfigure with override
Sp_configure "allow updates", 1
go
Reconfigure with override
GO
Update sysdatabases set status = 0 where name = 'criticaldevices'
go
Sp_configure "allow updates", 0
go
Reconfigure with override
while starting snopshot agent, i got following error
Could not run BEGIN TRANSACTION in database 'CriticalDevices' because the
database is in bypass recovery mode.
Can anyone help me to solve this issue
thanks
Kalyan
did you follow all of the steps listed here?
http://groups.google.com/group/micro...e=source&hl=en
Hilary Cotter
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
"Kalyan" <Kalyan@.discussions.microsoft.com> wrote in message
news:FD9CB3DF-315A-4AA7-81B5-88503B9181FF@.microsoft.com...
> i have setup replication that works fine, after adding some article while
> applying changes, my db went to suspect mode,
> by running following script
> Sp_configure "allow updates", 1
> go
> Reconfigure with override
> GO
> Update sysdatabases set status = 32768 where name = 'criticaldevices'
> go
> Sp_configure "allow updates", 0
> go
> Reconfigure with override
> Sp_configure "allow updates", 1
> go
> Reconfigure with override
> GO
> Update sysdatabases set status = 0 where name = 'criticaldevices'
> go
> Sp_configure "allow updates", 0
> go
> Reconfigure with override
>
> while starting snopshot agent, i got following error
> Could not run BEGIN TRANSACTION in database 'CriticalDevices' because the
> database is in bypass recovery mode.
> Can anyone help me to solve this issue
> thanks
> Kalyan
applying changes, my db went to suspect mode,
by running following script
Sp_configure "allow updates", 1
go
Reconfigure with override
GO
Update sysdatabases set status = 32768 where name = 'criticaldevices'
go
Sp_configure "allow updates", 0
go
Reconfigure with override
Sp_configure "allow updates", 1
go
Reconfigure with override
GO
Update sysdatabases set status = 0 where name = 'criticaldevices'
go
Sp_configure "allow updates", 0
go
Reconfigure with override
while starting snopshot agent, i got following error
Could not run BEGIN TRANSACTION in database 'CriticalDevices' because the
database is in bypass recovery mode.
Can anyone help me to solve this issue
thanks
Kalyan
did you follow all of the steps listed here?
http://groups.google.com/group/micro...e=source&hl=en
Hilary Cotter
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
"Kalyan" <Kalyan@.discussions.microsoft.com> wrote in message
news:FD9CB3DF-315A-4AA7-81B5-88503B9181FF@.microsoft.com...
> i have setup replication that works fine, after adding some article while
> applying changes, my db went to suspect mode,
> by running following script
> Sp_configure "allow updates", 1
> go
> Reconfigure with override
> GO
> Update sysdatabases set status = 32768 where name = 'criticaldevices'
> go
> Sp_configure "allow updates", 0
> go
> Reconfigure with override
> Sp_configure "allow updates", 1
> go
> Reconfigure with override
> GO
> Update sysdatabases set status = 0 where name = 'criticaldevices'
> go
> Sp_configure "allow updates", 0
> go
> Reconfigure with override
>
> while starting snopshot agent, i got following error
> Could not run BEGIN TRANSACTION in database 'CriticalDevices' because the
> database is in bypass recovery mode.
> Can anyone help me to solve this issue
> thanks
> Kalyan
By Pass mode
Dear All,
I have a database of around 166gb and somehow I lost the
log file. Now its not enabling me to do any transaction as
no log file is avaialable.Database is attached.Now when I
create the log file thru DBCC command (DBCC rebuild_log),
it says "database must be put in Bypass recovery mode to
rebuild the log". Pls advice what's that?pls elaborate. Is
this right way to create the log or there is some
alternate option also to work with my database.
Immmediate solution will be highly appreciated.
Rgds
TriveniThat DBCC command is *not* a safe command. It might leave the database in an
indeterminate state. I suggest you restore from the latest database and all
subsequent transaction log backups.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
"Triveni" <anonymous@.discussions.microsoft.com> wrote in message
news:8ee401c4051f$5a7ea1f0$a501280a@.phx.gbl...
> Dear All,
> I have a database of around 166gb and somehow I lost the
> log file. Now its not enabling me to do any transaction as
> no log file is avaialable.Database is attached.Now when I
> create the log file thru DBCC command (DBCC rebuild_log),
> it says "database must be put in Bypass recovery mode to
> rebuild the log". Pls advice what's that?pls elaborate. Is
> this right way to create the log or there is some
> alternate option also to work with my database.
> Immmediate solution will be highly appreciated.
> Rgds
> Triveni|||The worst part is that, we do not have backup of this
database. pls suggest.
Rgds
Triveni
>--Original Message--
>That DBCC command is *not* a safe command. It might leave
the database in an
>indeterminate state. I suggest you restore from the
latest database and all
>subsequent transaction log backups.
>--
>Tibor Karaszi, SQL Server MVP
>http://www.karaszi.com/sqlserver/default.asp
>
>"Triveni" <anonymous@.discussions.microsoft.com> wrote in
message
>news:8ee401c4051f$5a7ea1f0$a501280a@.phx.gbl...
as
I
rebuild_log),
Is
>
>.
>|||I suggest you open a case with MS Support and have then help you through
this process. They might be able to get back the database and they might
even be able to assist in checking what damage is caused as DBCC REBUILD_LOG
is *not* a safe operation.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
"Triveni" <anonymous@.discussions.microsoft.com> wrote in message
news:915e01c4053b$8b1958c0$a501280a@.phx.gbl...
> The worst part is that, we do not have backup of this
> database. pls suggest.
> Rgds
> Triveni
>
>
> the database in an
> latest database and all
> message
> as
> I
> rebuild_log),
> Is
I have a database of around 166gb and somehow I lost the
log file. Now its not enabling me to do any transaction as
no log file is avaialable.Database is attached.Now when I
create the log file thru DBCC command (DBCC rebuild_log),
it says "database must be put in Bypass recovery mode to
rebuild the log". Pls advice what's that?pls elaborate. Is
this right way to create the log or there is some
alternate option also to work with my database.
Immmediate solution will be highly appreciated.
Rgds
TriveniThat DBCC command is *not* a safe command. It might leave the database in an
indeterminate state. I suggest you restore from the latest database and all
subsequent transaction log backups.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
"Triveni" <anonymous@.discussions.microsoft.com> wrote in message
news:8ee401c4051f$5a7ea1f0$a501280a@.phx.gbl...
> Dear All,
> I have a database of around 166gb and somehow I lost the
> log file. Now its not enabling me to do any transaction as
> no log file is avaialable.Database is attached.Now when I
> create the log file thru DBCC command (DBCC rebuild_log),
> it says "database must be put in Bypass recovery mode to
> rebuild the log". Pls advice what's that?pls elaborate. Is
> this right way to create the log or there is some
> alternate option also to work with my database.
> Immmediate solution will be highly appreciated.
> Rgds
> Triveni|||The worst part is that, we do not have backup of this
database. pls suggest.
Rgds
Triveni
>--Original Message--
>That DBCC command is *not* a safe command. It might leave
the database in an
>indeterminate state. I suggest you restore from the
latest database and all
>subsequent transaction log backups.
>--
>Tibor Karaszi, SQL Server MVP
>http://www.karaszi.com/sqlserver/default.asp
>
>"Triveni" <anonymous@.discussions.microsoft.com> wrote in
message
>news:8ee401c4051f$5a7ea1f0$a501280a@.phx.gbl...
as
I
rebuild_log),
Is
>
>.
>|||I suggest you open a case with MS Support and have then help you through
this process. They might be able to get back the database and they might
even be able to assist in checking what damage is caused as DBCC REBUILD_LOG
is *not* a safe operation.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
"Triveni" <anonymous@.discussions.microsoft.com> wrote in message
news:915e01c4053b$8b1958c0$a501280a@.phx.gbl...
> The worst part is that, we do not have backup of this
> database. pls suggest.
> Rgds
> Triveni
>
>
> the database in an
> latest database and all
> message
> as
> I
> rebuild_log),
> Is
Subscribe to:
Posts (Atom)