Showing posts with label calculated. Show all posts
Showing posts with label calculated. Show all posts

Friday, March 9, 2012

how is the predict probability calculated in SQL Server 2005 algorithms?

Hi, all,

I am wondering how is the predict probablity calculated in SQL Server 2005 algorithms? And what dose it stand for?

Any helpful answer in detail is very appreciated.

Thanks a lot.

In general PredictProbability means that the number of cases like the current input had an "x" probability of being the predicted state.

Specifically, it is calculated differently for each algorithm. For decision trees it is fairly simple - it's the probability at the node used for prediction. This is essentially the number of training cases that reached thed node with the predicted state divided by the total number of training cases that reaches the node. The numbers are slightly different than that due to what is called a "prior" - which is a factor acknowleging that all possible states have equal probability given no input, and this factor is carried down throughout the tree. The impact of the prior gets smaller as the amount of evidence (data) increases.

Wednesday, March 7, 2012

How is the 4 GB limit of SQL server express calculated

Hi
I wonder how the 4 GB limit is found.
Is it the size of the datafile only, or does the size also inlcude the
transaction log?
Regards
Kjell Arne Johansen
Kongsberg Maritime as
Hello,
The 4 GB database size limit applies only to data files and not to log (LDF)
files. However, there are no limits to the number of databases
that can be loaded/created to the SQL server instance.
Thanks
Hari
"Kjell Arne Johansen" <KjellArneJohansen@.discussions.microsoft.com> wrote in
message news:620B8D2E-5810-4C05-B168-595EAC94D712@.microsoft.com...
> Hi
> I wonder how the 4 GB limit is found.
> Is it the size of the datafile only, or does the size also inlcude the
> transaction log?
> Regards
> Kjell Arne Johansen
> Kongsberg Maritime as
|||Thank you for your answer.
"Hari Prasad" wrote:

> Hello,
> The 4 GB database size limit applies only to data files and not to log (LDF)
> files. However, there are no limits to the number of databases
> that can be loaded/created to the SQL server instance.
> Thanks
> Hari
> "Kjell Arne Johansen" <KjellArneJohansen@.discussions.microsoft.com> wrote in
> message news:620B8D2E-5810-4C05-B168-595EAC94D712@.microsoft.com...
>
>

how is checksum calculated?

