SQLCMD throwing error with multi-line queries

I get the error "Unclosed quotation mark after the character string..." when I pass multi-line queries to SQLCMD via a SQL Agent Job.  For example, the following command fails:
SQLCMD -E -S MyServerName -Q "PRINT 'Hello';
PRINT 'World';" -b
SQLCMD seems to be only processing the first line, ignoring that there is more to the query.  The actual error in this case is:
Msg 105, Level 15, State 1, Server MyServerName, Line 1
Unclosed quotation mark after the character string 'PRINT 'Hello';\n '.
Msg 102, Level 15, State 1, Server MyServerName, Line 1
Incorrect syntax near 'PRINT 'HELLO';\n'.
Where "\n" is actually an unprintable character for the line terminator.
What am I doing something wrong for passing multi-line statements to SQLCMD?

Hi Brandon,
You can use sqlcmd to run a Transact-SQL script file. A Transact-SQL script file is a text file that can contain a combination of Transact-SQL statements, sqlcmd commands, and scripting variables.
To create a simple Transact-SQL script file by using Notepad and save the file as myScript.sql in the C drive.
To run the script file
1. Open a command prompt window.
2. In the Command Prompt window, type: sqlcmd -S myServer\instanceName -i C:\myScript.sql
3. Press ENTER.
TechNet
Subscriber Support
If you are TechNet Subscription user and have any feedback on our support quality, please send
your feedback here.
Thanks,
Maggie
Please remember to mark the replies as answers if they help and unmark them if they provide no help. This can be beneficial to other community members reading the thread.

