bohiti's Q&A profile
SQL Server Questions on translation and naming attribute
Hello I have a few questions regarding the translations. 1. Is it possible to create this neat auto-generated date dimension in any other languages than english 2. When I use the Currency format string on my autogenerated measure groups they all turn out as $, but when I use it on a calculated member it chooses the correct currency. How can I change this for the auto generated measures 3. After creating the member, how do you define the deafult member show from the dimension. Say for example that I have DimEmpl(Code, Name). I would like the Name attribute to be the attribute showing by default. I know this is possible while creating the dimension, but what if I want to change it later Thanks // Richard ...Show All
Visual Studio Express Editions embedded resources
hi please bear with me as im only just learning c# i have made a gui in c# that access exe files and passes command to them and everything works great it does exactly is i need but there is one thing i woul like to do. some of the external files i would like to embed into the exe and extract to a certian dir upon runtime.say extract to sub folder from there i am ok at calling the exe and running it but would like to know how to unpack it from the exe. i can embed it ok i just dont know how to called it to unpack any ideas regards choss sure, take a look at this: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=878308&SiteID=1 http://forums.microsoft.com/MSDN/Show ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Torque X for XNA release
Hi guys! Somebody know when Torque X will be released I think everyone in here is greatly anticipating this release. For now, it's fun just to get a good feel for the XNA framework. As long as it doesn't drag out too long.... ...Show All
Game Technologies: DirectX, XNA, XACT, etc. C# and how it works with XNA
Howdy guys and gals, I just downloaded the Visual Studio 2005 and the XNA thingy. Can't recall which one. I've never done anykind of C programming before. I'm wondering if say I found a tutorial or book on how to use C# for games. Would the examples work in the XNA program Thanks for any feedback. There is only a handful of books available for programming games in C# and they are mostly geared toward managed directx. XNA is very similar to MDX so it isnt difficult to try to convert them. There is an XNA book coming out soon so that might be worth waiting for. ...Show All
.NET Development Error in executing parameterised query
Hi, I have a table Role in sql database wih following fields RoleID pk int Description nvarchar(50) I am trying to run a parameterised query using sqlcommand and exceutenonquery using following code but it is giving error " Incorrect syntax near ' '.\r\nIncorrect syntax near ' ": ------------------------------------------------------------------------------------------------------------------------------ SqlConnection objConn = new SqlConnection ( "Data Source=HDDLNTD6011180;Initial Catalog=TestDal;Integrated Security=True" ); objConn.Open(); System.Data. IDbCommand cmd = new SqlCommand ( "UPDATE [Role] SET [Description] = WHERE [RoleID] = " ,objConn); IDataParameterCollection cmdParams = cmd.Parame ...Show All
Architecture O/R Mapping
O/R mapping is quite interesting. I would like to post this question for discussion. I have the following classes: Employee, FullTimeStaff, PartTimeStaff, etc. FullTimeStaff and PartTimeStaff have many attributes and behaviors in common and also many other unique attributes and behaviors. So, FullTimeStaff inherits from Employee and PartTimeStaff also inherits from Employee. Do you think it is good to map both FullTimeStaff and PartTimeStaff to a single table called Employee (the table contains an extra field to identity whether he is full time or part time) in the database Pranshu, there is a big problem with that kind of methods (having one table for each class). You have a great OO design and a bad data des ...Show All
Visual Studio How i can use Crystal Reports XI Release 2 with Visual Studio 2005 Standrad
Hi, I Am using Visual Studio 2005 Standrad and Crystal Report XI Release 2 But i Don't know how to use this Crystal Reports XI Release 2 in this New Visual Studio 2005 Standrad Edition i just conver Visual Basic 6 to Visual Basic 2005 But Don't know use of new crystal report xi r2 plz. help me for this thanks check out this link http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=380008&SiteID=1 ...Show All
Visual Studio Express Editions Help required reading database
Hi, I'm new to VB and am having trouble reading data from the database on my first project. Can someone please tell me where I'm going wrong. As far as I can see, my code to access the database is exactly as for the Microsoft How can I pages. I'm using Visual Basic 2005 Express Edition, with a database I created using SQL Server 2005. Code as follows: Dim da As New SqlDataAdapter() Dim cn As New SqlConnection Dim ds As New DataSet cn = New SqlConnection _ ("Data Source= my computer \SQLEXPRESS;AttachDbFilename=c:\documents and settings\dave\my documents\visual studio 2005\databases\ my database .mdf;" _ & "Integrated Security=True;User Instance=True") cn.Open() Dim cmd As New SqlCommand("SELECT * FROM table na ...Show All
Windows Forms Invoke or BeginInvoke cannot be called on a control until the window handle has been created.
This is throwing me for a loop. I have a modeless form open with a richtextobx. I am using FileSystemWatch to monitor changes on a text log file. When changes are found I check to see how much the file has grown, and then read and append the new portion to the RTB. The log watcher form comes up, does its initial paint (which is NOT driven by FSW) all is OK. Some moments later when the log file first changes, and FSW gives the event, I marshal it back to the GUI thread for updating the RTB, but get this odd error. I have done this pretty much already in previous VS.NET without a hitch. As far as I know my window handle has been created at the time I call "Me.BeginInvoke" in the FSW event on the form, so what exactly is this trying to tell m ...Show All
Visual Studio Team System CTP7: Schema Comparison - DEFAULT ((0)) versus DEFAULT (0)
A user imports a db schema and then compares the imported schema with the current database. Differences are reported related to DEFAULT. The user clicks "write updates", then "refresh" -> Differences are reported related to DEFAULT. Hi, I still have this problem, even though I am up to service release 1, and I have ignore whitespace and ignore constriant and index names checked. I go and look at the create statements and there isthe (0) there, but in the actual comparison I see a difference of ((0)) vs (0). And I am on SQL 2000, using a SQL 2000 project. Any ideas on what I can do here This is painful. Thanks, dcb99 ...Show All
Windows Forms Get addition key that were "pressed" when ColumnHeaderMouseClick triggers
Hi, I am trying to distinguish between a "Left Click" "Ctrl + Left Click" on the ColumnHeaderMouseClick... is it possible with DataGridView Thanks for the help in advance, Kenny ...Show All
Visual Studio Express Editions pointer to memory location
In VC++ Express is there an instruction which returns a pointer to the physical location ie the actual memory location in ram of a variable I need to work on a bitmap file loaded into the project. The & operator gives the address of the variable. int n = 1; int *p = &n; n is 1. p is the address of n. p points to n. EDIT: Here is a list of operators http://msdn2.microsoft.com/en-us/library/x04xhy0h.aspx The address of operator http://msdn2.microsoft.com/en-us/library/64sa8b1e.aspx ...Show All
Internet Explorer Development IE7 - File Not Found ieframe.dll\1
Hello, After upgrading to IE7, all of my programs with the "Microsoft Internet Controls" (i.e. Webbrowser) are breaking when I load them in code (compiled still works though). I get the following error: "File Not found 'C:\Windows\system32\ieframe.dll\1' However, if i look in my references, all I can find that is there is the reference to shdocvw.dll, no ieframe dll. If I open a new project and add the controls, then I get the same error. To me there is something broken between the two. The strange thing is, it worked fine yesterday. I don't have my computer set to do automatic updates and I didn't do any updates last night. Anyone else having this issue Regards, Ryan One ...Show All
.NET Development Is clr code loaded one per process or shared
Hi I was reading the clr hosting articles and wondering how the clr is laid out in the memory logically. Is the clr (shim+mscor*.dll) loaded per process or is it shared somehow once the first instance is present in the memory. ie, so is the code in the clr for n applications occupying n*sizeof(mscoree.dll + mscor*) or is it just one memory instance that is shared by applications. how different is the scenario incase of asp.net hosting several web apps ------------------ ------------------ -------------------- | CLR | | CLR | | CLR | ------------------- ------------------ ------------------- | | | | | | | App code | | App code | ...Show All
SQL Server Exporting the data, views and stored procedures from a SQL 2005 db into a SQL 2000 db
I am trying to move a SQL 2005 db into a SQL 2000 db. I understand that I can not use a backup then restore as the backup file format has changed. I have had some success using the Export function on the SQL 2005 db to move the daata rows but I have not had any success in moving the views and stored procedures from the SQL 2005 db to the SQL 2000 db. If I have not been able to use the Import/Export on SQL 2000 at all. How can I do this Thanks I have an inconsistency problem regarding exporting the data from SQL 2k5 back to SQL 2k. Let me give the details of the things ive done before exporting the data. In 2k5, There is an existing database called Accounting database. Luckily i have the old c ...Show All
