Set maximum server memory by using sql scripts

Dear all
How to set maximum server memory by using sql scripts in sql server 2014? Thx a lot
Best regards,
Wallace

You can use
sys.Sp_Configure to set max server memory
Here are some recommendation for Max Server memory based on RAM size
GB
MB
Recommended Setting
Command
16
16384
14745
EXEC sys.sp_configure 'max server memory (MB)', '14745'; RECONFIGURE;
32
32768
29491
EXEC sys.sp_configure 'max server memory (MB)', '29491'; RECONFIGURE;
64
65536
58982
EXEC sys.sp_configure 'max server memory (MB)', '58982'; RECONFIGURE;
128
131072
117964
EXEC sys.sp_configure 'max server memory (MB)', '117964'; RECONFIGURE;
256
262144
235929
EXEC sys.sp_configure 'max server memory (MB)', '235929'; RECONFIGURE;
512
524288
471859
EXEC sys.sp_configure 'max server memory (MB)', '471859'; RECONFIGURE;
1024
1048576
943718
EXEC sys.sp_configure 'max server memory (MB)', '943718'; RECONFIGURE;
2048
2097152
1887436
EXEC sys.sp_configure 'max server memory (MB)', '1887436'; RECONFIGURE;
4096
4194304
3774873
EXEC sys.sp_configure'max server memory (MB)', '3774873'; RECONFIGURE;
Hope this will help
Glad to help! Please remember to accept the answer if you found it helpful. It will be useful for future readers having same issue.

