Friday, March 30, 2012
scripting
mulitple databases on their respective servers. My question is concerned
with updating the multiple databases to keep the schemas the same. I am
using scripts generate using the Create Script command in Enterprise Manager
to create a script to drop and create all the functions, views and procs and
that works without any problem. My question is how to deal with the tables.
Is there some method for automatically creating a script that will add
missing tables and modify exiiting ones based on the source tables
collection. I don't want to use drop and create as for the functions, etc,
because I will lose all the data in the tables. The database schemas must b
e
the same but the data in each is different. If I have to create the script
by hand, it is just as easy to modify the tables by hand so what I am lookin
g
for is a command that says, "make all the tables the same"
JBJB
http://www.karaszi.com/SQLServer/in...rate_script.asp
"JB" <JB@.discussions.microsoft.com> wrote in message
news:3126220C-6899-4EDB-92C5-F3CB34AC9017@.microsoft.com...
>I am a developer working with an application that requires connections with
> mulitple databases on their respective servers. My question is concerned
> with updating the multiple databases to keep the schemas the same. I am
> using scripts generate using the Create Script command in Enterprise
> Manager
> to create a script to drop and create all the functions, views and procs
> and
> that works without any problem. My question is how to deal with the
> tables.
> Is there some method for automatically creating a script that will add
> missing tables and modify exiiting ones based on the source tables
> collection. I don't want to use drop and create as for the functions,
> etc,
> because I will lose all the data in the tables. The database schemas must
> be
> the same but the data in each is different. If I have to create the
> script
> by hand, it is just as easy to modify the tables by hand so what I am
> looking
> for is a command that says, "make all the tables the same"
>
> --
> JB|||You may find some of the Comparison tools useful. Most of them will compare,
and then create scripts to rectify the differences.
Object Comparison:
AdeptSQL Diff
AlfaAlfa Software - SQL Server Comparison Tool
ApexSQL - SQL Diff
Best SoftTool - SQL DBCompare
e-Dule - DB SynchroComp
PrimeLogics - DataVision 2007
Quest - SchemaCompare
RAC4SQL's QALite (Free)
Red Gate - SQL Compare
SQL Effects Clarity
TASC - SQL Delta
Teratrax Database Compare
TulsaSoft - SQL Examiner
Voltex Data Systems - SQLDBcontrol
XpressApps - sqlXpress Diff
xSQL Software - xSQL Object
Free Tools
RAC4SQL's QALite (Free)
SQL Effects Clarity CE Edition
Arnie Rowland, Ph.D.
Westwood Consulting, Inc
Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous
You can't help someone get up a hill without getting a little closer to the
top yourself.
- H. Norman Schwarzkopf
"JB" <JB@.discussions.microsoft.com> wrote in message
news:3126220C-6899-4EDB-92C5-F3CB34AC9017@.microsoft.com...
>I am a developer working with an application that requires connections with
> mulitple databases on their respective servers. My question is concerned
> with updating the multiple databases to keep the schemas the same. I am
> using scripts generate using the Create Script command in Enterprise
> Manager
> to create a script to drop and create all the functions, views and procs
> and
> that works without any problem. My question is how to deal with the
> tables.
> Is there some method for automatically creating a script that will add
> missing tables and modify exiiting ones based on the source tables
> collection. I don't want to use drop and create as for the functions,
> etc,
> because I will lose all the data in the tables. The database schemas must
> be
> the same but the data in each is different. If I have to create the
> script
> by hand, it is just as easy to modify the tables by hand so what I am
> looking
> for is a command that says, "make all the tables the same"
>
> --
> JB
scripting
mulitple databases on their respective servers. My question is concerned
with updating the multiple databases to keep the schemas the same. I am
using scripts generate using the Create Script command in Enterprise Manager
to create a script to drop and create all the functions, views and procs and
that works without any problem. My question is how to deal with the tables.
Is there some method for automatically creating a script that will add
missing tables and modify exiiting ones based on the source tables
collection. I don't want to use drop and create as for the functions, etc,
because I will lose all the data in the tables. The database schemas must be
the same but the data in each is different. If I have to create the script
by hand, it is just as easy to modify the tables by hand so what I am looking
for is a command that says, "make all the tables the same"
JB
JB
http://www.karaszi.com/SQLServer/info_generate_script.asp
"JB" <JB@.discussions.microsoft.com> wrote in message
news:3126220C-6899-4EDB-92C5-F3CB34AC9017@.microsoft.com...
>I am a developer working with an application that requires connections with
> mulitple databases on their respective servers. My question is concerned
> with updating the multiple databases to keep the schemas the same. I am
> using scripts generate using the Create Script command in Enterprise
> Manager
> to create a script to drop and create all the functions, views and procs
> and
> that works without any problem. My question is how to deal with the
> tables.
> Is there some method for automatically creating a script that will add
> missing tables and modify exiiting ones based on the source tables
> collection. I don't want to use drop and create as for the functions,
> etc,
> because I will lose all the data in the tables. The database schemas must
> be
> the same but the data in each is different. If I have to create the
> script
> by hand, it is just as easy to modify the tables by hand so what I am
> looking
> for is a command that says, "make all the tables the same"
>
> --
> JB
|||You may find some of the Comparison tools useful. Most of them will compare,
and then create scripts to rectify the differences.
Object Comparison:
AdeptSQL Diff
AlfaAlfa Software - SQL Server Comparison Tool
ApexSQL - SQL Diff
Best SoftTool - SQL DBCompare
e-Dule - DB SynchroComp
PrimeLogics - DataVision 2007
Quest - SchemaCompare
RAC4SQL's QALite (Free)
Red Gate - SQL Compare
SQL Effects Clarity
TASC - SQL Delta
Teratrax Database Compare
TulsaSoft - SQL Examiner
Voltex Data Systems - SQLDBcontrol
XpressApps - sqlXpress Diff
xSQL Software - xSQL Object
Free Tools
RAC4SQL's QALite (Free)
SQL Effects Clarity CE Edition
Arnie Rowland, Ph.D.
Westwood Consulting, Inc
Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous
You can't help someone get up a hill without getting a little closer to the
top yourself.
- H. Norman Schwarzkopf
"JB" <JB@.discussions.microsoft.com> wrote in message
news:3126220C-6899-4EDB-92C5-F3CB34AC9017@.microsoft.com...
>I am a developer working with an application that requires connections with
> mulitple databases on their respective servers. My question is concerned
> with updating the multiple databases to keep the schemas the same. I am
> using scripts generate using the Create Script command in Enterprise
> Manager
> to create a script to drop and create all the functions, views and procs
> and
> that works without any problem. My question is how to deal with the
> tables.
> Is there some method for automatically creating a script that will add
> missing tables and modify exiiting ones based on the source tables
> collection. I don't want to use drop and create as for the functions,
> etc,
> because I will lose all the data in the tables. The database schemas must
> be
> the same but the data in each is different. If I have to create the
> script
> by hand, it is just as easy to modify the tables by hand so what I am
> looking
> for is a command that says, "make all the tables the same"
>
> --
> JB
scripting
mulitple databases on their respective servers. My question is concerned
with updating the multiple databases to keep the schemas the same. I am
using scripts generate using the Create Script command in Enterprise Manager
to create a script to drop and create all the functions, views and procs and
that works without any problem. My question is how to deal with the tables.
Is there some method for automatically creating a script that will add
missing tables and modify exiiting ones based on the source tables
collection. I don't want to use drop and create as for the functions, etc,
because I will lose all the data in the tables. The database schemas must be
the same but the data in each is different. If I have to create the script
by hand, it is just as easy to modify the tables by hand so what I am looking
for is a command that says, "make all the tables the same"
--
JBJB
http://www.karaszi.com/SQLServer/info_generate_script.asp
"JB" <JB@.discussions.microsoft.com> wrote in message
news:3126220C-6899-4EDB-92C5-F3CB34AC9017@.microsoft.com...
>I am a developer working with an application that requires connections with
> mulitple databases on their respective servers. My question is concerned
> with updating the multiple databases to keep the schemas the same. I am
> using scripts generate using the Create Script command in Enterprise
> Manager
> to create a script to drop and create all the functions, views and procs
> and
> that works without any problem. My question is how to deal with the
> tables.
> Is there some method for automatically creating a script that will add
> missing tables and modify exiiting ones based on the source tables
> collection. I don't want to use drop and create as for the functions,
> etc,
> because I will lose all the data in the tables. The database schemas must
> be
> the same but the data in each is different. If I have to create the
> script
> by hand, it is just as easy to modify the tables by hand so what I am
> looking
> for is a command that says, "make all the tables the same"
>
> --
> JB|||You may find some of the Comparison tools useful. Most of them will compare,
and then create scripts to rectify the differences.
Object Comparison:
AdeptSQL Diff
AlfaAlfa Software - SQL Server Comparison Tool
ApexSQL - SQL Diff
Best SoftTool - SQL DBCompare
e-Dule - DB SynchroComp
PrimeLogics - DataVision 2007
Quest - SchemaCompare
RAC4SQL's QALite (Free)
Red Gate - SQL Compare
SQL Effects Clarity
TASC - SQL Delta
Teratrax Database Compare
TulsaSoft - SQL Examiner
Voltex Data Systems - SQLDBcontrol
XpressApps - sqlXpress Diff
xSQL Software - xSQL Object
Free Tools
RAC4SQL's QALite (Free)
SQL Effects Clarity CE Edition
Arnie Rowland, Ph.D.
Westwood Consulting, Inc
Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous
You can't help someone get up a hill without getting a little closer to the
top yourself.
- H. Norman Schwarzkopf
"JB" <JB@.discussions.microsoft.com> wrote in message
news:3126220C-6899-4EDB-92C5-F3CB34AC9017@.microsoft.com...
>I am a developer working with an application that requires connections with
> mulitple databases on their respective servers. My question is concerned
> with updating the multiple databases to keep the schemas the same. I am
> using scripts generate using the Create Script command in Enterprise
> Manager
> to create a script to drop and create all the functions, views and procs
> and
> that works without any problem. My question is how to deal with the
> tables.
> Is there some method for automatically creating a script that will add
> missing tables and modify exiiting ones based on the source tables
> collection. I don't want to use drop and create as for the functions,
> etc,
> because I will lose all the data in the tables. The database schemas must
> be
> the same but the data in each is different. If I have to create the
> script
> by hand, it is just as easy to modify the tables by hand so what I am
> looking
> for is a command that says, "make all the tables the same"
>
> --
> JB
Monday, March 26, 2012
Script to peg all CPUs
want to do some load testing, but dont really know how to get my CPUs
pegged. Can someone help ?
I just want to max them out for like a couple of minutes.
And this should work on both 2000/2005
ThanksHi Hassan
Do you want to set the affinity mask using sp_configure? See
http://msdn2.microsoft.com/en-us/library/aa196717(SQL.80).aspx
John
"Hassan" wrote:
> I'd like to get a script/application that would peg all the CPUs. I just
> want to do some load testing, but dont really know how to get my CPUs
> pegged. Can someone help ?
> I just want to max them out for like a couple of minutes.
> And this should work on both 2000/2005
> Thanks
>
>|||No, I dont want to set the affinity mask. I just want to run a SQL that will
have my CPUs at 100% processor time.
This is for some testing..
"John Bell" <jbellnewsposts@.hotmail.com> wrote in message
news:E58A3C20-0813-443F-A773-F4B721363D1A@.microsoft.com...[vbcol=seagreen]
> Hi Hassan
> Do you want to set the affinity mask using sp_configure? See
> http://msdn2.microsoft.com/en-us/library/aa196717(SQL.80).aspx
> John
> "Hassan" wrote:
>|||Hi
I am not sure why SQL Server would have this inbuilt? Try dropping your
indexes and re-running a trace using multiple threads.
John
"Hassan" wrote:
> No, I dont want to set the affinity mask. I just want to run a SQL that wi
ll
> have my CPUs at 100% processor time.
> This is for some testing..
> "John Bell" <jbellnewsposts@.hotmail.com> wrote in message
> news:E58A3C20-0813-443F-A773-F4B721363D1A@.microsoft.com...
>
>
Script to peg all CPUs
want to do some load testing, but dont really know how to get my CPUs
pegged. Can someone help ?
I just want to max them out for like a couple of minutes.
And this should work on both 2000/2005
Thanks
Hi Hassan
Do you want to set the affinity mask using sp_configure? See
http://msdn2.microsoft.com/en-us/library/aa196717(SQL.80).aspx
John
"Hassan" wrote:
> I'd like to get a script/application that would peg all the CPUs. I just
> want to do some load testing, but dont really know how to get my CPUs
> pegged. Can someone help ?
> I just want to max them out for like a couple of minutes.
> And this should work on both 2000/2005
> Thanks
>
>
|||No, I dont want to set the affinity mask. I just want to run a SQL that will
have my CPUs at 100% processor time.
This is for some testing..
"John Bell" <jbellnewsposts@.hotmail.com> wrote in message
news:E58A3C20-0813-443F-A773-F4B721363D1A@.microsoft.com...[vbcol=seagreen]
> Hi Hassan
> Do you want to set the affinity mask using sp_configure? See
> http://msdn2.microsoft.com/en-us/library/aa196717(SQL.80).aspx
> John
> "Hassan" wrote:
|||Hi
I am not sure why SQL Server would have this inbuilt? Try dropping your
indexes and re-running a trace using multiple threads.
John
"Hassan" wrote:
> No, I dont want to set the affinity mask. I just want to run a SQL that will
> have my CPUs at 100% processor time.
> This is for some testing..
> "John Bell" <jbellnewsposts@.hotmail.com> wrote in message
> news:E58A3C20-0813-443F-A773-F4B721363D1A@.microsoft.com...
>
>
Script to peg all CPUs
want to do some load testing, but dont really know how to get my CPUs
pegged. Can someone help ?
I just want to max them out for like a couple of minutes.
And this should work on both 2000/2005
ThanksNo, I dont want to set the affinity mask. I just want to run a SQL that will
have my CPUs at 100% processor time.
This is for some testing..
"John Bell" <jbellnewsposts@.hotmail.com> wrote in message
news:E58A3C20-0813-443F-A773-F4B721363D1A@.microsoft.com...
> Hi Hassan
> Do you want to set the affinity mask using sp_configure? See
> http://msdn2.microsoft.com/en-us/library/aa196717(SQL.80).aspx
> John
> "Hassan" wrote:
>> I'd like to get a script/application that would peg all the CPUs. I just
>> want to do some load testing, but dont really know how to get my CPUs
>> pegged. Can someone help ?
>> I just want to max them out for like a couple of minutes.
>> And this should work on both 2000/2005
>> Thanks
>>
Saturday, February 25, 2012
SCRIPT
I am very familiar with insert statements, but how does a
value get passed for a user name and password from either
a web or windows application i.e
A simple insert statement would be
Insert into Table1
(username,password)values('bob','password')
but if you do not know the values of the username and
password are going to be then what would the query look
like.
So if I plan to make my password banana when I log onto
the application how would the script look like then,
would you leave the '' where banana would be as blank.
Insert into Table1
(username,password)values('bob','')
Thanks
Bob
BOB wrote:
> Hi
> I am very familiar with insert statements, but how does a
> value get passed for a user name and password from either
> a web or windows application i.e
> A simple insert statement would be
> Insert into Table1
> (username,password)values('bob','password')
> but if you do not know the values of the username and
> password are going to be then what would the query look
> like.
> So if I plan to make my password banana when I log onto
> the application how would the script look like then,
> would you leave the '' where banana would be as blank.
> Insert into Table1
> (username,password)values('bob','')
>
> Thanks
> Bob
First, we might enquire why you are storing user names and passwords in
a table. Can you rely on SQL Server's security mechanisms instead?
In general, though, is you have an attribute (column) in a table that
may contain unknown data, you allow NULL values. And you insert a NULL
or leave the column out of the insert operation altogether.
For web-based security, it's best to use Windows Authentication. Then no
passwords need to be sent at all. Some web servers may use hard-coded
connection strings to the server, but it's better to use Windows
Authentication.
Can you provide more detail about what you're trying to accomplish?
David Gugick
Imceda Software
www.imceda.com
scramble password
I have a fairly simple question (hopefully simple anyway). I have a table
that has basic application user data: name, address, city, email, password.
I now have a requirement to in bulk take the password and encrypt them. The
y
have already given me the function name to use: ToBase64Sting().
Here is the question; how can I run the password field into this function in
a stored procedure? I am not familier with this function but have done some
reading. I suspect I would just place the scrambled password into a second
field and delete the original, then rename the field. Any suggestions?update YourTable
set password = dbo.ToBase64Sting(password)
try doing this first and look at the the 2 fields
select password ,dbo.ToBase64Sting(password ) from YourTable
http://pixsells.blogspot.com
"Rich" wrote:
> Hello group,
> I have a fairly simple question (hopefully simple anyway). I have a table
> that has basic application user data: name, address, city, email, password
.
> I now have a requirement to in bulk take the password and encrypt them. T
hey
> have already given me the function name to use: ToBase64Sting().
> Here is the question; how can I run the password field into this function
in
> a stored procedure? I am not familier with this function but have done so
me
> reading. I suspect I would just place the scrambled password into a secon
d
> field and delete the original, then rename the field. Any suggestions?|||Rich wrote:
> Hello group,
> I have a fairly simple question (hopefully simple anyway). I have a
> table that has basic application user data: name, address, city,
> email, password. I now have a requirement to in bulk take the
> password and encrypt them. They have already given me the function
> name to use: ToBase64Sting().
> Here is the question; how can I run the password field into this
> function in a stored procedure? I am not familier with this function
> but have done some reading. I suspect I would just place the
> scrambled password into a second field and delete the original, then
> rename the field. Any suggestions?
Is the function they gave you a SQL Server callable function? If so, you
can just update the table directly, assuming the return value from the
function (which is likely just ASCII) is compatible with the data type
you are using for the column in the table. Something like:
Update
dbo.MyTable
Set
Password = dbo.ToBase64String(Password)
BTW, why are you storing passwords in the database? Base64 is not an
encryption scheme. It is an encoding scheme, used mainly by email system
to send attachments. Base64 is not secure and anyone with internet
access will be able to turn that Base64 value into the original
password. So, you may want to reconsider storing passwords in the
database.
David Gugick
Quest Software
www.imceda.com
www.quest.com|||Hello David,
see http://support.microsoft.com/defaul...kb;en-us;317535
I thought that this function would be available from the SQL Server however
this function does not appear to be part of TSQL. I tried the code fragment
you posted and I am thinking this will not work. This functionis something
the my web developers I work with are using so you comment about being secur
e
over the web scares me...
Rich
"David Gugick" wrote:
> Rich wrote:
> Is the function they gave you a SQL Server callable function? If so, you
> can just update the table directly, assuming the return value from the
> function (which is likely just ASCII) is compatible with the data type
> you are using for the column in the table. Something like:
> Update
> dbo.MyTable
> Set
> Password = dbo.ToBase64String(Password)
> BTW, why are you storing passwords in the database? Base64 is not an
> encryption scheme. It is an encoding scheme, used mainly by email system
> to send attachments. Base64 is not secure and anyone with internet
> access will be able to turn that Base64 value into the original
> password. So, you may want to reconsider storing passwords in the
> database.
>
> --
> David Gugick
> Quest Software
> www.imceda.com
> www.quest.com
>|||I see what you are doing we used to do the same
You use .NET encryption the function you mentioned is a .NET function
Have one of your web guys write a script to loop through the table and
update the password with the encrypted string
There is no way you can do this in SQL server 2000 (as far as I know that is
)
http://sqlservercode.blogspot.com/
"Rich" wrote:
> Hello David,
> see http://support.microsoft.com/defaul...kb;en-us;317535
> I thought that this function would be available from the SQL Server howeve
r
> this function does not appear to be part of TSQL. I tried the code fragme
nt
> you posted and I am thinking this will not work. This functionis somethin
g
> the my web developers I work with are using so you comment about being sec
ure
> over the web scares me...
> Rich
> "David Gugick" wrote:
>|||Hello SQL,
yes, yes, yes, you understand! I just need a loop to update that field with
that function they suggested! The problem is I will end up make the "loop".
I am looking at making this looper in MSAccess, connect to the table, run th
e
loop and be done with this. I just need to understand if this is a standard
VB function that I can drop the field into the function and let the thing
return the encrypted password.
Rich
"SQL" wrote:
> I see what you are doing we used to do the same
> You use .NET encryption the function you mentioned is a .NET function
> Have one of your web guys write a script to loop through the table and
> update the password with the encrypted string
> There is no way you can do this in SQL server 2000 (as far as I know that
is)
> http://sqlservercode.blogspot.com/
>
> "Rich" wrote:
>|||I don't know if MS Access will work
We used C# ASP.NET but I was not involved with this process
I don't know if MS Access can access those functions since they are .NET
specific
try one of the .NET newsgroups for this question
http://sqlservercode.blogspot.com/
"Rich" wrote:
> Hello SQL,
> yes, yes, yes, you understand! I just need a loop to update that field wi
th
> that function they suggested! The problem is I will end up make the "loop
".
> I am looking at making this looper in MSAccess, connect to the table, run
the
> loop and be done with this. I just need to understand if this is a standa
rd
> VB function that I can drop the field into the function and let the thing
> return the encrypted password.
> Rich
> "SQL" wrote:
>|||Store a hash of the password not the password itself. Hash the input and
compare both hashes to determine if they are the same. There are some
undocumented hash functions in SQL (don't remember the names) but you really
should hash it then send it to the server for comparison rather than send
the plain text password across the wire.
Derek Davis
ddavis76@.gmail.com
"SQL" <SQL@.discussions.microsoft.com> wrote in message
news:F32DD3BB-A829-456F-AF2A-18AA6D1FEEDB@.microsoft.com...
>I don't know if MS Access will work
> We used C# ASP.NET but I was not involved with this process
> I don't know if MS Access can access those functions since they are .NET
> specific
> try one of the .NET newsgroups for this question
> http://sqlservercode.blogspot.com/
>
> "Rich" wrote:
>
Scorecard accelerator. How the score value is calculated?
I want to know what is the rule behind the score calculated value in the
scorecard accelerator application.
I've a satisfaction value (which is a %) of 80%; my target is 85%
Score = 75%'
any idea?
thanks,
Jerome.Hi - did you ever get your answer to this? I'm trying to figure it out
as well.
Thanks,
Dean
J=E9j=E9 wrote:
> Hi,
> I want to know what is the rule behind the score calculated value in
the
> scorecard accelerator application.
> I've a satisfaction value (which is a %) of 80%; my target is 85%
> Score =3D 75%'
>=20
> any idea?
>=20
> thanks,
>=20
> Jerome.|||look at the private dedicated newsgroup for the office scorecard
accelerator.
But, to resume... the complete formula is explained in the online help ;-)
p_overview.htm" target="_blank">http://localhost/sites/ScorecardDev...
p_overview.htm
To resume, the score is evaluated by evaluating the position of the
normalized value into the bands. So, for example, if you have a 2 band
indicator with boundaries set like this:
0$ - 800 000$ - 1 000 000$
If your value is 500 000$ the score is not 50% but 31.25% (if there is no
error in my formula ;))
a score of 50% is 800K$ (which is exactly the middle band)
For the 500 K$ value --> you are in the first band
500 / 800 = 0.625 --> relative position of the value in the first band
Because you have 2 bands only each band = 50%
so...
50% * 0.625 = 31.25%
A value of 900K$ give you a score of 75%:
900K4 give you the second band.
(900 - 800) / (1000 - 800) = 100 / 200 = 0.5
50% * 0.5 = 25%
The lower band = 50% so the final score is:
50% (position of the lower band) + 25% (relative position in the band) = 75%
Well... read the only help, the re is beautyfull pictures !
"Dean" <dfurness@.quilogy.com> wrote in message
news:1104984835.007747.223610@.c13g2000cwb.googlegroups.com...
Hi - did you ever get your answer to this? I'm trying to figure it out
as well.
Thanks,
Dean
Jj wrote:
> Hi,
> I want to know what is the rule behind the score calculated value in
the
> scorecard accelerator application.
> I've a satisfaction value (which is a %) of 80%; my target is 85%
> Score = 75%'
> any idea?
> thanks,
> Jerome.
Scorecard accelerator. How the score value is calculated?
I want to know what is the rule behind the score calculated value in the
scorecard accelerator application.
I've a satisfaction value (which is a %) of 80%; my target is 85%
Score = 75%?
any idea?
thanks,
Jerome.
Hi - did you ever get your answer to this? I'm trying to figure it out
as well.
Thanks,
Dean
J=E9j=E9 wrote:
> Hi,
> I want to know what is the rule behind the score calculated value in
the
> scorecard accelerator application.
> I've a satisfaction value (which is a %) of 80%; my target is 85%
> Score =3D 75%?
>=20
> any idea?
>=20
> thanks,
>=20
> Jerome.
|||look at the private dedicated newsgroup for the office scorecard
accelerator.
But, to resume... the complete formula is explained in the online help ;-)
http://localhost/sites/ScorecardDeve...p_overview.htm
To resume, the score is evaluated by evaluating the position of the
normalized value into the bands. So, for example, if you have a 2 band
indicator with boundaries set like this:
0$ - 800 000$ - 1 000 000$
If your value is 500 000$ the score is not 50% but 31.25% (if there is no
error in my formula ;))
a score of 50% is 800K$ (which is exactly the middle band)
For the 500 K$ value --> you are in the first band
500 / 800 = 0.625 --> relative position of the value in the first band
Because you have 2 bands only each band = 50%
so...
50% * 0.625 = 31.25%
A value of 900K$ give you a score of 75%:
900K4 give you the second band.
(900 - 800) / (1000 - 800) = 100 / 200 = 0.5
50% * 0.5 = 25%
The lower band = 50% so the final score is:
50% (position of the lower band) + 25% (relative position in the band) = 75%
Well... read the only help, the re is beautyfull pictures !
"Dean" <dfurness@.quilogy.com> wrote in message
news:1104984835.007747.223610@.c13g2000cwb.googlegr oups.com...
Hi - did you ever get your answer to this? I'm trying to figure it out
as well.
Thanks,
Dean
Jj wrote:
> Hi,
> I want to know what is the rule behind the score calculated value in
the
> scorecard accelerator application.
> I've a satisfaction value (which is a %) of 80%; my target is 85%
> Score = 75%?
> any idea?
> thanks,
> Jerome.
Scoped calulated measures for unrelated dimensions
Hi,
I am not sure if this is a correct way to design this,
Here is my scenario:
We are migrating an existing databwarehouse application from vb, which used to pull out records using the criteria provided in the input screen. The input conditions are many and multiple selections and combinations constitute the final data that is returned in excel format.
Most of the input conditions specified are filters or slicing of data, which we have modelled as dimensions, and they were existing tables in the database. other filters for dicing the measures which is modelled as the fact were also existing tables.
There are some input conditions that are not dimensions at all, meaning there are no tables which exists for them.
One for example, a collection of 4 values (A,B,C,D) , when A is selected the output excel comes in a paticular format, with calculations specific to a paticular region. and so on for B,C,D.etc
1. Now if I model this as a dimension in ssas 2005, I dont have related fact data for this. what should I do?
2. Anyway , I have created a dimension in ssas 2005 that contains this data. I now want to create calculations (either named or calc measures) that dynamically have formula x+y if the browsed value/queried value of the unrelated dimension is A and a different formula if the viewed dimensiion value is B,etc
meaning I want to have a dynamic calculated measure that changes its formula based on the unrelated dimension that is used in the query's row or column
Is this possible? is this the correct way to model this problem?
Regards
Yes, it is possible. The very related example how to do it - is the Time Intelligence Wizard. When you run it, it modifies DSV (you don't even need to create artificial table for A,B,C and D !) to add such factless attribute members, and then in MDX Script it assigns to them formulas. I.e., you MDX Script would look something like
ArtificialAttribute.A = formulaforA;
ArtificialAttribute.B = formulaforY;
...
etc.
|||On this note, can I ask you a question.
Isn't using time intelligence an expensive operation during querying?
Rgds
Hari
|||Sorry, but this question isn't posed in a way that it is possible to answer. It's like asking "Isn't running SQL queries expensive ?". And the answer to this question is also unrelated to the original problem.
Scope of License, SQL Server 2005 Express
databases.
Actually, it spread its data over several servers, each one with
several dozens of databases each. There's just one single
server/database that acts as a root directory of where the information
(server/database) is stored.
Someone pointed me in other place, that I might be violating the scope
of license respecting this:
4. SCOPE OF LICENSE. The software is licensed, not sold. This
agreement only gives you some rights to use the software. blah, blah,
blahblah, blah, blah
* disclose the results of any benchmark blah, blah, blah
* work around any technical limitations in the software;
<<<<--This is the point!!
Do you think by this design I am workarounding the technical
limitations of the software !?
I thought that section was refering to something like hacking or
cracking the software, but not to a clever design ...
What do you think ?Its questionable if the design you described is really clever. But I
guess, the sentence of MS is just about telling that you are not
allowed to break the limitation in terms of hacking the software.
HTH, Jens K. Suessmeyer.
http://www.sqlserver20095.de
--|||Thanks for your opinion about the terms of the software.
Respecting how clever or not, what potential problems do you see with
it ?
Or what would you do with the need of storage 2TB without budget other
than renting servers? mysql ?
Regards,
Jens wrote:
> Its questionable if the design you described is really clever. But I
> guess, the sentence of MS is just about telling that you are not
> allowed to break the limitation in terms of hacking the software.
>
> HTH, Jens K. Suessmeyer.
> --
> http://www.sqlserver20095.de
> --|||craigkenisston@.hotmail.com wrote:
> Thanks for your opinion about the terms of the software.
> Respecting how clever or not, what potential problems do you see with
> it ?
> Or what would you do with the need of storage 2TB without budget other
> than renting servers? mysql ?
>
craigkenisston@.hotmail.com wrote:
> Thanks for your opinion about the terms of the software.
> Respecting how clever or not, what potential problems do you see with
> it ?
> Or what would you do with the need of storage 2TB without budget other
> than renting servers? mysql ?
Renting servers won't get you far. Not unless you plan to develop,
administer and operate the system for free.
Apparently you don't have a budget for software, perhaps because your
budget holder is naive enough to think that "free" software must cost
less than software you have to pay for. Maybe you are about to prove
how wrong he is. Surely the cost of creating and supporting 500+
databases (2TB/4GB) and multiple servers will far exceed the cost of a
server licence (Workgroup Edition starts at around $700). I suspect the
1GB memory constraint of Express Edition might also become a problem
for you. Of course I can't say whether you are right or wrong, much
less propose alternatives because I know nothing of your business or
your requirements.
David Portas, SQL Server MVP
Whenever possible please post enough code to reproduce your problem.
Including CREATE TABLE and INSERT statements usually helps.
State what version of SQL Server you are using and specify the content
of any error messages.
SQL Server Books Online:
http://msdn2.microsoft.com/library/ms130214(en-US,SQL.90).aspx
--|||A lot of people use multiple databases to get around the 4GB limit and as
far as I'm aware that doesn't violate the license. You're not exceeding the
limit that the license specifies, you're just scaling out by writing some
front end code.
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
<craigkenisston@.hotmail.com> wrote in message
news:1158866031.368894.280280@.h48g2000cwc.googlegroups.com...
> Thanks for your opinion about the terms of the software.
> Respecting how clever or not, what potential problems do you see with
> it ?
> Or what would you do with the need of storage 2TB without budget other
> than renting servers? mysql ?
> Regards,
>
> Jens wrote:
>|||Thanks for clarifying this !
Roger Wolter[MSFT] wrote:
> A lot of people use multiple databases to get around the 4GB limit and as
> far as I'm aware that doesn't violate the license. You're not exceeding t
he
> limit that the license specifies, you're just scaling out by writing some
> front end code.
>|||David:
Thanks a lot for your comment. You're right we may be are completely
wrong and the memory limitation is a big show stopper. Put 60 DB of 4Gb
each on on a 250GB Server was the idea.
Now, I have to admit that I don't understans and never understood the
SQL Server license. The workgroup edition or the server + CALs licenses
are unexpensive.
But all this data is to power a website. As far as I remember, I need
to get another kind of license, the expensive one, right ?
Regards,
> Apparently you don't have a budget for software, perhaps because your
> budget holder is naive enough to think that "free" software must cost
> less than software you have to pay for. Maybe you are about to prove
> how wrong he is. Surely the cost of creating and supporting 500+
> databases (2TB/4GB) and multiple servers will far exceed the cost of a
> server licence (Workgroup Edition starts at around $700). I suspect the
> 1GB memory constraint of Express Edition might also become a problem
> for you.|||On 21 Sep 2006 12:13:51 -0700, craigkenisston@.hotmail.com wrote:
>Thanks for your opinion about the terms of the software.
Hi craigkenisston,
<IANAL> I agree with Jens' assessment. However, if you really want to be
sure, check with a MS representative. </IANAL>
I once saw a description on Internet that detailed how to use a hex
editor to change some bytes in an MSDE executable to overcome the 5
concurrent workload limit - now THAT would be a violation of the scope
of license!!
>Respecting how clever or not, what potential problems do you see with
>it ?
* Slowness because data has to travel across the network from server to
server.
* More slowness because it's hard for the SQL optimizer to decide which
server is best equipped to execute a distributed query.
* Very complicated backup and recovery scenario's. It's impossible to
backup all databases and all servers on the exact same moment, so if you
ever need to restore, your databases and server will be out of synch and
you'll have a helll of a job restoring everything into a consistant
state.
* Extra complicated application code
>Or what would you do with the need of storage 2TB without budget other
>than renting servers? mysql ?
Even with the current pricing of hardware, I am surprised to read that
you don't have budget for a SQL Server license whereas you apparently do
have budget for "several servers", hard disks to store 2TB, backup media
to hold the same amount of data (you *DO* have a good backup strategy, I
hope - as compared to the cost of _losing_ 2TB of data, the price for a
SQL Server license is really peanuts...)
Hugo Kornelis, SQL Server MVP|||Data is redundancy in a RAID-like fashion. I can lost a server and the
system still up and running !
So
> * Slowness because data has to travel across the network from server to
> server.
Well, actually, more than going from server to server, it simply
implicates two queries, one to the allocation database and then another
to get the data from the source.
> * More slowness because it's hard for the SQL optimizer to decide which
> server is best equipped to execute a distributed query.
Sql Optimizer don't need to know where to look for data. It is not a
distribuited query, the Express edition don't have that capability ;).
I'll look for where the data is and then look for the data itself.
> * Very complicated backup and recovery scenario's.
We were not planning to tape or NAS backup. We were(are?) going to
setup full mirors of the system and it will help to serve more clients
request as well.
> * Extra complicated application code
Yes, totally agree.
> Even with the current pricing of hardware, I am surprised to read that
> you don't have budget for a SQL Server license whereas you apparently do
> have budget for "several servers",
The software is really database independent using full and pure SQL-92.
I think I can switch to mysql with a day of work. It is just that we
don't want to use mysql for "religious" reasons.
Now, what do you think?|||On 21 Sep 2006 13:43:57 -0700, craigkenisston@.hotmail.com wrote:
>But all this data is to power a website. As far as I remember, I need
>to get another kind of license, the expensive one, right ?
Hi craigkenisston,
Since a web site can have virtuallly unlimited clients accessing it,
you'll need to go for "per-processor" licensing.
Prices start at $3,899 for a single-processor license with Workgroup
Edition. (And since actual sockets are counted for the license, you can
stick a dual-core processor in the machine and have the additional power
of a second core without additional cost).
Compared to the prices of "several" computers, each with an OS license,
you'll probably save money.
Hugo Kornelis, SQL Server MVP
Tuesday, February 21, 2012
SCOPE_IDENTITY() vs. @@IDENTITY
If I do the INSERT followed by a "SELECT @.@.IDENTITY" on the same connection, it works correctly.
If I use SCOPE_IDENTITY() instead, it returns NULL. I use SCOPE_IDENTITY on a variety of other occassions and it works fine. Why would this be? I thought SCOPE_IDENTITY() was the preferred replacement to @.@.IDENTITY.
I guess what I have is satisfactory but this was frustrating and I want to know why.
This is on SQL Server 2000 Standard edition with version SP3a + hot fixeshai roger,
SCOPE_IDENTITY and @.@.IDENTITY will return last identity values generated in any table in the current session. However, SCOPE_IDENTITY returns values inserted only within the current scope. @.@.IDENTITY is not limited to a specific scope.
This is the example given in BOL
Suppose if you have two tables, T1 and T2, and an INSERT trigger defined on T1. When a row is inserted to T1, the trigger fires and inserts a row in T2. This scenario illustrates two scopes: the insert on T1, and the insert on T2 as a result of the trigger.
Assuming that both T1 and T2 have IDENTITY columns, @.@.IDENTITY and SCOPE_IDENTITY will return different values at the end of an INSERT statement on T1.
@.@.IDENTITY will return the last IDENTITY column value inserted across any scope in the current session, which is the value inserted in T2.
SCOPE_IDENTITY() will return the IDENTITY value inserted in T1, which was the last INSERT that occurred in the same scope. The SCOPE_IDENTITY() function will return the NULL value if the function is invoked before any insert statements into an identity column occur in the scope.
Hope this relives u of ur frustration|||Yes, I read BOL and understand the documented theoretical and conceptual differences between the two. However, those differences don't apply to my situation.
There is only one thread, one process, one identity value, and one table involved. There are no triggers or functions or stored procs involved. It's a simple INSERT/get ID situation. And @.@.IDENTITY works and SCOPE_IDENTITY doesn't work which just doesn't make any sense according to what I've read.
SCOPE_IDENTITY with ASP
In the first table, the ASP inserts just 1 row and retrieves the
primary key of the new row using SCOPE_IDENTITY. It then uses that
primary key in the column of a second table (foreign key) to insert
many rows.
What I'm seeing is an intermittent problem where the foreign key in the
second table is not what it should be. I think the problem may be due
to the fact that the insert into the first table and the calling of
SCOPE_IDENTITY are done in 2 separate ASP statements with some ASP code
in between.
Is it possible that 2 users may be calling my ASP page at the same time
and causing a concurrency problem due to the INSERT and the
SCOPE_IDENTITY being done in 2 different SQL statements? I read that
SCOPE_IDENTITY always returns the last identity value generated from
"the current connection", so I thought that would mean that it wouldn't
get messed up by another ASP request. But now I'm thinking that
perhaps ASP uses connection pooling which could mean that 2 users could
be sharing the same connection which would cause this concurrency
issue.
Does anyone know if my theory of what's wrong is plausible?hmm.. you got me here
Cowly the Game player
Please click on my links
http://spacefed.com
http://gc.gamestotal.org
http://uc.gamestotal.org
http://aw.gamestotal.org
http://www.gamestotal.org
http://3700ad.gamestotal.com
http://www.spacefederation.net
http://www.gamestotal.org/news/
http://ballmonster.gamestotal.com
http://www.spacefederation.net/manual/
http://gc.gamestotal.org/i.cfm?p=aboutgc
http://uc.gamestotal.org/i.cfm?p=aboutgc
http://www.gamestotal.org/corp/
http://www.gamestotal.org/strategygames/|||"Larry" <larry_grant_dc@.hotmail.com> wrote in message
news:1114610604.033965.138570@.o13g2000cwo.googlegr oups.com...
>I am seeing a problem with an ASP application, where I have 2 tables.
> In the first table, the ASP inserts just 1 row and retrieves the
> primary key of the new row using SCOPE_IDENTITY. It then uses that
> primary key in the column of a second table (foreign key) to insert
> many rows.
> What I'm seeing is an intermittent problem where the foreign key in the
> second table is not what it should be. I think the problem may be due
> to the fact that the insert into the first table and the calling of
> SCOPE_IDENTITY are done in 2 separate ASP statements with some ASP code
> in between.
> Is it possible that 2 users may be calling my ASP page at the same time
> and causing a concurrency problem due to the INSERT and the
> SCOPE_IDENTITY being done in 2 different SQL statements? I read that
> SCOPE_IDENTITY always returns the last identity value generated from
> "the current connection", so I thought that would mean that it wouldn't
> get messed up by another ASP request. But now I'm thinking that
> perhaps ASP uses connection pooling which could mean that 2 users could
> be sharing the same connection which would cause this concurrency
> issue.
> Does anyone know if my theory of what's wrong is plausible?
You don't mention if you're using stored procedures, but your description
seems to suggest you aren't. SCOPE_IDENTITY() returns the last value
inserted "within the current scope" - if you do your INSERTs in a stored
proc, then the proc itself is the scope, so there is no problem with
concurrency. But if you're executing each SQL statement directly, then there
could be a concurrency issue because all statements using the same
connection would share the same scope.
Apart from this issue, using stored procedures is generally a good idea, for
a number of security and performance reasons:
http://www.sommarskog.se/dynamic_sql.html#Why_SP
Simon|||I am not using stored procs.
I still have a question about your statement "there could be a
concurrency issue because all statements using the same connection
would share the same scope".
The connection is created within my ASP page. If several users call
the ASP page at the same time, is that considered the "same connection"
or different connections?|||"Larry" <larry_grant_dc@.hotmail.com> wrote in message
news:1114627612.035136.42880@.z14g2000cwz.googlegro ups.com...
>I am not using stored procs.
> I still have a question about your statement "there could be a
> concurrency issue because all statements using the same connection
> would share the same scope".
> The connection is created within my ASP page. If several users call
> the ASP page at the same time, is that considered the "same connection"
> or different connections?
If IIS opens only one connection to the server, then yes, that would all be
in the same scope. If each execution of the ASP page opens a new connection
to MSSQL (which seems unlikely to me, but I know almost nothing about ASP),
then they would be in different scopes. You can use sp_who2 to view the
current connections, and also see sysprocesses and @.@.SPID in Books Online.
If you're unsure about how ASP is managing connections, you'll probably get
better feedback in an ASP forum, although from a purely SQL perspective, I
suspect that using a stored proc should solve the issue anyway.
Simon|||Larry (larry_grant_dc@.hotmail.com) writes:
> I am seeing a problem with an ASP application, where I have 2 tables.
> In the first table, the ASP inserts just 1 row and retrieves the
> primary key of the new row using SCOPE_IDENTITY. It then uses that
> primary key in the column of a second table (foreign key) to insert
> many rows.
> What I'm seeing is an intermittent problem where the foreign key in the
> second table is not what it should be. I think the problem may be due
> to the fact that the insert into the first table and the calling of
> SCOPE_IDENTITY are done in 2 separate ASP statements with some ASP code
> in between.
> Is it possible that 2 users may be calling my ASP page at the same time
> and causing a concurrency problem due to the INSERT and the
> SCOPE_IDENTITY being done in 2 different SQL statements? I read that
> SCOPE_IDENTITY always returns the last identity value generated from
> "the current connection", so I thought that would mean that it wouldn't
> get messed up by another ASP request. But now I'm thinking that
> perhaps ASP uses connection pooling which could mean that 2 users could
> be sharing the same connection which would cause this concurrency
> issue.
I don't know ASP, but what is important is that you cannot use a
model where you connect for each query here, but you must use the
same connection for the two queries, so that you retain scope.
But it may be easier to send the SELECT satement as part of the
INSERT batch to save a round trip.
--
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp
Scope_Identity with @Return_Value
I am currently writing an application that inserts data into a MS SQL Server 2000 DB. I am developing the application in Microsoft Visual Web Developer 2005 EE. So far everything has come together nicely. However, I have run into a situation that I can't seem to figure out.
I wrote a stored procedure to insert data into the DB from a Web Form. The insert works nicely; however, one of the requirements I have is that I would like the DB to return the last row inserted into to my table. I am using theScope_Identity() function at the end of my stored procedure to accomplish this task:
...Last few lines of Stored Procedure...
@.ANNEXCITYCOUNCILACTION,
@.CRA
)
RETURN SCOPE_IDENTITY()
GO
I have conducted several tests on the SP, and received the following output from the DB when it is run:
(1 row(s) affected)
(0 row(s) returned)
@.GID = <NULL>
@.RETURN_VALUE = 116
Finished running [dbo].[usp_InsertProject].
I would like to take the result of the @.RETURN_VALUE (116), and create a variable that I can use to embed into an e-mail. The code for the e-mail generation is working however, the value that comes through for the @.RETURN_VALUE is always 0. I have tried several different things to get this to work, but so far no luck.
Here is the application code I am using to create the e-mail:
Sub SendEmail()
Dim mySqlDataSource1 = SqlDataSource1.ConnectionString.ToString
Dim myConnection As New Data.SqlClient.SqlConnection(mySqlDataSource1)
Dim myCommand As New Data.SqlClient.SqlCommand("usp_InsertProject", myConnection)
myCommand.CommandType = Data.CommandType.StoredProcedure
Dim parameterGID As New Data.SqlClient.SqlParameter("@.RETURN_VALUE", Data.SqlDbType.Int)
parameterGID.Direction = Data.ParameterDirection.ReturnValue
myCommand.Parameters.Add(parameterGID)
Dim reader As Data.SqlClient.SqlDataReader = myCommand.ExecuteReader()
Dim GID As Integer = CInt(parameterGID.Value)
GID.ToString()
...E-mail code is below this, but is working, so not included ...
End Sub
I would like to insert the GID variable into the e-mail, but for some reason it won't work. The following error occurs when the InsertCommand is invoked:
ExecuteReader requires an open and available Connection. The connection's current state is closed.
Hi Chris,
Thanks for the help...I modifed the code, and added:
Email Sub changes:
myConnection.Open()
myCommand.ExecuteNonQuery()
myConnection.Close()
Stored Procedure changes:
@.CRA
)
SELECT
@.GID = @.@.Identity
GO
The results of the Stored Procedure are now:
(1 row(s) affected)
(0 row(s) returned)
@.GID = 127
@.RETURN_VALUE = 0
Finished running [dbo].[usp_InsertProject].
I now have an output parameter with the correct value I would like to set as a variable in my code.
However, the InsertCommand is being executed from a FormView, and is using a SqlDataSource to access the DB. When I put myConnection.Open() into the Sub it gives me the following error:
Error executing 'InsertCommand' in SqlDataSource 'SqlDataSource1'. Ensure the command accepts the following parameters: @.CREATEDBY, ...
The Sub is being run on the InsertButton_Click event. Is there a way to reference the open connection that the SqlDataSource object already has open? This way I can grab the @.GID value...
|||If you want to use a sqldatasource for the insert, that's fine. Not knowing exactly how your database is set up, and what you can/can not change, it seems to me that what you want is:
Create a stored procedure that takes all your values, and returns a last inserted id. If you can not change the current stored procedure, create a new one that takes the same parameters, calls the original stored procedure then issues the T-SQL command RETURN SCOPE_IDENTITY(). If you do not already have a return value parameter set up for sqldatasource1's insert command, add one now (Or use the wizard to add all the parameters automatically, and it'll create @.RETURN_VALUE for you).
Inside the sqldatasource1_Inserted event (It must be done here), add code that looks like:
dim MyID as integer=e.command.parameters("@.RETURN_VALUE")
SendEmail(MyID)
Then remove all your myConnection/myCommand code, and change your SendEmail procedure to accept the id as a parameter.
|||I got it to work by using the following code:
Protected Sub SqlDataSource1_Inserted(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceStatusEventArgs) Handles SqlDataSource1.Inserted
Dim myID As Integer
myID = e.Command.Parameters("@.GID").Value
myID.ToString()
Dim Email As New Net.Mail.MailMessage()
E-mail code below this...
The key to getting it to work was putting it in the SqlDataSource1_Inserted event. This allowed me to get the output parameter.
Thanks for your help Motley...You pointed me in the right direction, and helped me out tremendously!
Scope of License, SQL Server 2005 Express
databases.
Actually, it spread its data over several servers, each one with
several dozens of databases each. There's just one single
server/database that acts as a root directory of where the information
(server/database) is stored.
Someone pointed me in other place, that I might be violating the scope
of license respecting this:
4. SCOPE OF LICENSE. The software is licensed, not sold. This
agreement only gives you some rights to use the software. blah, blah,
blahblah, blah, blah
* disclose the results of any benchmark blah, blah, blah
* work around any technical limitations in the software;
<<<<--This is the point!!
Do you think by this design I am workarounding the technical
limitations of the software !?
I thought that section was refering to something like hacking or
cracking the software, but not to a clever design ...
What do you think ?Its questionable if the design you described is really clever. But I
guess, the sentence of MS is just about telling that you are not
allowed to break the limitation in terms of hacking the software.
HTH, Jens K. Suessmeyer.
--
http://www.sqlserver20095.de
--|||Thanks for your opinion about the terms of the software.
Respecting how clever or not, what potential problems do you see with
it ?
Or what would you do with the need of storage 2TB without budget other
than renting servers? MySQL ?
Regards,
Jens wrote:
> Its questionable if the design you described is really clever. But I
> guess, the sentence of MS is just about telling that you are not
> allowed to break the limitation in terms of hacking the software.
>
> HTH, Jens K. Suessmeyer.
> --
> http://www.sqlserver20095.de
> --|||craigkenisston@.hotmail.com wrote:
> Thanks for your opinion about the terms of the software.
> Respecting how clever or not, what potential problems do you see with
> it ?
> Or what would you do with the need of storage 2TB without budget other
> than renting servers? MySQL ?
>
craigkenisston@.hotmail.com wrote:
> Thanks for your opinion about the terms of the software.
> Respecting how clever or not, what potential problems do you see with
> it ?
> Or what would you do with the need of storage 2TB without budget other
> than renting servers? MySQL ?
Renting servers won't get you far. Not unless you plan to develop,
administer and operate the system for free.
Apparently you don't have a budget for software, perhaps because your
budget holder is naive enough to think that "free" software must cost
less than software you have to pay for. Maybe you are about to prove
how wrong he is. Surely the cost of creating and supporting 500+
databases (2TB/4GB) and multiple servers will far exceed the cost of a
server licence (Workgroup Edition starts at around $700). I suspect the
1GB memory constraint of Express Edition might also become a problem
for you. Of course I can't say whether you are right or wrong, much
less propose alternatives because I know nothing of your business or
your requirements.
--
David Portas, SQL Server MVP
Whenever possible please post enough code to reproduce your problem.
Including CREATE TABLE and INSERT statements usually helps.
State what version of SQL Server you are using and specify the content
of any error messages.
SQL Server Books Online:
http://msdn2.microsoft.com/library/ms130214(en-US,SQL.90).aspx
--|||A lot of people use multiple databases to get around the 4GB limit and as
far as I'm aware that doesn't violate the license. You're not exceeding the
limit that the license specifies, you're just scaling out by writing some
front end code.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
<craigkenisston@.hotmail.com> wrote in message
news:1158866031.368894.280280@.h48g2000cwc.googlegroups.com...
> Thanks for your opinion about the terms of the software.
> Respecting how clever or not, what potential problems do you see with
> it ?
> Or what would you do with the need of storage 2TB without budget other
> than renting servers? MySQL ?
> Regards,
>
> Jens wrote:
>> Its questionable if the design you described is really clever. But I
>> guess, the sentence of MS is just about telling that you are not
>> allowed to break the limitation in terms of hacking the software.
>>
>> HTH, Jens K. Suessmeyer.
>> --
>> http://www.sqlserver20095.de
>> --
>|||Thanks for clarifying this !
Roger Wolter[MSFT] wrote:
> A lot of people use multiple databases to get around the 4GB limit and as
> far as I'm aware that doesn't violate the license. You're not exceeding the
> limit that the license specifies, you're just scaling out by writing some
> front end code.
>|||David:
Thanks a lot for your comment. You're right we may be are completely
wrong and the memory limitation is a big show stopper. Put 60 DB of 4Gb
each on on a 250GB Server was the idea.
Now, I have to admit that I don't understans and never understood the
SQL Server license. The workgroup edition or the server + CALs licenses
are unexpensive.
But all this data is to power a website. As far as I remember, I need
to get another kind of license, the expensive one, right ?
Regards,
> Apparently you don't have a budget for software, perhaps because your
> budget holder is naive enough to think that "free" software must cost
> less than software you have to pay for. Maybe you are about to prove
> how wrong he is. Surely the cost of creating and supporting 500+
> databases (2TB/4GB) and multiple servers will far exceed the cost of a
> server licence (Workgroup Edition starts at around $700). I suspect the
> 1GB memory constraint of Express Edition might also become a problem
> for you.|||On 21 Sep 2006 12:13:51 -0700, craigkenisston@.hotmail.com wrote:
>Thanks for your opinion about the terms of the software.
Hi craigkenisston,
<IANAL> I agree with Jens' assessment. However, if you really want to be
sure, check with a MS representative. </IANAL>
I once saw a description on Internet that detailed how to use a hex
editor to change some bytes in an MSDE executable to overcome the 5
concurrent workload limit - now THAT would be a violation of the scope
of license!!
>Respecting how clever or not, what potential problems do you see with
>it ?
* Slowness because data has to travel across the network from server to
server.
* More slowness because it's hard for the SQL optimizer to decide which
server is best equipped to execute a distributed query.
* Very complicated backup and recovery scenario's. It's impossible to
backup all databases and all servers on the exact same moment, so if you
ever need to restore, your databases and server will be out of synch and
you'll have a helll of a job restoring everything into a consistant
state.
* Extra complicated application code
>Or what would you do with the need of storage 2TB without budget other
>than renting servers? MySQL ?
Even with the current pricing of hardware, I am surprised to read that
you don't have budget for a SQL Server license whereas you apparently do
have budget for "several servers", hard disks to store 2TB, backup media
to hold the same amount of data (you *DO* have a good backup strategy, I
hope - as compared to the cost of _losing_ 2TB of data, the price for a
SQL Server license is really peanuts...)
--
Hugo Kornelis, SQL Server MVP|||Data is redundancy in a RAID-like fashion. I can lost a server and the
system still up and running !
So
> * Slowness because data has to travel across the network from server to
> server.
Well, actually, more than going from server to server, it simply
implicates two queries, one to the allocation database and then another
to get the data from the source.
> * More slowness because it's hard for the SQL optimizer to decide which
> server is best equipped to execute a distributed query.
Sql Optimizer don't need to know where to look for data. It is not a
distribuited query, the Express edition don't have that capability ;).
I'll look for where the data is and then look for the data itself.
> * Very complicated backup and recovery scenario's.
We were not planning to tape or NAS backup. We were(are?) going to
setup full mirors of the system and it will help to serve more clients
request as well.
> * Extra complicated application code
Yes, totally agree.
> Even with the current pricing of hardware, I am surprised to read that
> you don't have budget for a SQL Server license whereas you apparently do
> have budget for "several servers",
The software is really database independent using full and pure SQL-92.
I think I can switch to MySQL with a day of work. It is just that we
don't want to use MySQL for "religious" reasons.
Now, what do you think?|||On 21 Sep 2006 13:43:57 -0700, craigkenisston@.hotmail.com wrote:
>But all this data is to power a website. As far as I remember, I need
>to get another kind of license, the expensive one, right ?
Hi craigkenisston,
Since a web site can have virtuallly unlimited clients accessing it,
you'll need to go for "per-processor" licensing.
Prices start at $3,899 for a single-processor license with Workgroup
Edition. (And since actual sockets are counted for the license, you can
stick a dual-core processor in the machine and have the additional power
of a second core without additional cost).
Compared to the prices of "several" computers, each with an OS license,
you'll probably save money.
--
Hugo Kornelis, SQL Server MVP