Dynamica SQL

We have created a lot of "MATERIALIZED" views for each parameter values. For example, for parameter A, we would like to use materialized view A. So the final sql would be "SELECT * FROM materialized_view_A".
And for parameter B, we would like to use materialized view B. So the final sql would be "SELECT * FROM materialized_view_B".
This is to improve performance. I can create seperate report for each parameter, but I would like to avoid this otherwise I'll be nightmare to maintain the reports.
Deepak

Hi Rod / Russ
The only time I would use an MV in this situation is if the MV was being created anyway for query performance and there was an index on the item I wanted for the LOV.
In an E-Business Suite environment I always create an MV using the BOM_CALENDAR_DATES, BOM_CAL_WEEK_START_DATES and GL_PERIODS. Here's one of my scripts:
CREATE MATERIALIZED_VIEW DATES_DIM_MV AS
SELECT
GLP.PERIOD_SET_NAME,
BCD.CALENDAR_DATE CDATE,
UPPER(TO_CHAR(BCD.CALENDAR_DATE, 'MON-YY')) CMTH,
'CQ' || TO_CHAR(BCD.CALENDAR_DATE,'YY') || '-' || TO_CHAR(BCD.CALENDAR_DATE, 'Q') CQTR,
TO_NUMBER(TO_CHAR(BCD.CALENDAR_DATE,'YYYY')) CYEAR,
TRUNC (BCD.CALENDAR_DATE,'MM') CMTH_STDATE,
TO_NUMBER(TO_CHAR(BCD.CALENDAR_DATE,'MM')) CMTH_NUM,
TO_NUMBER(TO_CHAR(BCD.CALENDAR_DATE,'DD')) DOM,
UPPER(TO_CHAR(BCD.CALENDAR_DATE, 'MON-YY')) FPERIOD,
SUBSTR('FQ' || DECODE(TO_CHAR(BCD.CALENDAR_DATE, 'Q'), 4,
TO_CHAR(BCD.CALENDAR_DATE + 365,'YY'), TO_CHAR(BCD.CALENDAR_DATE,'YY')) || '-' || DECODE(TO_CHAR(BCD.CALENDAR_DATE, 'Q'), 4,1,3,4,2,3,1,2),1,6) FQTR,
'FY-' || DECODE(TO_CHAR(BCD.CALENDAR_DATE, 'Q'), 4, TO_CHAR(BCD.CALENDAR_DATE+365,'YYYY'), TO_CHAR(BCD.CALENDAR_DATE,'YYYY')) FYEAR,
MOD(TO_NUMBER(TO_CHAR(BCD.CALENDAR_DATE,'MM'))+2,12)+1 FMTH_NUM,
TRUNC(BCD.CALENDAR_DATE,'Q') FQTR_STDATE,
BWS.WEEK_START_DATE WK_STDATE,
BWS.WEEK_START_DATE + 6 WK_ENDATE
FROM
GL.GL_PERIODS GLP,
BOM.BOM_CALENDAR_DATES BCD,
BOM.BOM_CAL_WEEK_START_DATES BWS
WHERE
BCD.CALENDAR_DATE >= '01-OCT-2005' AND
UPPER(GLP.PERIOD_NAME) = UPPER(TO_CHAR(BCD.CALENDAR_DATE, 'Mon-YY')) AND
GLP.PERIOD_SET_NAME = calendar_name1 AND
BCD.CALENDAR_DATE >= BWS.WEEK_START_DATE AND
BCD.CALENDAR_CODE = calendar_name2 AND
BCD.CALENDAR_DATE < BWS.NEXT_DATE AND
BWS.CALENDAR_CODE = BCD.CALENDAR_CODE
ORDER BY 1,2;
Note: replace calendar_name1 and calendar_name2 with whatever is the name of the calendar used by the company. In many cases these are the same value, but some companies have different values.
With that done, I would create a unique indexe on the CDATE, with non-unique indexes on FPERIOD, FQTR, FYEAR and the FWK_STDATE.
I would then use those indexes to create my LOVs.
The above code works for a fiscal calendar that runs from 01-OCT of one year to 30-SEP of the next. The code would need to be adjusted if the fiscal year did not correspond to this.
With this date dimension in place I then replace Oracle's date hierarchies with folders pointing at this MV, with hierarchies on the date, week, month, quarter and year. Performance of most E-Business Suite queries that use GL_PERIOD improve by a factor of between 10 and 100.
Hope this helps
Regards
Michael