Hi,
I'm looking at using checksum to check for changes in our data warehouse,
and have seen comments on the checksum not always being unique.
Just wanted to know how it is actually calculated to see if it is likely to
get duplicated checksums.
Thanks.
Hello,
CHECKSUM computes a hash value, called the checksum, over its list of
arguments. The hash value is intended for use in building hash indices.
Hash algorithm nature determins that this one way algorithm shall have
different checksum if the keys are changed. However, there is a very small
chance that the checksum will not change.
The following is some information about hash algorithm
http://burtleburtle.net/bob/hash/
Best Regards,
Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
================================================== ===
Business-Critical Phone Support (BCPS) provides you with technical phone
support at no charge during critical LAN outages or "business down"
situations. This benefit is available 24 hours a day, 7 days a week to all
Microsoft technology partners in the United States and Canada.
This and other support options are available here:
BCPS:
https://partner.microsoft.com/US/tec...rview/40010469
Others: https://partner.microsoft.com/US/tec...pportoverview/
If you are outside the United States, please visit our International
Support page:
http://support.microsoft.com/default...national.aspx.
================================================== ===
This posting is provided "AS IS" with no warranties, and confers no rights.
| Thread-Topic: how is checksum calculated?
| thread-index: AcV8QG5hu7Ghfj5iRb2R0h9l4uvyuA==
| X-WBNR-Posting-Host: 202.3.198.20
| From: "=?Utf-8?B?V3JlY2s=?=" <Wreck@.community.nospam>
| Subject: how is checksum calculated?
| Date: Tue, 28 Jun 2005 17:21:02 -0700
| Lines: 10
| Message-ID: <1E91E7F2-9CA2-4ACA-9185-249AAC2BA96E@.microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.sqlserver.datawarehouse
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.sqlserver.datawarehouse:1864
| X-Tomcat-NG: microsoft.public.sqlserver.datawarehouse
|
| Hi,
|
| I'm looking at using checksum to check for changes in our data warehouse,
| and have seen comments on the checksum not always being unique.
|
| Just wanted to know how it is actually calculated to see if it is likely
to
| get duplicated checksums.
|
| Thanks.
|
|
|||Many warehouses go that direction when they can't relay on last mod dates or
primary keys. My general advice is use it but understand that the values in
the DW could be slightly incorrect and do a full refresh of any table built
this way from time to time. I have seen checksums in SQL or otherwise not
find the correct differences. Almost every time I've found that situation
it was due to Nulls.
"Wreck" <Wreck@.community.nospam> wrote in message
news:1E91E7F2-9CA2-4ACA-9185-249AAC2BA96E@.microsoft.com...
> Hi,
> I'm looking at using checksum to check for changes in our data warehouse,
> and have seen comments on the checksum not always being unique.
> Just wanted to know how it is actually calculated to see if it is likely
> to
> get duplicated checksums.
> Thanks.
>
|||Hello Wreck
I totally agree with Danny,
Check Sums are a good solution when last modify date is not available.
But the CHECKSUM() function does not take into account case change for
char values or NULLS.
The BINARY_CHECKSUM() is a better form of the Checksum function. It
will handle Character case change and NULLs.
Have a look at Books Online under: BINARY_CHECKSUM()
Also have a look at the link below for a good overview on using the
checksums in the ETL process.
Best Practices for Using DTS for Business Intelligence Solutions
(updated web version)
http://msdn.microsoft.com/library/de...tbpwithdts.asp
See Section "Data Transformation and Cleansing Approach"
Hope this helps,
Myles Matheson
Data Warehouse Architect
|||Hi Wreck,
many people recommend checksum to detect changes when no other
mechanism is available. To use checksums you must be aware there is
ALWAYS the possibility of a false negative. That is, a row changes but
the checksum is the same. If you can tolerate false negatived by all
means go ahead.
Personally, I prefer to know for sure that all changes have made it to
the DW. And in the DWs I deal with the 'solution' to 'false negatives'
of reloading everything is just not an option.....I even wrote my own
delta generation code to deal with these cases for my
clients......and it even understands nulls which are the bane of
detecting changes between tables in relational databases because where
a = b returns false if a or b are null....because null does not equal
null in set theory though clearly if a field was null yesterday and is
null today it has not changed...
Best Regards
Peter Nolan
|||Thanks for your help guys.
I think I'll try the checksum option and see how it holds up. The other
option is to check each column for changes which shouldn't be too hard to
subsitute if checksum proves unsuitable.
Thanks again,
Wreck.
"Peter Nolan" wrote:

> Hi Wreck,
> many people recommend checksum to detect changes when no other
> mechanism is available. To use checksums you must be aware there is
> ALWAYS the possibility of a false negative. That is, a row changes but
> the checksum is the same. If you can tolerate false negatived by all
> means go ahead.
> Personally, I prefer to know for sure that all changes have made it to
> the DW. And in the DWs I deal with the 'solution' to 'false negatives'
> of reloading everything is just not an option.....I even wrote my own
> delta generation code to deal with these cases for my
> clients......and it even understands nulls which are the bane of
> detecting changes between tables in relational databases because where
> a = b returns false if a or b are null....because null does not equal
> null in set theory though clearly if a field was null yesterday and is
> null today it has not changed...
> Best Regards
> Peter Nolan
>

how is checksum calculated?

