Matt Walter's Q&A profile
SQL Server Restoring to a network paths?
I'm getting the error "The file \\xxx ... is on a network path that is not supported for database files. File xx cannot be restored to \\xx ..... Use WITH MOVE to identify a valid location for the file. Below is my code for the restore. I've even shared the folder on the network but still no success. Try Dim restoreToServer As New Server("xxxx") Dim rest As New Restore rest.Devices.AddDevice(" \\xx\x$\Program Files\Microsoft SQL Server\MSSQL\BACKUP\myData\myData.BAK", DeviceType.File) rest.Action = RestoreActionType.Database rest.Database = "myDatabase" rest.NoRecov ...Show All
Visual Basic Information call question
I am currently trying to build a system but its llooking a mess so im trying to make it look presentable. Its based on a booking system of cars with customers. Before i had just one form where i can input both information and then book it for a given period. But instead now what i want to do is to insert the information of customers on one form, and insert the information of the car on the second form, however i want to use a third form as a confirmation screen which will show who has taken which car using the information on the previous two screens. Any ideas anyone There are some subtleties ...Show All
Visual C# Trimming a path
Hey howzit As you can see in the code below, this method returns the path, but I want it to return the filename...just the filename with no extensions or path characters. e.g. if the path was "C:\\david.pdf" i want it to return "david". Is there any easy way of achieving this public string OpenPDF() { //allow user to select PDF OpenFileDialog dialog = new OpenFileDialog (); dialog.DefaultExt = ".pdf" ; if ( DialogResult .OK == dialog.ShowDialog()) { string path = dialog.FileName; using ( FileStream file = new FileStream (path, FileMode .Open, FileAcces ...Show All
Windows Forms Open .exe from network
Hello, I have created a simple data entry application that I would like the users to open from the network. I have tested this on another machine besides mine and was able to get it to work fine. I'm just wondering if there is some more info on this type of thing I have setup a deployment project, because if I'm not mistaking, the  ...Show All
Visual Studio Express Editions Currency Symbol
i am parsing imformation from a XML file. One bit of the imformation in the XML file is in the form of "£1,345.0". When this is a assigned to a string varible it is converted to "GBP1,345.0". how can I stop this from happening Hi, You can use ... Amount = Amount.Replace( "GBP" , "" ); Where amount is string. ...Show All
Visual Studio Capturing the start of debugging with a VS add-in
I'd like my add-in to be able to run logic when a user starts debugging an application. I've tried using the OnEnterRunMode event but I find that it is fired both when I start debugging and when I continue debugging after hitting a breakpoint in code. I'd like to find a way to only run my logic when the user starts debugging but not when the user continue on from a breakpoint. Can anybody point me in the right direction Can you use DTEEvents instead of DebuggerEvents The DTEEvents.ModeChanged event will notify you when you switch between the Design/Debug mode. The LastMode parameter indicates the previous ...Show All
Visual Studio Missing specified module when validating website
I'm trying to build a VS.2003 solution for the first time in VS.2005. When the build gets to the actual web site project I get the following output: ------ Rebuild All started: Project: http://localhost/NowPrintNet/, Configuration: Debug .NET ------Validating Web Site Building directory '/NowPrintNet/App_WebReferences/'. (0): Build (web): The specified module could not be found. (Exception from HRESULT: 0x8007007E) Validation Complete What's at work here What do I need to do to get past this MSBuild is actually not used to build web site projects inside of Visual Studio, so unfortunately the pe ...Show All
SQL Server SQL Mobile Get Started Tutorial
hi. i was following the SQL Mobile Get Started Tutorial and when i got to the section of creating a device application i encountered this step of the process: 16.) Start Notepad and open the file C:\Program Files\Windows Mobile Developer Samples\HOLs\MED302 SQL Mobile\Source\Exercises\VS_SQLMobile\Form1.cs . when i opened it the tutorial said i was supposed to copy the functions for the insert, delete, sync,etc buttons but i didnt see any functions in the form1.cs. could anyone pls post the functions reffered to the file thanks Hi I am assuming that you are working through the HOL available at the follow ...Show All
.NET Development make production software with beta 2?
Do you think that vs and .net framework 2.0 will change too much from beta 2 to final release. Do you think that I should make production software with beta2 opr Should I wait still. Yes, I feel you can proceed. Thats the idea of a Go Live! License. Microsoft has claimed that there wont be too much changes after Beta 2 and hence issued the Go Live! License. Regards, Vikram ...Show All
Visual Studio Team System Error running tfsupgrade - TFSIntegration db is not Beta3
I am attempting to upgrade from b3 to rc for a dual server installation. I am referrting to the upgrade doc that comes with the upgrade package. On running tfsupgrade <servername> on the data tier, I get an error regarding the tfsintegration db and the upgrade process fails. Pasting the content of the log file below. Any help is appreciated. Beginning upgrade from Beta3 to RTM DB ServerName : tfsdatatier Log File : TFSUpgrade-632760220751591196.txt Connecting to SQL Server tfsdatatier Success Verify if core team foundation databases exist Success Fetching Server location for WorkItemAttachments Found - tfsdatatier Fetching ...Show All
SQL Server Row Sampling Transform
The "Sampling Value" is now exposed on the Control Flow so we can use expressions to determine the amount of rows that flow through a pipeline . What is missing as far as I can see is the ability to say "ALL". I know I could remove the transform but what if I do not want to touch the packages. The way i will set the value is through DTExec. This would be useful for testing in that I could have a series of runs and each one ramping up the row counts. The final one would be "ALL" but without something on the transform to say "ALL" I would need to determine the count of rows up front. A waste IMHO. I suppose the workaro ...Show All
Visual Basic IDE pauses after every keystroke. -
Working in a project with 100+ forms, in one particular form I was working in today, there are 18,500+ code lines. I needed to add a couple of new methods, the problem is that the IDE is pausing almost after every keystroke. I have turned off intelli-sense. I have removed all Add-Ins, I have disabled as many things as I can in options, and it is still unuseable.. I have restarted computer, tried in disconnected mode (source safe). Machine is a 2.4ghz Dell Laptop with 2gig ram and 70gig hdd, WinXP SP2, with 20gig hdd space. it has so far taking 3 hours to write 30 lines of code, (between machine reboots, option switching etc), my bosses are ...Show All
Visual Studio Team System The graphical representation of MSF4ASD
Hello MSF users, In my research of Microsoft Solution Framework I discovered that there is little information of this meta process. Therefore, I do my own research, where I compare the Microsoft Solutions Framework for Agile Software Development (MSF4ASD) and the well-known Rational Unified Process (RUP). Whereas RUP has a graphical representation of their process, MSF4ASD has none. Last weeks I conducted a graphical representation of Microsoft Solutions Framework for Agile Software Development as shown below. Note that, it is a simplified illustration of this software engineering process. ...Show All
Visual Studio Team System New test project type
Is it possible to create a new test project type with Sept CTP If yes, where can I find information Thanks, Pierre How do you mean Do you mean to customise the creation of test project (You can customise the types of default tests created in Tools|Options). Or do you mean for other languages ...Show All
SQL Server Assembly Clash between June and July CTP in VS.NET/SQL Express
Hi! How do I upgrade the assemblies in a databases between the Framework that came in VS.NET June CTP and VS.NET July CTP. I've created a fairly extensive database in the former which I'd like to use in the later. All of the non-CLR stuff seems to be accessible just fine. Unfortunately I no longer have the June CTP installed and the assemblies are running into versioning problems. I'd be happy to delete the offending assemblies if only I knew how. Any advice would be greatly appreciated. Thanks... BTW, I tried to install XM and do an export but it also doesn't run with the July CTP. Aaaaaarrrrr ...Show All
