holysmokes99's Q&A profile
SQL Server User securables
I use Win XP version 2002, SP2 and SSE version 9.00.2047.00 I create a database user and I add the securable objects (ex selected tables) to securables section of user properties. I press ok. When I re-open the user properties the securable objects are not there. They are not displayed..! Any suggestions Well, I can tell you that they indicated it would be part of the next update, to SQL Server, however, for the time being you have to manually re-select the objects to view in your window, then when selected it will display the current security... The information given to me at the time was related to performance, but to me it still seems like unreasonable behaviour. ...Show All
Visual Studio 2008 (Pre-release) databinding between properties on the same object
I've got a usercontrol which has a custom dependency property and a canvas with a textbox on it. I want to databind the textbox.text property to the value of a CLR property on the dependency property. Just binding to the property doesn't seem to work, does anyone have any ideas -------------------------------------------------------------- The window with an instance of my usercontrol in it. <Window> <myns:myusercontrol MyObject="{binding MyObjectCollection/.}"/> </Window> The user control XAML <UserControl> <Canvas> <TextBox text="{Binding myProperty.Name"} </Canvas> </UserControl> The usercontrol codebehind public class myusercontrol : UserControl ...Show All
Visual Studio Can I use the [!if] directive in Visual Studio 2005 templates?
In Visual Studio 2003,I can use the [!if] directive.How about Visual Studio 2005 Thanks! This is still supported by the old .vsz based project/item wizards using the VSWizardEngine. But a similar feature has not yet been implemented for the new .vstemplate based wizards. Currently, the only way to programatically add content using the new .vstemplate based wizards, would be a custom IWizard implementation, where you control what's added by way of changing the contents in the ReplacementsDictionary, passed to the IWizard.RunStarted. Sincerely, ...Show All
Windows Search Technologies Add a new location to wds3
Is there a simple way to add a new location to the wds3 scope In 2.5 (or 2.6 ) we could edit the locations in the registry under HKCU. Since wds3 is now running as SYSTEM and there is only one indexer per machine I guess HKCU a suitable place for this If we have to implement Craw-Scope related Interfaces could you point me in the right direction where to find then. Or better still point me in the direction of some sample code I can tear up. Again my preference is to do this in C#, so any interface for C# would be fantastic. (If it can be done) Thanks Paul. The registry key\values at that location seem to refer to a store. What I was looking for is a registry key to add a path to the lis ...Show All
Visual Studio Adding ActiveX control to MS Visual Studio 2005
I have a third party ActiveX which I'd like to utilise with a project developed using Visual Studio 2005, mostly developed in C#. I've taken the .ocx and run RegSvr32 and AxImp against it. In Visual Studio I've added the control to the toolbox, but when I try to add it to a form I get the following : Message box : Failed to register the ActiveX control. Please ensure it is registered properly 3 warnings 1 : Could not resolve dependent COM reference "stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 2 : Failed to create the wrapper assembly for type library "AxWTReaderNet". Exception of type 'Microsoft.Build.Tasks.ComReferenceResolutionException' was thrown. 3 : The ...Show All
Visual Studio Team System CA2209 (min security) disappears after assembly is strongly signed
Hi, When I create a brand new assembly and then immediately run FxCop 1.35 on the resulting code, amongst the issues flagged up are: CA2210 - Sign xxx with a strong name key CA2209 - No valid permission requests were found etc If I simply sign the assembly and then re-compile and re-run FxCop, both of the above issues disappear. Why does signing the assembly resolve the issue of permission requests. Is this intentional Regards David Razzetti David, Thanks for the report. This is a known issue and will be fixed in the next version of FxCop/Visual Studio. This rule is only applicable to assemblies marked with AllowPartiallyTrustedCallersAttribute. Regards David ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XACT files(xgs,xsb,xwb) don't deploy during Publish; getting FileNotFound
My problem: My game project in XNA uses 2 sounds. I went thru the XACT tutorial(for my uses I found it quite easy to add my .wav files used via XACT), and I now have all code in place, and functioning. When I Start Debugging in XNA, my game runs correctly, and I get the correct audio plays when the proper events cue them up. HOWEVER, once I publish the same project, and install it from the Setup.exe, the installed game crashes. I get the error: system.io.filenotfoundexception. What I have checked already: 1.All 3 XACT files are in my main game directory. 2. All 3 are set to 'always copy' to output directory. 3. All references in the Sound.cs class I created point to the correct XACT files(the build would not run if it did ...Show All
.NET Development Xml document Validatied against Xml Schema
Hi, I have written a sample code to validate an Xml document against Xml Schema. I am trying to display message (i.e. Validation done). Output statement is written in the method called in ValidationEventHandler. I have place a breakpoint in MethodA(), and expecting control inside MethodA(). It never happens. Kindly explain me the internal working mechanism, whenever Validate method is called. Sample code as below. class Program { static void Main(string[] args) { try { XmlReaderSettings settings = new XmlReaderSettings(); settings.Schemas.Add(" file:///C:/temp/ ", "C:\\kalai\\sample.xsd"); settings.ValidationType = ValidationType.Schema; XmlReade ...Show All
SQL Server Can not deploy calculation...
Hi, I had a calculated measure which simply tries to create a Margin Profit. This is the simply Measure divided by another measure. The problem is that when I try to deploy this measure with a Parent Hierarchy of measures it will not deploy I get the error like this: Errors and Warnings from Response MdxScript(SSAS) (7, 8) The 'Measures' dimension contains more than one hierarchy, therefore the hierarchy must be explicitly specified. Rgds., Hi PGoldy, Thanks for your information. I had to try to change the [MEASURES] to [Measures], it's work I can deploy it. thanks very much for your help. Cherming ...Show All
SQL Server How to add assembly in GAC to SQL 2005?
I want use Microsoft.Office.Interop.Excel to access excel file my clr. But that assembly is installed in GAC. How could I register it in SQL 2005 thanks! You can copy the .dll file out of the GAC and try to register it. I have not tried this assembly, but I would expect that there may be some issues using it within SQL Server. You could give it a shot, of course. Cheers, -Isaac ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Draw String
Hey gang, Perhaps since I am new to DirectX or XNA, I don't see anywhere in the documentation how to draw a string to the screen. Is this possible I wouldn't think everything would have to be images would they Thanks and take care. You're probably not going to like the answer, so check out this article: http://blogs.msdn.com/garykac/archive/2006/08/30/728521.aspx ...Show All
Visual Studio Express Editions only allow 1 number in textbox
I only want to allow people to input one number into a text box how can i do this Here is the method (if you want to use TextBox) : Private Sub TextBox1_KeyPress( ByVal sender As Object , ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress If ( Not (TextBox1.Text.Length = 0 ) Or IsNumeric(e.KeyChar) = False ) And Not (e.KeyChar = Chr( 8 )) Then e.Handled = True End Sub ...Show All
Gadgets for html generaotr gadget..
hi~. now, i make html generator gadget. simply... when i type some content in my gadget's text area.. and click generate button than ,, html content be generted. my question is here. do you know webpage that have html genertrator javascript code(or article). if you know. tell me plz. or not, any feed plz~. ...Show All
SQL Server Rendering Extension for PPT (Power Point)
Does someone of you know a rendering extension for ppt. Any integrated or third party componens The management wants to have the reports as powerpoint presentation Best regards HANNES Hello, I'm not aware of any PowerPoint renderer. Can you explain your scenario that calls for PowerPoint rendering Any insight you can offer will help to justify the possibility of providing this functionality in the future. Thanks, Chris ...Show All
Visual Studio Team System changing TFS server name
Hi, I have a single server installation TFS with AD Authentication. The Server was defined as a test server for poc and trial. Now the team wants to change this server to be a production server. according to naming standarts, the team wants to change the server name. has anyone encountered a similar scenario and configured some best practices for that. I myself can think of 2 difirent scenarios: 1. ghost the server, change the server name, start troubleshooting any araising problems (not that good i suppose). 2. ghost the server, uninstall the tfs server, change the server name, install tfs from scratch. any ideas guys try this approach. I used it and it went well for m ...Show All
