Microsoft SQL Server Modeling ForumDiscussion area for Microsoft SQL Server Modeling (formally Codename "Oslo")© 2009 Microsoft Corporation. All rights reserved.Thu, 26 Nov 2009 00:42:30 Z75be262c-b6ef-480a-852c-6fd70a73b7d8http://social.msdn.microsoft.com/Forums/en-US/oslo/thread/19e887e9-c181-4a88-97a1-bb8df1d86e0chttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/19e887e9-c181-4a88-97a1-bb8df1d86e0cCeyhun Ciperhttp://social.msdn.microsoft.com/Profile/en-US/?user=Ceyhun%20CiperHow is "M" better than SQL92 in modeling data?Maybe I am a blockhead but I don't get it.<br/><br/>- CiperWed, 25 Nov 2009 18:17:00 Z2009-11-26T00:42:30Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/124eb4d9-efc4-4756-a460-24f06ee07050http://social.msdn.microsoft.com/Forums/en-US/oslo/thread/124eb4d9-efc4-4756-a460-24f06ee07050Ceyhun Ciperhttp://social.msdn.microsoft.com/Profile/en-US/?user=Ceyhun%20CiperHow can I reverse-engineer a SQL Server 2005 database into Quadrant?The point is not to model from scratch but to take a model back and re-model it.<br/><br/>-Ciper<br/>Wed, 25 Nov 2009 19:12:50 Z2009-11-26T00:36:10Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/70786780-2d46-422b-84e0-dc1f619f645bhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/70786780-2d46-422b-84e0-dc1f619f645bmerlin.onlinehttp://social.msdn.microsoft.com/Profile/en-US/?user=merlin.onlineUsing Oslo MVC 2.0 Web Application - TemplateHi,<br/> I've a problem b using the Oslo MVC 2.0 Web Application Template and Visual Studio 2010 Ultimate. If I chose this template I get an the following error:<br/> <br/> <pre>Error: this template attempted to load an untrsuted component 'Micrsoft.VisualStudio.Web.Mvc.2.0,Version=10.0.0.0 ....</pre> Can anyone help me, to solve this problem?<br/> <br/> Thank'sTue, 24 Nov 2009 12:13:58 Z2009-11-25T23:27:13Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/ecf8ec5a-3df2-4443-a85f-c9ae191926d7http://social.msdn.microsoft.com/Forums/en-US/oslo/thread/ecf8ec5a-3df2-4443-a85f-c9ae191926d7Ceyhun Ciperhttp://social.msdn.microsoft.com/Profile/en-US/?user=Ceyhun%20CiperWhy does Oslo require SP3 for XP?Even VS2010 doesn't require it.<br/><br/>- Ciper<br/>Wed, 25 Nov 2009 19:29:47 Z2009-11-25T21:29:52Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/e9e528c1-f1cc-4f28-a74b-7a9200a387achttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/e9e528c1-f1cc-4f28-a74b-7a9200a387acCeyhun Ciperhttp://social.msdn.microsoft.com/Profile/en-US/?user=Ceyhun%20CiperThe current Oslo CTP freezes on an XP installMaybe nobody uses XP anymore but I do.<br/><br/>Can an Oslo guru shed some light on it or are we completely out?<br/><br/>- Ciper<br/>Wed, 25 Nov 2009 20:25:56 Z2009-11-25T20:55:49Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/835c7e3e-79fe-445c-b945-76cea5117c6bhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/835c7e3e-79fe-445c-b945-76cea5117c6bJimmy Joehttp://social.msdn.microsoft.com/Profile/en-US/?user=Jimmy%20JoeCreating offline OLAP cube with C#.<span style="font-family:Arial, Helvetica, sans-serif;font-size:14px;border-collapse:collapse;line-height:18px"> <p style="margin-top:0px;margin-right:0px;margin-bottom:1em;margin-left:0px;font-size:14px;vertical-align:baseline;background-image:initial;background-attachment:initial;background-color:transparent;background-repeat:initial initial;padding:0px;border:0px initial initial">I have a problem with creating an offline OLAP cube from C# using following code:</p> <p style="margin-top:0px;margin-right:0px;margin-bottom:1em;margin-left:0px;font-size:14px;vertical-align:baseline;background-image:initial;background-attachment:initial;background-color:transparent;background-repeat:initial initial;padding:0px;border:0px initial initial">using (var connection = new OleDbConnection()) { connection.ConnectionString = &quot;Provider=MSOLAP; Initial Catalog=[OCWCube]; Data Source=C:\temp\test.cub; CreateCube=CREATE CUBE [OCWCube] ( DIMENSION [NAME], LEVEL [Wszystkie] TYPE ALL, LEVEL [NAME], MEASURE [Liczba DESCRIPTIO] FUNCTION COUNT ); InsertInto=INSERT INTO OCWCube([Liczba DESCRIPTIO], [NAME].[NAME]) OPTIONS ATTEMPT_ANALYSIS SELECT Planners.DESCRIPTIO, Planners.NAME FROM Planners Planners; Source_DSN=\&quot;CollatingSequence=ASCII;DefaultDir=c:\temp;Deleted=1;Driver={Microsoft dBase Driver (*.dbf)};DriverId=277;FIL=dBase IV;MaxBufferSize=2048;MaxScanRows=8;PageTimeout=600;SafeTransactions=0;Statistics=0;Threads=3;UserCommitSync=Yes;\&quot;;Mode=Write;UseExistingFile=True&quot;; try { connection.Open(); } catch (OleDbException e) { Console.WriteLine(e); } }</p> <p style="margin-top:0px;margin-right:0px;margin-bottom:1em;margin-left:0px;font-size:14px;vertical-align:baseline;background-image:initial;background-attachment:initial;background-color:transparent;background-repeat:initial initial;padding:0px;border:0px initial initial">I keep on getting the following exception:</p> <p style="margin-top:0px;margin-right:0px;margin-bottom:1em;margin-left:0px;font-size:14px;vertical-align:baseline;background-image:initial;background-attachment:initial;background-color:transparent;background-repeat:initial initial;padding:0px;border:0px initial initial">&quot;Multiple-step operation generated errors. Check each OLE database status value. No action was taken.&quot;</p> <p style="margin-top:0px;margin-right:0px;margin-bottom:1em;margin-left:0px;font-size:14px;vertical-align:baseline;background-image:initial;background-attachment:initial;background-color:transparent;background-repeat:initial initial;padding:0px;border:0px initial initial">I took the connection string literally from OQY file generated by Excel. I had to add &quot;Mode=Write&quot; section, otherwise I was getting another exception (&quot;file may be in use&quot;).</p> <p style="margin-top:0px;margin-right:0px;margin-bottom:1em;margin-left:0px;font-size:14px;vertical-align:baseline;background-image:initial;background-attachment:initial;background-color:transparent;background-repeat:initial initial;padding:0px;border:0px initial initial">What is wrong with the connection string? How to diagnose the error? Somebody please guide me...</p> </span>Wed, 25 Nov 2009 16:43:32 Z2009-11-25T20:09:57Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/f5f54aad-cef1-433d-af98-7f9b6c18abf0http://social.msdn.microsoft.com/Forums/en-US/oslo/thread/f5f54aad-cef1-433d-af98-7f9b6c18abf0Phil Devaney2http://social.msdn.microsoft.com/Profile/en-US/?user=Phil%20Devaney2Problem using MCompile task and CaseInsensitive attribute in Nov 09 CTPIn the previous CTP I had added the Microsoft.M.Embedded.targets file to my csproj, added an mg file to my project and set its build action to MCompile. When I upgraded to Nov 09 CTP this caused build errors, though the same mg file compiles fine from the command line in Nov 09.<br/> <br/> I tracked this down to use of the CaseInsensitive attribute on my language, and it occurs even on the simplest of language definitions:<br/> <br/> <pre>module Test { @{CaseInsensitive} language Test { syntax Main = &quot;Hello&quot;; } }</pre> This causes the following build error:<br/> <br/> <pre>C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : System.InvalidCastException: [A]Microsoft.M.SemanticGraph.Constant cannot be cast to [B]Microsoft.M.SemanticGraph.Constant. Type A originates from 'Microsoft.M, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' in the context 'LoadFrom' at location 'C:\Program Files (x86)\Microsoft Oslo\1.0\bin\Microsoft.M.dll'. Type B originates from 'Microsoft.M, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' in the context 'LoadNeither' at location 'C:\Users\PDevaney\AppData\Local\Microsoft\VisualStudio\10.0\ProjectAssemblies\7leap_bo01\Microsoft.M.dll'. C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.M.SemanticGraph.ConstantTypeConverter.ConvertTo(ITypeDescriptorContext context, CultureInfo culture, Object value, Type destinationType) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.Oslo.Xaml.WrapperTypeConverter.ConvertTo(ITypeDescriptorContext context, CultureInfo culture, Object value, Type destinationType) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.Oslo.Xaml.TypeConverterExtensions.ConvertToInvariant[T](TypeConverter converter, ITypeDescriptorContext context, Object value) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.Oslo.Xaml.XamlObjectSerializer.SerializerContext.TryConvertToMarkupExtension(TypeConverter converter, Object&amp; value) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.Oslo.Xaml.XamlObjectSerializer.RecordSerializationInfo.ForObject(Object value, SerializerContext context, Boolean isValueType, TypeConverter instanceConverter) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.Oslo.Xaml.XamlObjectSerializer.PropertySerializationInfo.GetPropertyValueInfoInternal(Object propertyValue, TypeConverter propertyConverter, Boolean isXamlTemplate, SerializerContext context) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.Oslo.Xaml.XamlObjectSerializer.PropertySerializationInfo.GetPropertyValueInfo(Object propertyValue, PropertyDescriptor propertyDescriptor, SerializerContext context) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.Oslo.Xaml.XamlObjectSerializer.PropertySerializationInfo.ForReadWriteProperty(Object source, PropertyDescriptor property, SerializerContext context) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.Oslo.Xaml.XamlObjectSerializer.PropertySerializationInfo.ForPropertyDescriptor(Object source, SchemaProperty property, PropertyDescriptor propertyDescriptor, SerializerContext context) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.Oslo.Xaml.XamlObjectSerializer.RecordSerializationInfo.AddRecordMembers(Object value, SerializerContext context, HashSet`1 propertyNames, ParameterInfo[] methodParameters, SchemaType type, String contentPropertyName, String runtimeNamePropertyName) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.Oslo.Xaml.XamlObjectSerializer.RecordSerializationInfo.AddRecordMembers(Object value, SerializerContext context, TypeConverter converter) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.Oslo.Xaml.XamlObjectSerializer.RecordSerializationInfo.ForObjectInternal(Object value, SerializerContext context, Boolean valueType, TypeConverter converter) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.Oslo.Xaml.XamlObjectSerializer.RecordSerializationInfo.ForObject(Object value, SerializerContext context, Boolean isValueType, TypeConverter instanceConverter) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.Oslo.Xaml.XamlObjectSerializer.PropertySerializationInfo.ForSequence(Object sourceOrValue, PropertyDescriptor property, SchemaType type, SerializerContext context) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.Oslo.Xaml.XamlObjectSerializer.PropertySerializationInfo.ForPropertyDescriptor(Object source, SchemaProperty property, PropertyDescriptor propertyDescriptor, SerializerContext context) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.Oslo.Xaml.XamlObjectSerializer.RecordSerializationInfo.AddRecordMembers(Object value, SerializerContext context, HashSet`1 propertyNames, ParameterInfo[] methodParameters, SchemaType type, String contentPropertyName, String runtimeNamePropertyName) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.Oslo.Xaml.XamlObjectSerializer.RecordSerializationInfo.AddRecordMembers(Object value, SerializerContext context, TypeConverter converter) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.Oslo.Xaml.XamlObjectSerializer.RecordSerializationInfo.ForObjectInternal(Object value, SerializerContext context, Boolean valueType, TypeConverter converter) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.Oslo.Xaml.XamlObjectSerializer.RecordSerializationInfo.ForObject(Object value, SerializerContext context, Boolean isValueType, TypeConverter instanceConverter) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.Oslo.Xaml.XamlObjectSerializer.PropertySerializationInfo.GetPropertyValueInfoInternal(Object propertyValue, TypeConverter propertyConverter, Boolean isXamlTemplate, SerializerContext context) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.Oslo.Xaml.XamlObjectSerializer.PropertySerializationInfo.GetPropertyValueInfo(Object propertyValue, PropertyDescriptor propertyDescriptor, SerializerContext context) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.Oslo.Xaml.XamlObjectSerializer.PropertySerializationInfo.ForReadWriteProperty(Object source, PropertyDescriptor property, SerializerContext context) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.Oslo.Xaml.XamlObjectSerializer.PropertySerializationInfo.ForPropertyDescriptor(Object source, SchemaProperty property, PropertyDescriptor propertyDescriptor, SerializerContext context) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.Oslo.Xaml.XamlObjectSerializer.RecordSerializationInfo.AddRecordMembers(Object value, SerializerContext context, HashSet`1 propertyNames, ParameterInfo[] methodParameters, SchemaType type, String contentPropertyName, String runtimeNamePropertyName) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.Oslo.Xaml.XamlObjectSerializer.RecordSerializationInfo.AddRecordMembers(Object value, SerializerContext context, TypeConverter converter) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.Oslo.Xaml.XamlObjectSerializer.RecordSerializationInfo.ForObjectInternal(Object value, SerializerContext context, Boolean valueType, TypeConverter converter) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.Oslo.Xaml.XamlObjectSerializer.RecordSerializationInfo.ForObject(Object value, SerializerContext context, Boolean isValueType, TypeConverter instanceConverter) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.Oslo.Xaml.XamlObjectSerializer.RecordSerializationInfo.ForArray(Array value, SerializerContext context) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.Oslo.Xaml.XamlObjectSerializer.RecordSerializationInfo.ForObject(Object value, SerializerContext context, Boolean isValueType, TypeConverter instanceConverter) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.Oslo.Xaml.XamlObjectSerializer.PropertySerializationInfo.ForDictionary(Object sourceOrValue, PropertyDescriptor property, SchemaType type, SerializerContext context) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.Oslo.Xaml.XamlObjectSerializer.PropertySerializationInfo.ForPropertyDescriptor(Object source, SchemaProperty property, PropertyDescriptor propertyDescriptor, SerializerContext context) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.Oslo.Xaml.XamlObjectSerializer.RecordSerializationInfo.AddRecordMembers(Object value, SerializerContext context, HashSet`1 propertyNames, ParameterInfo[] methodParameters, SchemaType type, String contentPropertyName, String runtimeNamePropertyName) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.Oslo.Xaml.XamlObjectSerializer.RecordSerializationInfo.AddRecordMembers(Object value, SerializerContext context, TypeConverter converter) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.Oslo.Xaml.XamlObjectSerializer.RecordSerializationInfo.ForObjectInternal(Object value, SerializerContext context, Boolean valueType, TypeConverter converter) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.Oslo.Xaml.XamlObjectSerializer.RecordSerializationInfo.ForObject(Object value, SerializerContext context, Boolean isValueType, TypeConverter instanceConverter) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.Oslo.Xaml.XamlObjectSerializer.Save(XamlWriter writer, Object obj) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.Oslo.Xaml.XamlServices.Save(XamlWriter writer, Object obj) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.Oslo.Xaml.XamlServices.Save(XmlWriter writer, Object obj) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at System.Dataflow.Languages.MImageBase.SaveXaml(PackagePart part, Object data) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at System.Dataflow.Languages.MImageBase.SaveManifest() C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at System.Dataflow.Languages.MImageBase.Save(Stream outputStream, Boolean closeOnDispose) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.M.BuildTask.MCompilerDriver.OutputImage(String outputFile, CompilationResults results) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.M.BuildTask.MCompilerDriver.OutputResult(CompilationResults result) C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(95,5): error : at Microsoft.M.BuildTask.MCompilerDriver.Run()</pre>Tue, 24 Nov 2009 12:40:10 Z2009-11-25T19:59:50Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/eb0f3cb5-b6c5-4195-9eea-5be175f50a4bhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/eb0f3cb5-b6c5-4195-9eea-5be175f50a4bPedro J. Molinahttp://social.msdn.microsoft.com/Profile/en-US/?user=Pedro%20J.%20MolinaDifferences in tree construction?<p class=MsoNormal>Hi:</p> <p class=MsoNormal>I want to show you an example of an MGrammar developed with CTP May 2009.</p> <p class=MsoNormal>I tried to make it as small as possible in order to reproduce it.</p> <p class=MsoNormal>So, find enclose 3 files:</p> <p class=MsoNormal> </p> <ol> <li><a title="Why repro MGrammar" href="http://pjmolina.com/extra/mgrammar-why/why.mg">The repro grammar</a></li> <li><a title="Input sample" href="http://pjmolina.com/extra/mgrammar-why/input-sample.txt">A text input sample</a></li> <li><a title="Output tree" href="http://pjmolina.com/extra/mgrammar-why/output-tree.txt">A tree output</a></li> </ol> <p> </p> <p class=MsoNormal>The point is that there are two productions to parse a property (see variant 1 &amp; 2). The variations changes the way of parsing the “type”. These changes, of course make a structural change in the output tree to the “type” part.</p> <p class=MsoNormal>However, take a look (in the picture) to the “name” of the property built in the tree for Prop1 &amp; Prop2.</p> <p class=MsoNormal> </p> <ul> <li>For Prop1:<span style="white-space:pre"> </span>     Name { “Prop1” }</li> <li>For Prop2:      Name  =&gt; “Prop2”</li> </ul> <p> </p> <p class=MsoNormal> </p> <p class=MsoNormal><strong>It’s different!!!!</strong> But if you look again to the productions, the parsing for the Name: ( =  name:Id )  is the same in both cases.</p> <p class=MsoNormal><strong>Why is different?</strong></p> <p class=MsoNormal> </p> <img src="http://pjmolina.com/extra/mgrammar-why/why-sample.png" alt=""> <p class=MsoNormal> </p> <p class=MsoNormal><a title="Why image sample." href="http://pjmolina.com/extra/mgrammar-why/why-sample.png">Open image.</a></p> <p class=MsoNormal> </p> <p class=MsoNormal>This subtle difference is important when trying to map the parsed graph to .NET objects using MGraphXamlReader. Ending in case 2 with a type mismatch exception between <strong>System.Generic.Collection.List’1&lt;object&gt;</strong> &amp; <strong>PropertyDef</strong>.</p> <p class=MsoNormal>Maybe I am missing something or may be it is a bug in MGrammar? </p> <p class=MsoNormal>I reviewed the bug database in Connect and found nothing similar to this. Any clue?</p> <p class=MsoNormal> </p> <p class=MsoNormal>Thanks in advance,</p> <hr class=sig> Dr. Pedro J. Molina | Capgemini SpainWed, 23 Sep 2009 22:25:46 Z2009-11-25T20:00:50Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/f0e0a27c-61dd-4ae4-a9b5-d2877ef7ccf5http://social.msdn.microsoft.com/Forums/en-US/oslo/thread/f0e0a27c-61dd-4ae4-a9b5-d2877ef7ccf5Elger [Centric]http://social.msdn.microsoft.com/Profile/en-US/?user=Elger%20%5bCentric%5dChange Data Capture gives error: invalid number of argumentsHi all,<br/><br/>I'm piloting CDC in Oslo. This article tells what to do: <a href="http://msdn.microsoft.com/en-us/library/dd129574(VS.85).aspx">http://msdn.microsoft.com/en-us/library/dd129574(VS.85).aspx</a><br/><br/>So, after running through that article, im getting a strange error message:<br/><br/><span style="font-size:xx-small"><span style="font-size:xx-small"><span style="font-size:xx-small"><span style="font-size:xx-small"> <p>Msg 313, Level 16, State 3, Line 7:</p> </span>An insufficient number of arguments were supplied for the procedure or function cdc.fn_cdc_get_all_changes_ ... .</span></span><span style="font-size:xx-small"> </span></span><br/><br/>I thought the message was truncated by management studio; but i think its not. After digging and digging through the functions for CDC, i stubled upon sys.fn_cdc_check_parameters. However nice that may be; i cannot get a resultset from CDC; i need such a resultset for a demo.<br/><br/>Im convinced i missed out something trivial; but i've scanned the msdn page 10 (decimal) times.<br/><br/>So now, how am i going to try out CDC?<br/><br/><br/>I also have another question, since that is what i'm working on now: how can i see <em>who (what connection / repository user) </em>changed some data with CDC? <br/>(as i can get the change-date back from an LSN, can i also get other information?) <hr class=sig> Performing my Final Project, looking into codename &quot;Oslo&quot;.Sun, 13 Sep 2009 12:35:47 Z2009-11-25T22:00:27Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/6f1734c0-88bf-4d99-b731-853d859aea0fhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/6f1734c0-88bf-4d99-b731-853d859aea0fJAhlenhttp://social.msdn.microsoft.com/Profile/en-US/?user=JAhlenExample - building a DSL for Analysis Services CubesFor anyone interested in a step-by-step guide and an example how to build a simple DSL for SQL Server Analysis Services cubes, I put a link to my blog:<br/><a href="http://blogical.se/blogs/jahlen/archive/2009/11/17/instantcube-building-a-sql-server-modeling-application-for-quicker-cube-development.aspx">http://blogical.se/blogs/jahlen/archive/2009/11/17/instantcube-building-a-sql-server-modeling-application-for-quicker-cube-development.aspx</a><a href="http://blogical.se/blogs/jahlen/archive/2009/09/24/a-first-look-at-sql-server-2008-r2-streaminsight.aspx"></a><br/><br/>Any feedback and suggestions is welcome!<br/>Tue, 24 Nov 2009 14:37:45 Z2009-11-24T14:37:47Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/e8ba076b-82e9-49be-b39f-adf1eab4bd47http://social.msdn.microsoft.com/Forums/en-US/oslo/thread/e8ba076b-82e9-49be-b39f-adf1eab4bd47Phil Devaney2http://social.msdn.microsoft.com/Profile/en-US/?user=Phil%20Devaney2Parser.Parse throws InvalidCastException with Nov09 CTPI have upgraded to the Nov09 CTP and a grammar that worked fine in the previous CTP now throws an InvalidCastException when trying to parse what should be valid input. This can be seen in code (calling Parser.Parse) and Intellipad. <br/> <br/> I am using M to define a simple &quot;expression evaluator&quot; DSL for my application. I am not using any of the modelling stuff. My DSL is a fairly standard expression syntax, with unary &amp; binary operators, literals of various types, function calls etc. The problem seems to be with the function call syntax.<br/> <br/> Here's a cut-down version of my grammar:<br/> <pre lang="x-c#">module Test { language Test { interleave Skippable = TWhitespace+; // Productions syntax Main = e:Expr? =&gt; e; syntax Expr = e:BinaryExpr =&gt; e; syntax BinaryExpr = r:PrimaryExpr =&gt; r | l:BinaryExpr &quot;+&quot; r:PrimaryExpr =&gt; BinaryOperator { l, &quot;+&quot;, r } | l:BinaryExpr &quot;-&quot; r:PrimaryExpr =&gt; BinaryOperator { l, &quot;-&quot;, r } ; syntax PrimaryExpr = e:TNumber =&gt; e | e:FunctionExpr =&gt; e; syntax FunctionExpr = i:TIdentifier &quot;(&quot; el:ExprList? &quot;)&quot; =&gt; Function{ i, el }; syntax ExprList = e:Expr =&gt; [e] | el:ExprList &quot;,&quot; e:Expr =&gt; [valuesof( el ), e]; // Tokens token TWhitespace = '\u000C' | '\u0020'; token TNumber = TDigit+; token TIdentifier = TLetter+; token TDigit = '0'..'9'; token TLetter = 'a'..'z' | 'A'..'Z'; } } </pre> If I enter this in Intellipad, and give it some input involving numbers &amp; operators (e.g. &quot;1 + 1&quot;), then it is parsed OK. But if I give it input involving a function call (e.g. &quot;foo()&quot;), the error &quot;\\untitled2(1,1): error 0198: Specified cast is not valid.&quot; is displayed.<br/> <br/> If I compile this into a program and call Parser.Parse, an InvalidCastException is thrown with the following call stack:<br/> <br/> <pre> Microsoft.M.dll!Microsoft.M.SemanticGraph.MockRuntime.Coerce(object result = &quot;a&quot;, Microsoft.M.SemanticGraph.TypeCoercion coercion = {Microsoft.M.SemanticGraph.TypeCoercion}, Microsoft.M.SemanticGraph.SymbolResolverBase resolver = {Microsoft.M.SemanticGraph.SymbolResolver}) + 0x1d8 bytes Microsoft.M.dll!Microsoft.M.SemanticGraph.MockRuntime.Evaluate(Microsoft.M.SemanticGraph.IExpressionSymbol expression = {Microsoft.M.SemanticGraph.TypeCoercion}, System.Dataflow.IRuntimeEnvironment environment = {System.Dataflow.Parser.BindingEnvironment}, System.Dataflow.IGraphBuilder builder = {System.Dataflow.GraphBuilder}, System.Action&lt;object&gt; setSourceInfo = {Method = {Void &lt;get_Item&gt;b__25(System.Object)}}, Microsoft.M.SemanticGraph.SymbolResolverBase resolver = {Microsoft.M.SemanticGraph.SymbolResolver}) + 0xb5 bytes Microsoft.M.dll!Microsoft.M.SemanticGraph.MockRuntime.EvaluateGraph.AnonymousMethod__f() + 0x8f bytes System.Core.dll!System.Linq.Enumerable.CombineSelectors&lt;System.__Canon,System.__Canon,System.Collections.Generic.KeyValuePair&lt;System.__Canon,System.__Canon&gt;&gt;.AnonymousMethod__11(System.__Canon x) + 0x28 bytes System.Core.dll!System.Linq.Enumerable.WhereSelectListIterator&lt;Microsoft.M.SemanticGraph.IExpressionSymbol,System.Collections.Generic.KeyValuePair&lt;object,object&gt;&gt;.MoveNext() + 0x68 bytes Microsoft.M.dll!Microsoft.M.SemanticGraph.MockRuntime.EvaluateGraph(Microsoft.M.SemanticGraph.GraphExpressionSymbol graph = {GraphSymbol: &lt;null&gt;`2}, System.Dataflow.IRuntimeEnvironment environment = {System.Dataflow.Parser.BindingEnvironment}, System.Dataflow.IGraphBuilder builder = {System.Dataflow.GraphBuilder}, System.Action&lt;object&gt; setSourceInfo = {Method = {Void &lt;get_Item&gt;b__25(System.Object)}}, Microsoft.M.SemanticGraph.SymbolResolverBase resolver = {Microsoft.M.SemanticGraph.SymbolResolver}) + 0x698 bytes Microsoft.M.dll!Microsoft.M.SemanticGraph.MockRuntime.Evaluate(Microsoft.M.SemanticGraph.IExpressionSymbol expression = {GraphSymbol: &lt;null&gt;`2}, System.Dataflow.IRuntimeEnvironment environment = {System.Dataflow.Parser.BindingEnvironment}, System.Dataflow.IGraphBuilder builder = {System.Dataflow.GraphBuilder}, System.Action&lt;object&gt; setSourceInfo = {Method = {Void &lt;get_Item&gt;b__25(System.Object)}}, Microsoft.M.SemanticGraph.SymbolResolverBase resolver = {Microsoft.M.SemanticGraph.SymbolResolver}) + 0x12f bytes Microsoft.M.dll!Microsoft.M.SemanticGraph.MockRuntime.Run(System.Dataflow.IRuntimeEnvironment environment = {System.Dataflow.Parser.BindingEnvironment}) + 0xff bytes Microsoft.M.dll!Microsoft.M.SemanticGraph.SerializationRuntime.Run(System.Dataflow.IRuntimeEnvironment environment = {System.Dataflow.Parser.BindingEnvironment}) + 0x2b bytes System.Dataflow.dll!System.Dataflow.Parser.ExecuteAction(int productionId = 9, System.Dataflow.IStackState stack = {unique 4 state 18 reductions 0}) + 0x2d6 bytes System.Dataflow.dll!System.Dataflow.Parser.Exec(int productionId = 9, System.Dataflow.IStackState state = {unique 4 state 18 reductions 0}) + 0x59 bytes System.Dataflow.dll!System.Dataflow.Reduction.Evaluate() + 0xc9 bytes System.Dataflow.dll!System.Dataflow.GlrState.GetObject() + 0x1c1 bytes System.Dataflow.dll!System.Dataflow.GlrState.GetActionResult() + 0x37c bytes System.Dataflow.dll!System.Dataflow.Parser.Parse(System.Dataflow.ITextStream textStream = {System.Dataflow.TextReaderTextStream}, System.Dataflow.ErrorReporter errorReporter = {System.Dataflow.TextWriterReporter}, System.Dataflow.SourcePoint startLoc = {(1,1)}) + 0x1e0 bytes System.Dataflow.dll!System.Dataflow.Parser.Parse(System.Dataflow.ITextStream textStream = {System.Dataflow.TextReaderTextStream}, System.Dataflow.ErrorReporter errorReporter = {System.Dataflow.TextWriterReporter}) + 0x39 bytes &gt; MTest.exe!MTest.Program.Main(string[] args = {string[1]}) Line 28 + 0x5f bytes C# </pre> The exception is caught, but the returned object graph contains a single node with the same error message as Intellipad.<br/> <br/> What is going on? Is this a bug, or do I need to make changes to my grammar definition?<br/> <br/>Fri, 20 Nov 2009 15:38:16 Z2009-11-24T11:37:11Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/9645edff-b618-466a-8198-a46ff5fb1bbchttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/9645edff-b618-466a-8198-a46ff5fb1bbckotaykhttp://social.msdn.microsoft.com/Profile/en-US/?user=kotaykAdd-on for Visual Studio 2005 to generate Insert statements for SQL 2005Hi, I´m new in this forum, I´m from Argentina and I want to ask if someone knows about an add-on for Visual Studio 2005 that can generate insert statements for an existing table in SQL Server 2005.<br/><br/>I would appreciate if someone could help me.<br/><br/>Thanks in advance.Fri, 20 Nov 2009 17:09:17 Z2009-11-23T22:35:23Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/c50d0259-11a2-4659-acea-8b368d1c912fhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/c50d0259-11a2-4659-acea-8b368d1c912fMankeer C-Sharp Programmerhttp://social.msdn.microsoft.com/Profile/en-US/?user=Mankeer%20C-Sharp%20ProgrammerDll SecurityHi All,<br/> <br/> I want to create a dll file that has a high level of security, i.e. I don't want anyone to disassemble this dll, i.e. if you use the IL Disassembler it will show you the defined namespaces and classes inside the dll, how can I prevent anyone from seeing anything if he disassemble my dll?<br/> <br/> Thank you very muchMon, 23 Nov 2009 06:59:37 Z2009-11-23T22:35:33Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/9038b782-85d9-4754-97eb-78ca839cb05fhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/9038b782-85d9-4754-97eb-78ca839cb05fMWattshttp://social.msdn.microsoft.com/Profile/en-US/?user=MWattsNov CTP: Quadrant fails to start after successful install.When starting Quadrant on the NOV CTP I get the following error<br/> <br/> ---------------------------<br/> Quadrant Repository Connection Failure<br/> ---------------------------<br/> Error on startup.: Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.<br/> ---------------------------<br/> OK   <br/> ---------------------------<br/> <br/> 1) Win7 RTM<br/> 2) The CTP install completed without any errors being reported<br/> 3) The SQL Server 2008 Mgmt Studio can connect to the server and I can see the Repository database and connect to it.<br/> <br/> Any ideas?Wed, 18 Nov 2009 13:11:37 Z2009-11-23T17:50:01Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/0e7903cf-e2f0-4eb3-83de-960491ca06a0http://social.msdn.microsoft.com/Forums/en-US/oslo/thread/0e7903cf-e2f0-4eb3-83de-960491ca06a0SlavoFhttp://social.msdn.microsoft.com/Profile/en-US/?user=SlavoFInstalling Nov09CTP on machine without VS2010Hello! <div><br/></div> <div>it is possible to install SQL Modeling Nov09 CTP on machine without Visual Studio?</div> <div><br/></div> <div>I know that I did not get M integration with VS, but I like to have IntelliPad and Quadrant on that machine to play with existing SQL Server 2008 databases there, and do not like to install visual studio 2010 there (it is test machine running SQL Server 2008 on which I like to show my colleagues what Quadrant and M is).</div> <div><br/></div> <div>thanks,</div> <div>S.</div>Fri, 20 Nov 2009 12:58:29 Z2009-11-21T13:10:11Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/b5929c72-a71a-47ba-968f-406b820f0254http://social.msdn.microsoft.com/Forums/en-US/oslo/thread/b5929c72-a71a-47ba-968f-406b820f0254harshavhttp://social.msdn.microsoft.com/Profile/en-US/?user=harshavInstallation of Microsoft SQL Server Modeling CTP failed.Installation fails with following error in c:\temp\OsloSetup.log <div>error : Cannot open database &quot;Repository&quot; requested by the login. The login failed.</div> <div><br/></div> <div>But I could connect to sql server with windows authentication using management studio.</div> <div><br/></div> <div>I tried to restart sql server service and attempted to install. </div> <div><br/></div> <div>Then I get this error</div> <div><br/></div> <div>catalogentries.sql(26626,1): error M6040: Sql Exception: There is insufficient system memory in resource pool 'internal' to run this query.</div> <div><br/></div> <div>also there is another warning prior to this</div> <div> <div>warning M6046: Database collation is unexpected: M assumes 'Latin1_General_100_CS_AS_KS_WS' but database has collation 'Latin1_General_100_CI_AS_KS_WS'.</div> <div><br/></div> </div>Wed, 18 Nov 2009 02:41:20 Z2009-11-23T17:57:42Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/182c708b-2eb5-444a-aa7d-51818b5112bfhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/182c708b-2eb5-444a-aa7d-51818b5112bfKallexhttp://social.msdn.microsoft.com/Profile/en-US/?user=KallexSQL Server Modeling Nov CTP setup database creation failure M6049Hi!<br/><br/>Just to possibly help others out, in case you bump into &quot;mysterious&quot; database compatibility has to be 100 error M6049 for the repository creation... turned out to be likely the case with VS 2008 and then VS2010 B2 installation on top of it.<br/><br/>Apparently the SQL Server 2005 is upgraded to SQL Server 2008 in the SQLEXPRESS instance. However the master database kept the compatibility level of SQL Server 2005. After changing that to SQL Server 2008 (= 100), the error went away and setup and/or mx.exe create succeeded.<br/><br/><br/>I'm not yet sure if there are any other issues, however at least one can complete the setup and get the Repository database to begin with...<br/><br/>Br,<br/><br/>Kalle Launiala, Consultant &amp; CEO<br/>ProtonIT OyWed, 18 Nov 2009 21:43:27 Z2009-11-18T21:43:27Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/162474ed-14d9-48b3-9910-122659fd9040http://social.msdn.microsoft.com/Forums/en-US/oslo/thread/162474ed-14d9-48b3-9910-122659fd9040Diego Barbosahttp://social.msdn.microsoft.com/Profile/en-US/?user=Diego%20%20BarbosaSingle Table or Table per subclassHi, which is better type of inherance, Single Table or Table per subclass?<br/> thanks.<br/>Mon, 16 Nov 2009 21:07:44 Z2009-11-17T08:44:53Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/65df6eda-74f2-458d-aa79-1720d7b35630http://social.msdn.microsoft.com/Forums/en-US/oslo/thread/65df6eda-74f2-458d-aa79-1720d7b35630Ceyhun Ciperhttp://social.msdn.microsoft.com/Profile/en-US/?user=Ceyhun%20CiperIs MGrammar ditched?Seriously, I won't be surprised if it is, as I had surmised its demise from long ago.<br/><br/>Come on, it cannot be inside SQL Server! Can it?<br/>Fri, 13 Nov 2009 22:18:49 Z2009-11-15T21:55:44Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/7dcae269-87b5-4fd0-8133-d2ed0cd079b9http://social.msdn.microsoft.com/Forums/en-US/oslo/thread/7dcae269-87b5-4fd0-8133-d2ed0cd079b9pavankumarkavetyhttp://social.msdn.microsoft.com/Profile/en-US/?user=pavankumarkavetysql injection?hi can anyone tell wat is sql injection and how it can be used?<hr class="sig">pavankumar kavetyFri, 13 Nov 2009 04:51:50 Z2009-11-15T21:07:57Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/6c71eaff-1d71-4a37-97a1-f2b965ee42d9http://social.msdn.microsoft.com/Forums/en-US/oslo/thread/6c71eaff-1d71-4a37-97a1-f2b965ee42d9BJ Lappenschaarhttp://social.msdn.microsoft.com/Profile/en-US/?user=BJ%20LappenschaarRunning Oslo tutorial from MSDNHi, <div>I am very interested in Oslo, our company does a lot of business modeling. Currently we load our models in SQL server using our own custom-built modeling environment.  Oslo seems the logical next step. I want to run the tutorial on MSDN that describes an Oslo model of an installer class (<a href="http://msdn.microsoft.com/en-us/library/dd857488(VS.85).aspx">http://msdn.microsoft.com/en-us/library/dd857488(VS.85).aspx</a>). I have one problem: I cannot download the repinst sample application needed to build a wix installer from the installer model. The error message when trying to download from <a href="http://code.msdn.microsoft.com/SQLModCTPRepInst/Release/ProjectReleases.aspx?ReleaseId=3454">http://code.msdn.microsoft.com/SQLModCTPRepInst/Release/ProjectReleases.aspx?ReleaseId=3454</a> is: 'this project is not yet published. <span style="font-family:Verdana, Arial, Helvetica, sans-serif, Geneva;color:#080808">If you are a coordinator or developer on this project, please sign in with an authorized account.' So what next? I suppose that since the link is on MSDN it should be possible to download the RepInst sample application.</span></div> <div><span style="font-family:Verdana, Arial, Helvetica, sans-serif, Geneva;color:#080808">Please help,</span></div> <div><span style="font-family:Verdana, Arial, Helvetica, sans-serif, Geneva;color:#080808">Bert-Jan Lappenschaar</span></div>Fri, 13 Nov 2009 22:00:31 Z2009-11-15T19:39:35Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/829ccf02-45d6-4d7d-b00c-edb57a93b770http://social.msdn.microsoft.com/Forums/en-US/oslo/thread/829ccf02-45d6-4d7d-b00c-edb57a93b770Ceyhun Ciperhttp://social.msdn.microsoft.com/Profile/en-US/?user=Ceyhun%20CiperTree LanguageHere is a small language for modeling  and representing trees:<br/><br/> <pre>&quot;ceo (cfo (acct hr) cio(it))&quot;.ToTree() → Tree &quot;ceo (cfo (acct hr) cio(it))&quot;.ToCanvas() → Canvas &quot;ceo (cfo (acct hr) cio(it))&quot;.ToXaml() → Xaml </pre> If all you want is to get a visual tree for your tree, then you can use it.<br/><br/>If you want to get a strongly-typed tree structure out of a semi-structured string, column or whatever, then you may want to use it.<br/><br/>It is like a TreeRegEx, and will continue to be with the addition of boost-like algorithms such as breadth-first-search, minimum-spanning-tree, etc. (I wish &quot;elevate&quot; included those!)<br/><br/>For more information, please visit <a href="http://www.sixpairs.com/dsl/tree-language.aspx">http://www.sixpairs.com/dsl/tree-language.aspx</a> or refer to the &quot;Tree Language Developer's Guide&quot; @ <a href="http://sixpairs.blob.core.windows.net/docs/tree-language-guide.pdf">http://sixpairs.blob.core.windows.net/docs/tree-language-guide.pdf</a>Fri, 13 Nov 2009 21:53:32 Z2009-11-13T21:53:33Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/cacdf769-34b6-4803-ad83-878d0f329b13http://social.msdn.microsoft.com/Forums/en-US/oslo/thread/cacdf769-34b6-4803-ad83-878d0f329b13singhhomehttp://social.msdn.microsoft.com/Profile/en-US/?user=singhhomeKeyword colouring not working in May 2009 CTPI am using Build 3.0.1803.10 on WIN 7.<br />Even though I have used classification attribute in my grammar, but my texts are not coloured in the DSL text.<br /><br />Regards<hr class="sig">singhhomeThu, 15 Oct 2009 19:19:56 Z2009-11-12T10:54:50Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/647f84c2-7fae-49c4-8834-14cbec08b6c5http://social.msdn.microsoft.com/Forums/en-US/oslo/thread/647f84c2-7fae-49c4-8834-14cbec08b6c5Caeliushttp://social.msdn.microsoft.com/Profile/en-US/?user=Caelius'Where' clause in viewsHi,<br/><br/>I am having problems using 'where' clause in views. See code below.<br/><br/>type Person<br/>{<br/>  PersonId : Integer64;<br/>  FName : Text#25;<br/>} where identity PersonId;<br/><br/>Persons : Person*;<br/><br/>PersonView() { from Person in Persons select { FName =&gt; Person.FName } <strong>where value.PersonId &gt; 10</strong> }<br/><br/>It works ok as long as there is no 'where' clause in PersonView(). When the clause is added, intellipad throws an error below:<br/><br/>-----------------------------------------------------<br/>Microsoft.Internal.Invariant+InternalException: An internal error has occurred: <br/>   at Microsoft.Internal.Invariant.Fail(String description)<br/>   at Microsoft.Internal.Invariant.Assert(Boolean condition)<br/>   at Microsoft.M.SqlGen.RelationBindingHelper.BindRelationColumns(SqlCreatorContext context, RelationBinding binding, IEnumerable`1 columns)<br/>   at Microsoft.M.SqlGen.BoundSqlExpressionOptimizations.OptimizeFromTableViewOrFunctionSubSelect(SqlCreatorContext context, FromItem fromItem, RelationBinding binding)<br/>   at Microsoft.M.SqlGen.SqlExpressionCreator.GenerateFromQueryExpression(FromExpressionSymbol from, QuerySpecification querySpec, HashSet`1 dependencies)<br/>   at Microsoft.M.SqlGen.SqlExpressionCreator.GenerateQueryExpression(IExpressionSymbol queryStart)<br/>   at Microsoft.M.SqlGen.SqlExpressionCreator.GenerateFromExpression(FromExpressionSymbol from)<br/>   at Microsoft.Internal.MethodInfoExtensions.FuncCastingStub`6.Call(T1Sig t1, T2Sig t2)<br/>   at Microsoft.M.TermDispatcherFunc`4.Invoke(TDiscriminator discriminator, T1 arg1, T2 arg2)<br/>   at Microsoft.M.SqlGen.SqlExpressionCreator.Generate(IExpressionSymbol expression)<br/>   at Microsoft.M.SqlGen.SqlExpressionCreator.ForceQuery(IExpressionSymbol expression)<br/>   at Microsoft.M.SqlGen.SqlViewFunctionCreator.FinalizeViewOrFunction(ComputedValue computedValue)<br/>   at Microsoft.M.SqlGen.SqlCreator.FinalizeFunctionsAndViews(SqlCreatorContext context, Module module)<br/>   at Microsoft.M.SqlGen.SqlCreator.DefineImplementations(SqlCreatorContext context, IEnumerable`1 modules)<br/>   at Microsoft.M.SqlGen.SqlCreator.CreateSql(SqlCreatorContext context, Program originalProgram, SymbolResolver originalResolver, IEnumerable`1 references, CatalogCreator catalogCreator)<br/>   at Microsoft.M.SqlGen.SqlCreator.CreateSql(Program program, SymbolResolver resolver, IEnumerable`1 references, CatalogCreator catalogCreator)<br/>   at Microsoft.M.LanguageServices.MProjectStateMachine`2.GenerateDatabaseHelper()<br/>   at Microsoft.M.LanguageServices.MProjectStateMachine`2.GenerateDatabasePending.&lt;OnEnterState&gt;b__35(Object o)<br/>-----------------------------------------<br/><br/>Any idea, what i am doing wrong?<br/><br/><br/>Regards,<br/><br/>CaeliusWed, 04 Nov 2009 12:20:32 Z2009-11-05T23:51:33Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/a49a0d2d-5afd-48de-ba15-661a7b26f028http://social.msdn.microsoft.com/Forums/en-US/oslo/thread/a49a0d2d-5afd-48de-ba15-661a7b26f028Ales Sturala CZEhttp://social.msdn.microsoft.com/Profile/en-US/?user=Ales%20Sturala%20CZEMGrammar stuck when compiled, Intellipad stops respondingHello,<br/> I'm dealing with a grammar that causes Intellipad to stop validating it. Also when I try to compile it with m.exe, the compiler gets stuck and doesn't compile the grammar. It seems to me that the compiler gets to infinite loop somewhere and most likely that's what makes Intellipad unresponsive to the given grammar as well.<br/> <br/> Here is a short grammar that cannot be compiled, if you remove syntax parameters the m.exe will be able to compile it and Intellipad to handle the grammar:<br/> <br/> module X<br/> {<br/>   language wtf<br/>   {<br/>     token Letter = &quot;a&quot;..&quot;z&quot; | &quot;A&quot;..&quot;Z&quot;;<br/>     token String = Letter+;<br/>   <br/>     syntax Main = A(&quot; &quot;);<br/>     <br/>     syntax A(x) = &quot;a&quot;<br/>                 | &quot;a&quot; B(&quot; &quot;);<br/>              <br/>     syntax B(y) = &quot;b&quot;<br/>                 | &quot;b&quot; A(&quot; &quot;);<br/>   }<br/> }<hr class="sig">contact: http://hidentity.org/hid/CZ123456Tue, 03 Nov 2009 11:18:14 Z2009-11-11T10:45:06Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/fce8ba71-3aa5-4648-943b-3bd094b0537ahttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/fce8ba71-3aa5-4648-943b-3bd094b0537aJeffKislinghttp://social.msdn.microsoft.com/Profile/en-US/?user=JeffKislingVS2010Beta2Since it appears that Visual Studio 2010 Beta 2 does NOT compile M grammars, wouldn't it be helpful to post a notice to that effect on the Oslo developer's site?  I wasted a lot of time trying to get the State Machine example to work before finding related discussion in this forum.Sat, 31 Oct 2009 14:50:45 Z2009-11-02T20:06:46Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/9d3c4993-e672-43d4-8aa1-e983b5baa7fchttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/9d3c4993-e672-43d4-8aa1-e983b5baa7fcCeyhun Ciperhttp://social.msdn.microsoft.com/Profile/en-US/?user=Ceyhun%20CiperGrammar InferenceAre there any plans to automatically infer grammars from text in Oslo?<br/><br/>Example:<br/><br/> <div style="background-color:white;color:black"> <pre>abcdabccd S -&gt; ABAcB A -&gt; ab B -&gt; cd </pre> </div> <br/>-Ciper<br/>Thu, 29 Oct 2009 14:25:16 Z2009-10-30T20:23:23Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/27acda47-b937-49c1-acb4-e991c6f27c9ehttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/27acda47-b937-49c1-acb4-e991c6f27c9eOpinionatedGeekhttp://social.msdn.microsoft.com/Profile/en-US/?user=OpinionatedGeekVS2010 beta 2 can't build MG files? "error 0000: Cannot resolve type with name 'MarkupExtension'"Hi,<br/><br/>I hope this is the proper place to post this. I realise it could be taken as a VS question, but the problem (and stack trace) seem to point to Oslo as the culprit.<br/><br/>In a nutshell, when I try to build a project with a .mg file in it in VS2010 beta 2, I get the error:<br/><br/><span style="font-family:Consolas;font-size:xx-small"><span style="font-family:Consolas;font-size:xx-small"><font face=Consolas size=1><font face=Consolas size=1> <p>C:\Program Files (x86)\MsBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(138,5): error 0000: Cannot resolve type with name 'MarkupExtension' and namespace 'http://schemas.microsoft.com/winfx/2006/xaml'. Multiple CLR types found with the same name and namespace. Please check the type names and XmlnsDefinitionAttribute declarations to ensure that XAML type names are unique.</p> </font></font></span><font face=Consolas size=1> <p> </p> </font></span> <p><br/><br/>The same project built fine in VS2010 beta 1.<br/><br/>I tried a completely clean project file, added the mprice.mg file from this article:<br/>    <a href="http://msdn.microsoft.com/en-us/library/dd441702.aspx">http://msdn.microsoft.com/en-us/library/dd441702.aspx</a><br/><br/>Then made the changes to the project file described here:<br/>    <a href="http://social.msdn.microsoft.com/Forums/en-US/oslo/thread/c8563030-1c70-47b1-8bfc-4bc9c638c2b4">http://social.msdn.microsoft.com/Forums/en-US/oslo/thread/c8563030-1c70-47b1-8bfc-4bc9c638c2b4</a><br/><br/>And the same problem happened. (It's nice that it wasn't my code that was the problem, but...)<br/><br/>If I run MSBuild on it directly, outside of VS2010, I get an exception and stack trace:<br/><br/>ExecuteM:<br/>  Compiling to obj\x86\Debug\mprice.mx<br/>     at Microsoft.M.Driver.DriverBase.Compile(TargetType target, CompilerOptions compilerOptions)<br/>     at Microsoft.M.BuildTask.MCompilerDriver.Run()<br/>     at System.Xaml.ClrTypeResolver.FindTypeInNamespace(XamlNamespaceRecord namespaceRecord, String typeName, XNamespace typeNamespace, Int32 genericArgumentCount)<br/>     at System.Xaml.ClrTypeResolver.ResolveUserType(XName typeName, Int32 genericArgumentCount)<br/>     at System.Xaml.ClrTypeResolver.TryResolveType(XName typeName, Int32 genericArgumentCount, Type&amp; type)<br/>     at System.Xaml.ClrTypeResolver.TryResolveType(TypeReference typeReference, ISchemaTypeResolver schemaTypeResolver, Type&amp; type)<br/>     at System.Xaml.XamlSchemaTypeResolver.RegisterClrType(TypeReference typeReference)<br/>     at System.Xaml.XamlSchemaTypeResolver.Resolve(TypeReference typeReference)<br/>     at System.Xaml.XamlValidatingReader.PopulateSchemaTypeHierachy(SchemaType type)<br/>     at System.Xaml.XamlValidatingReader.FindMemberForType(String memberName, SchemaType type)<br/>     at System.Xaml.XamlValidatingReader.CaptureStartMember()<br/>     at System.Xaml.XamlValidatingReader.InRecord.HandleMember(XamlValidatingReader reader)<br/>     at System.Xaml.XamlValidatingReader.ReaderState.Read(XamlValidatingReader reader)<br/>     at System.Xaml.XamlValidatingReader.Read()<br/>     at System.Xaml.XamlValidatingReader.ReadToEnd()<br/>     at System.Xaml.XamlObjectDeserializer.XamlNavigator..ctor(ISchemaTypeResolver schemaTypeResolver, XamlObjectDeserializerSettings settings, XamlReader reader)<br/>     at System.Xaml.XamlObjectDeserializer.Load(XamlReader xamlReader, XamlObjectDeserializerContext context)<br/>     at System.Xaml.XamlServices.Load(XamlReader reader)<br/>     at System.Xaml.XamlServices.Load(XmlReader reader)<br/>     at System.Xaml.XamlServices.Load(TextReader reader)<br/>     at System.Xaml.XamlServices.Load(Stream stream)<br/>     at System.Dataflow.DynamicParserFactory.GetParser(IList`1 parts, String parserName)<br/>     at System.Dataflow.DynamicParserFactory.GetParser(Package package, String parserName)<br/>     at System.Dataflow.DynamicParserFactory.LoadFromStream(Stream stream, String parserName)<br/>     at Microsoft.M.Parser.SourceParser.&lt;&gt;c__DisplayClass3.&lt;CreateDynamicParserHelper&gt;b__0()<br/>     at Microsoft.Internal.LazyInit.Init2[T](T&amp; itemToInit, Func`1 lazyCreator)<br/>     at Microsoft.Internal.LazyInit.Init[T](T&amp; itemToInit, Func`1 lazyCreator)<br/>     at Microsoft.M.Parser.SourceParser.CreateDynamicParserHelper(String parserName, DynamicParserFactory&amp; factory, DynamicParser&amp; dynamicParser)<br/>     at Microsoft.M.StandardLibrary.StandardLibraryCreator.Parse()<br/>     at Microsoft.M.StandardLibrary.StandardLibraryCreator..ctor()<br/>     at Microsoft.M.StandardLibrary.&lt;Create&gt;b__0()<br/>     at Microsoft.Internal.LazyInit.Init2[T](T&amp; itemToInit, Func`1 lazyCreator)<br/>     at Microsoft.Internal.LazyInit.Init[T](T&amp; itemToInit, Func`1 lazyCreator)<br/>     at Microsoft.M.StandardLibrary.Create()<br/>     at Microsoft.M.SemanticGraph.SymbolResolver..ctor(IEnumerable`1 images, Boolean includeStandardLibrary)<br/>     at Microsoft.M.SemanticGraph.SemanticGraphImporter..ctor(IEnumerable`1 images, Boolean includeStandardLibrary)<br/>     at Microsoft.M.Compiler.SemanticAnalyzeSchema(CompilerOptions options, CompilationResults results)<br/>     at Microsoft.M.Compiler.SemanticAnalyze(CompilerOptions options)<br/>     at Microsoft.M.Driver.DriverBase.Compile(TargetType target, CompilerOptions compilerOptions)<br/>  ---Inner Exception Details---<br/>C:\Program Files (x86)\MSBuild\Microsoft\M\v1.0\Microsoft.M.Embedded.targets(138,5): error 0000: Cannot resolve type with name 'MarkupExtension' and namespace 'http://schemas.microsoft.com/winfx/2006/xaml'. Multiple CLR types found with the same name and namespace. Please check the type names and XmlnsDefinitionAttribute declarations to ensure that XAML type names are unique.<br/><br/>It's this stack trace that makes me think this is the right place to post the question.<br/><br/>So, am I doing something wrong, or is there a problem with building MGrammar files under .NET 4? If there is, how do I fix it?<br/><br/>Cheers,<br/><br/>    Geoff</p>Wed, 21 Oct 2009 17:30:32 Z2009-11-07T03:59:47Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/95d7a3f4-6aca-4bfc-8315-827759c61fddhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/95d7a3f4-6aca-4bfc-8315-827759c61fddVincentH_Macawhttp://social.msdn.microsoft.com/Profile/en-US/?user=VincentH_MacawHow to create statement completion, tooltips and friendly validation messages for textual DSLs in IntelliPad?<p>I would like to create a number of textual DSLs for our factory (<a href="http://solutionsfactory.macaw.nl/">http://solutionsfactory.macaw.nl/</a>) to offer developers and product specialists a more productive and user-friendly editing experience than editing XML files in Visual Studio. E.g. a textual DSL for deployment configuration and a textual DSL for SharePoint configuration.<br/><br/>When I specify an XSD in an XML file, Visual Studio offers the following features when editing the XML file:<br/>1) Colorizing / syntax highlighting<br/>2) Validation (squiggles)<br/>3) Statement completion (on elements and attribute names)<br/>4) Tooltips (on elements and attribute names)<br/><br/>To make switching from XML editing in Visual Studio to editing M-based textual DSLs in Intellipad an actual improvement for editing, I need to offer comparable features - I assume IntelliPad is the editor to do this in.<br/><br/>1) I've already achieved colorizing / syntax highlighting for a textual DSL in IntelliPad using MGrammar. No questions here.<br/><br/>However, these questions remain:<br/><br/>2) Validation : I've got squiggles, but how can I provide more user-friendly validation messages in Intelllipad? The standard MGrammar validation messages are good to the language developer, but incomprehensible to the language user. Visual Studio XML + XSD validation messages can easily be understood by users typing XML. Is there some way to hook into mgrammar validation with custom validation logic and/or custom messages?<br/><br/>3) Statement completion: I've seen it working when editing M in IntelliPad when specifying foreign key values (a listbox pops up with values to select from). How can I provide statement completion in my custom textual DSL - for my static DSL keywords but if possible also for user-supplied values like the foreign key value example?<br/><br/>4) Tooltips. How can I display a description text (in a tooltip or otherwise) when users hover over a DSL keyword?<br/><br/>I'm perfectly willing to customize IntelliPad if that is what t takes (what are the best resources to master this?).<br/>However, is any of the above is planned as a standard feature for future versions of Intellipad (or another mgrammar aware editor) I'd like to know.<br/><br/>I know it's a lot of questions to ask, but if anyone can shed some light on any part of this, I'd really appreciate.</p>Wed, 21 Oct 2009 13:47:48 Z2009-11-07T03:58:15Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/18608f1b-3767-43db-929f-03854c676cc1http://social.msdn.microsoft.com/Forums/en-US/oslo/thread/18608f1b-3767-43db-929f-03854c676cc1jaime_olivareshttp://social.msdn.microsoft.com/Profile/en-US/?user=jaime_olivaresOSLO and XPDLDear all,<br/>We are researching about current technologies for BPM and other workflow applications.<br/>As we found that XPDL is one of the most mature standards for defining and storing process models, I would like to know how can we  relate this to Oslo capabilities.<br/>My understanding is that a closer equivalent of XPDL standard to define a process model would be the &quot;M&quot; programming language. Is this correct? If so, is there any tool announced to translate between both? maybe some MS-BPA vendor.<br/>Thanks in advance, hope to have a rapid answer.<br/>Best regards,<br/>Jaime.Fri, 23 Oct 2009 03:33:25 Z2009-10-28T22:56:32Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/b742ae86-86c3-4bab-94ff-32d9fdfb44ddhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/b742ae86-86c3-4bab-94ff-32d9fdfb44ddGary Ransonhttp://social.msdn.microsoft.com/Profile/en-US/?user=Gary%20RansonToken Alias problem ?Hi,<br/><br/>I am currently crafting a DSL and have discovered what I think may be a problem. In my reseach, I have discovered a similar problem which relates to the use of the CaseInsensitive attribute, but I will document it here anyway.<br/><br/>for a syntax defined as such ...<br/><br/>token   tRelation <br/>        =   &quot;&lt;&quot;     =&gt; &quot;LessThan&quot;<br/>        |   &quot;&gt;&quot;     =&gt; &quot;GreaterThan&quot;<br/>        |   &quot;&lt;=&quot;    =&gt; &quot;LessThanOrEqual&quot;<br/>        |   &quot;&gt;=&quot;    =&gt; &quot;GreaterThanOrEqual&quot;<br/>        ;<br/><br/>syntax  RelationalExpression <br/>        =   p:AdditiveExpression =&gt; p<br/>        |   l:RelationalExpression t:tRelation r:AdditiveExpression =&gt; id(t){Left=&gt;l,Right=&gt;r}<br/>        |   l:RelationalExpression t:tRelation error <br/>        ;<br/>        <br/>You will notice that I use the &quot;id(x)&quot; form. This works very well for me, but with one exception. The AST is built perfectly, but for some reason the syntax highlighting does not work for any token with an alias. Interestingly, there problem also exists for ActiPro's SyntaxEditor with their Oslo plugin.<br/><br/>Can anyone comment on this, or is this by design?<br/><br/>Regards,<br/><br/>Gary Ranson.Wed, 30 Sep 2009 07:10:59 Z2009-11-05T13:32:27Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/e1fe2ffb-b29d-447a-a8d0-3711e8b252f9http://social.msdn.microsoft.com/Forums/en-US/oslo/thread/e1fe2ffb-b29d-447a-a8d0-3711e8b252f9merlinonlinehttp://social.msdn.microsoft.com/Profile/en-US/?user=merlinonlineRepository UpdatesHi,<br/> if I use the Oslo Repository and SQL Server 2008 R2 with .Net 4.0 Beta 1 is it possible to get a notification if some model-data changes? Perhaps changes could be from another program or another user?<br/> <br/> Thanks for the answer.Tue, 20 Oct 2009 17:27:18 Z2009-10-24T13:23:40Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/cae53ab0-169a-482c-84b7-7c2a3099c3cbhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/cae53ab0-169a-482c-84b7-7c2a3099c3cbMichael Anihttp://social.msdn.microsoft.com/Profile/en-US/?user=Michael%20AniParsing Quoted text wich contains Quotes with escape sequenceHi,<br/>How to parse a quoted text that contains a quote with escape charactor.<br/>Eg.  &quot;Quoted\&quot;this\&quot;text&quot;<br/>I have seen lot of example for parsiing quoted identifier which can not conatain nested quotes.<br/><br/>Thanks,<br/>MichaelThu, 22 Oct 2009 06:09:50 Z2009-10-23T14:35:58Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/045276a3-b9a8-476d-b8ad-7963dbcdff87http://social.msdn.microsoft.com/Forums/en-US/oslo/thread/045276a3-b9a8-476d-b8ad-7963dbcdff87DonBaechtelhttp://social.msdn.microsoft.com/Profile/en-US/?user=DonBaechtelOslo and DLR in .Net 4.0Is it possible to use the Dynamic Language Runtime and Expression Trees from .Net 4.0 to help build a runtime for Oslo output?<br/>Does this make sense?<br/>Is there an example of this?<br/>Tue, 20 Oct 2009 12:56:55 Z2009-11-02T15:25:13Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/10ba93f0-22f2-4e74-9f1f-cf2855d45f65http://social.msdn.microsoft.com/Forums/en-US/oslo/thread/10ba93f0-22f2-4e74-9f1f-cf2855d45f65singhhomehttp://social.msdn.microsoft.com/Profile/en-US/?user=singhhomeGenerating Visual studio Test case from Mgraph<div>Can anyone please help&nbsp;to point to some resources OR give any idea on how to transfer Mgraph to Visual Studio Automated Tests?</div> <div>&nbsp;</div> <div>We are evaulating for using Oslo for "DSL for functional testing for web applications". what we are trying to do is to come up with our own language in which test cases can be written and we need to transfer them to Test which can be executed from Visual Studio (mstest.exe).</div> <div>&nbsp;</div> <div>For example -&nbsp; below is an sample DSL text</div> <div>Scenario "Search Customer that exists"<br />&nbsp;&nbsp;&nbsp; Given WebPage "<a href="http://yahoo.com/">http://yahoo.com</a>"<br />&nbsp;&nbsp;&nbsp; When type "a" in Textbox "txtName"<br />&nbsp;&nbsp; Assert SomeCondition<br />End Scenario</div> <div>&nbsp;</div> <div>&nbsp;</div> <div>We are able to define our Grammar(mGrammar) and MGrpah from this DSL text, But we "have no idea" how to generate a Test C# Code(or directly a DLL) from this graph. We do not want to write our custom application to run the test generated. We have to generate Code that can be run as test from Visual studio.<br /></div> <div><br />Regards<br />&nbsp;</div><hr class="sig">singhhomeMon, 12 Oct 2009 15:51:35 Z2009-10-22T02:58:46Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/3144e568-4ccd-4085-8c6a-6b5efec83332http://social.msdn.microsoft.com/Forums/en-US/oslo/thread/3144e568-4ccd-4085-8c6a-6b5efec83332ryszarddrozdhttp://social.msdn.microsoft.com/Profile/en-US/?user=ryszarddrozdValue in an entity referenced to another entity field<p>Hello!</p> <p>How value in an entity referenced to another entity field?</p> <p>I have example type(s):</p> <p>&nbsp;&nbsp;&nbsp; type LocaleDictionary<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; id : PK =&gt; AutoNumber(); // type PK : Integer64;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name : Text#40;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; displayname : Text#40;<br />&nbsp;&nbsp;&nbsp; } where identity (id), unique(name);<br />&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp; Locales: LocaleDictionary*;<br />&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp; Locales<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; en { name =&gt; "en", displayname =&gt; "Angielski"},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // ...<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; de { name =&gt; "de", displayname =&gt; "Niemiecki"}<br />&nbsp;&nbsp;&nbsp; }</p> <p><br />&nbsp;type SimpleDictionary<br />&nbsp;{<br />&nbsp;&nbsp;id : PK =&gt; AutoNumber();<br />&nbsp;&nbsp;name : Text#40;<br />&nbsp;&nbsp;displayname : Text#40;<br />&nbsp;&nbsp;defaultLocale : LocaleDictionary where value in Locales;<br />&nbsp;&nbsp;active : Logical =&gt; true;<br />&nbsp;&nbsp;visible : Logical =&gt; true;<br />&nbsp;&nbsp;usefrom : DateTime;<br />&nbsp;&nbsp;useto : DateTime?;<br />&nbsp;} where identity (id), unique(name);</p> <p><br />&nbsp;type KindType : SimpleDictionary<br />&nbsp;{<br />&nbsp;&nbsp;parent : KindType? where value in Kind;<br />&nbsp;};<br />&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp; type LocaleKindType<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; id : PK =&gt; AutoNumber();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; displayname : Text#40;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; displaynameLocale : LocaleDictionary where value in Locales;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; idKind : KindType where value in Kind;<br />&nbsp;&nbsp;&nbsp; } where identity (id), unique(displaynameLocale, idKind);</p> <p>&nbsp;Kind : KindType*;<br />&nbsp;LocaleKind : LocaleKindType*;</p> <p>// I define here Kind with displayname ='Root' and default locale == 'en'<br />Kind {KindRoot {name =&gt; "Root", displayname =&gt; "Root", defaultLocale =&gt; Locales.en, visible =&gt; false, usefrom =&gt; 2000-01-01T00:00:00}}</p> <p>// [1]<br />// This work. But is not elegant, see displaynameLocale.<br />//LocaleKind {LocaleKindRoot {displayname =&gt; Kind.KindRoot.displayname, displaynameLocale =&gt; Locales.en, idKind =&gt; Kind.KindRoot}}</p> <p>// [2]<br />// This does not work. <br />LocaleKind {LocaleKindRoot {displayname =&gt; Kind.KindRoot.displayname, displaynameLocale =&gt; Kind.KindRoot.defaultLocale, idKind =&gt; Kind.KindRoot}}</p> <p>Take a look at [1] and [2].<br />Displayname field in LocaleKindType is referenced to displayname field in KindRoot. But, displaynameLocale in LocaleKindType can't reference defaultLocale field in KindRoot.</p> <p>How to reference value in LocaleKindRoot to defaultLocale in KindType entity (KindRoot)?</p> <p>More precisely: how to reference&nbsp;fields in LocaleKindRoot (displaynameLocale) and in KindRoot (defaultLocale) to the same value?<br /><br />Thanks and Regards</p>Tue, 06 Oct 2009 12:23:49 Z2009-10-13T16:42:25Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/c8563030-1c70-47b1-8bfc-4bc9c638c2b4http://social.msdn.microsoft.com/Forums/en-US/oslo/thread/c8563030-1c70-47b1-8bfc-4bc9c638c2b4Luis D. Rojashttp://social.msdn.microsoft.com/Profile/en-US/?user=Luis%20D.%20RojasExecuting a Grammar from C#How can I call a grammar ( using m Engine ) developed in M from C#<br />Best Regards<hr class="sig">Luis Diego Rojas. http://icomparable.blogspot.com <hr class=sig> MCP, MCTS Biztalk ServerMon, 12 Oct 2009 17:38:37 Z2009-10-12T18:30:06Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/d443e232-a5bf-47e0-b17e-8e4423de38e0http://social.msdn.microsoft.com/Forums/en-US/oslo/thread/d443e232-a5bf-47e0-b17e-8e4423de38e0Nasstarhttp://social.msdn.microsoft.com/Profile/en-US/?user=NasstarProblem: Quadrant doesn't startsHello,<br/> I've got problem with running Quadrant after installing Oslo. During installation everything looks fine, there are no errors. But after installation, when I'm trying to run Quadrant, I've got &quot;Quadrant Repository Connection Failure&quot; and info that it was unable to connect to quadrant repository with 'DeployRepository.SqlUtil' exception. So I've tried to create repository manualnny using command line: <pre>mx.exe create /database:Repository2</pre> <br/> and I've got error: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)”<br/> <br/> I've checked all points in msdn documentation that could cause that issue and everything looks fine.<br/> <br/> <br/> I've got new Windows XP installation with SP3 on virtual machine with Windows Installer 4.5, MS SQL Server 2008 Express.<br/> <br/> <br/> Any ideas what can be wrong?Thu, 24 Sep 2009 07:21:05 Z2009-10-22T02:58:28Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/900f433f-dd47-4a1d-88c5-7ee8498338c7http://social.msdn.microsoft.com/Forums/en-US/oslo/thread/900f433f-dd47-4a1d-88c5-7ee8498338c7Gary Ransonhttp://social.msdn.microsoft.com/Profile/en-US/?user=Gary%20RansonHow to Implement Syntax Lists?Hi,<br/><br/>I am, so far, very impressed with the toolset provided by the OSLO project. I had been working with ANTLR to date, and found that OSLO is far simpler to implement - and do hope that this will go to a production release.<br/><br/>Firstly I would like to say that I'm not an expert in language design, so please forgive me if this is a little fundamental. Here goes ...<br/><br/>When implementing lists (such as argument lists), this is the common template which appears to be used ...<br/><br/>syntax  ArgList<br/>        =   a:Argument=&gt; [a]<br/>        |   list:ArgList &quot;,&quot; a:Argument =&gt; {valuesof(list), a }    <br/>        ;<br/><br/>However, I have started to use this template ...<br/><br/>syntax  ArgList<br/>       = a:Argument b:(&quot;,&quot; b:Argument=&gt; b)* =&gt; {a,valuesof(b)}<br/>       ;<br/><br/>They both return the same AST, but I was wondering if there is any difference &quot;under-the-covers&quot; ?<br/><br/>Your comments are welcome.<br/><br/><br/>Wed, 30 Sep 2009 07:23:04 Z2009-10-09T14:58:44Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/668f329b-1443-43d1-bbf1-0622285cb0abhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/668f329b-1443-43d1-bbf1-0622285cb0abDarrel Millerhttp://social.msdn.microsoft.com/Profile/en-US/?user=Darrel%20%20MillerIs there a way to parse a T-SQL select statement with the M runtime?Searching around the Microsoft.M assembly I found the SourceParser class and whole set of classes in the Microsoft.TSQL10 namespace that seem related to parsing SQL but I cannot find examples of how to use it. <div><br/></div> <div>I know the you can generate T-SQL easily enough, but can you consume it, manipulate the data structure and re-output a modified version of the SQL select?</div> <div><br/></div> <div>Thanks,</div><hr class="sig">DarrelTue, 22 Sep 2009 23:58:57 Z2009-09-24T19:27:53Z