Similar Messages

  • WEBI error with multi-line descriptions for a Business Layer in information Design Tool

    help from Anyone on my problem described below would be greatly appreciated! 
    I'm working with Information design tool and am building a Business layer on top of my universe to prevent a clash of context in my query.
    I want a description on my business layer that explains the need for two business layers in this universe.
    The problem is entering data into the description of a business view
    I need to be able to put in line breaks or the user can't even read the description of the business view.
    If anyone could help I'll be very grateful.
    However this is how it looks in WEBI when I start to create reports. (the original snapshot is two monitors wide by the way)
    the text entered into the field is as exactly as follows:
    I have Descriptions that Explain the Business Layer so they need to be typed out with paragraphs and word wrap.
    Like this. Notice the line break?
    Oh wait What happened? let me try another line break.
    Did that work? ...
    No maybe <\br>
    or \n
    or \n\r ?
    or char(13)char(10)
    or 0x0a
    or 0x0D
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi convallis arcu quis libero sagittis, vel pulvinar velit pretium. Praesent vehicula luctus justo in laoreet. Aenean blandit eros eget nisi aliquet, et placerat elit convallis. Nam non adipiscing velit. *** sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Vestibulum a porttitor quam. Suspendisse vulputate eros nunc, ut vestibulum nunc feugiat eget. Phasellus interdum quam vitae quam posuere mattis quis ac elit. Curabitur fringilla justo vel elit lacinia, ac sollicitudin velit sodales. Nunc eget nulla id augue suscipit molestie ut nec nulla. In libero neque, commodo sit amet eros a, viverra aliquam nulla. Sed blandit magna eu orci pellentesque dictum.
    Vivamus urna est, tincidunt sit amet nisi vitae, placerat sodales dui. Donec a sapien tincidunt, auctor mi ut, ullamcorper sem. Sed viverra lobortis nisl at tincidunt. Integer at odio mollis, scelerisque leo vel, fermentum felis. Morbi ultrices magna neque, vel adipiscing urna dictum sit amet. Nullam quam felis, imperdiet quis nunc ut, pretium feugiat tellus. Etiam id auctor augue. Proin id feugiat ligula. Vestibulum congue ligula quis dui porta vehicula. Morbi at sem velit. Morbi vehicula dui nibh.
    Quisque eu imperdiet odio, quis scelerisque lacus. Aenean tortor odio, sagittis in urna id, porttitor convallis neque. Suspendisse eget suscipit nibh. Nullam tincidunt ornare eleifend. Phasellus laoreet molestie luctus. Nulla sit amet semper arcu, quis iaculis velit. Mauris a molestie magna. Ut id eros in diam viverra suscipit. Sed gravida elit vel est imperdiet interdum. Maecenas tempus dolor lectus, id aliquet ligula scelerisque vitae. Praesent pulvinar, velit id fringilla porttitor, massa neque aliquam sem, in tincidunt erat tortor et arcu. Nullam hendrerit condimentum faucibus. Fusce arcu odio, lacinia vel malesuada eget, malesuada eget felis. Praesent venenatis vestibulum ante ut pharetra.

    Bump.
    I still need a Solution to this problem.

  • The color of text item with multi-line in web

    I tried to change the background color of text item with multi-
    line, but it does not work when I run in the web, if some body
    knows that, please give a hint.
    Thanks
    Frank
    null

    I tried to change the background color of text item with multi-
    line, but it does not work when I run in the web, if some body
    knows that, please give a hint.
    Thanks
    Frank
    null

  • Print JTable with multi line header

    I need to print a JTable with multi line header, I want to know if I can use the method jTable.print(int, MessajeFormat, MessageFormat) by manipulation of the MessageFormat. How I can manipulate it?
    Otherwise, How I can print this?

    hi again,
    To print pdf in a swing application you don't need servlet.jar.
    You'll only need itext.jar and a printer connected to your pc.
    Download the iText source code and unzip it. See the following classes:
    com.lowagie.tools.LPR and com.lowagie.tools.BuildTutorial. This latter is the main class of a swing tool that you can run.
    Silent Print:
    You have only to embed this javascript code in your pdf:
    writer.addJavaScript("this.print(false);", false);
                        document.add(new Chunk("Silent Auto Print"));Then, you have to send the document to the printer.
    Google : java print pdf
    http://forum.java.sun.com/thread.jspa?threadID=523898 or
    http://www.exampledepot.com/egs/javax.print/pkg.html for printing task.
    Under unix system, I used this:
                           String PRINTER = ...;
                   try {
                        String cmd = "lp -d " + PRINTER + " " + PDF_PATH;
                        Runtime.getRuntime().exec(new String[] { "sh", "-c", cmd });
                   } catch (Exception e) {
                                 //handle the exception
                                 e.printStackTrace();
                   }hth

  • To throw error message on line item

    Hi Experts,
      I am using the user exit MV45AFZZ_MOVE_FIELD_TO_VBAP of sale order and it is getting triggered when we press 'ENTER' after filling the line item details of a sale order.
      In my requirement i have to check some conditions on the line items and have to throw error message on that particular item sothat the user can delete that item and can proceed with the remaining.
      But i am not able to throw error message on the particular item.
      Please help me to throw error message on the particular tabstrip corresponds to the item. 
    Thanks in Advance,
    Shaju

    You can try this fm
                    CALL FUNCTION 'DD_POPUP_TO_CONFIRM_CANCEL'
                         EXPORTING
                              textline1    = text-902
                              textline2    = text-903
                              title        = text-901
                              start_column = 25
                              start_row    = 6
                              defaultpos   = 'C'
                         IMPORTING
                              answer       = cancel_rc.
                    CASE cancel_rc.
                      WHEN 'A'.
                      WHEN 'C'.
                        LEAVE PROGRAM.
                      WHEN OTHERS.
                    ENDCASE.
    Based upon user inputs you can handle conditions (CANCEL_RC) accordingly.

  • Append table with multi-line cells to word report

    Hi,
    I am using LabView 7.0. I need to append table to word report and I am using Append Table to Report VI. My VI works fine as long as the table cells do not have multiple lines. For multiple lines, each line is put is a seperate cell in the word report.
    Is there a way to append multi-line cells to Word Report??? If not, any suggestions on how I can copy the multi-line table to Word report???
    Please kindly help!!
    Please see the attached document for details on the problem.
    Thanks,
    Mim
    Attachments:
    Table with multiple line cells.doc ‏33 KB

    Hi Mim,
    Yes I understood the multiple-lines part. I think the doc is the report you want. Correct ?
    The doc is generated with your VI without any modifications.
    I am using XP, Office 2002 SP3 and LV7.1
    Attachments:
    Verification Report.doc ‏39 KB

  • Custom code throws error with email subscription. Otherwise, the report works fine.

    I have a SSRS report that parses RTF to TXT and displays it in a report.  The report works fine and everything displays correctly.  The subscription email, however, contains a report with errors: Request for the permission of type
    'System.Security.Permissions.UIPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
    The report contains embedded code as well as references to System.Security and System.Windows.Forms.  I've updated .....\Reporting Services\ReportServer\rssrvpolicy.config and ....\Reporting Services\ReportManager\rsmgrpolicy.config to change permissions
    to FullTrust.  Not sure what else I need to do.  Please help.

    Hi Chimuelo,
    According to your description, if the report contains custom code and assemblies, the subscription email contains an error “Request for the permission of type 'System.Security.Permissions.UIPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
    failed”.
    In your scenario, the issue could cause by that the report can’t access those assemblies. Please modify the policy configuration files to grant additional permissions for those assemblies. For more information, please refer to this article:
    How to grant permissions to a custom assembly that is referenced in a report in Reporting Services.
    Similar thread for your reference:
    Custom assembly throwing #error in reports with subscriptions
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Timesheet Error with custom Line Classifications in Project Server 2013

    We implemented Project Server 2013 last year and began using timesheets.  We are a billable consulting group.  In order manage our billing, we have created three custom line classifications, "Billable Onsite", "Billable Offsite",
    and "Non-billable".  We do not use "Standard" as a line where time is entered.  We are using SEM.  We have chosen no prepopulation on timesheets.  Our system is updated through the March 2013 update.
    The error we get is presented as "__error Loading" with the title bar of the pop-up reading "Message from webpage".  This occurs when you attempt to add a new line to a timesheet and choose one of the custom line classifications. 
    A confusing aspect to this, while we have prepopulation turned off, the timesheet is populated with "Standard" lines for the tasks that are currently assigned to the user.  We have come up with a workaround that works sometimes but not all the
    time.  When the user receives this error, they move away from the timesheet screen and then return.  They add all of the applicable lines to the timesheet with "Standard" even if they already exist on the timesheet and save.  Then
    they add the lines with the appropriate line classification and the time.  If they receive the "__error loading" error again, then the timesheet can not be corrected.  You must delete the timesheet and recreate.  We have been able
    to recreate the problem in a vanilla install with a custom line classification added.
    Just yesterday, I was able to find a error log entry that may help some of you identify the source:
    General Unhandled Exception in _TimeSheet.GetTimesheetForGridJsonFromViewUid_ Attributes:  System.ArgumentException: Assignment line already exists for assignment uid: d9afeb60-d589-e311-bd64-08edb9dd8afb     at Microsoft.Office.Project.Server.BusinessLayer.Timesheet.VerifyLineIsUnique(Guid
    assignmentUid, Guid taskUid, Guid projectUid, Guid lineClassUid)    
    at Microsoft.Office.Project.Server.BusinessLayer.Timesheet.CreateAssignmentLine(Guid assignmentUid, Guid taskUid, Guid projectUid, Guid lineClassUid, String taskName, String projectName)     at Microsoft.Office.Project.Server.BusinessLayer.TimesheetSEM.CreateAssignmentLine(Guid
    assignmentUid, Guid taskUid, Guid projectUid, Guid lineClassUid, String taskName, String projectName)     at Microsoft.Office.Project.Server.BusinessLayer.Timesheet.AddTimesheetLine(Guid assignmentUid, Guid taskUid, Guid projectUid, Guid
    classUid, ValidationType validationType, Guid lineUid, String taskName, String projectName, String comment)     at Microsoft.Office.Project.Server.BusinessLayer.Timesheet.ImportTimesheetLine(NewTask importedLine)    
    at Microsoft.Office.Project.Server.BusinessLayer.Timesheet.<>c__DisplayClass4c.<AddNewLines>b__49(NewTask line)     at Microsoft.Office.Project.Server.Library.PSUtility.Apply[T](IEnumerable`1 enumerable, Action`1 fn)    
    at Microsoft.Office.Project.Server.BusinessLayer.Timesheet.AddNewLines(IEnumerable`1 newLines)     at Microsoft.Office.Project.Server.BusinessLayer.TimesheetSEM.AddNewLines(IEnumerable`1 newLines)     at Microsoft.Office.Project.Server.BusinessLayer.TimesheetLoaderForGrid.Load()    
    at Microsoft.Office.Project.Server.BusinessLayer.TimeSheet.GetTimesheetForGridJsonFromViewUid(JsGridSerializerArguments gridSerializerArgs, Guid tsUid, Guid viewUid, String changesJson, String viewOptionsJson)     at Microsoft.Office.Project.Server.Wcf.Implementation.PWAImpl.<>c__DisplayClass2f5.<TimeSheetGetTimesheetForGridJsonFromViewUid>b__2f4()    
    at Microsoft.Office.Project.Server.Wcf.Implementation.WcfMethodInvocation.InvokeBusinessObjectMethod(String businessObjectName, String methodName, IEnumerable`1 actions)  . Standard Information: PSI Entry Point:  Project User: i:0#.w|mayberry\nunderwood
    Correlation Id: 91c4ca27-6492-e311-93ff-00155d149902 PWA Site URL: XXX SA Name: Project Services Application PSError: GeneralUnhandledException (42), LogLevelManager Warning-ulsID:0x00101622 has no entities explicitly specified.
    We have not been able to find any similar timesheet issues here or on other boards.  Our users, as you can imagine, are getting increasingly frustrated.  A ny advice?
    Thanks,
    Nate

    More scenario testing today. Tested with both "No Prepopulation" and populate assigned task options! no difference in our instance. We are only updated through March 2013, waiting for IT support. We have previously tried the deactivation/reactivation
    of custom classifications. Tried with and without template, no difference. So the new scenario and findings:
    1. Create a project with 2 tasks, one assigned and one not. Save and publish.
    2. Create a timesheet, do not use an existing timesheet. Here we found, in spite of population option chosen, the timesheet was populated with a Standard line for the assigned task. With no action taken other than creating timesheet, the reporting assignment
    table showed the new entry.
    3. Add an assignment to the other task in the project, publish.
    4. Open the same timesheet period. Now I saw the other task appear on the screen. It did not show in the database. I could not save to make it appear in the database unless I did something else to the screen to make it "dirty". Once I did that,
    I could save and the second Standard line appeared In the database. 
    If I tried to add a custom line class line to the TS when the Standard line was not in the database, I get the error. It doesn't matter if it shows on the screen.
    If it shows on the screen but not in the db, and I attempt to add a non-standard line, it will error, unless I manually add the standard line first.  The user would not know to do this.
    You will not be able to reproduce if you make the assignments and then create the TS. You need to try in reverse order.
    It appears as though there are issues with both the timesheet population options and the code that runs when the TS loads after it's initial creation. I'm wondering why on creation the standard line is created and committed to the db, but on reload with
    new tasks it doesn't' do the same. Also when No Prepopulation is turned on, why my time sheets are always prepopulated.
    Sorry for any typos, working from my ipad keyboard. Thanks for your help!

  • Cell.text with multi line content

    Hello anybody.
    Here is my code .
    story_title = [[NSMutableArray alloc] init];
    scripture_location = [[NSMutableArray alloc] init];
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    cell.text = [story_title objectAtIndex:indexPath.row];
    cell.lineBreakMode = UILineBreakModeWordWrap;
    cell.text = [scripture_location objectAtIndex:indexPath.row];
    return cell;
    How can i make multi line in single cell . My code is diplayed last array list content. The line break is not working.
    Please help me with example
    Nalan.

    Double click on the text box and look in properties. There are many different options there including text wrap.
    (of course I'm referring to a form field and not a bunch of text that was included in the original document)

  • Additional results doesn't work with multi-line string dat

    I observed an erratic behavior with "Additional Results" in TestStand 2010. The problem statement is as follows:
    1. I have a variable "Locals.FirstName"
    2. I have another variable "Locals.LastName"
    3. Concatenate these two strings with a line feed or a new line character (Locals.FirstName+"\n"+Locals.LastName) and display it in a XML report. 
    Approach:
    1. Using "Statement Expression" I concatenate two strings and print the result using "Additional Results"
    2. For verification I display it using "Message Popup" step type. The formatting is as desired in "Message Popup". However, the new line characters appear as "Spaces" in XML report.
    Tracing Of this Erratic Behavior:
    1. I passed the concatenated string to LabVIEW VI and passed it to "Step.Result.ReportText" variable to log it in XML report. The same string which didn't appeared properly using “Additional Results"of "Statement Expression” step now appears proper in XML report.
    I have attached the sequence file for reference. Ensure that Report option is set to XML before executing this sequence.
    Can anyone justify this behavior and suggest the correct approach??
    Thanks !
    Attachments:
    Erratic Behavior Of Additional Results.seq ‏8 KB
    Tracing Of Erratic Behavior.vi ‏9 KB

    Amit -
    Here is a modified version of the TestStand 2010 Horizontal.xsl style sheet that corrects the issue you have mentioned. Note that leading and trailing "\n" characters will still be stripped out, and all "\r" characters will be stripped out.
    Hope this helps.
    Manooch H.
    National Instruments
    Attachments:
    horizontal_modified.zip ‏22 KB

  • How to clear multi open item with multi line in FI?

    Hi Colleagues,
         If I select two open items which amount is 50, 50,  and I use FB05 to clear them, now one document with two line generated, one line is I entered outside, the other one is amount 100 open item which clears the 50, 50 two items.
         So is there a way to generate the clearing document like this: a document with 3 lines are generated, one line is I entered outside, the other two is amount 50 and 50?
         Thanks a lot.
    BR,
    Chris

    Hi,
    You can use transaction code F-30 to clear items as this transaction is combination of three transactions viz. F-03, F-44 and F-32. In the transaction code you ca even enter exchange i.e. no need to maintain separately as in case of F-03, F-44 and F-32 picks up the exchange rate as maintained in OB08. Hence there can be separate exchange rate for the same day which is not possible through OB08.
    Hence, you can use only one transaction in case you want to clear G/L through F-03, Vendor through F-44 and Customer through F-32.
    Hope, this solves your issue else revert.
    Regards,
    Tejas

  • Analysis Service Execute DDL Task throwing error with SourceType Variable

    Hi,
    I have Configuring Analysis Services Execute DDL Task to use Variable and Process Data(xmla Script) like below:
    When I execute this task I get the below error message:
    [Analysis Services Execute DDL Task] Error: The -->
    text node at line 23, column 3 cannot appear inside the DataSource element (namespace http://schemas.microsoft.com/analysisservices/2003/engine) under Envelope/Body/Execute/Command/Batch/Parallel/Process. This element can
    only have text nodes containing white-space characters.
    Can anyone please let me know how to resolve this.

    If I run using the sourceType "Direct Input", the Analysis Execute DDL Task runs fine, but if I use the sourcetype as variable its throws the error. And below is the xmla script
    Here is my Package look and the xmla script; its failing at "ProcessAdd" Analysis Execute DDL task:
    "SELECT '<Batch xmlns=\"http://schemas.microsoft.com/analysisservices/2003/engine\">
    <ErrorConfiguration xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:ddl2=\"http://schemas.microsoft.com/analysisservices/2003/engine/2\" xmlns:ddl2_2=\"http://schemas.microsoft.com/analysisservices/2003/engine/2/2\" xmlns:ddl100_100=\"http://schemas.microsoft.com/analysisservices/2008/engine/100/100\" xmlns:ddl200=\"http://schemas.microsoft.com/analysisservices/2010/engine/200\" xmlns:ddl200_200=\"http://schemas.microsoft.com/analysisservices/2010/engine/200/200\" xmlns:ddl300=\"http://schemas.microsoft.com/analysisservices/2011/engine/300\" xmlns:ddl300_300=\"http://schemas.microsoft.com/analysisservices/2011/engine/300/300\" xmlns:ddl400=\"http://schemas.microsoft.com/analysisservices/2012/engine/400\" xmlns:ddl400_400=\"http://schemas.microsoft.com/analysisservices/2012/engine/400/400\">
    <KeyNotFound>IgnoreError</KeyNotFound>
    </ErrorConfiguration>
    <Parallel>
    <Process xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:ddl2=\"http://schemas.microsoft.com/analysisservices/2003/engine/2\" xmlns:ddl2_2=\"http://schemas.microsoft.com/analysisservices/2003/engine/2/2\" xmlns:ddl100_100=\"http://schemas.microsoft.com/analysisservices/2008/engine/100/100\" xmlns:ddl200=\"http://schemas.microsoft.com/analysisservices/2010/engine/200\" xmlns:ddl200_200=\"http://schemas.microsoft.com/analysisservices/2010/engine/200/200\" xmlns:ddl300=\"http://schemas.microsoft.com/analysisservices/2011/engine/300\" xmlns:ddl300_300=\"http://schemas.microsoft.com/analysisservices/2011/engine/300/300\" xmlns:ddl400=\"http://schemas.microsoft.com/analysisservices/2012/engine/400\" xmlns:ddl400_400=\"http://schemas.microsoft.com/analysisservices/2012/engine/400/400\">
    <Object>
    <DatabaseID>IIS_Version2</DatabaseID>
    <DimensionID>Application</DimensionID>
    </Object>
    <Type>ProcessAdd</Type>
    <DataSource xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:ddl2=\"http://schemas.microsoft.com/analysisservices/2003/engine/2\" xmlns:ddl2_2=\"http://schemas.microsoft.com/analysisservices/2003/engine/2/2\" xmlns:ddl100_100=\"http://schemas.microsoft.com/analysisservices/2008/engine/100/100\" xmlns:ddl200=\"http://schemas.microsoft.com/analysisservices/2010/engine/200\" xmlns:ddl200_200=\"http://schemas.microsoft.com/analysisservices/2010/engine/200/200\" xmlns:ddl300=\"http://schemas.microsoft.com/analysisservices/2011/engine/300\" xmlns:ddl300_300=\"http://schemas.microsoft.com/analysisservices/2011/engine/300/300\" xmlns:ddl400=\"http://schemas.microsoft.com/analysisservices/2012/engine/400\" xmlns:ddl400_400=\"http://schemas.microsoft.com/analysisservices/2012/engine/400/400\" xmlns:dwd=\"http://schemas.microsoft.com/DataWarehouse/Designer/1.0\" xsi:type=\"RelationalDataSource\" dwd:design-time-name=\"1a3cb292-9bce-4c59-a182-177d6b3506ff\" xmlns=\"http://schemas.microsoft.com/analysisservices/2003/engine\">
    <ID>IISDW</ID>
    <Name>IISDW</Name>
    <ConnectionString>Provider=SQLNCLI11.1;Data Source=CO1MSFTSQLHKT02;Integrated Security=SSPI;Initial Catalog=IISDW</ConnectionString>
    <Timeout>PT0S</Timeout>-->
    </DataSource>
    <DataSourceView xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:ddl2=\"http://schemas.microsoft.com/analysisservices/2003/engine/2\" xmlns:ddl2_2=\"http://schemas.microsoft.com/analysisservices/2003/engine/2/2\" xmlns:ddl100_100=\"http://schemas.microsoft.com/analysisservices/2008/engine/100/100\" xmlns:ddl200=\"http://schemas.microsoft.com/analysisservices/2010/engine/200\" xmlns:ddl200_200=\"http://schemas.microsoft.com/analysisservices/2010/engine/200/200\" xmlns:ddl300=\"http://schemas.microsoft.com/analysisservices/2011/engine/300\" xmlns:ddl300_300=\"http://schemas.microsoft.com/analysisservices/2011/engine/300/300\" xmlns:ddl400=\"http://schemas.microsoft.com/analysisservices/2012/engine/400\" xmlns:ddl400_400=\"http://schemas.microsoft.com/analysisservices/2012/engine/400/400\" xmlns:dwd=\"http://schemas.microsoft.com/DataWarehouse/Designer/1.0\" dwd:design-time-name=\"b0b61205-c64d-4e34-afae-6d4d48b93fb3\" xmlns=\"http://schemas.microsoft.com/analysisservices/2003/engine\">
    <ID>IISDW</ID>
    <Name>IISDW</Name>
    <DataSourceID>IISDW</DataSourceID>
    <Schema>
    <xs:schema id=\"IISDW_x0020_1\" xmlns=\"\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" xmlns:msdata=\"urn:schemas-microsoft-com:xml-msdata\" xmlns:msprop=\"urn:schemas-microsoft-com:xml-msprop\">
    <xs:element name=\"IISDW_x0020_1\" msdata:IsDataSet=\"true\" msdata:UseCurrentLocale=\"true\" msprop:design-time-name=\"72037318-e316-469d-9a45-a10c77709b39\">
    <xs:complexType>
    <xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">
    <xs:element name=\"Application\" msprop:design-time-name=\"7f579e7e-e8b7-4a9d-8a93-a255fccbbfbe\" msprop:IsLogical=\"True\" msprop:FriendlyName=\"Application\" msprop:DbTableName=\"Application\" msprop:TableType=\"View\" msprop:Description=\"\" msprop:QueryDefinition=\"SELECT a.Application, DATEADD([hour], DATEDIFF([hour], 0, a.[Timestamp]), 0) AS [Timestamp], a.ServerName, CAST(a.ServerName AS char(3)) AS DataCenter, a.CS_URI_Stem, CAST(HashBytes(''MD5'', &#xD;&#xA; a.Application + a.ServerName + a.CS_URI_Stem + CAST(DATEADD([hour], DATEDIFF([hour], 0, a.[Timestamp]), 0) AS varchar(24))) AS uniqueidentifier) AS Server_URI_Identity&#xD;&#xA;FROM IIS_6_OLD AS a LEFT OUTER JOIN&#xD;&#xA; Dimension_Pointer AS b ON a.Application = b.Application&#xD;&#xA;WHERE (b.ProcessedFlag = 0) AND (a.Application IN ("+(DT_WSTR,100) @[User::strDistinctApplication]+"))&#xD;&#xA;GROUP BY a.Application, DATEADD([hour], DATEDIFF([hour], 0, a.[Timestamp]), 0), a.ServerName, a.CS_URI_Stem\" msprop:QueryBuilder=\"SpecificQueryBuilder\">
    <xs:complexType>
    <xs:sequence>
    <xs:element name=\"Application\" msprop:design-time-name=\"f3074e98-4a82-4bc5-a818-916203f7758b\" msprop:DbColumnName=\"Application\" msprop:FriendlyName=\"Application\" minOccurs=\"0\">
    <xs:simpleType>
    <xs:restriction base=\"xs:string\">
    <xs:maxLength value=\"255\" />
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name=\"Timestamp\" msdata:ReadOnly=\"true\" msprop:design-time-name=\"2662e3a8-8b1a-4d77-aecb-575329b84dc1\" msprop:DbColumnName=\"Timestamp\" msprop:FriendlyName=\"Timestamp\" type=\"xs:dateTime\" />
    <xs:element name=\"ServerName\" msprop:design-time-name=\"ced26d49-cd6e-4073-a40c-ff5ef70e4ef1\" msprop:DbColumnName=\"ServerName\" msprop:FriendlyName=\"ServerName\" minOccurs=\"0\">
    <xs:simpleType>
    <xs:restriction base=\"xs:string\">
    <xs:maxLength value=\"255\" />
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name=\"DataCenter\" msdata:ReadOnly=\"true\" msprop:design-time-name=\"4583e15a-dcf1-45a2-a30b-bd142ca8b778\" msprop:DbColumnName=\"DataCenter\" msprop:FriendlyName=\"DataCenter\" minOccurs=\"0\">
    <xs:simpleType>
    <xs:restriction base=\"xs:string\">
    <xs:maxLength value=\"3\" />
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name=\"CS_URI_Stem\" msprop:design-time-name=\"10db5a79-8d50-49d2-9376-a3b4d19864b9\" msprop:DbColumnName=\"CS_URI_Stem\" msprop:FriendlyName=\"CS_URI_Stem\" minOccurs=\"0\">
    <xs:simpleType>
    <xs:restriction base=\"xs:string\">
    <xs:maxLength value=\"4000\" />
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name=\"Server_URI_Identity\" msdata:DataType=\"System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\" msdata:ReadOnly=\"true\" msprop:design-time-name=\"018ede0a-e15e-47c2-851b-f4431e8c839c\" msprop:DbColumnName=\"Server_URI_Identity\" msprop:FriendlyName=\"Server_URI_Identity\" type=\"xs:string\" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:choice>
    </xs:complexType>
    <xs:unique name=\"Constraint1\" msprop:IsLogical=\"True\" msdata:PrimaryKey=\"true\">
    <xs:selector xpath=\".//Application\" />
    <xs:field xpath=\"Server_URI_Identity\" />
    <xs:field xpath=\"Timestamp\" />
    </xs:unique>
    </xs:element>
    </xs:schema>
    <IISDW_x0020_1 xmlns=\"\" />
    </Schema>
    </DataSourceView>
    <WriteBackTableCreation>UseExisting</WriteBackTableCreation>
    </Process>
    </Parallel>
    </Batch>' as XMLAScript_ProcessData"

  • Setting Multi Variables with Multi SQL Queries: Performance Bottleneck?

    Hello ODI Experts,
    I have created a Logical & Physical Schema and Source Data Store to pick data from DB Table. Now I am setting variables with simple SELECT Query for setting each variable (in its Refreshing tab>Select Query field).
    It gives me a less optimized approach picking one column per query (per variable). Lets say, I have to pick 35 columns from a table and put those in 35 variables...It would mean running 35 queries for fetching one record from the database table.
    Doesn't it seem less performance effective (less optimized)..a little scary..or ODI does it with some internal optimized technique?
    Any thing better or a different approach that I can do to make variable setting more optimized?
    Please guide.
    Thanks & Regards,
    Ahsan Asghar

    Hi GottaLoveSQL,
    According to your description, you want to improve the performance of report with subreports. Right?
    In Reporting Services, the usage of subreport will impact the report performance, because the report server processes each instance of a subreport as a separate report. So the best way is avoid using subreport by using LookUp , MultiLookUp , LookUpSet, which
    will bridge different data sources. In this scenario, we suggest you cache the report with subreport. We can create a cache refresh plan for the report in Report Manager. Please refer to the link below:
    http://technet.microsoft.com/en-us/library/ms155927.aspx
    Reference:
    Report Performance Optimization Tips (Subreports, Drilldown)
    Performance, Snapshots, Caching (Reporting Services)
    Performance Issue in SSRS 2008
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • SOA WSDL operation throws errors with FlashBuilder4.6...

    hi guys,
    I developed soa cpmposite with bpel process having two operations....
    I successfully deployed it and working fine with vordel soap box and soapUI....
    I am getting error while I am trying to access the same WSDL with Flash Builder 4.6 and getting following error as response....
    Non Recoverable System Fault :
    faultName: {{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure} messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage}
    Error Message: {http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure
    Fault ID     default/LoadMinMax1!1.0*soa_411d1cc2-9788-455d-96e5-3d850f5884d9/LoadMinMax1/120212-BpAss2-BpSeq2.7-1
    Fault Time     Oct 21, 2012 11:05:24 AM
    Non Recoverable System Fault :
    <bpelFault><faultType>0</faultType><selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"></selectionFailure></bpelFault>
    FlasBuilder Error
    InvocationTargetException:There was an error while invoking the operation. Check your operation inputs and try invoking the operation again.
    Response Received:
    env:ServerfaultName: {{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure}messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage}
    i gave proper inputs of complex type in following format
    inputvariable:"inputdata"
    please give some light on this issue...
    Regards,
    jdev

    yes vlad,
    I observed payload difference and Flash builder is changing some namespaces /variable names when it invokes the service..please see both payloads....
    FlashBuilder
    =====
    <inputVariable1>
    <part name="payload">
    <q0:getDailyLoad>
    <q0:todaydatetime>2012-10-22 10:34</q0:todaydatetime>
    </q0:getDailyLoad>
    </part>
    </inputVariable1>
    SoapUI
    =======
    <inputVariable1>
    <part name="payload">
    <load:process1>
    <load:todaydatetime>2012-10-22 10:43</load:todaydatetime>
    </load:process1>
    </part>
    </inputVariable1>
    SoapUI is working fine.....
    How can we clear the payload difference.....
    Regards,
    jdev

  • Errors with multi-plot cursors on Mixed Signal graphs

    Using a Mixed Signal graph, it seems that a multi-plot cursor does not snap correctly if XScale.Multiplier is not set to 1 - it seems to ignore it altogether.  A single-plot cursor on the same graph does not have this problem.  Am I missing something?
    In the attached VI, XScale.Multipler = 0.1, and Cursor 1 (Single-Plot) shows the correct value, but Cursor 2 (Multi-plot) does not.
    Attachments:
    MixedSignalCursor.vi ‏14 KB

    Hello,
    The behavior I see is that the multi-plot cursor which is snapped to plot 0 seems to generally follow an "imaginary plot" which corresponds to a scaled version of plot 0, where the scale factor is the value wired to the XScale.Multiplier property.  I don't think this is desired behavior so I have filed a corrective action request to R&D to have this addressed.  I am sorry for the inconvenience - hopefully you can live with an X-scale multiplier of 1, or the single plot cursors for the time being.  It also takes the offset property similarly, offsetting the "imaginary plot" by whatever value is set there.
    In any event, if this poses a significant problem with additional contingencies, please let me know and I'll be sure to include any updated information in the corrective action request!
    Thank you,
    Best Regards,
    JLS
    Best,
    JLS
    Sixclear

Maybe you are looking for

  • How to Get Parameter Values from the URL ?

    Hi, I have built a calendar called cal_test. I am calling this calendar with this URL: http://.../pls/.../xyz.cal_test.show?p_arg_names=p_sc_id&p_arg_values=2&p_arg_names=_start_date&p_arg_values=FEB-2002 In the 'Additional PL/SQL Code' tab of cal_te

  • It just does not work

    When I clicked on itunes it didn't open. When I rebooted my computer it said it couldn't close itunes but as far as I could make out it wasn't even open. I reinstalled it to repair whatever was wrong and this time it said it needed to close because i

  • List of PO's

    Hi, I need a list of PO’s for a vendor for Year 2007 Open and Closed along with it’s details. How should I get these details. Thanks, Veni.

  • Recovering the deleted files of One Note after MS office upgradation from 2010 to 2013

    Hi Team,  After up gradation of my MS office 2010 to 2013, I could see that few of my files were not present in the one note 2013. Could you please let me know if the data would be archived somewhere in the machine. Regards Vijay

  • Can't boot macbook pro after installing yosemite

    I installed Yosemite last night. Installation went smoothly, but when the mac reset and try to boot the loading bar on the black screen with the apple symbol, didn't move for hours. I have been keeping up to date with the other post on here and have