DooH's Q&A profile
Windows Forms SelectionStart() & SelectionLenght() in Combo?
Hi, We know by using the SelectionStart() and SelectionLength() in a Combo we could highlight(select) a part of the text based on the values for SelectionStart() & SelectionLenght() and the cursor goes to the end of the high lighted text. I need this functionality except i want the cursor back to the first character in the high lighted text , in t ...Show All
SQL Server dtexec
I understand to schedule an SSIS package to run, I need to use the dtexec utility. I want to schedule the job right within SQL. I walked through how to set up the job, but I really could not decipher the proper syntax to use as a Step. I have the following: dtexec /File "C:\...file.dtsx" Is the the proper way to schedule and execute an SSIS package or is there some other way I should be doing this. The pacakge will run unattended nightly. I am using SQL Server 2005. Thanks for the information Hi, yes the command line syntax can be a bit daunting. But you should not have to type it out ...Show All
Visual C++ First painful steps with VC++ Express 2005 Beta 2 and DirectX9
Hi! I am currently making my first experiences with .NET programming and the Beta 2. My first questsion is simple: Is there any way to rename the default "Form1" class/files (which are created when generating a new Forms project) in an easy way I solved the problem by searching for all occurences of "Form1" through the whole solution and replacing them by e.g. "MainWindow". This seems very complicated. My second question is more complex. I tried to use DirectX in an .NET Forms applivation. I use a form with a single button an want to play a sound when clicking that button (this is only for testing). When calling the following line:   ...Show All
SQL Server DB Mirroring VS. Clustered Failover Questions
We are planning to update our two node, active/passive clustered system to SQL 2005 from SQL2K. Would we be better off to use database mirroring rather than clustering with failover I believe mirroring takes 3 systems rather than two (one for each mirror and one for monitoring), but can the monitor be a rather low powered PC Our current cluster uses two 4-processor Dells and an external PowerVault RAID array with fiber channel connections. Each server has two NICs, one for general network and one for heartbeat and a fiber channel card to connect to the external PowerVault. Here are my questions: 1 - If I understand it correctly, mi ...Show All
Visual Studio 2008 (Pre-release) Save RichTextBox document
How can I save RichTextBox document in Xaml and C# I tried to do it with SaveAs command but i did not find any informations about using this command. Please I do not how to do it. http://blogs.gotdotnet.com/jfoscoding/archive/2006/01/16/513383.aspx ...Show All
Windows Forms CheckBox does not update bound DataSource on click
It appears that clicking on a CheckBox does not update corresponding DataSource immediately, but rather waits for the CheckBox to lose keyboard focus before doing so. Is there any way to trigger that update immediately, as soon as the CheckBox is clicked Are you using VS 2005 If so, you need to set the DataSourceUpdateMode to OnPropertyChanged. To do this, click on the CheckBox and in the designer, select (DataBindings) -> (Advanced). In the dialog that pops up, select the CheckState property (or Checked property) and set the Data Source Update Mode to "OnPropertyChanged". Joe Stegman ...Show All
Software Development for Windows Vista Where can I obtain A Copy Of Windows VISTA One of the betas
Where can I obtain a beta copy of windows vista I have an MSDN Subscription but I still cant get a copy please relpy to tight_fox@yahoo.com If you have the correct level of MSDN subscription you can get Vista from Subscriber downloads. What I don't know is exactly what level you need - I have what was a "Universal" subscription. You will find various builds in Operating Systems\Windows Vista\: "Windows Longhorn Beta 1 (Windows Vista)" is the Beta 1 release from July and "Windows Vista - Community Technology Preview" contains the CTP releases. The latest version - which ...Show All
Visual Basic Why do the DEBUG (F9) breakpoints not trigger 80% of the time? How do I get it 100%?
Why do the DEBUG (F9) breakpoints not trigger 80% of the time How do I get it 100% Michael OK, so we need to make sure you are actually in the right configuration When you have the Solution in the Solution Explorer selected, go to the Property Browser window and let me know what the value is for "Active Config" thanks! Kathy PS. where are your breakpoints at btw is it in code that might be marked as either Debugger Step Through or Non User Code ...Show All
.NET Development Can I Limit rows returned in native data grid in VS05 and SQL Server?
I don't know if this is the right place to post this, since it is a tooling question, but I am pulling back rows in a native data grid from SQL Server - I don't see an option where I can define how many rows to return (or limit rather). It looks like it is fetching it in blocks, which is good - -but I just want to return the first 100 rows let's say -- can I do this One way would be to add "TOP N" to your SQL: SELECT TOP 100 * FROM ... ...Show All
SQL Server Reading Excel Sheets - Column DataTypes - Change default
Hi, I am reading Excel sheets using the Excel Source in a Data Flow. The driver decides the data type of the column based on the first 8 ( ) values which it reads. How can this default be changed to, say, 1000, please This is because I am reading columns in which the first, say, 20 cells have no values and this is causing the driver to make ALL the values in the column to be null. Thanks. That's correct, this is not a connection string option for the Jet provider. Once upon a time, it was theoretically a connection string option named MaxScanRows for the Excel ODBC driver, but oops! someone forgot to actually i ...Show All
SQL Server Analysis Services Migration Wizard
I backedup an SQL2K OLAP database. Learned that I can not use the cab file to restore it to an SQL2005. So I've restored it to another SQL2K. Now I am trying to migrate this to my 2005. Here are my tests and results. 1. Welcome screen works fine. :) 2. I have severel SQL2K servers here which have their OLAP services running. a.) SQL 2000 Source Server: xxxxxxxxx (no such server) SQL 2005 Destination Server: AATIK (right server-local) Error: Source server: The following system error occurred: . b.) SQL 2000 Source Server: SABRI (right server)   ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Vertex Tangent in left handed
I'm working in left handed corrdinates and calculating the tangent to do normal mapping transforming lights to tangent space The result is working wrong as it seems that one axis is flipped (the left side of a mesh is being iluminated as should be the right side). So I am guessing that I have a mix with the coordinate system in calculating the tangent for the vertex or in the tangent trasnformation matrix. 1) Calculate tangent in left handed coordinates VECTOR3 GetTangentSpaceVector( const VECTOR3& position1, const VECTOR3& position2, const VECTOR3& position3, const VECTOR2& uv1, const VECTOR2& uv2, const VECTO ...Show All
Visual C# OdbcException while query field after empty
Dear All, I had encountered a strange problem. Take for example, if I had 10 fields in a record. If the third field is empty and the fourth field there are some values. I am not able to query the fourth field onwards. Upon querying it, it will give an empty exception. But I had no problem in retrieving the first 2 fields. I am using MySQL as my database. Can anyone please advise Thanks Part of my code is as follow: try { String connectionString = "DRIVER={MySQL ODBC 3.51 Driver};" + "SERVER=" + HostName + ";" + "DATABASE=" + Database + " ...Show All
Windows Forms What the intention of the "components" variable?
For every IDE generated UserControl C# file, there are some identical code : /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="dispos ...Show All
SQL Server How do I specify a "trusted connection"?
I'm trying to get a utility to run, and it's insisting on a user or trusted connection. I'm using SQL Server 2000 running locally. I've tried every login name, default, user I can think of but it rejects all of them. What should I use for "trusted connection" Is your SQL server running under Mixed Mode authentication or windows only Is this the error " Login failed for user 'sa'. Reason: Not associated with a trusted SQL Server connection" Check this to see what your authentication is http://sqlservercode.blogspot.com/2006/01/login-failed-for-user-sa-reason-not.html H ...Show All
