Tej62007's Q&A profile
SQL Server SQLBulkLoad please help!
I'm having some trouble working with SQLXMLBulkLoad and was wondering if someone could point me in the right direction. I'm just getting one error so far, "multiple base for derived type not supported". Can the bulk loader really not handle derived types with multiple bases or am I missing something. I've got about a gig of XML to get imported against an XSD schema that is about 12,340 lines and, as usual, it's got to be done last week! Thanks a lot, Ferg Did you can post some XML Datas and XSD schema I just complete a test function for SQLXMLBULKLOAD . The function is used to import more than 1.5M recorders into sql server 2005. if any question ,add my MSN: Jerome.tan@hotmail.com more info i ...Show All
Smart Device Development Capture Outgoing dialled number
Hi, I tried searching on this but was not able to find a way to capture the outgoing called number using SNAPI. We can use SystemState.PhoneIncomingCallerNumber to know the incoming phone number, but is there a way we can know what the user dialled (outgoing call number) using SNAPI I am using VS 2005 SmartPhone SDK. Thanks, Vivek I think the only way to capture this is using PhoneTalkingCallerNumber property only. I have create blog entry on this: http://geekswithblogs.net/vivek/archive/2006/12/28/102209.aspx Hope this helps others, Vivek ...Show All
SQL Server Mix and Match Rows
In the trading (stock market) industry there is a practice of rolling up (merging) multiple trades into a single trade in an effort to save on ticket charges. The way this is done is performing a SUM() on the quantities and calculating an average price. (Average price is the SUM(Qty * Price) / SUM(Qty). So, given : Qty Price 20 $5 20 $10 You get: 40 $7.5 -- 20 + 20 and SUM(20 * $5, 20 * $10) / SUM(20 + 20) Here is my dilema: If given a set of trades, I need to loop through them and check every combination to determine which one matches the expected ...Show All
Visual Studio Tools for Office ItemAdd Event Destination folder.
Currently, i have a codes that monitor the itemAdd event for various folder. How do i know which folder is triggering this event If you are using C#, the easiest way is to use anonymous delegates: myFolder.ItemAdd += delegate (object item) { // the variable myFolder is available here. }; The solution in VB is along the same lines, but is a little more complicated - let me know if you need sample code for VB. ------ This post is provided as-is and confers no rights. ...Show All
Windows Forms Threading Problem
Hi I have a winforms application which does some database processing and updates a progress bar. As it does the processing, it also writes to a log file using log4net. I would like to add a Multiline text box to the application which can be used to display the a "tail" of the log file. How can I do this thanks for that, I have now managed to resolve the problem by using Control.InvokeRequired and if this is true then I use Control.BeginInvoke (for asynchronous processing) on my textbox control to appendtext to the textbox. thanks ...Show All
Visual C++ unable to access an assembly from an application located on a networked drive
Hey all, I have an application app.exe, that has the following manifest embedded in it: < xml version="1.0" encoding="UTF-8" standalone="yes" > <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <dependency> <dependentAssembly> <assemblyIdentity type="win32" name="Microsoft.VC80.CRT" version="8.0.50608.0" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity> </dependentAssembly> </dependency> </assembly> When I run this application locally on the C drive, it runs fine but when I run it from a n ...Show All
SQL Server Replication Snapshot Incorrect Parameter
After using the wizard to create a very simple snapshot. I keep receiving this message: Replication-Replication Snapshot Subsystem: agent D700PT106-gdalcd_10-test-3 failed. The parameter is incorrect. The step failed. Anybody have any idea what this means. I need to ask you a few questions before I can troubleshoot this further: 1) Is this SQL2000 or SQL2005 2) Is this a clustered system 3) Are there anything interesting in the SQLServerAgent log -Raymond ...Show All
Software Development for Windows Vista How to update the .net framework with the latest release
Hi, While installing the latest version of the .Net Framwork 3.0, do I need to install the Visual Studio Extension for Workflow Foundation everytime if I need the Workflow Designer Further, I'm getting error while opening the design view of the workflow solution created using earlier versions. How can I recover it Thanks in advance. Thanks Tom, I was in the Beta2, & now I've installed the RC5 version of WF extension & also the latest version of the .net framework. The error was in the designer view of the workflow created using the earlier version. but now it is solved, as I re-installed the same after uninstalling the earlier version. Thanks for your reply. ...Show All
Visual Studio 2008 (Pre-release) listbox binding issue
I have a template for a class in which I have the following XAML <Setter.Value> <ControlTemplate TargetType="{x:Type local:P1}"> . . . <StackPanel Grid.Row="1" Grid.Column="2"> <ListBox ItemTemplate="{StaticResource dtc}" ItemsSource="{Binding RelativeSource={RelativeSource TemplatedParent}, Path= AcrossClues}"></ListBox> <Expander Header="Across" > <ListBox Height="150" ItemTemplate="{StaticResource dtc}" ItemsSource="{Binding RelativeSource={RelativeSource TemplatedParent}, Path= AcrossClues}"></ListBox> </Expander> </StackPanel> . . . </ControlTemplate> the lis ...Show All
Visual Studio Express Editions Move to cell in previous row?
I need to write a code to move to a cell in the previous row. I have looked at (offset) , (currentcell) & (currentcelladdress) but i can't quite get the hang of it. This is what i have so far in a button click event: Me.MaintableDataGridView.CurrentCell.Selected = False Me.MaintableDataGridView.Rows(0).Cells(0).Selected = True This works great but i just want to move 1 cell up, not by coordinates. Is there some way to utilize code to mimic the arrow keys (sendkeys, etc...) Any help would be great. Thanks Jeff This is what i have: Public Class Mainform Private RowIndex As Integer Private ColumnIndex As In ...Show All
Game Technologies: DirectX, XNA, XACT, etc. A tool to help with Sprite Animations: Sprite Strip Composer
Hi: I have been working on a game written in the XNA Framework. The game has many sprite animations. After researching how other do this in the community I adopted the approach of loading a "Sprite Strip" (PNG) consisting of a row of frames. If there are many frames and the sprite is large, I split them up onto multiple rows. One of the laborious tasks was creating such 'Sprite Strips' from a sequence of PNGs. I have created a very basic Windows Application named Sprite Strip Composer to solve this time consuming problem. Download: Sprite Strip Composer Instructions: Browse to a folder containing your PNG files. Select the files you want included in the strip. Make sure the animation looks correct by looking at the Animated ...Show All
Visual C# How can I stop the illumination of the form ? GDI+
Hi, wile I was trying to draw on the form every 100 ms , I had a problem that the form illuminates like the flash light every time I tried to draw on it, I know that I mustn't clear the form that much but I have to because I'm trying to let the form take a shape I've drawn in a PNG file . what can I do to stop this Illumination or if you know a better way to shape the form as I want please write it here . and I want to tell you something great : I have taken 98% in my high school final exam ( the one before the university ) which means I can choose to enter any faculty I want in Damascus University . Try drawing in a PictureBox's OnPaint event. Set the PictureBox's DoubleBuffered property to True. Co ...Show All
Visual Studio RelationShip ZeroOne-ZeroMany as property
Hello, I was using DSLTools from May VS SDK and it was possible to create relationship 0..1/0..* without graphical representation and edit this as property (of type targetDomainClass) on sourceDomainClass. but, when i'am using July (and also June) VSSDK, i cannot find a way to do this. It can be seen on FlowModel example, (FlowElement has Actor property), but in this example relationship is too complicated (is computed when element is dropped on swimlane, etc.) I created new project from Minimal Language template, deleted ExampleElement-ExampleElement relationship, commandbuilder I created new DomainClass1, GeometryShape, ShapeMap between it now I created Reference relationship ExampleElement[0..1]-DomainClass1[0..*] ...a ...Show All
.NET Development XML Nodes question
I have an XML file that has this situation <node name="aaaa" something ="visual basic"> I am trying to figure out how to call the name or something node. When I work with XML in php I just do something like node-name or node-something When I do this in Visual Basic it doesn't work! It seems so simple if someone can just point me in the right direction I would be very greatful. Thanks How do you want to access the attributes Using xpath and XmlDocument node.SelectSingleNode("node/@name"); If you already have the element as an XmlNode you can use the Attributes property to get to the collection of attributes on it. ...Show All
Windows Forms no registry keys are created on x64
I have a Setup Project created by using Microsoft Visual Studio 2005 Version 8.0.50727. This setup project creates several registry entries. The registry editor is used to specify which entries should be created. By setting the project's "TargetPlatform" property to x86 and executing the wizard on 32bit platforms everything works correctly. Ecch registry entry is created. The problems begin when I try to execute the wizard on x64 platforms. More details about the platform: Windows Server 2003 R2 Standard x64 Edition with SP1, Intel Xeon 3.4GHz CPU. On this x64 box, the system path environment variable begins with the 32bit related entries (e.g. C:\Windows\System32) and follows with the 64bit related ones. It seems to be ...Show All
