Martijn Mulder's Q&A profile
SQL Server SSIS and SSAS projects in one solution
Hi, I would like to add some related SSIS and SSAS project into one solution in BI Studio. I opened one empty solution, but when I add the first project the option for adding a project to solution isn't there anymore. I'm I missing something or this just can't be done txh for answers! JAnez hello Janez, i'm not sure what the problem is. i just tried to do the same: create empty solution, and then add 2 projects to it - and was able to do so. if i righ-click on the solution node (in the solution explorer), i can see context menu and options to Add->New Project or Add->Existing project. Another way i can do it is via File menu: File->Add->New Project, or File->Add ...Show All
.NET Development Sockets closing properly?
I have developed a client/server application and am having some trouble with closing and then re-opening sockets. Basically, the first thing my client does is sign-in to my server (it's actually a double sign-in because my server acts as client to a Unix server) When I sign-in I send a message to check the comms is up, and on receiving a valid reply, I present a login box and then login proceeds. If there is no connection available, I fall back onto a local database to use to verify the login so login/out still works. If they click Sign-out and there is a valid socket connection, I do the following; if (CurrentSocket.LocalSocket != null ) { if (CurrentSocket.LocalSocket.Connected) { CurrentSocket.LocalSocket.Shu ...Show All
Visual Studio Team System My build needs to edit the web.config - Compilation Debug from True to False
Hello! How do you guys/girls handle the web.config when deploying to test environments All developers wants the the debug key to be: <compilation debug="true"/> But in our test enviroments I want the key to be set to false: <compilation debug="false"/> Any solution to this /T You could have a task that modifies the web.config when it's deployed to the test environment. There's probably a task that would easily let you modify the web.config file: http://blogs.msdn.com/buckh/archive/2006/08/16/msbuild-tasks.aspx Buck ...Show All
Visual Basic Running a DOS command from within a VB application
Hi all. I am a newbie, and I am trying to develop a graphical interface to automate a task that I usually execute through a batch program. I have to execute an external command-line program that is not capable of accepting parameters. In my batch files I always solved the problem redirecting the input: my_command < input_file So I tried something like this (which works perfectly when the external program accepts parameters): procId = Process.Start("my_command", " < input_file") This doesn't work, and this is the reason why I am here to beg you help..... Can someone help this sad newbie ! Regards ___ Max To Spotty: I think this cannot work, ...Show All
Windows Forms How to display progress form as modal form
Hi, I am trying to use Backgroundworker, which is new in .net 2.0 Here is what I am trying to do.... I have a main form, in which I am filling data requested by a user. While getting the results , I want to display a modal dialog form with a progress bar in it. Once the main form's grid is filled with results close the progress form window. On click of GetResults button I have the following code BackgroundWorker bg = new BackgroundWorker (); bg.DoWork += delegate { GetRequestedData(txtbox.Text,records); }; bg.RunWorkerAsync( null ); ProgressForm pf = new ProgressForm (); pf.ShowDialog(); backgroundWorker1.RunWorkerCompleted += delegate { pf.Close(); }; With this approac ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Step by Step Cue volume sample request
Hi, I just can't figure how to set the volume of a given Cue instance. I want one specific instance of a sound (ex: player 1 laser volume@50% , player 2 laser volume@80% ). I saw only one post giving a very light explanation, which was: a) you should create a cue "Volume" variable in XACT (that I can do) b) link that variable to the sound Volume ( how ) c) set the volume programmatically. I suppose SetVariable("Volume",0.5) will do it once XACT is properly set up. Thanks Freds72 You can do it like You say. Create cue instance variable "Volume", add RPC preset linking Sound:Volume with this variable. Attach sounds to that preset (important!). Then ...Show All
SQL Server Report Manager not responding
Hi, I'm hoping to get some help here. I've spend countless hours trying to get Reporting Services running without success. When I run the Report Manager it does not respond. Coming up with Opening page http://localhost/reports/Pages/Folder.aspx . . . The progress bar ticks along but the page never actually loads. The Configuration tool shows green icons everywhere. No errors in the Event viewer. I am running Windows XP Professional with SP2. I have uninstalled and re-installed IIS, ASP.NET and SQL2005 numerous times. Varying the order, all without success. What else is involved I have loaded Service Pack 1 and the latest hotfixes. What else can I try Thanks in advance, Claude Thanks Jens. ...Show All
Smart Device Development How to rename a project folder in Mobile 5.0 device project
I have started a Mobile 5.0 Pocket PC device Appliction project. At the end, I have been requested to rename the folder....grrrr. Any help I'm not quite sure I follow... It's a folder on your file system, so rename it as any other folder. Or, are you're asking about folder on device You can change it in the "Output File Folder" property. ...Show All
Visual Studio Indentation in code-tag in included xml-tag
If I want to use a <code>-tag containing indentation in an Xml documented member, I can do it like this: /// <remarks: /// <code> /// <MyKey > /// <registrations default="<i>MyDefaultRegistration</i>" > /// < /MyKey> /// </remarks> This works fine. However, I have some sample code that I need to use a couple of times so I wanted to copy this sample code to a separate Xml-document and then reference this sample code using the <include>-tag. Like this: /// <include file='ApplicationDoc.xml' path='docs/member[@name="ApplicationLogon"]/*'/> The contents of my xml-document looks like this: < ...Show All
SQL Server Horizontal results
how can i use concatenation to query the results horizontally example output: CustomerID=1002, Name=Mr Anderson, City=NY Look at FOR XML as a possible solution, if you have some leeway in the format. Even the basic AUTO version will give you an XML formatted version of your rows, including the name of the column in the output: select ContactID, NameStyle, Title, FirstName, MiddleName, LastName from person.contact where contactId = 1 for xml auto XML_F52E2B61-18A1-11d1-B105-00805F49916B ----------------------------------------------------------------------------------------------- <person.contact ContactID="1" NameStyle="0" Title="Mr." FirstName="Gustavo" LastName ...Show All
Visual Basic Save data from a listbox to a .CSV file.
Hi, I am pretty new to Visual Studio, but know enough about SQL. I am working on creating some applications with VB to access my SQL database. I created a listbox that is extracting some data from a table. I am trying to Save that data to a .CSV file, but I am having major issues. I would really appretiate it if someone could help me and explain why my code is not working. I used examples to get to this code, but lack of experience is helping me to get stuck at this point. Thanks!!! Code: Try With sdlgTextFile .AddExtension = True .CheckPathExists = True .CreatePrompt = False .OverwritePrompt = True .ValidateNames = True .ShowHelp = True .DefaultExt = "txt" .FileName = filename .Filter = _ "CSV Fil ...Show All
Windows Forms Virtual mode in datagridview
is there any way i can use a virtual mode for a datagridview bound to a datasource. I used the data source wizard to create my connections for the datagridview and now need to implement some sort of caching performance will be a factor in this application. any help will be helpful Hi, I tried the sample from the link I posted above and the cellvalueneeded does get triggered in that example. As to your specific problem, maybe some other details violate the basic rule. ...Show All
.NET Development DataSet.Merge() and Deleted rows
Hi all, I'm sure I'm overlooking something, but I can't seem to get the Merge() working correctly when the merged DataSet has deleted rows. I'm using Typed DataSets, although I doubt if that makes a difference, does it I *have* set PrimaryKey properties. Here's some code to illustrate my point ... I made a copy of my Personnel DataSet, I then made changes in the Personnel DataSet and then merged them back to the copy: dsCopy = (MyPersonnelDataSet)dsPersonnel.Copy(); // change a row in the Personnel table dsPersonnel.Personnel[0]["userkey"] = 0; // delete a row in the PhoneNumber table dsPersonnel.PhoneNumber[0].Delete(); // add a row to the PhoneNumber table DataRow row; row = dsPersonnel.PhoneNumber.NewRow(); row["phonen ...Show All
Visual C# Question on accessing and modifying shortcut properties
Hi , I have a question. I created a shortcut to my application. And within that shortcut menu, I created an argument (file name) in the target line. My question is, how do I change the shortcut's target line argument programmatically within a c# program. I hope I stated my question clearly. Thanks ahead for all your help, David Creating/modifying shourtcuts with .NET is not an easy task. Use these articles as starting point: Creating a Desktop Shortcut in .NET Code, Use Com Interop to Access the Windows Scripting Object Creating Shell Links (Shortcuts) in .NET Programs Using WSH Hope this helps ...Show All
.NET Development How do I pass a variable for the sheetname parameter of the "Insert Into" command?
I have a spreadsheet with 5 worksheets each named after one of our plants. The Insert Into command works fine with the sheet name hard coded in but I need it to use a variable (sPlant) How do I re-write this line so it will use that variable for the sheet name Thanks Private Sub Add_Record( ByVal source As Object , ByVal e As System.IO.FileSystemEventArgs) Dim en As New CultureInfo("en-US") Thread.CurrentThread.CurrentCulture = en Dim uFile As String = e.Name Dim TheDate As String = DateTime.Now Dim sFolder As String Dim sPlant As String Dim sFile As String Dim iUpper As Integer Dim PathPiece() As String = uFile.Split("\ ...Show All
