JOSII's Q&A profile
SQL Server Import from Data from Microsoft Access
In SQL Server 2005, Im trying to append data to tables which already exist. Im importing the data through the import wizard. The source from is Microsoft Access with no username and password. The source to is SQL Server 2005 using OLE DB Provider SQL Server with the login information of the schema I wish to use. I click through and the tables appear in the source. When I select all, they appear in the destination but they appear with the dbo. prefix which would regard them as new tables since the tables dont exist under that schema. I can click on the first destination table drop down text box and see all the tables under the schema there suppose to be under but its not the default. There are a lot of tables and I don't feel lik ...Show All
Windows Search Technologies disconnected drives cause rebuild
Hi, is there anyway I can prevent WDS from doing a rebuild if I happen to have a drive disconnected which was previously indexed pgeeeee, Could you provide a bit more information Is the index located on the drive that you are disconnecting Also, are you noticing a rebuild of the entire index, or just an incremental rebuild - WDS crawling through the disconnected drive to see if anything has changed. If you're seeing the latter there really isn't a way to address the issue. Paul Nystrom - MSFT ...Show All
Smart Device Development Webbrowser Navigating Event Exception
I'm building a WM5 app using VS2005 and CF2. Users view a web page via a webbrowser control where they click each link individually or build a play sequence list of links. Both paths are captured by the web navigating event below. If the link is for wma or wav files, I manually process the download and process start to avoid the IE mobile file dialog ("do you want to download, replace existing file"). When one of the wma or wav files is clicked directly, the navigating code works file. When one of the wma or wav files is in a play list and *invoked via an event* (each item is invoked as webbrowsing navigation from playList() ), the e.Cancel = true statement causes an "Unexpected Error" exception. If I remove that statement, I get ...Show All
SQL Server backup
Hai, I have taken back of sql2005 beta 2 version. But now i am unable to restore it sql2005 original version. it is displaying the error incompatable version. Please let me know how i can restore the backup from sql2005 beta 2 version to sql2005 original version. regards Suresh S I think Microsoft made some breaking changes between Beta2 and RTM. I think you will have to script the schema from the Beta2 and create a new blank database in SQL Server 2005 RTM (or later), then use Integration Services to copy your data. Visual Studio 2005 for Database Professionals (Datadude), can automate much of this. ...Show All
.NET Development database to b converted.
m havng an access file which i want it to b converted to MySQL ..anything can help me thx in advance .. ya frnd..there is an straight way to do so.. visit the site .. http://www.bullzip.com/products/a2m/info.php ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Having a bit of trouble with space wars
The game starts and you can see the scores and hear stuff going on, but the rest of the screen is blank :( Any help with this is greatly appreciated Aimee wrote: i'm having trouble figuring out what the controls are if run as a windows app.. has anyone figured that out There's been a half-dozen posts on this. Here's one - http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=682754&SiteID=1&PageID=1 ...Show All
Visual C++ New operator fails if compiled on Vista
I've got a quite peculiar problem. As of late, I’ve encountered a problem where a 32-bit application compiled with Visual C++ 2005 with SP1 running on 64 bit Vista Ultimate runs out of memory during its initialization stage. This is curious, because in total, the application allocates less than 40 MB of RAM. The allocation error seems to be consistent with 'new' operator, and in general the allocation fails when the program tries to allocate < 10 KB block of memory. The allocation failure is random; it is not connected to any particular class. If I comment out one command using "new", one of the ones following or preceding it will fail. Running the same code twice may or may not crash on the same "new" opera ...Show All
Windows Forms Get USerProfileName
<workingFoldersSection> <XmlSerializableHashtable xmlns:xsd=" http://www.w3.org/2001/XMLSchema " xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance "> <Entries> <Entry> <key xsi:type="xsd:string">email</key> <value xsi:type="xsd:string">c:\shankar\Email</value> </Entry> </Entries> </XmlSerializableHashtable> </workingFoldersSection> I have an entry like this is my Web config file and i use a dictonary entry in my code and get the vaule which is a "c:\_Enterprise\Email" and just create folder.Now i want to get the USERPROFILE name and use it like "c:\"userprofilename"\shankar\Email ...Show All
Visual Studio Team System Purpose of Iterations
Hi, I'm wondering if iteration's only purpose is to help group work items in a timely order. What is the consequence if I do not close all tasks that are exit criterias I am aware of what is meant by time boxing - but what happens if I never fulfil the tasks assigned to an iteration. Are there any mechanisms reacting to iterations that I don't know about Then i dont think that TFS is extensible but yeah its customizable. If its not allowing you to force checkings then it doesnt mean it loose flexiblity, it shuld have a way to enforce checking like dependencies, due dates etc etc... At the moment work items are in a dumb bucket and they dont have any sort of control and intelligence.. but can we expect it in next versio ...Show All
Visual Studio Team System Problem with shelving
I've encountered a small problem with shelving. Here's a scenario I Am working with studio 2003 and using TFS as source control . I have a console app project with 1 class (Class1) Lets say I add a new class (Class2) and then check in class2. Now ,I open the class for edit and do some code. I then do shelve to the entire project . after that I undo changes in order to get back to the last checked in version. The problem is that the "Undo check in" removes the Class2 from the project . This is normal behavior but why is that when I do UnShelve to the project from TFS I still see Class2 . The UnShelve gets back the changes I did in other classes but the Class2 is gone for good. I would expe ...Show All
Visual Basic Optional Object parameter passing in a function
Hi, I have this code. I want to use the same procedure with the controls on a form instead of just controls on a groupbox. The catch is i do not want to repeat the procedure. I tried to declare grpbox as optional but it will ask for the default value and I don't know what i can give as default. Any other recommendations to make this function precise would also be welcomed. Thanks Public Sub checkCriteria( ByVal GrpBox As GroupBox) Dim grp As GroupBox = CType (GrpBox, GroupBox) Dim ctrl As Control Dim flag As Boolean flag = False For Each ctrl In grp.Controls If TypeOf ctrl Is TextBox Then Dim sctrl As TextBox = CType (ctrl, TextBox) Try If sctrl.Text <= txtasUMin Or sctrl ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Hiding the minimize/maximize/close buttons
Hey everyone, I'm trying to figure out a quick and easy way to either hide the surrounding window of my XNA game entirely, or at least remove the buttons. I could do this the long way, by making an actual windows form and a graphics device and blah blah blah... But I wanted to know if there is a quicker way to do this. Thanks for any help. UNTESTED!!!!!! Add a reference to system.windows.forms and then pop this code in System.Windows.Forms. Form f = (System.Windows.Forms. Form )System.Windows.Forms. Form .FromHandle( this .Window.Handle); The you *should* be able to adjust about anything you can with a form class. I cant stress enough I havent tested this yet, nor do I know if its even recomm ...Show All
Visual C++ Resize main window of an application
Hello, While resizing the main window, say reducing the size by mouse, I want that the window size cannot be further reduced when it comes to a minimum value. The application is developed using VC++ 2005 and MFC. Please tell me how I can do it. Once i posted the same inside my blog You can see the post here Restrict Window Sizing Taken from the post To accomplish the same, you may need to override OnSize message Here’s a sample snippet to do the same. const LONG MIN_WIDTH = 500; // Minimum width const LONG MIN_HEIGHT = 300; // Minimum Height void CMainFrame::OnSizing(UINT fwSide, LPRECT pRect) { // Set the minimum size if width going to be less than minimum width if ((pRect->right - pRect->left) <= MIN_WI ...Show All
Visual Studio Team System Using new Source Control from VS.NET 2005 Professional
Will it be possible to integrate with Foundation Server, or rather the source control system, from VS.NET 2005 Professional In other words, if we want to take advantage of the new source control system, but not buy the VSTS clients, is that possible From a licensing point of view I guess that it mean one VS.NET professional license + one foundation CAL per developer in addition to the one foundation server license but is it technically possible Thanks They announced at TechEd 2005 that they will be providing a Microsoft Source Control Interface provider for VB/VC 6, VC 2002, and 2003. That means source control will integrate well with those platforms (and anything that supports MSSCII), howeve ...Show All
Smart Device Development Problems using CDC::BitBlt
Hello, I am using BitBlt to copy one CDC to another. However, for some reason, it is not working at all. The line of code is: pDC->BitBlt(0,0,screenWidth,screenHeight,buffer,buffer->GetWindowOrg().x,buffer->GetWindowOrg().y,SRCCOPY); I am CERTAIN that buffer contains the graphics I need. buffer was created with the following line: ASSERT(!buffer->CreateCompatibleDC(pDC)== 0); Any help would be much appreciated! -Brent After creating the DC, you also must SelectObject a bitmap into it before you can start drawing. HDC memDC = CreateCompatibleDC ( hDC ); HBITMAP memBM = CreateCompatibleBitmap ( hDC, nWidth, nHeight ); SelectObject ( memDC, memBM ); ...Show All
