kubaw's Q&A profile
SQL Server loading XML
I am trying to load many XML files into SQL Server 2005 Standard Edition. Each XML file contains many individual XML items, each starting with: < xml version="1.0" encoding="UTF-8" > The files do not have a .xml extension. I do have a schema for the data. I can also get hold of a dtd file for the data. Since I am new both to XML and to databases I have been trying to follow examples wherever I can find them. I have not found the right example or tutorial. The closest that I found was in Kirk Haselden's book (a very nice book to learn from, by the way). On page 73 he sets up an OLE DB Source. His example works fine. But when I try to use XML Source instead of OLE DB as the source, I cannot get it to work. A typi ...Show All
.NET Development XPathNavigator- cannot use XPath functions...
I'm trying to evaluate an xpath using XPathNavigator. My xpath uses the XPath function current-time(). When I call the Evaluate() method, it throws an exception complaining about XsltContext: Namespace Manager or XsltContext needed. This query has a prefix, variable, or user-defined function. I've tried associating a namespace with the function as below: XmlNamespaceManager mngr = new XmlNamespaceManager ( new NameTable ()); mngr.AddNamespace( "fn" , @"http://www.w3.org/2005/02/xpath-functions" ); expr.SetContext(mngr); It still complains about XsltContext. I would expect this if the function was user-defined, but this is a standard XPath function. Does anyone know how to evaluate XPaths ...Show All
Visual Studio Team System error - Cannot create a connection to data source
Just deployed a report to the TFS Report Server --- myself and the other developers can view the report just fine. However, the PM and the QA team get the following error message when attempting to view the report: An error has occurred during report processing. Cannot create a connection to data source 'FuncAreaSummDS'. For more information about this error navigate to the report server on the local server machine, or enable remote errors Those who can view the report are members of: Developer 1 - Publisher Developers 2 & 3 - Browser, Content Manager, My Reports, Publisher, Report Builder Those who CANNOT view the report are members of: PM - Browser QA - Browser, My Reports, and Report Builder Any ideas Thanks! ...Show All
Visual Basic Another simple question from novice
I have a database on my SQL Server. One of the tables is called "Wyniki" and there are columns: ID, Imie, Nazwisko, Punkty, Status, DataGry, RodzajGry, Autor. There is some data already. I want to read data from it and I tried to use this code: Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim Polacz As New Odbc.OdbcConnection Polacz.ConnectionString = "Driver={SQL Native Client};Server=localhost;Database=ProjektKoncowy;Trusted_Connection=yes;" Dim cmd As New Odbc.OdbcCommand("SELECT * from ProjektKoncowy.dbo.Wyniki", Polacz) Try Polacz.Open() Dim reader As Odbc.OdbcDataReader = cmd.ExecuteReader() While reader.Read ...Show All
Visual Studio Internal Error 2908 {7D4B5591-4C80-42BB-B0E5-F2C0CEE02C1A}
Gentlemen, I got a problen when I were installing the .net framework. The error message is "Internal Error 2908 {7D4B5591-4C80-42BB-B0E5-F2C0CEE02C1A}" Is there anyone can help me to figure out what it is Thank you ! Geoffrey Two possible solutions: 1. Remove mscoree.dll from system32 directory. Reboot not necessary. This should solve the problem. 2. Uninstall beta version. If you get the same error when uninstalling the beta version... go to beta folder and rename it to a different name then try Office2003 Installation. If both of the above does not work, then the only other thing I can think of is to uninstall all of products related to HP including drivers. HP is known for bu ...Show All
Visual Studio Express Editions How to install C# and C++ Express into the same IDE
I downloaded an installed both visual C# and visual C++ express edition on to my compter, they both installed and are working fine, EXCEPT they installed seprately, both made their own IDEs, i thought i was supposed to be able to access both from the same IDE, getting the choice to amke a c++ or C# project, but instead I have to go into seperate programs. I think it has some thing to do with that i overrode the default install location to intall them on a external HD. How would i go about merging them into one ide (i am ok with renstalling form scratch) The express edition are separate products from different teams inside MS. It is not possible to consolidate the IDEs into a single one. You will ne ...Show All
Visual C++ DateTime::Now
How would I use a timer and DateTime::Now in order to string a clock that keeps up with the system's For Hours, Minutes, and Seconds Now I have this and it works and it shows the time but I don't know how to use the timer to refresh it every second so that it keeps up with the systems time. #pragma once namespace TestApp { using namespace System; using namespace System::ComponentModel; using namespace System::Collections; using namespace System::Windows::Forms; using namespace System::Data; using namespace System::Drawing; /// <summary> /// Summary for Form1 /// /// WARNING: If you change the name of this class, you will need to ...Show All
.NET Development TransactionScope committing without being told to!
I ran into a huge problem using TransactionScope. I've been using it inside some classes that manage persistence to a database. I intended to use System.Transactions so that calling classes can wrap my persistence manager classes in a transaction scope and thereby control whenther or not a transaction commits or not. The persistence manager is blissfully unaware that the transaction it uses internally is being controlled by an external transaction scope. Here's an example of my problem: public void Test() { string conString = "Data Source=localhost;" ; SqlConnection con = new SqlConnection (conString); con.Open(); this .DoDatabaseStuff(con); con.Close(); } public void DoDatabaseStuff( SqlC ...Show All
Smart Device Development retrieving AS400 to sincronize with local pocket pc 2003 database..
Hi, i see that in the cf 2.0 not is present the oledbdataprovider. I use this data provider to connect with db2/400 database with classic winform or asp.net form.. how i can retrieve the records if not have a data provider thanx thanx for your reply ;) the first option i think is more difficult for me.. i'm not a guru programmer ;) the second i think is my way.. but i don't know 3rd party dataprovider.. you know someone the third option is great, but i don't know if is a good way, becouse my application is a local application and the db2 database don't is a remote database.. may be i think another way.. i can export data from db2 in text format.. than i can retrieve the text file and with substring retr ...Show All
Visual Basic Button handler from user control to form
Hi, I made a simple user control in visual basic 2003 with a text box and a button on it (btnOK). I put the user control on my main project form and I want to make the button in the user control (btnOK) to perform some sort of action on my main form. How do i make a handler on my main form to the button on a user control. Any help is appreciated. Thanks, -heedree THANK you sooo much. I've spent a whole day trying to figure it out, I should have posted here earlier. You've made it really clear for me. Again, thanks for the answer. -heedree ...Show All
Visual Studio 2008 (Pre-release) Blend modes not supported in WPF?
Are blend modes not supported in WPF With the recent release of WPF/E and the new CTP's for the Expression tools, my interest in WPF has rekindled. However, after searching the Web and Newsgroups it seems that blend modes are not supported in the WPF. I'm not quite sure what the rationale behind leaving this feature out of WPF was. (Purhaps time constraints ) I'm sure the developers on the WPF team know how to program support for blend modes. It's pretty much well documented on the Web. I've even written a few for a custom layering application I wrote for .Net 1.1. a year or so ago. It's odd that they took the time to program support for filters such as drop shadow, blur, and reflection, but not ...Show All
SharePoint Products and Technologies WorkFlow Reports
Hi, I am new to SharePoint. I had a 2 basic question in WF. In Workflow Reports, Can we customize to add custom fields of our choice Is there any xsl which I can apply on top of the Report.xml for viewing the same If there is any good material around WF reports and other SharePoint WF QoS stuff I will be appreciative if posted here. Regards Shyla ...Show All
Visual Basic ListBox & StreamWriter & StreamReader
I have a "Form" with: 1- List Box 1- TextBox 3- Button 1- OpenFileDialog 1- SaveFileDialog I want that clicking the btn1 it shows the OpenFileDialog and read file that it has got this structure: SKI1 0 1 7 1 0 0 18 10 1 19 0 29 10 1 30 0 40 10 1 41 0 50 10 1 51 0 62 10 1 63 0 81 10 1 82 0 95 10 1 2 0 0 95 16 5 3 0 1072 0 1 4 2 1 93 15 I want that it reads all Line of the File and it add an Item in ListBox for line. For example the first Item of the ListBox in this case is SKI1 And the 2th Item is in this case. 0 1 7 I want using the StreamReader classes. And i want that when i click an Item of the ListBox it shows the Text in the TextBox and I can edit the Line and that clicking antoher but ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How Do I Determine The Currently Visible Area?
I'm building a 3D game and currently have everything working, but I'm in the process of optimizing my framerate. The world in the game is many times larger than the screen/window. How would I go about determining the world coordinates that are visible on the screen Even though the objects outside of the viewport are clipped, the draw code still has to translate (and rotate) the meshes in the objects (many of which will be clipped). It would be much more efficient if I could just not process meshes that will be outside of the screen. Thanks! Darkside, That was the solution, but I just verified that it was a few minutes ago (Had a chance to ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Can not find the xna racer game starterkit in the new XNA framework.
very disappointed. There were some issues with the product. We will make it available in the next few months. Because it is a starter kit, we wanted to make sure that it meets a high quality bar (Spacewar, for instance, was a little "rushed" -- we don't want to do that again) ...Show All
