Showing posts with label ive. Show all posts
Showing posts with label ive. Show all posts

Wednesday, March 28, 2012

Memories

I've got Sql Server 2000 SP2 on a Windows 2000 Advanced Server SP4. Here's
what the various stats are telling me:
Enterprise Manager Min Memory: 0 M
Enterprise Manager Max Memory: 6000 M
Computer Management Tot. Physical Memory: 7863 M
Computer Management Avail. Physical Memory: 5501 M
Performance Monitor Total Server Memory: 1673 M
Performance Monitor Target Server Memory: 1673 M
And, finally, here is what I believe is in our boot.ini file:
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microso ft Windows 2000 Advanced
Server" /fastdetect /12gb /pae
This leads to a couple of questions:
1. Why does Perf Monitor say we are using so little memory? Is this
because it can't detect the extra memory or because it's truly not being used?
2. How can I check for sure that Sql Server is using up to the 6G of
memory, i.e. what is the final word?
3. Is our boot ini file set up correctly for our situation?
In your Boot.ini the error is /12GB this parameter doesn't exist.
The correct configuration for you boot.ini in machine with above the 4GB is:
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microso ft Windows 2000 Advanced
Server" /fastdetect /3GB /pae
In SQL Server enable the AWE support:
sp_configure 'awe enabled', 1
go
reconfigure with override
go
After restart your SQL Server.
Look at:
http://www.sql-server-performance.com/awe_memory.asp
When you want limit the SQL Server memory use, configure the "max server
memory" parameter:
sp_configure 'max server memory', 6144
go
reconfigure with override
go
** * Esta msg foi útil pra você ? Ent?o marque-a como tal. ***
Regards,
Rodrigo Fernandes
"CLM" wrote:

> I've got Sql Server 2000 SP2 on a Windows 2000 Advanced Server SP4. Here's
> what the various stats are telling me:
> Enterprise Manager Min Memory: 0 M
> Enterprise Manager Max Memory: 6000 M
> Computer Management Tot. Physical Memory: 7863 M
> Computer Management Avail. Physical Memory: 5501 M
> Performance Monitor Total Server Memory: 1673 M
> Performance Monitor Target Server Memory: 1673 M
> And, finally, here is what I believe is in our boot.ini file:
> multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microso ft Windows 2000 Advanced
> Server" /fastdetect /12gb /pae
> This leads to a couple of questions:
> 1. Why does Perf Monitor say we are using so little memory? Is this
> because it can't detect the extra memory or because it's truly not being used?
> 2. How can I check for sure that Sql Server is using up to the 6G of
> memory, i.e. what is the final word?
> 3. Is our boot ini file set up correctly for our situation?
>
>
>
|||Thx for the help.
Another question for you: can list some of the good Sql Server links that
are in spanish? I'm trying to learn Spanish and would like to start reading
those.
"Rodrigo Fernandes" wrote:
[vbcol=seagreen]
> In your Boot.ini the error is /12GB this parameter doesn't exist.
> The correct configuration for you boot.ini in machine with above the 4GB is:
> multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microso ft Windows 2000 Advanced
> Server" /fastdetect /3GB /pae
> In SQL Server enable the AWE support:
> sp_configure 'awe enabled', 1
> go
> reconfigure with override
> go
> After restart your SQL Server.
> Look at:
> http://www.sql-server-performance.com/awe_memory.asp
> When you want limit the SQL Server memory use, configure the "max server
> memory" parameter:
> sp_configure 'max server memory', 6144
> go
> reconfigure with override
> go
> --
> ** * Esta msg foi útil pra você ? Ent?o marque-a como tal. ***
> Regards,
> Rodrigo Fernandes
>
> "CLM" wrote:

Monday, March 26, 2012

Membership Database Question (Under a deadline - please respond soon!)

So I can't quite understand what's going on here... I've watched the video tutorial on ASP.NET about creating and securing my site using Membership (configuring roles and users), and I noticed that it creates a database in my App_Data folder (ASPNETDB, I think it's called). And I've got all that working on my local machine, but I'm confused as to how to move it to my server.

