MartySeed's Q&A profile
SQL Server 2005 to 2000
I can't restore a 2005 backup to 2000... Do I have to detach/attach or is there some other option THanks Susan It's not possible for you to take a sql2k5 backup/data and restore/mount it on sql2k. The meta data has drastically changed in sql2k5. Your only option is to export/import (SSIS) to transfer data between the instances. ...Show All
Visual Studio embedding relationship
Hi, I do not know if I overlook the obvoius, but is it possible to embed a concept into more than one concepts. An example. I have a ComponentModel that embeds Component and CompositeComponent. Now I want to be able to add a Component to a ComponentModel and to a CompositeComponent in my custom designer, respectively Since a concept can only have one parent element path, I do not know how to implement such a scenario. I have to say that the CompositeComponent is represented by a kind of ContainerShape (the one from the customization documents), thus accepts Components, so I can display Components on top of CompositeComponents. Thanks Alexander How can you change the ParentShape This property is readonly. ...Show All
Visual Basic array count?
I'm fairly new to vb and I'm having a hard time with the coding if anyone could be of assistance it would be appreciated. If FolderBrowserDialog1.ShowDialog() = Windows.Forms.DialogResult.OK Then For Each filename In Directory.GetFiles(FolderBrowserDialog1.SelectedPath, "*.jpg" ) Next aname = FolderBrowserDialog1.SelectedPath Label1.Text = (value & " Files" ) <-- A label to tell how many files with the jpg extension are in the folder ListBox1.DataSource = filename <-- list of files inserted to the listbox Label2.Text = FolderBrowserDialog1.SelectedPath End If I'm just not sure what code I'm supposed to use for counting the files in the FolderBrowserDialog1.Sele ...Show All
SQL Server How do I prevent a SQL Error terminating my package?
I am getting the ubiquitous error.... "The statement has been terminated.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly. I have a stored procedure that performs a task on a loop. Sometime it fails, somtimes it succeeds and that's just fine, the errors are handled within the stored procedure and I return counts of success and failures. The trouble is that the package execution terminates when even one of the task fails. I don't want it to, I just want it to continue as the pakage should then go on to extract the source of the failues and post them back where they came from. Any ideas how I can ...Show All
.NET Development Sending large number of mails
Hi every one Here I have a problem. I need to send over 2,000,000 mails or more (to the members only not Spam) in asp.net web application. I don’t know how to handle the situation. I ma looking for any help you guys. Any code snippet or article on how to will be highly helpful to me. Thanks in advance. Please help me. Thank you Ahmed I am not a spammer, I am going to send mails to the registered users only who registered by shopping cart and subscribed for receiving mails alert and they can un subscribe from the alerts. I want to know is there any way to send mails without hanging server any alternative like using separate mail server / using separate methods or any third party t ...Show All
Visual Studio 2008 (Pre-release) Using an image as a repeating background
I want to use an image as a background for my canvas but I just can't get it to work. The image should be tiled -not stretched - and in it's original size. Heres the XAML: < Canvas Width="300" Height="300" > < Canvas.Background > < ImageBrush Stretch = " None " TileMode = " Tile " ImageSource = " Background.jpg " /> </ Canvas.Background > </ Canvas > It just won't tile... Any ideas Thanks! Right - basically, we tile the Viewport area, and by default the Viewport is 0,0,1,1 RelativeToBoundingBox, meaning the entire destination area. As you correct determined, setting the Viewport to the ImageS ...Show All
Visual C# Impersonate user
Hi there! I'm working on program from which you should be able to configure different websites on different servers. Some of these servers are in Active Directory and some are not. So far I have only added support to edit servers which I (my account on the computer running the program) have access to. How can I impersonate Active Directory/Computer users to gain access to these other IIS servers Managed code would be preferrable. Thanks in advance, Peter Larsson! I wrote a full Impersonation helper class that is easy to use. You can take look at it here: Impersonation class, C# Source ...Show All
Visual Studio 2008 (Pre-release) xbap site of origin
I am working with an xbap and I am not sure of the exact defininition of "site of origin". The scenario is that I want to publish the xbap to a website http://www.mysite.com located at c:\inetpub\vhosts\mysite.com. Contained in that is a folder C:\Inetpub\vhosts\mysite.com\subdomains\secure that is accessed through a subdomain at https://secure.mysite.com:8076 . I want the xbap in the http site to access third party images (you can't access images on a third party http site from a https hosted xbap). I need the xbap to access a secure web service in the https ://secure.mysite.com:8076 location. Currently, on testing the xbap throws an error when hosted in the http site but not when hosted in the https site. ...Show All
Visual Studio Team System "Add Files" option greyed out
Hello! I created a single workspace with components, comp1.1 and comp2.2 from 2 different team projects, TP1 and TP2 respectively. I created 2 new files, file1.1 and file2.2 under comp1.1 and comp2.2 directories in my work space. I go back to source control explorer, and under TP2, comp2.2, I select "Add files" option. From here, I add file2.2 and this goes well. But, when I go to TP1 to add file1.1, the "add files" option is greyed out. I can add this file1.1 to TP2, but this creates a new directory comp1.1 along with file1.1 under TP1. Please assist. Thanks! The tf workfold comand revealed that my TP1\comp1.1 has not been mapped to the workspace. Once I added ...Show All
Game Technologies: DirectX, XNA, XACT, etc. FileNotFoundException
Running the game get's me: System.IO.FileNotFoundException was unhandled Message="The specified module could not be found. (Exception from HRESULT: 0x8007007E)" Source="MySpacewar1" StackTrace: at Spacewar.Program.Main(String[] args) at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.Threa ...Show All
SQL Server How to select the row that has the maximum value in one field
This has me stumped. I have a table UnitRateItems with the following columns ItemID, Description and table UnitRates with the following columns ItemID,Year,UnitRate UnitRateItems and UnitRates have a primary-foreign key relationship on ItemID. In UnitRates, there may be several rows with the same value for ItemID but a different value for Year. What I want to do is pick the row with the largest value of Year for a given ItemID. I want to do this for ALL the rows in the table (not just for a particular ItemID). In other words, I want to return one row in UnitRates for each row in UnitRateItems. I want that one row to be the one with the highest Year for that ItemID. It sounds simple, but I can't see ...Show All
Visual Studio Express Editions Join function with array of Objects
Help lists the declaration of the Join Function as Function Join( ByVal SourceArray () As { Object | String }, Optional ByVal Delimiter As String = " " ) As String It does not describe what happens if SourceArray is an array of objects rather than strings, but I assumed that it would use ToString to convert each Object to a String and then join them using Delimiter. However when I try to use Join to convert an array of IpAddress Objects to a string like this: Dim dnsAddresses() as IpAddress dnsAddresses = Dns.GetHostEntry("AComputerName").AddressList Dim Adrs As String = Join(dnsAddresses, ", ") the Join function gets an "Argument 'SourceArray' cannot be converted to type 'String'& ...Show All
Visual Studio 2008 (Pre-release) MediaElement/MediaPlayer "Procedure not found" error
I've just installed the .NET Framework 3.0 and the SDK, but can't get MediaPlayer or MediaElement to work. When I attempt to load a media file the MediaFailed event is fired with the exception "The specified procedure could not be found. (Exception from HRESULT: 0x8007007F)". I've seen references to this problem with earlier versions of the framework, and the solutions seemed to involve switching to Windows Media Player 10 or 11, but I've tried with both versions and the problem occurs with both. Does anyone have any suggestions (I'm running XP Professional SP2, if it's relevant.) Thnaks for any help. Chris Jobson A few things to check: 1. check the date stamp on milcore, windowsc ...Show All
Visual FoxPro .
Looks like I'll end up writing your whole code step by step. Please create a new thread next time so others would also deal with your questions. oExcel = Createobject("Excel.Application") With oExcel .Workbooks.Add .Visible = .T. With .ActiveWorkBook.ActiveSheet .Range('A1:F10').Cells.Value = 'filledbefore' .Range("1:6").EntireRow.Insert Endwith Endwith ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Moving on from DirectX
Andy Dunn pointed out someone on this forum that had similar arguements that I have been screaming about with DirectX for years. It was hilarious but it also true that other people were seeing what I saw. For one, it is very difficult working with APIs that I simply prefer for development, but support from Microsoft has become slim to nothing and hardly ever have a decent replacement. I have been developing applications for some years now and I just don't feel the same excitement for working with DIrectX as I did the first time I picked up several books on it. OpenGL has continued to evolve with its own shader language, it has a programmable pipeline now, etc. What I enjoyed the most was its consistancy like C+ ...Show All