Similar Messages

  • Setting Maximum Server memory online

    Hi,
       We have found that the maximum server memory set in our SQL Server 2008 R2 production server is the default 21GB where as the physical memory in our server is only 12GB. Hence I am planning to reconfigure it 9GB. My question is that ,can I reset
    the max server memory online in the production server with the following command-:
    sp_configure 'show advanced options', 1;
    GO
    RECONFIGURE;
    GO
    sp_configure 'max server memory', 9216;
    GO
    RECONFIGURE;
    GO
    Could any body advice. Thanking in advance,
    Binny

    Hi Latheesh,
           I had requested the ideal value to be set for "MINIMUM SERVER MEMORY" whose default is no 0. Should I change it?
    Thanks,
    Binny.
    Sorry, I was talking about MAX SERVER MEMORY. Requested to change MIN SERVER MEMORY? Do you have something else running in the server apart from SQL Server? If its only SQL Server with a single instance, you can leave as default.
    Read the below Excerpt from MSDN
    Ref: http://technet.microsoft.com/en-us/library/ms178067.aspx
    The min
    server memory server configuration option can be used to ensure that SQL Server does not release memory below
    the configured minimum server memory once that threshold is reached. This configuration option can be set to a specific value based on the size and activity of your SQL Server. If you choose to set this value, set it to some reasonable value
    to ensure that the operating system does not request too much memory from SQL Server, which can affect SQL Server performance.

  • Question about creating new tables using SQL script in WebLogic Server

    Hi,
    I am new to WebLogic and I am following a book Java EE Development with Eclipse published by PACKT Publishing to learn
    Java EE.  I have installed Oracle Enterprise Pack for Eclipse on the PC and I am able to log into the WebLogic Server Administration Console
    and set up a Data Source.  However the next step is to create tables for the database.  The book says that the tables can be created using
    SQL script run from the SQL command line.
    I cannot see any way of inputting SQL script into the WebLogic Server Admistration Console.  Aslo there is no SQL Command line in DOS.
    Thanks  for your help.
    Brian.

    Sounds like you are to run the scripts provided by a tutorial to create the tables, right?  In that case, you may need to install an Oracle client to connect to your database.  The client is automatically installed with the database, so if you have access to the server that hosts the database, you should be able to run SQLplus from there.
    As far as I know, there is no way to run a script from the Admin Console.  I could be wrong, however.

  • How to find out how many "maximum server memory" should I configure.

    Hello guys
    I'm asking myself what i should configure in "maximum server memory".
    Default is: 2147483647
    Is there a way to find out whats the best for my Database? 
    Cause I really dont understand the "DBCC MEMORYSTATUS" output :(
    Or is it allways "my server has 32GB of ram, so i configure max server memory to 28GB so the OS has 4GB to use"
    I know its a little bit a stupid question...
    Thanks and regards, Dominic

    This is NOT at all really a stupid question!! A very valid question. But its very difficult to answer your question :)
    There is no strict value for it. But you can come to a close value by understanding what are you running on your machine. But for 32 GB Total Memory, 26-28 would be a good capping and later you can do the adjustment as required.
    BTB, important question Are you facing any external memory pressure on your SQL Server and Whats your SQL Server Version(there are some changes for versions)?
    Links that would help you:
    http://www.sqlservercentral.com/blogs/glennberry/2009/10/29/suggested-max-memory-settings-for-sql-server-2005_2F00_2008/
    http://mssqlwiki.com/sqlwiki/sql-performance/basics-of-sql-server-memory-architecture/
    http://sportstoday.us/technology/sql-server-2012---optimizing-sql-server-memory-configuration---min-and-max-server-memory,-optimize-for-ad-hoc-workloads-.aspx

  • I am trying connect to a SQL instance for our CRM program and I am receiving To Connect to this Server you must use SQL Management Studio or SQL Server Management

    I am trying connect to a SQL instance for our CRM program and I am receiving To Connect to this Server you must use SQL Management Studio or SQL Server Management 
    This is a Brand new Server 2012 that is running our CRM product and it is trying to connect to a Server 2008 R2 server with SQL Server 2008 R2 SP2 instance (10.50.4000)
    I have seen this in the past where it needed the 2005 backwards compatibility components installed but those are not supported on 2012 server and this is not a 2005 SQL instance.
    I am trying to install the Shared Management Objects for SQL Server 2008 but it tells me I need to install the CLR types, which I did install. But it continues to tell me to install the CLR types.
    Has anyone ran into any issues like this? (this happens trying to connect to multiple SQL Servers from this new 2012 Server)
    Thanks!
    -Max

    Hello,
    Which version and edition of the SQL Server instance did you installed on the new server machine?  If you install SQL Server 2012 Express edition, you can try to install SQL Server Management Studio 2012 from
    this link.
    You can connect to SQL Server 2008 R2 or earily verions with SSMS 2012.
    What's more, Microsoft SQL Server 2008 Management Objects Collection requires Microsoft Core XML Services (MSXML) 6.0, Microsoft SQL Server Native Client, and Microsoft SQL Server System CLR Types. You can try to download and install
    SQL Serve 2008 Feature Pack
    which contains packages above.
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Write to ERP Tables on HANA DB using SQL script

    Hello All,
    We are using HANA as our primary database for ABAP system and trying to feed the data to ABAP tables using SQL script and experiencing authorization errors . Please see below for more details.
    Scenario.
    I am getting no authorised error when i try to write some data to Z* tables using SQL script in HANA studio.But I am able to create new tables in the same schema.
    As shown above Query1: SAPSR1 is the schema which contains underline ABAP tables. ZGSA is existing table and now i am trying to insert new rows into it.
    Query 2&3: Creating new tables in SAPSR1 works fine.
    Can you please suggest me whether it is right approach or i need to have RFC to update these table from some other tool/app?.
    Thanks in advance,
    Naresh

    Hi Naresh,
    Obi Wan would now probably say: "this is not the functionality you're looking for".
    Even though you are working with Z-tables you really don't want to start messing with those from outside the context of the NetWeaver system.
    Instead you want to keep the control over all tables in the NetWeaver schema completely  to the SAP<sid> user and NetWeaver.
    For your data loading scenario, just write a simple ABAP report with native sql or an AMDP to do the copying of the data for you.
    Don't spread your code across the landscape and don't loosen access restrictions on your schema.
    - Lars

  • Setting or Resetting a password using SQL in Business One 9.0

    In the link shown below, we started a discussion on how to set a password using SQL in Business One. (I am re-opening the discussion in a new thread.)
    http://scn.sap.com/thread/3430860
    I have been using a similar query to do the same. In the query below, I set the MANAGER password to some value and copy it to all other active users.
    update OUSR
    set PASSWORD = (select PASSWORD from OUSR where USERID = 1)
    where USERID > 1 and GROUPS <> 99 and USER_CODE not like 'B1i%'
    This process works just fine in pre-9.0 p09 versions. However, there is something in the new release(s) that is different and being validated so this method no longer works. (I have checked AUSR as the initial control, but this is not the case.)
    When using the query above in the current release, logging into users account will generate "Enter valid user name and password". Changing the password manually works just fine. This tells me that there is an additional location where the password is being updated/stored which needs to be included within the script. I am guessing that this location is also where the single-sign-on information might be held, but I am unable to find anything.
    I realize that this is not supported. However, when creating a "SANDBOX" database and needing to change 150 users passwords, it is unreasonable that we change these by hand, one-by-one. (And I realize that we should not change those which are using DOMAIN passwords.)
    Anyone have any ideas about what else needs to be updated to make this work?
    Thanks,
    ~ terry.

    Gordon,
    That's part of the challenge!...
    I would like the SANDBOX database to be useable by anyone wanting to log in, test, and learn.
    But, I do not want it to have the same password as the LIVE database. That way we can better secure the LIVE database and the users will have to type in a different password to access the SANDBOX, eliminating the possibility someone processes live data in a test database.... or visa-versa.
    Best practices tell me that we need to do our training and testing in a SANDBOX. Occasionally, we need to copy the LIVE database to a SANDBOX to have current data for this functionality. And I am trying to avoid spending 30-60 minutes manually changing over 100 user passwords.
    Thanks,
    ~ terry.
    Message was edited by: Terry Oplinger

  • Backingup Database using SQL script

    Hello,
    Let me start by saying I am new to Oracle, and I am trying to learn how to do a project where I must write an SQL script that can be used to back-up all the database files (i.e. control, redo log, and data files).  Assuming that all of the files are stored in one folder, the source and destination locations of these files must be provided as "substitution variables".  The script must implement the following tasks (directions)
    Connect as user SYS with SYSDBA role
    Shutdown the database
    Copy the database files from the source location and store in the destination location
    Restart the database
    Connect as user SCOTT
    In addition the script must use the "HOST" command to issue the operating system command to perform the copy task.
    *Since this is just a learning project, and not a real scenario, I cannot run my script in SQLplus to verify if it is correct. This is why I am asking for some professional advice. I am currently working with Oracle 11g Enterprise running on a client Windows XP OS.
    Below is what I have determined is a cold backup, please let me know if what I am doing is correct so far, and if not can you please steer me in the right direction.
    connect SYS/<password> as SYSDBA
    shutdown;
    HOST copy from &source_file to &destination_file;       --this is the line that is confusing me.
    connect SYS/<password> as SYSDBA
    startup;
    connect scott/tiger
    thank you in advance for your time and input.

    Thank you Brian and Frank. I agree with you that RMAN is the best way to perform a backup (from what I have read over the last week or so) in a production scenario., especially if the DB needs 24/7 access. Also , thank you Brian for the helpful links.
    I currently have the free Oracle Enterprise 11g edition downloaded to my computer, running on VB with client Windows XP OS. But being new at this I find myself scared of running bad script that may break down my DB. I know I can just reload it and start over, but I am trying to approach this as carefully as possible. Although, the error codes help me understand what I am doing wrong a lot of the time.
    Also, thank you Frank for the shutdown immediate advice. I also like the idea of writing/saving data to the spool for future reference  that will definitely come in hand down the road. I didn't think about writing a .bat file to run via SQL*Plus, that would also be a great alternative.
    Continuing with the hypothetical scenario that I need to perform a very basic cold backup that requires a shutdown (with archive logging off) and a restart, do you think this script would run error free. Also, assuming the substitute variables are actual paths to where the whole of the database files are stored and their new destination file actually exists.
    --Windows XP OS
    connect SYS/<password> as SYSDBA
    shutdown IMMEDIATE;
    HOST copy &source_file &destination_file
    connect SYS/<password> as SYSDBA
    startup;
    connect scott/tiger
    Thank you again for your time and patience.
    I find myself learning more from asking questions to professionals on this site than from my own professors.

  • How to upgrade the schema on both the sites using sql scripts?

    Hi Experts,
    I need some help.
    I have two sites SITE A and SITEB, on both the sites GG is installed and running (DML Bi- directional replication). I have schema SCHEMA1 on both the sites which are configured for replication and replication is working from last one year.
    Now I wanted to upgrade the SCHEMA1 on both the sites. There are three .sql script which has many SQL commands like create table, create sequence, create procedure, insert record etc. I wanted to run that SQL file one both the sites.
    So should I stop all the process on both the sites SITEA and SITE B (including manager process) ,execute the SQL scripts on both the sites and then start the process again ? Will it work?
    Is there any other best way to do this?
    Could you please suggest the steps so that I can successfully execute theses scripts on both the site to upgrade the schema1.

    There is no blanket answer here; it depends. Main questions are:
    1. Do the SQL scripts update existing tables?
    2. Are you replicating DDL in one direction? (DDL should only be replicated one way even when doing bi-directional, do DDL should only be issued on the node capturing DDL
    3. Are you using a wildcard (*) from table names or using an explicit list?
    Easiest thing is if you're replicating DDL from A to B and apply DDL to A only. This assumes that the application writing to these tables can handle DDL changes under the covers. If these are new tables supporting new application features then you would simply enable said features after apply sql files.
    From there it gets more complicated and would need answers to the above questions before going down each line of logic. But try to remember what's really going on here. Data in one form (DDL) is being captured and send along. If the "shape" (DDL) of that data changes then the extract and replicat need to update their meta data to handle it correctly. If change data encounters a different shape than what's cached then you will become out of sync.
    I'm not sure if that makes sense but again, the answers to the questions above will be indicate where more detailed explanations should be focused. In short, we need more detail about what those scripts do and your current setup.
    Good luck,
    -joe

  • Msg 8631 Internal error: Server stack limit has been reached on SQL Server 2012 from T-SQL script that runs on SQL Server 2008 R2

    I have an Script mostly that is generated by SSMS which works with-out issue on SQL Server 2008, but when I attempt to run it on a new fresh install of SQL Server 2012 I get an Msg 8631. Internal error: Server stack limit has been reached. Please look for
    potentially deep nesting in your query, and try to simplify it.
    The script itself doesn't seem to be all that deep or nested.  The script is large 2600 lines and when I remove the bulk of the 2600 lines, it does run on SQL Server 2012.  I'm just really baffled why something that SQL Server generated with very
    few additions/changes AND that WORKS without issue in SQL Server 2008 R2 would suddenly be invalid in SQL Server 2012
    I need to know why my script which is working great on our current SQL Server 2008 R2 servers suddenly fails and won't run on an new SQL Server 2012 server.  This script is used to create 'bulk' Replications on a large number of DBs saving a tremendous
    amount of our time doing it the manual way.
    Below is an 'condensed' version of the script which fails.  I have removed around 2550 lines of specific sp_addarticle statements which are mostly just copy and pasted from what SQL Management Studio 'scripted' for me went I when through the Replication
    Wizard and told it to save to script.
    declare @dbname varchar(MAX), @SQL nvarchar(MAX)
    declare c_dblist cursor for
    select name from sys.databases WHERE name like 'dbone[_]%' order by name;
    open c_dblist
    fetch next from c_dblist into @dbname
    while @@fetch_status = 0
    begin
    print @dbname
    SET @SQL = 'DECLARE @dbname NVARCHAR(MAX); SET @dbname = ''' + @dbname + ''';
    use ['+@dbname+']
    exec sp_replicationdboption @dbname = N'''+@dbname+''', @optname = N''publish'', @value = N''true''
    use ['+@dbname+']
    exec ['+@dbname+'].sys.sp_addlogreader_agent @job_login = N''DOMAIN\DBServiceAccount'', @job_password = N''secret'', @publisher_security_mode = 1, @job_name = null
    -- Adding the transactional publication
    use ['+@dbname+']
    exec sp_addpublication @publication = N'''+@dbname+' Replication'', @description = N''Transactional publication of database
    '''''+@dbname+''''' from Publisher ''''MSSQLSRV\INSTANCE''''.'', @sync_method = N''concurrent'', @retention = 0, @allow_push = N''true'', @allow_pull = N''true'', @allow_anonymous = N''false'', @enabled_for_internet
    = N''false'', @snapshot_in_defaultfolder = N''true'', @compress_snapshot = N''false'', @ftp_port = 21, @allow_subscription_copy = N''false'', @add_to_active_directory = N''false'', @repl_freq = N''continuous'', @status = N''active'', @independent_agent = N''true'',
    @immediate_sync = N''true'', @allow_sync_tran = N''false'', @allow_queued_tran = N''false'', @allow_dts = N''false'', @replicate_ddl = 1, @allow_initialize_from_backup = N''true'', @enabled_for_p2p = N''false'', @enabled_for_het_sub = N''false''
    exec sp_addpublication_snapshot @publication = N'''+@dbname+' Replication'', @frequency_type = 1, @frequency_interval = 1, @frequency_relative_interval = 1, @frequency_recurrence_factor = 0, @frequency_subday = 8,
    @frequency_subday_interval = 1, @active_start_time_of_day = 0, @active_end_time_of_day = 235959, @active_start_date = 0, @active_end_date = 0, @job_login = N''DOMAIN\DBServiceAccount'', @job_password = N''secret'', @publisher_security_mode = 1
    -- There are around 2400 lines roughly the same as this only difference is the tablename repeated below this one
    use ['+@dbname+']
    exec sp_addarticle @publication = N'''+@dbname+' Replication'', @article = N''TABLE_ONE'', @source_owner = N''dbo'', @source_object = N''TABLE_ONE'', @type = N''logbased'', @description = null, @creation_script =
    null, @pre_creation_cmd = N''drop'', @schema_option = 0x000000000803509F, @identityrangemanagementoption = N''manual'', @destination_table = N''TABLE_ONE'', @destination_owner = N''dbo'', @vertical_partition = N''false'', @ins_cmd = N''CALL sp_MSins_dboTABLE_ONE'',
    @del_cmd = N''CALL sp_MSdel_dboTABLE_ONE'', @upd_cmd = N''SCALL sp_MSupd_dboTABLE_ONE''
    EXEC sp_executesql @SQL
    SET @dbname = REPLACE(@dbname, 'dbone_', 'dbtwo_');
    print @dbname
    SET @SQL = 'DECLARE @dbname NVARCHAR(MAX); SET @dbname = ''' + @dbname + ''';
    use ['+@dbname+']
    exec sp_replicationdboption @dbname = N'''+@dbname+''', @optname = N''publish'', @value = N''true''
    use ['+@dbname+']
    exec ['+@dbname+'].sys.sp_addlogreader_agent @job_login = N''DOMAIN\DBServiceAccount'', @job_password = N''secret'', @publisher_security_mode = 1, @job_name = null
    -- Adding the transactional publication
    use ['+@dbname+']
    exec sp_addpublication @publication = N'''+@dbname+' Replication'', @description = N''Transactional publication of database
    '''''+@dbname+''''' from Publisher ''''MSSQLSRV\INSTANCE''''.'', @sync_method = N''concurrent'', @retention = 0, @allow_push = N''true'', @allow_pull = N''true'', @allow_anonymous = N''false'', @enabled_for_internet
    = N''false'', @snapshot_in_defaultfolder = N''true'', @compress_snapshot = N''false'', @ftp_port = 21, @allow_subscription_copy = N''false'', @add_to_active_directory = N''false'', @repl_freq = N''continuous'', @status = N''active'', @independent_agent = N''true'',
    @immediate_sync = N''true'', @allow_sync_tran = N''false'', @allow_queued_tran = N''false'', @allow_dts = N''false'', @replicate_ddl = 1, @allow_initialize_from_backup = N''true'', @enabled_for_p2p = N''false'', @enabled_for_het_sub = N''false''
    exec sp_addpublication_snapshot @publication = N'''+@dbname+' Replication'', @frequency_type = 1, @frequency_interval = 1, @frequency_relative_interval = 1, @frequency_recurrence_factor = 0, @frequency_subday = 8,
    @frequency_subday_interval = 1, @active_start_time_of_day = 0, @active_end_time_of_day = 235959, @active_start_date = 0, @active_end_date = 0, @job_login = N''DOMAIN\DBServiceAccount'', @job_password = N''secret'', @publisher_security_mode = 1
    -- There are around 140 lines roughly the same as this only difference is the tablename repeated below this one
    use ['+@dbname+']
    exec sp_addarticle @publication = N'''+@dbname+' Replication'', @article = N''DB_TWO_TABLE_ONE'', @source_owner = N''dbo'', @source_object = N''DB_TWO_TABLE_ONE'', @type = N''logbased'', @description = null, @creation_script
    = null, @pre_creation_cmd = N''drop'', @schema_option = 0x000000000803509D, @identityrangemanagementoption = N''manual'', @destination_table = N''DB_TWO_TABLE_ONE'', @destination_owner = N''dbo'', @vertical_partition = N''false''
    EXEC sp_executesql @SQL
    fetch next from c_dblist into @dbname
    end
    close c_dblist
    deallocate c_dblist
    George P Botuwell, Programmer

    Hi George,
    Thank you for your question. 
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated. 
    Thank you for your understanding and support.
    If you have any feedback on our support, please click
    here.
    Allen Li
    TechNet Community Support

  • Add Bulk Users to Project Server 2010 site using a Script

    I have 100 users that I need to add to a Project Server 2010 site. Add these through server settings would take a week to do. Is there a way to add users in bulk like with a script or something that can pull from an CSV
    Thank you for your help!

    Hi,
    I am not sure if I got your question?
    If you want to add these users to a site of a specific project, just add them as team members to this project. This will provide read access to them. If you assign them to a task within this project, they will alos get write access in this site.
    If you want to add this users as Project Server resources and users and just have a list of them, you can use copy/paste. Go to Resource Center and click on Open. Project client will start with checked out Enterprise Resources. Add columns Windows User Account,
    Email Address, and all other fields you want to fill. Make sure that the columns and the sequence of columns does match the columns in your file. Use copy/paste to insert all users into Project. Save and Close. Use Option Bulk Edit, if you want to define
    eg Timesheet Manager. As a last step go to Server Settings - Manage Groups and add them to the appropriate groups.
    Does this answer your question?
    Barbara

  • Dynamically setting Processing order in SSAS using AMO script

    Hi,
    I am looking for a AMO script to set the processing order (sequential or parallel) while processing the cube.We have the AMO script to process the cube with all options.This is a additional feature,which I am trying to add.
    I am not finding any method ,which is used for processing order from below  name space.please advise.
    microsoft.analysisservices 
    Thanks

    Hi,
    Not sure if this will help. I think that XMLA can be used to control the processing Order.
    Sample code for processing an XMLA file below:
    using
    System;
    using
    System.Collections;
    using
    System.Linq;
    using
    System.Text;
    using
    Microsoft.AnalysisServices.Xmla;
    using
    System.IO;
    using
    System.Xml;
    using
    System.Net;
    namespace
    XMLA
    class
    Program
    static
    string mShowMsg =
    "N";
    static
    void Main(string[]
    args)
    int intExitCode = 0;
    //0-success
    string strServer =
    "", strXmlaFileName =
    "", strDbName =
    "", strParamUrl =
    "", strEmailTo =
    "", strEmailFromId =
    for (int
    i = 0; i < args.Length; ++i)
    if (args[i].StartsWith("-S"))
                          strServer = args[i+1];
    if (args[i].StartsWith("-i"))
                          strXmlaFileName = args[i+1];
    if (args[i].StartsWith("-d"))
                          strDbName = args[i + 1];
    if (args[i].StartsWith("-u"))
                          strParamUrl = args[i + 1];
    if (args[i].StartsWith("-v"))
                          mShowMsg = args[i + 1];
    if (args[i].StartsWith("-e"))
                          strEmailTo = args[i + 1];
    if (args[i].StartsWith("-f"))
    strEmailFromId = args[i + 1];
    if (strServer ==
    Console.WriteLine("Please
    specify command line parameters. -S servername -i xmlafilename -d databaseid override  ");
                      intExitCode = 1;
    if (strXmlaFileName ==
    Console.WriteLine("Please
    specify command line parameters. -S servername -i xmlafilename ");
                      intExitCode = 1;
    if (intExitCode == 0)
    XmlaClient clnt =
    new
    XmlaClient();
    string strOut =
    "", strMsg="";
    string strXmla =
    File.ReadAllText(strXmlaFileName);
    if (strDbName !=
                          strXmla = ReplaceTag(strXmla,
    "<DatabaseID>",
    "</DatabaseID>", strDbName);
    Console.WriteLine(strXmla);
                      clnt.Connect(strServer);
                      clnt.Execute(strXmla,
    out strOut,
    false,
    true);
                      clnt.Disconnect();
    //check status
    //Create the XmlDocument.
    XmlDocument doc =
    new
    XmlDocument();
                      doc.LoadXml(strOut);
    //display Error
    XmlNodeList elemList = doc.GetElementsByTagName("Error");
    for (int
    i = 0; i < elemList.Count; i++)
    Console.WriteLine(elemList[i].Attributes["Description"].Value);
                          strMsg += elemList[i].Attributes[
    "Description"].Value +
    "\r\n" ;
                          ++intExitCode;
    //display warnings
                      elemList = doc.GetElementsByTagName(
    "Warning");
    for (int
    i = 0; i < elemList.Count; i++)
    Console.WriteLine("Warning:"
    + elemList[i].Attributes["Description"].Value);
                          strMsg += elemList[i].Attributes[
    "Description"].Value +
    "\r\n" ;
    if (intExitCode == 0)
    Console.WriteLine("XMLA
    Cmd Execute Successfully.");
    if (strMsg !=
    "" && strEmailTo !="")
    if (intExitCode == 0)
                              SendMail(strEmailTo, strEmailFromId,
    "Xmla Command Successful with messages", strMsg);
    else
                              SendMail(strEmailTo, strEmailFromId,
    "Xmla Command Errors", strMsg);
    #if
    DEBUG
    Console.Read();
    #endif
    Environment.Exit(intExitCode);
    static
    string ReplaceTag(string
    strInput, string strBegTag,
    string strEndTag,
    string strValue)
    int nStart = strInput.IndexOf(strBegTag);
    int nEnd = strInput.IndexOf(strEndTag);
    if (nEnd > nStart && nStart > 0)
    string strFullTag = strInput.Substring(nStart, (nEnd - nStart) + strEndTag.Length);
    string strFullTagNew = strBegTag + strValue + strEndTag ;
                    strInput = strInput.Replace(strFullTag, strFullTagNew);
    return strInput;
    if (mShowMsg ==
    "Y")

  • How can I tell/set amount of memory AI uses in OS X?

    Hello
      I'm working on a VERY detailed illustration using CS5. I keep getting out of memory errors when duplicating stuff.
      I have 24GB RAM on my 12-core Mac Pro. Should I be getting these errors? How can I tell how much RAM AI is using, and how can I set it higher if it's not high enough?
    Thanks

    To check memory usage:
    Launch Activity Monitor, located at /Applications/Utilities.
    In the Activity Monitor window that opens, click the 'System Memory' tab.
    From the Activity Monitor menu, select View, Dock Icon, Show Memory Usage.

  • DDocName in the resultset gets higher preference than local variable: unable to set dDocName in the binder using Idoc Script

    Hi,
    I have the following code built using idocScript
    <$dDocName=variableName$>
    <$executeService("DOC_INFO_BY_NAME")$>
    Note: variableName has value of contentID for which "DOC_INFO_BY_NAME" has be executed.
    When i execute this, i see that DOC_INFO_BY_NAME is getting executed for previous content ID that "dDocName" was  holding. In other words, following assignment
    <$dDocName=variableName$>
    Is not taking effect.
    I think the value is not getting updated in the binder. How do i correct this.
    This is little urgent, Any help would be greatly appreciated.
    Thanks and Regards,
    Seshan K.

    This issue is seen when we are accesing the page that list down all the blogs postings along with author images.
    Step 1: Execute the search to fetch blog postings:
             Associated IdocScript: <@dynamichtml dv_blog_landing_page_postings@>
    Step2: Loop through result set and build blog listing
              Assocaited html fragment: <$include dv_blog_post_searchresults_landing_html$>
         Sub step2: Fetch image of blog Author when displaying the blogs listings
                   Associated fragment: <@dynamichtml dv_get_blog_author_image@>
                   Note: Issue is seen in this block
    Following is the actual logic. All the calls to the display fragments are in bold. All the comments are in italics.
    <@dynamichtml dv_blog_landing_page_postings@>
    <$ssNextRow = getValue("#active", "ssNextRow")$>
    <$if not #local.ssNextRow$>
    <$ssNextRow = 1$>
    <$else$>
    <$ssNextRow = #local.ssNextRow$>
    <$endif$>
    <$ResultCount = getValue("#active", ssFragmentInstanceId & "_ssNumPostsPerPage")$>
    <$ResultCount = 5$>
    <$endRow = ssNextRow+ResultCount$>
    <$if #active.debug$>ssNextRow:<$ssNextRow$><br>endRow:<$endRow$><br><$endif$>
    <$ssDontShowInLists="true"$>
    <$if not ssQueryText$>
    <$ssQueryText = "dDocType <matches> `BLOG_ENTRY` <and> xParentId <matches> `" &BlogId &"`"$>
    <$endif$>
    <$QueryText = ssQueryText$>
    <$QueryText = QueryText & " <AND> xPublishDate <= `" & parseDate(dateCurrent()) & "`"$>
    <$QueryText = QueryText & " <AND> xCountryName <substring> `" & countryCode & "`"$>
    <$SortField="xPublishDate", SortOrder="Desc"$>
    <$blogCount = 1$>
    <$StartRow=ssNextRow$>
    <$ssFirstHit=ssNextRow$>
    <$if #active.debug$>
    <textarea cols=10 rows=10><$QueryText$></textarea> <br>
    ResultCount<$ResultCount$><br>
    StartRow: <$StartRow$><br>
    QueryText: <$QueryText$><br/>
    <$endif$>
    <$executeService("SS_GET_SEARCH_RESULTS")$>
    <$newRS = rsRename("SearchResults", "rsBlogPostings")$>
    <$ssAllRows = TotalRows$>
    <$ssThisPage = (ssNextRow + ResultCount - 1)/ResultCount$>
    <$ssLastPage = (ssAllRows + ResultCount - 1)/ResultCount$>
    <$ssFirstHit=ssNextRow$>
    <$ssLastHit=ssNextRow + ResultCount - 1$>
    <$if ssThisPage == ssLastPage$>
    <$ssLastHit = ssLastHit - 1$>
    <$endif$>
    <!-- Update the author name if blog author is not specified -->
    <$if rsBlogPostings$>
    <$loop rsBlogPostings$>
    <$if strLength(rsBlogPostings.xProductName)==0$>
    <$postAuthorImageEntry = ssIncludeXml(rsBlogPostings.dDocName, "Blog_Entry/AuthorImage/node()")$>
    <$posOfColon=strIndexOf(postAuthorImageEntry,"::") $>
    <$authorContentID=strSubstring(postAuthorImageEntry,0,posOfColon)$>
    <$dDocName=authorContentID$>
    <$executeService("DOC_INFO_BY_NAME")$>
    <$BlogEntryAuthorName=DOC_INFO.xProductName$>
    <$if BlogEntryAuthorName$>
    <$updateAuthor_In_BlogEntry(rsBlogPostings.dID,rsBlogPostings.dDocName,rsBlogPostings.dSecurityGroup,rsBlogPostings.dRevLabel,rsBlogPostings.dDocAccount,BlogEntryAuthorName)$>
    <$c="Custom IDOC Function updateAuthor_In_BlogEntry(dID,dDocName,dSecurityGroup,dRevLabel,dDocAccount,xProductName)"$>
    <$endif$>
    <$endif$>
    <$endloop$>
    <$endif$>
    <$BlogName = BlogId$>
    <$if rsBlogPostings$>
    <$blogLandingPage=1$>
    <$loop rsBlogPostings$>
    <$likeDocName = rsBlogPostings.dDocName$>
    <$allowRegisterLike=0$>
    <$blogUrl = rsBlogPostings.ssUrl$>
    <!-- Call to the fragment to display blog listings -->
    <$include dv_blog_post_searchresults_landing_html$>
    <$blogCount = blogCount + 1$>
    <$endloop$>
    <$endif$>
    <$dDocName = BlogId$>
    <$if #active.debug$><b>Paging Debug:</b><br>ssAllRows:<$ssAllRows$><br>ssThisPage:<$ssThisPage$><br>ssLastPage:<$ssLastPage$><br>ssNextRow:<$ssNextRow$><br>ResultCount:<$ResultCount$><br><$endif$>
    <@end@>
    <!-- Fetching Details of each blog -->
    <@dynamichtml dv_blog_post_searchresults_landing_html@>
    <!--blog posting [start]-->
    <!-- Fetching the details of each individual blogs -->
    <$postTitle = ssIncludeXml(rsBlogPostings.dDocName, "Blog_Entry/Title/node()")$>
    <$post = ssIncludeXml(rsBlogPostings.dDocName, "Blog_Entry/Post/node()")$>
    <$postAuthorImage = ssIncludeXml(rsBlogPostings.dDocName, "Blog_Entry/AuthorImage/node()")$>
    <$listingSummary = ssIncludeXml(rsBlogPostings.dDocName, "Blog_Entry/short_description_blogarticles/node()")$>
    <$include dv_blog_post_listing_sumamry$>
    <$if blogLandingPage$> <$postEntry = ssIncludeXml(dDocName, "Blog_Entry/Post/node()")$><$endif$>
    <div class="blog_container_template_2">
    <div class="blog_separator"> </div>
    <div class="blog_container">
    <div class="blog_image_2">
    <$include dv_get_blog_author_image$>
    </div>
    <div class="blog_title_and_author_wide">
    <h3><a href="<$ssUrl$>"><$postTitle$></a></h3>
    <p><strong><$lc("COLT_DV_wwBy_" & languageCode)$>  <a href="<$authorBlogsListLink$>"><$authorName$></a> - <$formatDateWithPattern(rsBlogPostings.xPublishDate, "dd MMM yyyy")$></strong>
    </p>
    <$allowRegisterLike=1$> <$c="If set to 1 it breaks since more than 1 on page"$>
    <$wcmFragment("wcm", "DV_FRG_LIKESCOMMENTS", "DV_FRG_LIKESCOMMENTS", "1")$>
    </div>
    </div>
    <div class="blog_separator_dots"> </div>
    <div style="clear:both"></div>
    <div class="blog_container_Blog_Post">
    <p><$listingSummary$> [...] <a href="<$ssUrl$>"><$lc("ReadMore_" & languageCodeUpper)$></a></p>
    </div>
    </div>
    <!--blog posting [End]-->
    <@end@>
    <!-- Fetching Author image for each blog, we basically execute DOC_INFO_BY_NAME and construct the resource url for the image. -->
    <!-- This is the block where actual problem is -->
    <@dynamichtml dv_get_blog_author_image@>
    <$authorName="anonymous"$>
    <$if postAuthorImage AND strIndexOf(postAuthorImage,"::") > 0$>
    <$posOfDot1=strIndexOf(postAuthorImage,"::") $>
    <$variableName=strSubstring(postAuthorImage,0,posOfDot1)$>
    <$dDocName=variableName$> <!-- this assignment does not work -->
    <!-- This service gets executed for the for blog entry, rather than image file -->
    <$executeService("DOC_INFO_BY_NAME")$>
    <$authorName=DOC_INFO.xProductName$>
    <$authorBio=DOC_INFO.xComments$>
    <$authorBioLink=DOC_INFO.xKeywords$>
    <$authorBlogsListLink="/" & strLower(countryCode) & "/" & languageCode & "/blogs/author/" & DOC_INFO.xFriendlyURL$>
    <$c="The following variable has been added for Security Model changes "$>
    <$blogAccount = "@" & strReplace(DOC_INFO.dDocAccount,"/","/@")$>
    <$authorImgSrc = HttpRelativeWebRoot & "groups/" & DOC_INFO.dSecurityGroup & "/"&blogAccount&"/documents/" & DOC_INFO.dDocType & "/" & variableName & "." & DOC_INFO.dExtension$>
    <img height="70px" width="66px" src="<$strLower(authorImgSrc)$>" />
    <$else$>
    <img class="blogAuthorImage" width=70 src="<$HttpWebRoot$>resources/DV_Resources/images/public/silhouette.png"/>
    <$endif$>
    <@end@>
    Thanks,
    Seshan K.

  • Server  performance slow using sql server 2005

    Dear Team,
    Kindly assist me in solving the performance issue .
    The server is very slow and it is taking more time.,
    SAP version details:
    - SAP ECC 6.0 sr3 version.
    -DB SQl server 2005.
    performance is very slowi,ts is taking time to execute the Transactions.
    Appreciate for quick response.
    Thanks&Regards
    Kumarvyas

    Dear Team,
    In T- code:   DB13
    Space overview
    Found an error:"  ERROR CONDITION EXISTS- CHECK FILES TAB ".
    in the files TAB:  Datafiles: 
    Exception in red  for <SID>DATA1, :  <SID>DATA2,:  <SID>DATA3
    Freepct: 0,0,0,
    Free pct :  Free percentage of space in a SQL Server file tab
    How to extend the The DATA files in SQL server 2005
    Reagrds
    Kumar

Maybe you are looking for

  • Sync my Mac Mini to my iPhone 4

    Can I sync my Mac Mini to my iPhone 4, remotely using home sharing? Basically I want to be able to sync music, movies, and audio books to my iPhone without having to dig round the back of my computer for my apple cabble. I want to know if its possibl

  • Sound quits and the video keeps going

    When playing movies or TV episodes on the Apple TV 2 the sound will stop randomly, but the video keeps going. I will have to stop the video by going out to the menu and then resume the video to get the sound back. Apple TV: v4.4.3 iTunes: v10.5.1

  • Putting Validations in the event of table maintainance generator

    Hi All, I have one table with 4 fields. 3 are key fields. Now requirement is to put a perticular error message in the maintainance screen, when the combination of field1, and field2 is used more than once . Currently I am getting the inbuilt error me

  • What is the Java default ORB implementation class?

    I have a web application deployed on the Sun Java System Application Server 8. This application will also act as a CORBA client by invoking remote methods on another CORBA server. Our first approach was to use the ORB provided by the Sun App Server.

  • Now unable to use Touch Up Text Tool

    Since 2007, I've used a mac laptop for creating invoices in Quickbooks and saved them as pdfs. They are saved to my 2009 IMac as acrobat (9.4.1. version) pdfs. Over the years I have, on occasion, made minor edits using the edit text tool. Beginning y