Hi,
I'm looking at using checksum to check for changes in our data warehouse,
and have seen comments on the checksum not always being unique.
Just wanted to know how it is actually calculated to see if it is likely to
get duplicated checksums.
Thanks.Hello,
CHECKSUM computes a hash value, called the checksum, over its list of
arguments. The hash value is intended for use in building hash indices.
Hash algorithm nature determins that this one way algorithm shall have
different checksum if the keys are changed. However, there is a very small
chance that the checksum will not change.
The following is some information about hash algorithm
http://burtleburtle.net/bob/hash/
Best Regards,
Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
========================================
=============
Business-Critical Phone Support (BCPS) provides you with technical phone
support at no charge during critical LAN outages or "business down"
situations. This benefit is available 24 hours a day, 7 days a week to all
Microsoft technology partners in the United States and Canada.
This and other support options are available here:
BCPS:
https://partner.microsoft.com/US/te...erview/40010469
Others: https://partner.microsoft.com/US/te...upportoverview/
If you are outside the United States, please visit our International
Support page:
http://support.microsoft.com/defaul...rnational.aspx.
========================================
=============
This posting is provided "AS IS" with no warranties, and confers no rights.
| Thread-Topic: how is checksum calculated?
| thread-index: AcV8QG5hu7Ghfj5iRb2R0h9l4uvyuA==
| X-WBNR-Posting-Host: 202.3.198.20
| From: "examnotes" <Wreck@.community.nospam>
| Subject: how is checksum calculated?
| Date: Tue, 28 Jun 2005 17:21:02 -0700
| Lines: 10
| Message-ID: <1E91E7F2-9CA2-4ACA-9185-249AAC2BA96E@.microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.sqlserver.datawarehouse
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.sqlserver.datawarehouse:1864
| X-Tomcat-NG: microsoft.public.sqlserver.datawarehouse
|
| Hi,
|
| I'm looking at using checksum to check for changes in our data warehouse,
| and have seen comments on the checksum not always being unique.
|
| Just wanted to know how it is actually calculated to see if it is likely
to
| get duplicated checksums.
|
| Thanks.
|
||||Many warehouses go that direction when they can't relay on last mod dates or
primary keys. My general advice is use it but understand that the values in
the DW could be slightly incorrect and do a full refresh of any table built
this way from time to time. I have seen checksums in SQL or otherwise not
find the correct differences. Almost every time I've found that situation
it was due to Nulls.
"Wreck" <Wreck@.community.nospam> wrote in message
news:1E91E7F2-9CA2-4ACA-9185-249AAC2BA96E@.microsoft.com...
> Hi,
> I'm looking at using checksum to check for changes in our data warehouse,
> and have seen comments on the checksum not always being unique.
> Just wanted to know how it is actually calculated to see if it is likely
> to
> get duplicated checksums.
> Thanks.
>|||Hello Wreck
I totally agree with Danny,
Check Sums are a good solution when last modify date is not available.
But the CHECKSUM() function does not take into account case change for
char values or NULLS.
The BINARY_CHECKSUM() is a better form of the Checksum function. It
will handle Character case change and NULLs.
Have a look at Books Online under: BINARY_CHECKSUM()
Also have a look at the link below for a good overview on using the
checksums in the ETL process.
Best Practices for Using DTS for Business Intelligence Solutions
(updated web version)
http://msdn.microsoft.com/library/d...ntbpwithdts.asp
See Section "Data Transformation and Cleansing Approach"
Hope this helps,
Myles Matheson
Data Warehouse Architect|||Hi Wreck,
many people recommend checksum to detect changes when no other
mechanism is available. To use checksums you must be aware there is
ALWAYS the possibility of a false negative. That is, a row changes but
the checksum is the same. If you can tolerate false negatived by all
means go ahead.
Personally, I prefer to know for sure that all changes have made it to
the DW. And in the DWs I deal with the 'solution' to 'false negatives'
of reloading everything is just not an option.....I even wrote my own
delta generation code to deal with these cases for my
clients......and it even understands nulls which are the bane of
detecting changes between tables in relational databases because where
a = b returns false if a or b are null....because null does not equal
null in set theory though clearly if a field was null yesterday and is
null today it has not changed...
Best Regards
Peter Nolan|||Thanks for your help guys.
I think I'll try the checksum option and see how it holds up. The other
option is to check each column for changes which shouldn't be too hard to
subsitute if checksum proves unsuitable.
Thanks again,
Wreck.
"Peter Nolan" wrote:

> Hi Wreck,
> many people recommend checksum to detect changes when no other
> mechanism is available. To use checksums you must be aware there is
> ALWAYS the possibility of a false negative. That is, a row changes but
> the checksum is the same. If you can tolerate false negatived by all
> means go ahead.
> Personally, I prefer to know for sure that all changes have made it to
> the DW. And in the DWs I deal with the 'solution' to 'false negatives'
> of reloading everything is just not an option.....I even wrote my own
> delta generation code to deal with these cases for my
> clients......and it even understands nulls which are the bane of
> detecting changes between tables in relational databases because where
> a = b returns false if a or b are null....because null does not equal
> null in set theory though clearly if a field was null yesterday and is
> null today it has not changed...
> Best Regards
> Peter Nolan
>

How is 4GB Max Database size applied?

Is the 4GB Database size calculated by totalling up the size of all the databases in an instance OR against each individual DB in an instance (e.g. you can have an unlimited number of DB each up to 4GB in size)?
TIA
Antony

Hi Antony,

It is calculated based on individual databases and includes only user data. You can have as many 4 GB database as your HD allows and as is reasonable maintainable within the other Express limits of 1 CPU and 1 GB of memory.

Mike

|||Whats is the size of the other version of sql 2005