IAmaNewDba's Q&A profile
SQL Server Pre-Execute AcquireConnection method call fails inside Sequence Container (transaction required)
I've created an SSIS package that contains a Sequence Container with TransactionOption = Required. Within the container, there are a number of Execute Package Task components running in a serial fashion which are responsible for performing "Upserts" to dimension and fact tables on our production server. The destination db configuration is loaded into each of these packages using an XML configuration file. The structure of these "Upsert" packages are nearly identical, while some execute correctly and others fail. Those that fail all provide the same error messages. These messages appear during Pre-Execute [Insert new ...Show All
Visual Studio Express Editions VC++ Need explanation of message please.
Can someone explain what the message " Either VCProject or VCCodeModel is not ready yet. Please close designer and try again." means please. I keep getting it in the form designer and cannot see how to fix the problem. Alan's solution also worked for me. Remove the structures and/or delegates declaration above the class decleration. Just like EmilianoCapoccia said. Thanks all ...Show All
Visual Studio 2008 (Pre-release) XmlDataProvider error in XAML
Hi. I'm trying to bind to some XML in an XmlDataProvider, defined declaratively in the XML thus: <XmlDataProvider x:Key="ImageData"> <data xmlns="" > <text>TEXT</text> </data> </XmlDataProvider> Cider's giving me an warning, saying the XML elements within the data provider are invalid child elements, and if I switch to design view I get an 'Error reading the designer file' message. If I take out the <data>...</data> XML, leaving the data p ...Show All
Visual C# moving file pointer at the begining
Hi, I am searching for some text in a text file. Seach strings are stored in an array. Once I find first text string, I want to move the file pointer back to the file beginning. I know in C there used to be some way to do it. How to do the same in the C# Thanks in advance, Wouldn't it be faster to just read the entire file into a string array and search that Or even a type of lazy initialisation that reads the string array to date then keeps reading the file for each string you're searching for I don't see any way to move the file pointer, beyond closing and reopening the file. ...Show All
SQL Server AutoClose
How do you set the AutoClose property of a SQLExpress db Also, can the user instance timeout property be set at the database level too to make for easier application distribution. Is there any downside to turning off AutoClose in order to speed up the initial startup times after a period of inactivity. Hello Jens, thank you very much for your answer. Ok, safest way is detach or use backup. > No the database *could* be not consistent in the time of the > copy, cause you would also need the log with possible > pending transactions. Excuse me that i have another question, but i like to under ...Show All
Visual Studio Express Editions Downloading videos
I am trying to download the "Windows forms control series" videos from this site. http://msdn.microsoft.com/vstudio/express/vb/learning/#forms but it only downloaded 1k files. Did any one get tfis videos downloded You can't download the whole video because it is .wvx file. You can download this metafile and watch the video (if you are connected on the web) but you can't save it. ...Show All
Windows Forms How to get the correct value for DataGrid.Select(index) after DataView.Sort
I've read a lot of postings, but still don't seem to get this right. Hopefully someone out there can help. This is in C#, using Winforms: I have a datagrid, a combobox, and a textbox all on the same form. I would like the user to be able to use the combobox to 'select' one of the columns in the datagrid and then enter a search value for that column in the textbox. When the user has entered enough text to match a value in the selected column, the matching row should be hilighted in the datagrid. In my TextChanged event handler for the textbox I would like to do this: 1. based on the selected value of the combobox, get the corre ...Show All
Software Development for Windows Vista How to troubleshoot custom designer for sequential workflow
Hello, In the post http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=160891&SiteID=1 , Arjun describes how to define a custom designer for a sequential workflow. As noted in that post, I've tried to imitate Arjun's steps but my custom designer does not appear to be loading. I'm reposting the following to hopefully get some visibility: I've tried overriding the HelpText and ShowSmartTag properties but I don't see any change to the designer. I also put debug statements in the constructor of the MyDesigner code and they don't get displayed. I've attached to the devenv.exe process in another instance and set ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Converting to DXUT - where does it handle mouse?
Hello, I'm making a 3D game and I just converted my "game" to use DXUT framework so I dont have to solve many windows(lost device, reset...) related stuff on my own. I was looking for mouse handling and couldnt find any function which takes care about where user clicked. e.g. U have there like - change device, change REF, toggle FULLSCREEN...and you can activate it by mouse... I would like to make similar things that could be activated like that, but dont know where to put my code. Or shall I do it exactly at the same place as it is for "PICK" example where it checks for hit geometry in the program. Than ...Show All
Software Development for Windows Vista While Activity - Loss of status
Hello, I have a custom activity having its own serializable data. When using it in a SequentialWorkflow together with a following Code activity, I'm able to query from the Code event handler the data in the custom activity. When placing both in a Sequence in a While activity, the data in the custom activity is lost and the code activity sees my custom activity as created by constructor. I've read that the While activity re-initializes its child activities each time it loops (can I somehow prevent this ) but my problem occurs in the sequence inside the loop, in other words, the loop executes the first time... Thanks forward to your respo ...Show All
.NET Development Reusing classes without creating a dll
Hi I am working with several different web sites hosted on the same Windows 2003 IIS server. These web sites need to use similar functionality, and therefore the same class files should be able to be used. I tried to create virtual directories in the website to point to the App_Code folder where the class files are stored, however, I then get the error "The path '/App_Code/' maps to a directory outside this application, which is not supported". I don't really wish to create a dll file, although even then, without putting this into the GAC, I would have to copy the dll into all of the Bin folders of each web site that requi ...Show All
Smart Device Development how can i deny opening start button and close the this minue when opened ?
Hi .. i want deny a start button openning when my application is running Is there a methode or way to do like this , please cheers >> Hi first off all .. thanks but the user is still can easily press and use the keypad of the device to launch the start menu .. how can i prevent the sart menu from appearing ...Show All
Visual Studio C#'s ".xml" documentation format + Managed Package Framework
Here's a real quick-and-easy one: is there an API available in the managed package framework that will parse C#/VB.NET's ".xml" document format and return any of the relevant entries like the <summary> or <example> or <remarks> section I've scoured the documentation but I'm not exactly sure what the format is called, much less what the API method names would be. ;) Or will I just have to role my own ;) As far as I can tell the article demonstrates how to automate the creation of XML comments and getting them from the source code. I need to parse the actual .XML based output, sort've like ...Show All
Game Technologies: DirectX, XNA, XACT, etc. displaying jpegs
just wanna start off by saying that im a little new to windows programming. i have a pretty good understanding of c++ and basic win32. i was wondering, how can i display a jpeg in a window. the basis behind this is that i will have a bitmap background, and then the jpeg image will be "on top" and move around the map. also, how can i move the jpeg around using the arrow keys would case wm_keydown : { while(vk_left == true) "jpeg image ...Show All
Visual C# Problem with passing array to C callback
I have a C dll file where you can register callbacks. In my progress of extending this dll I am having problems getting it working from C# (Visual Studio 2003): My C# prototype is: public delegate int CustomCallBack_pfn( ref T [] pT, ref int nCount); The equivalent C function pointer uses stdcall as it's suppose to for compatibility. What I do is to initialise a C array with 16 fields and then pass it to the callback. The callback will eventually fill some of the fields and return the count. Until now I've been using the simplified version: public delegate int CustomCallBack_pfn( ref T pT); Where only 1 f ...Show All