My hosting provider is M6.net, and they've told me that if I want to upload a database to their server, I have to create it using my admin panel, then upload the file and they'll fill it in for me. My question is this: if I give them the database that's automatically created when I use login controls on my website LOCALLY, will that database still provide the correct membership functionality for my website when it's run from the web server? Such that I can give them (M6) the ASPNETDB (containing all the usernames/passwords/rules? I've already specified for my local site), have them populate the similarly titled database on the server, and have it still work with my pages?

I'm also confused as to why that database doesn't have a connection string specified in the web.config file...can anyone shed some light on that?

As I have no direct access to the database server on my hosting provider, I need to create the membership database with all the correct details prior to uploading it to my server - if simply using the locally generated copy won't work, what should I do?

Lastly, the video tutorial says to go to the ASP.NET Configuration page to manage users, roles, security settings, etc., but I don't seem to have access to that through M6. Instead, I have access to a FrontPage configuration page that is strikingly similar in content to that ASP.NET Configuration page featured in the video, in that it also allows user and role management capability - is this the same thing under a different guise?

Hi the ev,

the ev:

My hosting provider is M6.net, and they've told me that if I want to upload a database to their server, I have to create it using my admin panel, then upload the file and they'll fill it in for me. My question is this: if I give them the database that's automatically created when I use login controls on my website LOCALLY, will that database still provide the correct membership functionality for my website when it's run from the web server? Such that I can give them (M6) the ASPNETDB (containing all the usernames/passwords/rules? I've already specified for my local site), have them populate the similarly titled database on the server, and have it still work with my pages?

What format's they'll accept it in will be up to them. To be sure you should probably provide them a script instead of a database as it will guarantee they can use it. You can generate the script within Management Studio or by using something like thedatabase publishing wizard.aspnet_regsql.exe also has a command line switch to generate the statements required to setup the database but won't include your data.

the ev:


I'm also confused as to why that database doesn't have a connection string specified in the web.config file...can anyone shed some light on that?

If you don't define the providers in your web.config the defaults will be used, which includes trying to use an sql instance running out of your app_data folder. This will need to be changed to work on your hosted platform. You'll need to specify a connection string matching what M6 tell you to use and setup the providers to use that. Seehere for an example of configuring membership in your web.config.

To make use of the existing information you'll have to make sure your applicationName in the config file matches, I believe it defaults to "/".


the ev:


Lastly, the video tutorial says to go to the ASP.NET Configuration page to manage users, roles, security settings, etc., but I don't seem to have access to that through M6. Instead, I have access to a FrontPage configuration page that is strikingly similar in content to that ASP.NET Configuration page featured in the video, in that it also allows user and role management capability - is this the same thing under a different guise?

I doubt it. I have always steered clear of Frontpage so I can't say for sure, but I'd assume this is going to manage permissions at the Webserver level and won't interact with your membership provider.

To provide some sort of user/role management after it's been deployed to your host you'll have to implement it yourself. There's atwopart article on doing just that which you may find interesting.

I hope that helps.

|||

Thanks for the reply! I'm checking out what you wrote now and will report back later! :)

|||

Its funny -- your questions seem very familar to me--

I find MS's way of handleing these things to be perplexing and scary all at the same time - so far i have not been able to get a membership DB to work on a server.

To be honest I don't really see how the thing works at all. Farther I love the tools that make my life easier but there is something fairly Freaky about giving anything this much controll of the development process. Granted theres no need to re-invent the wheel but why the hell is the wheel so inflexable you'd think you would be able to mount it onto anything and have a wheel that works...

Yet microsoft shrouds fundimental things such as this in total mistery...

Maybe im missing the ahh-hah moment here but if you've ever developed in Linux or with any other DB platform you'd know that getting to the db is stored some place and connected to with a db account. Why complicated with attaching, local file permissions and membership 'provider' voodoo?

</rant>

Friday, March 9, 2012

MDX question

Hi guys

I’ve got a question. Very simple scenario: a stand alone dimension exists, called Trip with only 2 columns - trip number and Audited flag (values can be Audited or Not Audited). Total row number around 2500000.

with

member [Measures].x as count([Trip].[Trip].members)

select

[Measures].x on 0

from [$Trip] --2500000

Half rows are Audited, half Not Audited. SP2 pack is installed. I need to find a number of Audited and Not Audited trips. I found that when I use slice – the whole number of rows returned, which is wrong but query is fast (only 1 second)

with

member [Measures].x as count([Trip].[Trip].members)

select

[Measures].x on 0

from [$Trip]

where ([Trip].[Audited Trip Flag].[Not Audited]) –2500000

The following query returns the correct number of rows, but considerably slower comparing with the “slice” version (around 30 sec.)

with

member [Measures].x as Exists([Trip].[Trip].members, [Trip].[Audited Trip Flag].[Not Audited]).Count

select

[Measures].x on 0

from [$Trip] –1250000

Question: why “slice” version does not work and would that be a better query to respond quicker.

Thank you, for any input.

Just found that "set" version is twice as fast - 15 secs

with

set notAudited as ([Trip].[Trip].members, [Trip].[Audited Trip Flag].[Not Audited])

member [Measures].x as notAudited.Count

select

[Measures].x on 0

from [$Trip] --1250000 --15 sec

|||

Hi Konstantin,

have you set right relationship between attributes?

Francesco

|||

Hi Francesco

Yes, the right relationship exists by default - Trip number attribute is a key, Trip Flag is tight to a key through attribute relationship. Any ideas?