Yi Gao's Q&A profile
SQL Server how can i create replication
hi, i am new to sqlserver i want to know how can i create replication Double click on the job in the monitor and that should give you more information. There should definitely be more information regarding the failure. If this is the first time that the job is run, please see what the job is running as, what credentials is it using to connect to the Publisher, Distributor and Subscriber ...Show All
Visual Studio 2008 (Pre-release) Process RoutedCommand at NavigationWindow level
How can you process a RoutedCommand at the NavigationWindow level You can easily add < Page.CommandBindings > to a custom page or < Window.CommandBindings > to a custom window. But when you do a Navigation application and specify the Application.StartupUri, WPF creates the NavigationWindow for you. In that scenario, I don't see where you would specify < NavigationWindow.CommandBindings > . I tried to create my own class based on NavigationWindow and tell the application to use that instead by doing: < Application.MainWindow > < mb:CustomNavWindow /> </ Application.MainWindow > This appeared to ...Show All
SQL Server How to sync database latest data with Analysis service
Hi, I am creating sql server reports using analysis service(using cubes and dimensions). After creation of cubes and dimensions for existing data I deployed it. Then I created reports on this data. Reports are generated properly for existing data. But the report is not showing newly inserted data to database (latest data inserted after deploying analysis service). Did I miss anything Or any new configuration required Newly added data is reflected in report when each time I process the cube and dimension and redeploying it. which is a manual process. How to auto sync newly added data into database with cubes Any he ...Show All
Windows Forms windows form stops responding during non-infinite loop
Hi,I have a windows form that sends out a monthly opt in newsletter email to all of our community members. The problem is that the list is large, and every time I run the program it sits there appearing to be frozen. I have to watch the program under task manager and watch its resources to see if its running, and checking the queue mail folder for emails. This obviously is not a great way to run the program.In my code I loop thru a sqldatareader with 10's of thousands of records, and when its done I update the windows form with the counts of emails sent etc. How can I stop this form from not responding Is there something I can put in the l ...Show All
Visual Studio 2008 (Pre-release) Simple element Drag'n Drop example in WBA
Is there a simple UI element drag'n drop example for WBA Regards Ranj Yes, you are absolutely right, my response was incomplete, it was only in the context of Unni's sample. This is the link to the Peter Blois's sample: http://blois.us/blog/2005/12/stupid-listbox-tricks.html ...Show All
SQL Server Determining when to send the report based on information inside the report?!?
Hello Here is a tricky problem to which I didn't find any "good" solution: I have a report which should be sent to the subscriber only when there is something to report. Mostly the report will be empty, because it will only report emergency-type-of-stuff. Now I have implemented the report logic twice, once in the report and once in a data driven subscription which returns a fixed email address when the report data query returns data. Ideal solution would be one where you can decide in the report generation is it sent or not. Has anyone any ideas / solutions conserning this problem How could you decide during the report ge ...Show All
Software Development for Windows Vista Passing parameters into the workflow.
Hi, I'm very new to workflow, and need help... I created a workflow library that has a custom workflow action developed. Then I used a winapp to test the workflow, in preparation to deploy the custom action into office 12. Basically the workflow action will try to escalate anything to a person's manager using information stored in active directory, so that users in office 12 do not need to specify the manager. The problem is, I don't know how to pass parameters into the workflow. I have the workflow book, but I can't really make sense to what is written the codes are in snippets. First of all you h ...Show All
Visual C# Unable to load class library
I wrote a managed wrapper in C++/CLI and compiled it under AMD64. Now I wrote a client in C++/CLI too and this works well. Trying to do the same in C# I got everything to compile but when I run it it says: Unhandled Exception: System.IO.FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E) at MyClass.Main() This is weird though. I compiled the C# file for 'anycpu' but trying to set the platform to x64 did not do any difference. The class library is even located in the same directory. It was compiled using the RC: csc /out:test_cs.exe tes ...Show All
Visual Studio Installing both Frameworks
Hi, Can i install and work with dot NET Framework 1.1 and 2.0 on the same computer side by side. Well if that is possible than its a brilliant thing. Let me try it... Does that mean i will have to install Visual Studio.NET 2003 for .NETfx 1.1 and Visual Studio.NET 2005 Express for .NETfx 2.0 ...Show All
Visual Studio Team System "The process cannot access the file" during GET
I get the following error everytime I do a GET (latest or specific): C:\Q3\webroot\aspnet_client\aaa.js: The process cannot access the file because it is being used by another process. I get the same error in the output window with multiple files... Some files are placed in my workspace correctly but the ones with this error are missing. (I'm using Beta 3 refresh) Buck Hodges wrote: Hmm, there's something else going on here, but it's a mystery to me right now. In tf.exe.config over in c:\program files\microsoft visual studio 8\common7\ide, you'll find a commented-out diagnostics section. P ...Show All
Visual Basic How to make several figures and save in graphic files?
Hi VB experts, I just start to learn VB recently. I want to use VB to make figures. In each figures there are 7 to 8 lines to be plotted where the data points read from a data file. Firstly, I used the VB6 to write a code which can draw one figure on the screen. But I don't know how to make many figures and save into graphic file. The code is as follows: ________________________________________________ Dim numPhenotype As Integer, numChromosome As Single Dim maxYvalue As Integer, maxSize As Integer 'maxYvalue = 6000 'maxSize = 50 Private Sub cmdDraw_Click() Dim figure1 As New StdPicture   ...Show All
Visual Basic Close error window?
Is there a way to close an error window of another application I am using proc.start & proc.close to programatically start & close an application, but when my VB app executes the .close method, the other app does close, but it gives an error. It is the common error window where you have the option to send or not send the error report to Microsoft. Is there a way I can close that error window programatically Thanks... Howdy.. sounds like the application you are closing is obviously not performing cleanup or closing tightly and therefore forcing the dumprep app to run which raises the window. Ha ...Show All
Visual Studio Tools for Office Outlook: no Add-In does load anymore
Hi, currently i'm developing with VSTO 2005 ans VS 2005 Team Suite for Office Outlook 2003. I wrote an Add-In with C# and it works well, creating a setup which grants the CAS too. But today i changed some code within, rebuild the solution and tried to start a debug session with a break point right in the ThisApplication.ThisApplication_Startup Method. And nothing happens!! My Add-In was not loaded anymore. I tried to do a reinstall with one of the previous generated setup packages (which worked!) and started Outlook manually. And nothing happens. My Add-In was not loaded. So, even previous versions which worked yesterday doesn' w ...Show All
SQL Server How to specify Log file Location during installation?
Is it possible to set the log file location during installation I don't see an option under Advanced. Any suggestions are greatly appreciated. Thanks. Actually this is not an issue. You can set-up the location for user db logs after the installation. ...Show All
Visual Studio Tools for Office connecting to Oracle RDB database in VMS platform from VISIO reverse engineer
While connecting to Oracle RDB database in VMS platform from VISIO reverse engineer, the connection fails with error message "Driver not capable." We tried out the procedure given in this page but still encountered the same error. Could you please help us in this regard. For questions related to Visio develpment, please post your question here: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.visio.developer&lang=en&cr=US Thanks! Mike Hernandez Community Program Manager VSTO Team ...Show All
