ALFKI's Q&A profile
SQL Server Problem starting MS SQL server 2005 service
Hi, Anybody kindly help me. We have windows server 2000 and sql server 2005 on the same machine with 15 clients. There was a power failure. The sql server is automatically stopped. When we tried to start the service we are getting the error as action failed please check application event log for errors. This has happened for the 2 times, kindly tell me why this happens and what precaution we can take and is there any setting we are missing. Since I am newbie to sql server and windows server I am unable to solve this problem. Thanks I could solve the problem. but when tried to access the sql server from remote machine through SQL server native client connection I am getting the message connection failed SQL State ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Compile Error
I saved my project to d:\Code\C#\myspacewar1 once I did that it would no longer run with an error of System.IO.FileNotFoundException was unhandled Message="D:\\Code\\C" Source="System.Drawing" StackTrace: at System.Drawing.Icon.ExtractAssociatedIcon(String filePath, Int32 index) at System.Drawing.Icon.ExtractAssociatedIcon(String filePath) at Microsoft.Xna.Framework.WindowsGameWindow.GetDefaultIcon() at Microsoft.Xna.Framework.WindowsGameWindow..ctor(Boolean allowUserResizing) at Microsoft.Xna.Framework.WindowsGameHost..ctor(Game game) at Microsoft.Xna.Framework.Game.EnsureHost() at Microsoft.Xna.Framework.Game..ctor() at Spacewar.SpacewarGame..ctor() in D:\Code\C#\MySpacewar1\MySpacewar1\S ...Show All
SQL Server Stored Procedures Not Converted or copied to SQL Server 2005
I am converting about 50 databases from Windows 2000 and from SQL Server 2000 to a totally new 4 processor Server 2003 with SQL SErver 2005. I used the Database Copy Wizard in SS2005 to do the transfer. After making sure the databases were big enough to hold the new Masterdatabase everything went well... except none of the stored procedures from any of the 50 databases copied from SQL Server 2000 to SQL Server 2005. What did I do wrong And how do i fix it. Also, even though I changed the default database, the wizard did not reflect the new SAN location for the Data and Log files. I had to do each one manually. OK - I checked around and most agree that the problem may exist in one or mor ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Future D3DX's not supporting SM1.x??
I saw this in the October SDK readme October 2006 DirectX readme! wrote: Preview Release of the new HLSL Shader Compiler for Direct3D 9 Targets This release has a beta version of d3dx9d_31_beta.dll that includes the Direct3D 10 HLSL compiler enabled for Direct3D 9 targets (shader models 2.0 and later). The new compiler has no support for 1_x targets. This debug-only DLL allows developers to utilize the new Direct3D 10 HLSL compiler for their Direct3D 9 shaders, and will become the default compiler for all Direct3D shaders. Please try the new compiler by building your application with d3dx9d_31_beta.dll instead of d3dx9d_31.dll. Does this mean in future SDKs SM 1.1 will not be supported any more, or is this limitation j ...Show All
SQL Server SQL Sever 2005 - creating alias names programatically
Is there a way we can programatically create a SQL server Alias name (SQL 2005 - SQL Native client configuration) using either T-SQL, C# etc. - Manmeet Hi I'm having trouble creating a ServerAlias. I have no idea what the ConnectionString property needs to be and can't find any example for it in BOL. Could you please give an example of what this should look like.. Many thanks in advance. Rob. ...Show All
Visual C# How do I get 2 buttons on a form, the first one moves to form2, the second quits the app?
Im a newbe big time. I'm working on an RPG (to help develop my skills) that features 3 buttons on form1. The first is a button which is suppose to close form1 and open form2 for charicter creation. The second button is a credits button which simply pops a messagebox saying I made the game (which this button works), but button 3 is suppose to quit the program altogether. How do I get button1 to close form1 and open form2, and how do I get button3 to quit the program Please be very specific (like, dumb it down!). I have only experence with QBASIC and just stared with C# like 4 days ago. Thank you for your time and patience. thats not the correct way of doing things why ...Show All
Visual Studio 2008 (Pre-release) Sending selected tree view item data to model (how to bind)
Hi All! I am trying to develop simple WPF-based application and faced one problem. I have UserControl that contains TreeView. This tree view is bound to hierarchical Categories structure. User can select one particular category and view the contents of the selected category in some list view (this list view is not from the same UserControl). Now I want to have Application.SelectedCategory property which will always contain the category selected in tree view. This property will be used in other user conrols. I tried to establish OneWayToSource data binding using TreeView.SelectedItem property, but the attempt failed because this property is get-only and it is not registered as dependency property. What should I do Handle selection change ev ...Show All
Game Technologies: DirectX, XNA, XACT, etc. hey can some one help?
hey guys im new at at all this code stuff what code does it use to make a game on xna and can u make a first person type of game on the xna ... and could i do this if i can Thanks to all.. Certainly XNA can be used to make an FPS, but if you are new to programming ("this code stuff") you're better off working through some smaller games first. For example, Tic Tac Toe, then a Tetris clone, then perhaps a side-scrolling platform game. I know that's probably not what you want to hear, but these small games will teach you most of the skills you need to write bigger games, and you'll learn to program well enough so that a larger project won't collapse around you in a spaghetti co ...Show All
Visual Studio Tools for Office Adding a large amount of contacts
I've hit a road block. I am writing a .NET Outlook (2003) plugin to update my users contacts from a database that our clients update. I have managed to get the plugin button up, and clicking on the button gets the contacts and starts adding them. However, the code has added the 249th contact item, I start getting First Chance exceptions. Is there some kind of restriction that stops me from adding more contacts This is a huge issue for new users in the group, becuase we have over 5000 email address that need to be pushed out to the Contacts Folder. Here is my code for adding the contacts. Please tell me if I am doing something wrong or if there is a restriction: foreach ( DataRow dr in dt.Rows) { try { Out ...Show All
Visual Basic Compare 2 objects
hello. A question please. I do this: dim a as new person --- class person dim b as new person a.name = "Bryan" a.tel = "1111111111" b.name = "Bryan" b.tel = "1111112222" I'd want to compare the 2 objects. How can i do that Thanks... ok, for all, thanks very much !!! I now deduce that I can't compare 2 whole objets. I can know if theirs contents are diffrents comparing each properties of each one. ("Return other.Name = Name And other.Tel = Tel"). Am I rigth Thanks... ...Show All
.NET Development Visual Studio Convertion Type To DatatypeEnum.adNumeric
Hi everyone, Please Help me solving this Problem... I Have a Deadline on Friday!!! db2 = New ADODB.Connection dbConn = "Driver={Microsoft Visual FoxPro Driver};SourceType=DBF;SourceDB=C:\PATH\DATA;Exclusive=NO;Collate=Machine;NULL=YES;DELETED=NO;BACKGROUNDFETCH=YES;SCALE=0" db2.Open(dbConn) dim tmpAmount as Decimal = "3012.01" Conn = "UPDATE Test.DBF SET Purchase='" + tmpAmount + "' where ID='1001'" rs3.Open(Conn, db2) error: [Microsoft][ODBC Visual FoxPro Driver]Data type mismatch. The Purchase field in the .DBF is in a numeric format. Hi, Change your sql statement to this : Conn = "UPDATE Test.DBF SET Purchase= ...Show All
Smart Device Development SetTimer not working ..Callback not coming
I am using SetTimer for timer callback functionality. I tried SetTimer(lHnd, TIMER_GENERIC, 4000,NULL); and i listen fro WM_TIMER message in WndProc of my application .. I also tried . SetTimer(lHnd, TIMER_GENERIC, 4000,(TIMERPROC)MyTimerCallback); but neither of them works ..I never get a call back Any help will be appreciated Do you have a GetMessage/DispatchMessage message pump running Do you have any other messages being processed by you WndProc Is your application single or multi-threaded Thanks Tony Kitowicz, Microsoft ...Show All
Visual Studio Express Editions Update TextBox based on Variable
I am reading a text file using StreamReader. ln = MyReader.LineNumber My text file has about 20 lines, I am only need the first 11. I would like to populate the textbox with the first 11 (I have the code in place to do this, just need to update textbox 1 through 11. I guess I need to know how to concatenante the control with the variable. textbox(ln).text = currentrow(3) textbox(ln).text = currentrow(3) with ln incrementing each time. your concantenation method will not work... try: Me . Controls ( "textbox3" ). Text = "Blah" ...Show All
SQL Server bulk insert much to slower on SQL2k5 in compare with SQL2k.
To understand the problem that I have, I will exemplify but the problem it is general in the SQL2k5. So any BCP insert it is slower with the SQL2k5 in compare with the SQL2k, doenst matter the edition of SQL2k5. 1. First test environment comparing Enterprise versions of SQL2k and SQL2k5 with memory seted 4GB RAM available on the computer it is 6GB Ram(awe enabled), Windows Server 2003 R2 SP1(this window version was special installed because I got the Info that can work better with the SQL2k5).Changing the allocated memory for the SQL Server makes no difference because the SQL Server need only maximum 200MB Ram for the import. I was installing the system database from the both system on the same hardisk and the client dat ...Show All
Windows Forms keep listview item selection / Microsoft Bug VS 2005 SP1 Beta?
Hi, I'm trying to keep my listview selection while switching tabs in my tabcontrol. this is the code I have: Private Sub listviewView_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ListViewItemSelectionChangedEventArgs) Handles listView.ItemSelectionChanged listViewCurIndex = e.ItemIndex End Sub Private Sub Tab1_enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Tab1.Enter If not listViewCurIndex = 1000 Then printerView.Items( listViewCurIndex).Selected = True End If End Sub How can I do this jmsigler2, just to report - I've just tested this on this configuration configuration (Windows Wista RC1, .NET FX 2. ...Show All