Similar Messages

  • Sql Server 2012 Cluster IP Responses to MS Dynamics APP server broadcasts

    Hi All,
     We are facing issues in our brand new MS Dynamics AX 2012 R3 installation with clustered MS SQL 2012.
    The DB server responses to the APP servers is like broadcasting to every system connected to the subnet. In our case that subnet is 192.168.2.0/24. But the packets sent from the AOS / APP server is not refelecting on other machines. We haven't made any changes
    to the routing / switching config after the installation.
    Attaching a screenshot for your reference.
    Please guide us on what can be done to find the cause and solve it
    Thanks,
    Sriram A Das

    Hi D. Graf,
    According to my knowledge, you can choose the order (each server's IP address­-> SQL Server instance IP-> Failover cluster instance IP) to change these IP addresses.
     And before the process, please take SQL Server Cluster Instance Offline in Failover Cluster Manager . For more details, please review the following articles.
    How to change the IP address of the cluster nodes hosting a SQL Server instance
    http://iamoffthebus.wordpress.com/2012/03/30/how-to-change-the-ip-address-of-the-cluster-nodes-hosting-a-sql-server-instance/
    Change the IP Address of a Failover Cluster Instance
    http://msdn.microsoft.com/en-us/library/ms190460(v=sql.110).aspx
    In addition, about network adapter issues and cluster nodes issues, I would like to
    recommend you post the question in the Windows
     server clustering forum at
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=winserverClustering
     . It is appropriate and more experts will assist you.
    Thanks,
    Lydia Zhang
    If you have any feedback on our support, please click
    here.

  • Dynamics AX Model Store Import Incompatibility with SQL Server Replication

    We are using SQL Server Transactional Replication (SQL Server 2008 R2) to replicate a subset of Dynamics AX tables to a separate instance for reporting.  During monthly releases, we're encountering an error during Model Store Import that says a table
    cannot be dropped because it is used for replication.  However, this article states that Transactional Replication is supported:
    http://technet.microsoft.com/en-us/library/dd362068.aspx.  So, is it, or isn't it?  Right now, we have to drop the subscription, drop the publication, perform the import, then
    recreate both the publication and subscription, and re-initialize the subscription. 
    Has anyone out there dealt with this issue?

    Sounds like the issue is with the model store import portion. The problem could be with a single table. What I would do is trace the model store import to figure out what tables are being dropped as part of the import process.
    Then put these tables in their own publication and only drop the subscription to these tables and recreate the subscription after the import is done.
    looking for a book on SQL Server 2008 Administration?
    http://www.amazon.com/Microsoft-Server-2008-Management-Administration/dp/067233044X looking for a book on SQL Server 2008 Full-Text Search?
    http://www.amazon.com/Pro-Full-Text-Search-Server-2008/dp/1430215941

  • SQL 2012 Always On Availability Create Key for Dynamics CRM syntax

    Hi I am trying to follow this terribly written article to setup CRM to be part of a SQL alwayson availability group.  
    The part that is pissing me off is the create SQL logins.  http://technet.microsoft.com/en-us/library/jj822357.aspx#BKMK_always_updateorg
    So many errors with this post causing so much frustration.  What is the actual correct Syntax for creating the key?
    Obviously you have to use a UNC path to the CRM front end server.  SQL doesnt like UNC and I think an earlier guy said it doesnt like double quotes.  Here is what I have and it does not like it.  Its hard to see but right before end I have two
    single quotes to close it.  It's complaining about the \\ in the UNC path.  
    IF NOT EXISTS (SELECT * FROM sys.asymmetric_keys WHERE name = 'MSCRMSqlClrKey') BEGIN EXECUTE ('CREATE ASYMMETRIC KEY MSCRMSqlClrKey FROM EXECUTABLE FILE ='\\CRM2013\C$\Program Files\Microsoft Dynamics CRM\tools\Microsoft.Crm.SqlClr.Helper.dll'')END

    I finally got it working not by using the syntax in that article though.  First I did the select all from to see if the key existed by itself  
    SELECT * FROM sys.asymmetric_keys WHERE name = 'MSCRMSqlClrKey'
    NO key was there so then I did 
    CREATE ASYMMETRIC KEY MSCRMSqlClrKey FROM EXECUTABLE FILE ='C:\Program Files\Microsoft Dynamics CRM\tools\Microsoft.Crm.SqlClr.Helper.dll'

  • Error while executing SSIS package which contains Script component through SQL Server Agent Job

    Hello All,
    I have written one SSIS 2012 package which is fetching records from CSV and put it into staging DB and from staging DB , using SSIS script component task, I am inserting data into Dynamics CRM. So far it is working fine when
    I manually execute SSIS package.
    but when I run the SSIS package using SQL server agent job, I encounter below error. After seeing below error at step "Insert TLM Headers Script Component " I understand that it is failing at script component which I have used in SSIS package,
    but I am not sure what is the cause behind that? please advise.
    Error:
    Executed as user: domain\user account. Microsoft (R) SQL Server Execute Package Utility  Version 11.0.5556.0 for 64-bit  Copyright (C) Microsoft Corporation. All rights reserved.    Started:  1:21:41 PM  Error: 2015-02-25
    13:21:45.94     Code: 0xC0047062     Source: Insert TLM Headers Script Component [205]     Description: System.ServiceModel.FaultException: The server was unable to process the request due to an internal
    error.  For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to
    the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.    Server stack trace:      at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message
    reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)     at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)    
    at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)     at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage
    methodCall, ProxyOperationRuntime operation)     at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)    Exception rethrown at [0]:      at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.HandleUserException(Exception
    e)     at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.ProcessInput(Int32 inputID, PipelineBuffer buffer)     at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostProcessInput(IDTSManagedComponentWrapper100
    wrapper, Int32 inputID, IDTSBuffer100 pDTSBuffer, IntPtr bufferWirePacket)  End Error  Error: 2015-02-25 13:21:45.94     Code: 0xC0047022     Source: Insert TLM Headers SSIS.Pipeline    
    Description: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "Script Component" (205) failed with error code 0x80131501 while processing input "Input 0" (215). The identified component returned an error
    from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.  There may be error messages posted before this with more information about the failure.  End Error 
    DTExec: The package execution returned DTSER_FAILURE (1).  Started:  1:21:41 PM  Finished: 1:21:45 PM  Elapsed:  4.009 seconds.  The package execution failed.  The step failed.
    Thanks
    Pankaj

    domain\user account has not proper rights
    That being said, often SSIS jobs require a proxy to be runnable and this is how you make one up
    http://www.mssqltips.com/sqlservertip/2163/running-a-ssis-package-from-sql-server-agent-using-a-proxy-account/
    Arthur
    MyBlog
    Twitter

  • Dynamic SQL Error -ORA-00904: invalid identifier

    Hello!
    I'm really hoping I can get some fast help on this. In the interest of honesty, this is for a university oracle programming assignment. I've searched everywhere I can for the answer and haven't had any luck.
    Anyway, the problem in a nutshell. I have to write a package to write a text file. The formatting information for the file is held in a table, which has columns to define the various characteristics like justification, padding character and field value.
    RECORDTYPE FIELDNAME FIELDVALUE FIELDSIZE FIELDORDER PADDINGCHAR JUSTIFICATION DATASOURCE
    7 CreditTotal v_credit 10 5 '0' LPAD PROGRAM
    7 RecordType '7' 1 1 ' ' RPAD HARDCODE
    I can build the whole file except this footer. the FieldValue "v_credit" references a variable that has the calculated total of the credit amounts for the file. There are also "v_debit", and "(v_credit-v_debt)" entries.
    My question seems simple... How can I use this VARCHAR2 value from the table, and have it reference the variable within a Dynamic SQL string? If I use the textvalue of the column in the SQL string it gives me the invalid identifier error when it hits the EXECUTE IMMEDIATE statement. There is another row for the header which has "to_char(sysdate,'DDMMYYYY')" in it, and that runs fine. I'm assuming because they are native SQL statements and variables.
    I have tried encapsulating the v_credit in "s, and using dynamica bind variables but had the same problem passing the names to the USING clause.
    The SQL string created by the procedure is: SELECT LPAD(v_credit,10,'0' ) FROM dual
    The full error is:
    ORA-00904: "V_CREDIT": invalid identifier
    ORA-06512: at "BWOOD.PKG_BRIAN", line 108
    ORA-06512: at line 2
    Line 108 is the EXECUTE IMMEDIATE statement
    I would really appreciate someones help! I'm happy to post the procedure I've written, with the caveat that it's sloppy student work and needs cleaning up of all the experimental commented attempts:)
    Edited by: user5426606 on 20-May-2009 03:34 - Added a few more facts.

    Thank you for the fast replies. I'll post a short chunk of code to demonstrate.
    The actual procedure is quite a bit longer, but this should give you the idea.
    PROCEDURE build_dbfile (p_settlement_date IN DATE, p_settlement_key IN VARCHAR2, p_type IN VARCHAR2) AS
    v_sqlString    VARCHAR2(4000) := 'SELECT ';
    v_rectype     NUMBER := 7;
    v_line           LONG;
    v_debit        NUMBER := 0;
    v_credit       NUMBER := 0;
    v_nrRecords    NUMBER := 0;
      CURSOR c_settlement IS... -- to select records for data rows
    -- cursor to select the rows with the file formatting and data info
      CURSOR c_header IS   SELECT   NVL(fieldvalue,fieldname) db_field, <---- selects the data column
                                                   fieldsize,
                                                   NVL(paddingchar, ''' ''') paddingchar,
                                                   NVL(justification,'LPAD') justification,
                                                  datasource
                                      FROM     FSS_DESKBANK_REF
                                      WHERE    recordtype = r_rec_types.recordtype
                                      ORDER BY recordType, fieldorder;
    -- SELECT to get the SUM of datarows for v_credit
      SELECT      SUM(transactionamount)
      INTO      v_credit...
    -- SELECT to get the SUM of datarows for v_debit
      SELECT      SUM(transactionamount)
      INTO      v_debit....
    FOR r_head IN c_header LOOP
    v_sqlString := v_sqlString  || r_head.justification|| '('
                                         || r_head.db_field ||','
                                         || r_head.fieldsize || ','
                                         || r_head.paddingchar || ')';
    v_sqlString := v_sqlString || ' FROM ' || v_tbl_name;
    DBMS_OUTPUT.PUT_LINE('SQL --> '||v_sqlString);
    EXECUTE IMMEDIATE v_sqlString INTO v_line;
    END LOOP;
    DBMS_OUTPUT.PUT_LINE(v_line);
    END build_dbfile;So the loop goes through the table rows, grabs each data value and formatting column, and builds the sql string, which is then passed to the execute statement. The issue is the ones where the datarow contains a reference to v_credit, and the error is generated. ie r_head.db_field contains the string "v_credit"
    Satish, the sql does look like that in the string, but the string is built from the table, not hardcoded. ie v_sqlString = "SELECT LPAD(v_credit,10,'0' ) FROM dual" when it is passed to the EXECUTE IMMEDIATE.
    Edited by: user5426606 on 20-May-2009 05:19

  • SQL 2012 R2 - SSRS with the Report Server Web Service URL, can't access

    Hello:
    I am installing Dynamics CRM 2013.  When I am on RS Configuration manager; I am running into the SSRS (SQL 2012 on Server 2012)SQL issue, can't access the
    http://servername/:80/ReportsServer or
    http://servername/:Reports web pages
    The database server has SSRS native mode installed, it is using a domain account for the service credentials.  This account also has permission to log on a service in the GPO
    Account is a domain admin and is a local administrator
    SQL server is 2012 R2 on Windows Server 2012.  User base is less than 60 people and they have SharePoint 13 on the same SQL server.  Server more than enough resources.
    Any assistance would be appreciated.
    Thanks..Dan

    Hi DCas1,
    According to your description, you could not access
    http://servername/:80/ReportsServer or http://servername/:Reports web pages from Reporting Services configuration manager, SSRS in configured in native mode and the account you used is a local administrator.
    In Reporting Services, URLs are used to access the Report Server Web service and Report Manager. Before we can use either application, we need to configure at least one URL each for the Web service and Report Manager. If we are using the Reporting Services
    Configuration tool to create or modify the URLs, we can accept the default values for a URL or specify custom values. When we create a report server URL, we must specify the following parts: Host name, port and Virtual directory. In order to improve the efficiency
    of troubleshooting, I need to ask several questions:
    Since the default URL is http://<computername>/reportserver, did you type the URLs manually? or the URLs configured in Reporting Services configuration manager are
    http://servername/:80/ReportServer and
    http://servername/:Reports?
    Could you provide detailed information of error log(default location: %programfiles%\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\LogFiles)?
    For more information about Configuring a URL, please refer to the following documents:
    http://msdn.microsoft.com/en-us/library/ms159261(v=sql.110).aspx
    http://msdn.microsoft.com/en-us/library/bb630447(v=sql.110).aspx
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu

  • SQL 2012 Reporting Services hang

    Hello,
    we are using SQL 2012 Reporting Services with Dynamics CRM Reports. Since a few wekkes every other day it looks like my Reproitng services do fail. CRM Reports do not work and  If I try to browse https://sql2012.mobilex.intra/Reports/Pages/Folder.aspx
    I get the login prompt but than it only shows "Could not find file 'C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\vsuzsax3.dll'." while the dll is always a different one. It looks like whole path C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp
    is not available at that moment. If I than restart my SQL Reporting Services service everything starts working again for one or two days...
    Any idea where I can start debugging this issue?
    kind regards,
    Dieter Tontsch, mobileX AG

    Hello Vicky, thanks for your reply,
    see attached a log-file snippet while it just occurs again. It might be a file permission issue. I will do the changes suggested by you once I am back to the office. It is true that yet the Reporting Service runs under Network Service account. Some questions:
    - you suggested to change SQL Service Logon, do you realy mean SQL service itself, or just Reporting services? Should I change all SQL services logon credentials to the same account?
    - second you said "Provide full access to the "\Documents and Settings\NetworkService\Local Settings\Temp" for any account that needs to access the report server.". I am not sure which path is meant with "\Documents and Settings\NetworkService\Local
    Settings\Temp" since there is no Documents and settings, this is users now. But I guess this is not the place you mean since there is no profile for NetworkService in there.
    But one more thin, this temporary file the server complains about like in this case 'C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\uiy82bjf.dll' is not existing at this point. I don't know if this is relevant, but it looks to me like it looks
    for a temporary file which is already gone by some reason. So, it is not the problem that the file cannot be accessed, but it is not there or not there any more, I don't know. Fact is that immediately after a Reporting Service restart, with no changes made,
    the Services work again for a while. 
    Dieter
    ui!ReportManager_0-4!115c!04/30/2015-08:00:43:: e ERROR: System.IO.FileNotFoundException: Could not find file 'C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\uiy82bjf.dll'.
    File name: 'C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\uiy82bjf.dll'
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
       at Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String[] fileNames)
       at Microsoft.CSharp.CSharpCodeGenerator.FromSourceBatch(CompilerParameters options, String[] sources)
       at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSourceBatch(CompilerParameters options, String[] sources)
       at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromSource(CompilerParameters options, String[] sources)
       at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence)
       at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies)
       at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence)
       at System.Xml.Serialization.XmlSerializer.GetSerializersFromCache(XmlMapping[] mappings, Type type)
       at System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[] mappings, Type type)
       at System.Web.Services.Protocols.SoapClientType..ctor(Type type)
       at System.Web.Services.Protocols.SoapHttpClientProtocol..ctor()
       at Microsoft.SqlServer.ReportingServices2010.ReportingService2010..ctor()
       at Microsoft.SqlServer.ReportingServices2010.RSConnection2010..ctor(String reportServerUrl, Boolean useSharePointProxy)
       at Microsoft.ReportingServices.UI.Global.get_ReportServer()
       at Microsoft.ReportingServices.UI.Global.SecureAllAPI()
       at Microsoft.ReportingServices.UI.ReportingPage.EnsureHttpsLevel()
       at Microsoft.ReportingServices.UI.ReportingPage.ReportingPage_Init(Object sender, EventArgs args)
       at System.EventHandler.Invoke(Object sender, EventArgs e)
       at System.Web.UI.Control.OnInit(EventArgs e)
       at System.Web.UI.Page.OnInit(EventArgs e)
       at System.Web.UI.Control.InitRecursive(Control namingContainer)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    ui!ReportManager_0-4!115c!04/30/2015-08:00:43:: e ERROR: System.IO.FileNotFoundException: Could not find file 'C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\_dww3cf5.dll'.
    File name: 'C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\_dww3cf5.dll'
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
       at Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String[] fileNames)
       at Microsoft.CSharp.CSharpCodeGenerator.FromSourceBatch(CompilerParameters options, String[] sources)
       at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSourceBatch(CompilerParameters options, String[] sources)
       at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromSource(CompilerParameters options, String[] sources)
       at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence)
       at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies)
       at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence)
       at System.Xml.Serialization.XmlSerializer.GetSerializersFromCache(XmlMapping[] mappings, Type type)
       at System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[] mappings, Type type)
       at System.Web.Services.Protocols.SoapClientType..ctor(Type type)
       at System.Web.Services.Protocols.SoapHttpClientProtocol..ctor()
       at Microsoft.SqlServer.ReportingServices2010.ReportingService2010..ctor()
       at Microsoft.SqlServer.ReportingServices2010.RSConnection2010..ctor(String reportServerUrl, Boolean useSharePointProxy)
       at Microsoft.ReportingServices.UI.Global.get_ReportServer()
       at Microsoft.ReportingServices.UI.Global.SecureAllAPI()
       at Microsoft.ReportingServices.UI.GlobalLinks.Control_Init(Object sender, EventArgs args)
    ui!ReportManager_0-4!115c!04/30/2015-08:00:43:: e ERROR: HTTP status code --> 500
    -------Details--------
    System.IO.FileNotFoundException: Could not find file 'C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\uiy82bjf.dll'.
    File name: 'C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\uiy82bjf.dll'
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
       at Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String[] fileNames)
       at Microsoft.CSharp.CSharpCodeGenerator.FromSourceBatch(CompilerParameters options, String[] sources)
       at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSourceBatch(CompilerParameters options, String[] sources)
       at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromSource(CompilerParameters options, String[] sources)
       at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence)
       at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies)
       at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence)
       at System.Xml.Serialization.XmlSerializer.GetSerializersFromCache(XmlMapping[] mappings, Type type)
       at System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[] mappings, Type type)
       at System.Web.Services.Protocols.SoapClientType..ctor(Type type)
       at System.Web.Services.Protocols.SoapHttpClientProtocol..ctor()
       at Microsoft.SqlServer.ReportingServices2010.ReportingService2010..ctor()
       at Microsoft.SqlServer.ReportingServices2010.RSConnection2010..ctor(String reportServerUrl, Boolean useSharePointProxy)
       at Microsoft.ReportingServices.UI.Global.get_ReportServer()
       at Microsoft.ReportingServices.UI.Global.SecureAllAPI()
       at Microsoft.ReportingServices.UI.ReportingPage.EnsureHttpsLevel()
       at Microsoft.ReportingServices.UI.ReportingPage.ReportingPage_Init(Object sender, EventArgs args)
       at System.EventHandler.Invoke(Object sender, EventArgs e)
       at System.Web.UI.Control.OnInit(EventArgs e)
       at System.Web.UI.Page.OnInit(EventArgs e)
       at System.Web.UI.Control.InitRecursive(Control namingContainer)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    ui!ReportManager_0-4!115c!04/30/2015-08:00:44:: e ERROR: System.Threading.ThreadAbortException: Thread was being aborted.
       at System.Threading.Thread.AbortInternal()
       at System.Threading.Thread.Abort(Object stateInfo)
       at System.Web.HttpResponse.End()
       at Microsoft.ReportingServices.UI.ReportingPage.ShowErrorPage(String errMsg)

  • DATE and Time related FUNCTIONS in SQL

    I want to know the Answers(Queries) for below mentioned Question.
    Q!--list the name of account holders who have opened a/c in the last 5 days
    Q2--week-wise no of account opened in Last month?
    Q3--list branch-wise,product-wise total amount as on Last Friday?
    Q4--list the customers who opened a/c in first week of last month?
    Q5-- how many customers opened a/c in last date of previous month?
    IN SQL language

    Unfortunately your post is off topic as it's not specific to SQL Server Samples and Community Projects.  
    This is a standard response I’ve written in advance to help the many people who post their question in this forum in error, but please don’t ignore it.  The links I provide below will help you determine the right forum to ask your question
    in.
    For technical issues with Microsoft products that you would run into as an end user, please visit the Microsoft Answers forum ( http://answers.microsoft.com ) which has sections for Windows, Hotmail,
    Office, IE, and other products.
    For Technical issues with Microsoft products that you might have as an IT professional (like technical installation issues, or other IT issues), please head to the TechNet Discussion forums at http://social.technet.microsoft.com/forums/en-us, and
    search for your product name.
    For issues with products you might have as a Developer (like how to talk to APIs, what version of software do what, or other developer issues), please head to the MSDN discussion forums at http://social.msdn.microsoft.com/forums/en-us, and
    search for your product or issue.
    If you’re asking a question particularly about one of the Microsoft Dynamics products, a great place to start is here: http://community.dynamics.com/ 
    If you think your issue is related to SQL Server Samples and Community Projects and I've flagged it as Off-topic, I apologise.  Please repost your question and include as much detail as possible about your problem so that someone can assist you further. 
    If you really have no idea where to post your question please visit the Where is the forum for…? forum http://social.msdn.microsoft.com/forums/en-us/whatforum/ 
    When you see answers and helpful posts, please click Vote As Helpful,
    Propose As Answer, and/or Mark As Answer
    Jeff Wharton
    MSysDev (C.Sturt), MDbDsgnMgt (C.Sturt), MCT, MCSA, MCSE: BI
    Blog: Mr. Wharty's Ramblings
    Twitter: @Mr_Wharty
    MC ID:
    Microsoft Transcript

  • How can I move or delete files with PL-SQL???

    I have Oracle 9i and Sun Solaris 5.8
    I have a table (“TABLE_FILENAME”) with the files name in one directory. (I read the files name in a directory and put it in a table). I charge some files with external tables and then I have to move some fields to another directory and delete others files.
    How can I delete files with PL-SQL and How can I move files with PL-SQL?
    I have the names of files and the actions (Delete o Move) in a table (“TABLE_FILENAME”) (The files in this table are dynamics).

    If you're using 9i then you will find that the new functions UTL_FILE.FCOPY and UTL_FILE.FREMOVE will allow you to do what you want. Check out the documentation for more details.
    Cheers, APC

  • JavaScript files are not being updated while updating managed solution over Dynamics CRM Online

    Hi Support,
    While I am updating a managed solution over Dynamics CRM 2013 Online, JavaScript files are not being updated and is showing the source as of the last version of the managed solution. 
    I tried the same versions of solution on my CRM 2013 on-premise install (test organization) and it updated successfully.
    This is a bit urgent issue. Please suggest how to resolve this.
    Online version of the CRM is
    Microsoft Dynamics® CRM Online Spring '14
    (6.1.1.1855) (DB 6.1.1.1847)
    blog: <a href="http://technologynotesforyou.wordpress.com">http://technologynotesforyou.wordpress.com</a> | skype: ali.net.pk

    Our technical team managed to find the immediate cause for the problem, and a solution.
    According to them there was a corruption on a speciffic OLAP file. By deleting it, they allowed it to be recreated on the next application processing. The file in question was found in \Microsoft SQL Server\MSSQL.2\OLAP\Data\UGF.0.db\<APPLICATION>.38.cub.xml
    Where <APPLICATION> is the name of the problematic cube.
    After that everything is working.

  • SQL Server Time Zone settings

    Hi Folks,
      I am looking for some help on how we will handle time zone setting in a SQL Cluster.  We currently have a six node SQL cluster with multiple instances running on it.  I have been asked to supply a new Instance for a new project but the problem
    is the users that will be using it are based in New Zealand and We are located in Dublin!  They will be using a Dynamics Navision database on this Instance.  So my question is can I set the time zone different on this new Instance to their time,
    cant seem to find any details this.  Most of the documentation seems to indicate you use the datetimeoffset feature or its usually handled within the Application.  I am hoping its the latter but any help on this would be grateful, especially if somebody
    had experience with the issue before.
    Thanks
    TD

    That's quite the time difference, hope you're not on-call ;)
    SQL Server doesn't maintain it's own time, it just inherits it from Windows, so in this case you'll have to leave the time as-is and allow the app to handle it. I've previously worked with navision over two time zones (only a one hour difference though) and
    I believe it maintains dates in UTC.
    Just be careful that any custom code you run in SQL Server jobs, etc also uses UTC.
    Edit: The
    Nav datetime is stored in UTC
    A DateTime is stored in the database as Coordinated Universal Time (UTC). 

  • Using s SQL server as a data source for Project Siena (An AX SQL database more specificaly)?

    I cant seem to find this information on the internet yet so I figured I would ask my question here.
    I would like to pull data from a Dynamics AX sql database to use in a project siena app. I have heard that this is something that is planned for a future release of Siena but is there any way this can be done currently?
    Thank you

    Hi Philip,
    It's not supported in the current version. The following thread from Vijay outlines some of the features targeted for the next release:
    http://social.technet.microsoft.com/Forums/en-US/405aed19-21b8-4a36-bf45-b1d962567c3b/some-functionality-in-the-next-siena-refresh?forum=projectsiena. As you can see, it will include read/write over web services. So, if your data is exposed using services,
    you should be able to meet your requirements.
    Thanks
    Robin

  • How to processing the results from the select statement in SQL query?

    Hi
    This might be too simple, but my knowledge of the SQL is very limited...
    I have table where I do have details from calls (Lync QoE).
    I can take all calls from the table, but I would like to count the concurrent calls on the table. This is how I got it work on the Excel to work (but I would like to do that on the SQL statement to get it more dynamic use):
    Table have these line and this is what I get out from the Select):
    [callid],[start],[end]
    1ABC,1.1.2014 01:00:15, 1.1.2014 01:01:00
    5DEF,1.1.2014 01:00:45, 1.1.2014 01:05:00
    FDE2,1.1.2014 01:03:15, 1.1.2014 01:04:00
    KDJ8,1.1.2014 01:04:15, 1.1.2014 01:06:00
    FDJ8,2.1.2014 01:04:15, 2.1.2014 01:06:00
    KDSE,3.1.2014 01:04:15, 3.1.2014 01:06:00
    The information I would like to get, is what is the maximum amount of the concurrent calls per day.
    On the excel I basically count line by line how many concurrent calls each line have had, and then pickup the highest one. On above example the calls 5DEF, FDE2 and FDE2 have been active at the same time which gives 3 for the first day.
    The table is ordered by the start. So let say the code is on the third line (FDE2). I need to count calls from before which end time is after the start time (of FDE2), but also I need to count calls after (FDE2) which are started before the current
    call has ended.
    Petri

    Unfortunately your post is off topic as it's not specific to SQL Server Samples and Community Projects.  
    This is a standard response I’ve written in advance to help the many people who post their question in this forum in error, but please don’t ignore it.  The links I provide below will help you determine the right forum to ask your question in.
    For technical issues with Microsoft products that you would run into as an end user, please visit the Microsoft Answers forum ( http://answers.microsoft.com ) which has sections for Windows, Hotmail,
    Office, IE, and other products.
    For Technical issues with Microsoft products that you might have as an IT professional (like technical installation issues, or other IT issues), please head to the TechNet Discussion forums at http://social.technet.microsoft.com/forums/en-us, and
    search for your product name.
    For issues with products you might have as a Developer (like how to talk to APIs, what version of software do what, or other developer issues), please head to the MSDN discussion forums at http://social.msdn.microsoft.com/forums/en-us, and
    search for your product or issue.
    If you’re asking a question particularly about one of the Microsoft Dynamics products, a great place to start is here: http://community.dynamics.com/
    If you think your issue is related to SQL Server Samples and Community Projects and I've flagged it as Off-topic, I apologise.  Please repost your question and include as much detail as possible about your problem so that someone can assist you further. 
    If you really have no idea where to post your question please visit the Where is the forum for…? forum http://social.msdn.microsoft.com/forums/en-us/whatforum/
    When you see answers and helpful posts, please click Vote As Helpful,
    Propose As Answer, and/or Mark As Answer
    Jeff Wharton
    MSysDev (C.Sturt), MDbDsgnMgt (C.Sturt), MCT, MCPD, MCSD, MCSA, MCITP, MCDBA
    Blog: Mr. Wharty's Ramblings
    Twitter: @Mr_Wharty
    MC ID:
    Microsoft Transcript

  • Error publishing SSRS Report in Dynamics AX 2012 Enterprise Portal

    Good morning.
    I have a problem ad i'll appreciate so much your help. I made a SSRS Reporting project with Business Intelligence Development Studio (through the template "Business Intelligence --> Report Server Project). Once deployed to report server, the report
    successfully works. I Want to publish this report in Dynamics AX 2012 Enterprise Portal, through the web part "SQL Server Reporting
    à SQL Server Reporting Services Report Viewer", but when i select the .rdl file from the list, i receive the following error:
    An error occurred during local report processing.
    An error has occurred during report processing.
    Cannot create a connection to data source 'DataSource1'.
    An attempt has been made to use an unregistered data extension, 'OLEDB-MD'. To use this data extension, it must be registered in the Web.config file of this Web application.
    I've Checked the config file and the specified handler is correctly set. I read in a forum that the problem may be caused by the fact that the database of the report server is set as "Native" instead of "Sharepoint Integrated". Is it
    possible? just in case, there's the possibility to display a ssrs report in EP in "native mode"?
    Thank you so much in advance
    Simone

    Hi Katherine.
    Thank you so much for your reply. You understood perfectly what I mean. I followed the instructions in the document, but the installation of te .cab file won't work. I tried with the Sharepoint Management Shell and with STSADM.EXE, but in both cases i receive
    an error like this:
    PS C:\> Install-SPWebPartPack -LiteralPath "C:\Program Files (x86)\Microsoft SQL
     Server\110\Tools\Reporting Services\SharePoint\RSWebParts.cab" -GlobalInstall
    Confirm
    Are you sure you want to perform this action?
    Performing operation "Install-SPWebPartPack" on Target "C:\Program Files
    (x86)\Microsoft SQL Server\110\Tools\Reporting
    Services\SharePoint\RSWebParts.cab".
    [Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help
    (default is "Y"):y
    Install-SPWebPartPack : Failed to extract the cab file in the solution.
    At line:1 char:1
    + Install-SPWebPartPack -LiteralPath "C:\Program Files (x86)\Microsoft SQL
    Server\ ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~
        + CategoryInfo          : InvalidData: (Microsoft.Share...tallWebPartPack:
       SPCmdletInstallWebPartPack) [Install-SPWebPartPack], SPException
        + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletInstallW
       ebPartPack
    PS C:\>
    I checked the directory and the .cab file is in the right position. Am I doing something wrong?
    Thanks a lot in advance.
    Simone

Maybe you are looking for

  • Payment term at site level in AR Customer interface

    Is there anyway to assign *'Payment Terms'* to Customer at Site level using interface table. Navigation : Customer>Address> business purpose > bill_to>Details > 'Payment terms' Please help. Regards Suresh

  • Solution Manager for Deploy, Test, Trace....

    Hi All, We have developed some custom java based components. I want to know how can we use the <b>Solution Manager</b> to do the following; <b>Deploy, Test, Trace, Performance tuning and trouble shooting..</b> Where can i find Solution Manager docume

  • Have iWork 09 DVD. Cannot upgrade for free to new versions

    App Store does not acknowledge that I have the DVD version of iWork. It doesn't even have any serial numbers printed on the DVD or in the sleeve. Is there a way to "tell" the app store app that I have this Apple software? I thought that iWork '09 cus

  • How to get Brackets in the "Phone" app in iOS 5 back !

    After updating to the latest apple iOS version (5.0.1) I noticed that there's no brackets like I used to do !! i tried to search for it in General>International>Region Format and i changed it from my country (Kuwait) to (United States) but it doesn't

  • Remplacer une puce par une icone dans un style de paragraphe

    Bonjour à tous, jusqu'à présent, j'avais des styles de paragraphes réalisés par l'assemblage d'une icone représentant une main et d'un texte "Attention :" en gras exemple ci dessous j'ai essayé de créer un style avec puces et numérotation, mais une m