Deffie's Q&A profile
Visual Studio 2008 (Pre-release) General queries about DLinq
Hi, I have read a bit of documentation about DLinq. I find it a very interesting prospect. However, I have a few doubts regarding DLinq. Here is the first set of doubts (They are not categorized. They are just random). We wish to use DLinq in our project. What are the major risks you forsee with respect to the early adoption of DLinq What are the major steps we should take to minimise the risk because of early adoption Why isnt there a feature to map a property with a different name than the column it is being mapped to Are composite keys supported I have a requirement where two columns should not be direct properties of my business entity and instead should be part of another component which is a propert ...Show All
SQL Server Error returning OLAP data in RS 2005
I have a .rdl file that was exported out of ProClarity's Desktop Professional 6.1 using their RS plug-in. I uploaded the file into Report Manager and when I execute it, I get the following error: An error has occurred during report processing. Query execution failed for data set 'Three_Month_Funding_Trend'. Unable to recognize the requested property ID 'ReturnCellProperties'. Does anyone have any idea what this is referring to Does it have something to do with my configuration, connection or the report definition Other reports such as DBMS based reports work fine. Thanks for your assistance Hi Robert I have the same problem. A report build with RS2005 using a data source to Analysi ...Show All
Windows Forms How to detect the changes on listview
For .Net FW2.0, I can detect the changes on datagridview by subscibe the event "RowAdded","RowRemoved","CellValidated". Step by Step: 1.Write a method Eventchanged(object sender, EventArgs e), I will set a bool value to be true; public void Eventchanged(object sender, EventArgs e) { this.detectObject.Ischanged = true; } 2.subscribe the event after form loaded; this.dataGridView.RowAdded += new EventHandler(Eventchanged); this.datatGridView.RowRemoved += new EventHandler(Eventchanged); this.datatGridView.CellValidated += new EventHandler(Eventchanged); 3.Through the local variable detectObject, I can know if user have changed the content in the control datagridView. But I can not find the same events ...Show All
.NET Development RPC Server Exception
System.Management. ManagementScope ms = new System.Management. ManagementScope ( "\\\\" + stringMachineName + "\\root\\cimv2" , co); oq = new System.Management. ObjectQuery ( "SELECT * FROM Win32_processor" ); query = new ManagementObjectSearcher (ms, oq); queryCollection = query.Get(); return queryCollection; well guys i am trying to access remote system but in doing this some machines give mein following exception System.interop.Runtime.COmException RPC SERVER IS unavailable (Exception from Hresult:0x800706BA) can u help me this how to solve this Hello Jahangir, The Exceptoin: RPC SERVER IS unavailable (Exception from Hresult:0x800706BA) results ...Show All
Visual C++ How to register Service
Hi, I am trying to install a user defined service in Windows. I have used the following commands : 1. installutil myservice.exe 2. myservice.exe /register In both the above cases, I could not see my service in the service explorer. Can anybody help me out please.. Bindu. Hello Re: How to register Service Such questions are outside the scope of this forum - for the scope of the Visual C++ General forum please look at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=19445&SiteID=1 OTP thanks bite ...Show All
SQL Server How to generate a .cub file in Analysis Services 2005
Hi People, I have a problem, I tried to generate the .cub file from a cube that I generated in Analysis Services 2005 but I did not find the way. If Somebody can help, please let me know. There are a couple of different ways to create a cub file. One is to use Excel. Create a pivot table by connecting to the cube you are interested in and then you can use the "Offline OLAP..." wizard to create a cub file. Search "offline OLAP" in Excel help for details. The other option is to use the CREATE GLOBAL CUBE MDX statement. You can search for a description of this command in BOL. HTH, Steve ...Show All
.NET Development Error: ExecuteReader requires and open and available Connection. The connection's current status is open, Fetching.
Hello, I am having a problem with selecting rows from an Access database (for code, I am using c# 2003). I have a list that I will go through one by one. As I increment through the list, I want to make a select statement to retrieve rows that meet my set criteria. Currrently, I am just outputting the selected column to the screen. However, I get the following error message: ExecuteReader requires and open and available Connection. The connection's current status is open, Fetching. What am I doing wrong int i = 0; try { string strOleDb; strOleDb = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + myPath; OleDbConnection cn = new OleDbConnection(strOleDb); OleDbCommand myCom = new OleDb ...Show All
Windows Forms Updating an unbound DataGridView at Runtime
I am a beginner programmer, so please bear with me. Say you have a DataGridView. You dock it to a Window Form. You set some properties such as AllowUserToAddRows and AllowUserToDeleteRows. So far, so good. Now, according to MSDN, a DataGridView can be eighter bound to a Data source, or it can be used as is. If it's not bound, you simply add rows, fill them with data and it should work just fine. My problem is this. I build the solution, add a Setup project to it and then I deploy it ( that is, install it ) on my machine. Now, I open the application and start populating the rows with data. Everything is fine. I close the application. When I open it again, bingo! All the data is gone. There must be some king ...Show All
SQL Server Error when using 'LIKE'
I am running the following query using Query Analyzer against an MSDE version. The query seems like a textbook use of 'LIKE', so the error makes to sense to me. Thanks for any help. SELECT _FAX FROM _IRISH_BNB_DETAILS WHERE _FAX LIKE "[A-Z]%" Error: Server: Msg 207, Level 16, State 3, Line 1 Invalid column name '[A-Z]%'. Thank you! I was following an example in "SQL Server 2000 Administrator Companion" on page 309 that uses double quotes. ...Show All
Visual Studio Team System SQL server management studio error
Hi When I try to create a maintance plan, it stops with a message box saying Guid should contain 32 digits with 4 dashes (xxxxxxxx....) Whats wrong If you go to http://support.microsoft.com/kb/922651 there is an explanation of how you can workaround the problem of imported maintenance plans in SSIS giving the error "Guid should contain 32 digits with 4 dashes..." when you update the plan. I found that workaround a bit long winded and hard to understand so I came up with an alternative that may be a little more friendly: Bottom line is because of MS bug, the subplan is missing. You can confirm this with "select * from ysmaintplan_subplans". First get subplan_id by going to BI s ...Show All
Visual Studio Super slow installation for VS2005 SP1 beta
Well, it’s not something new, there are people at Microsoft that work hard to make our life easier, like the Microsoft Windows Vista installer for example, an entire OS in 20 min; and there are some less experienced developers (my assumption only) who are given for some reason the task of creating the VS2005 SP1 installer. Whoever wrote that thing, he, she or they, can say whatever they want, but to take 2 hours to get the SP1 beta installed is just damn stupid, here are 2 hours by a million people in the world, a total of 2 million hours lost, thanks to a group of developers at Microsoft, maybe they could have spend 100 more hours to learn math, or to profile the installer, and could have saved the world a million hours ...Show All
Visual C# I have a question in nested structures
I I have a question in nested structures: struct s1{ i nt x; i nt y; }; struct s2 { struct s1 var[10]; i nt p; i nt q; }; struct s2 nested[100]; Is "struct s1 var[10]" is a correct construct Thank you. are you trying to use fixed size buffers if so follow this link: http://msdn2.microsoft.com/en-us/library/zycewsya.aspx ...Show All
Visual Studio 2008 (Pre-release) Data Binding: How to bind a group of Radio Buttons to a value/collection?
Are there any properties that represent the selected state of a group of Radio Buttons Seems that Radio Buttons are very different controls from others in that cannot represent any value in and of themselves, they must be combined with others. Thus one typically wants to bind the entire group to a single value and map the selected radio button in some way to represent a value. In the most simple case 2 radio buttons representing to a collection of {true,false}. Is this the kind of situation where MultiBindings might be applied Thanks NIK I need to bind to a business object, well outside of code behind, but this gives me some of the picture. However, how/where are s: and p: declared I tried ...Show All
SQL Server Merge replication - examples for custom conflict resolvers?
I have gone through BOL and various online resources including this one and I can't find any examples on how to use custom conflict resolvers to generate a result row which is a combination of the rows to be merged. BOL says it can be done, but suitable examples are missing. I have found various posts requesting examples from up to a year ago, but can see no replies with relevant information In particular I would like to see examples of 1) A stored procedure based custom conflict resolver 2) A business logic handler written in VB .Net Here's hoping aero1 Hi aero1. I made one business handler, but its in C#, maybe you could see and convert to VB. In this case, i wanted to merge AddToPub a ...Show All
Visual Studio Adding Solution items
Does anyone know an easy way to add solution items e.g. readme.txt, log4net config files to a solution using gat. I dont think the normal vstemplate method supports this. I also need to process the files to replace parameters in these files Yes, unfortunately there is a bug in VS causing the "auto-open" of added files which is really a pain if you're adding multiple items at the same time. Although I seem to recall that my team used an alternative way that didn't opened the files, I'll check this tomorrow and give you an update if there may be a way to avoid this. ...Show All
