Adding MemToLeave -g Switch

[Sql Server 2005 SP-2]

Can I get some help with just the syntax of adding the -g switch to define CLR memory allocation?

The last bit of text in my startup parameters is the ".ldf" file.  So I tried adding a space and the switch (so, "...ldf -g512") and I've tried no space ("...ldf-g512").  I can't start sql with either syntax.

The event log says:

FCB::Open failed: Could not open file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\mastlog.ldf-g512 for file number 2.  OS error: 2(The system cannot find the file specified.).

Where, exactly, do I put this switch, and what should it look like, exactly?  I'm not getting this right, and I'm doing this on a production box (no, not by choice) so I can't keep stopping and starting sql.

Thanks.
bamapieAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

nmcdermaidCommented:
Looking in SQL Server Configurtaion Manager (Start Menu/SQL Server/Configuration Tools/SQL Server Services/SQL Server/Properties/Advanced/Startup Parameters), my parameters look like this:
 -dC:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\master.mdf;-eC:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG;-lC:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\mastlog.ldf
Following the same format I expect that you need to do this:
-dC:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\master.mdf;-eC:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG;-lC:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\mastlog.ldf;g1024
assuming you want to set g to 1024.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bamapieAuthor Commented:
Looks good to me.  I'm too chicken to try it right now, but I will.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2005

From novice to tech pro — start learning today.