igor_22's Q&A profile
SQL Server SQL 2005 database will not attach in XP
We are testing our product installation and run into the following problem on Windows XP and Server 2003, but not 2000: I am trying to attach a database using a command line program that we made, but get the following error: Could not open new database 'Launcher5'. CREATE DATABASE is aborted. File activation failure. The physical file name "C:\MARC\MARC5\Data\Launcher5_log.LDF" may be incorrect. The log cannot be rebuilt when the primary file is read-only. PMJI, I wasn't the original poster but am having the same issue. I have an application that I need to distribute with Sql2k5 Express; our MSDE-based solution works just fine but of course MSDE won't install on Vista.... My installat ...Show All
Visual C# Backgroundworker + Sql
Hi I am using a Backgroundworker do load media files from a Sql Server. The user should be able to cancel this operation, but I am not sure how to implement this. If I call backgroundWorker1.CancelAsync(); there is no while-loop I can stop. private void backgroundWorker1_DoWork( object sender, DoWorkEventArgs e) { ... XmlReader myReader = XmlReader .Create(sqlCommand.ExecuteXmlReader(), mySettings); .... } Thank you Hi, This may help: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=754662&SiteID=1 ...Show All
SQL Server Casting...
I've got an ftp task that will be downloading a couple of files each night. today they're called blah20060830blah the date value in the middle changes each day. I'm trying to adjust this value with an expression. The expression doesn't want to cast my getdate function into a string that this property will accept. I know i'm missing something stupid. Thank you killerless wrote: AWESOME, thanks a lot, i'm looking forward to the day when the variable expression can be created w/ the expression builder. (I'd settle for a text area a this point) Install Sp1 and you'll be able to killerless wrote: Is it possible to call a stored procedure From a expression No! Sorry. ...Show All
Audio and Video Development TIMING :Using "inherit" for an animated property and more
I have two questions: 1. Can "inherit" or "auto" be used for an animated property, If yes then, Does "style" inheritance occurs from the loaded DOM or the live DOM 2. For style properties which have Initial="auto" and inherited="true". Does it mean that the default value is inherited from the parent element Thanks in advance Chapter 7.5.2.4.3.2 and the tables 7.5.2.4.3.2-1 - 7.5.2.4.3.2.-4 have information on values which are returned by AnimatedProperty API in such cases. Based on that table the "auto" string value can be returned only by style:breakBefore, style:breakAfter, style:display, style:displayAlign, style:suppressAtLineBreak. Most of the other properties should return "the normalized string of len ...Show All
SQL Server sp_send_dbmail generate ansi file attachment format
In sqlmail, it uses "@ansi_attachment=true" to set up your attachment as ansi format. is there any way to do the same in sql server 2005 I have installed SP2 for SQL server 2005 but still have the problem with ansi file attachments. I not only have .csv but also .txt that are load in to other systems and need to be ansi. Is there any other way to do this. Cheers Roger ...Show All
Windows Forms db Update problem.
Hello. Your help is very much appreciated. I am using MySql as backend for .NET(C#) Win app. I created data-bound form. After updating the fields on the form, although the underline datatable was changed, the datatable's rowstate is "Unchanged". (should be 'Modified'). Therfore, when I try to update the database through dataAdapter.Update(ds) nothing happens. The code I use to get the data from the db (works fine) MySqlConnection myConn= new MySqlConnection("Server=localhost;" + "Database=alpha;" + "User ID=root;" + "Password=sa;" + "Pooling=false"); myDataAdapter.SelectCommand = new MySqlCommand("select * from contacts&qu ...Show All
Windows Forms Overriding Default Value of Existing Property
I have this inside a listbox derived control <DefaultValue(GetType(DrawMode), "OwnerDrawFixed")> Shadows Property DrawMode() { get return MyBase.DrawMode set MyBase.DrawMode = Value } However when I build the solution the property in design-mode is switched back to Normal. I already removed any reference to DrawMode in InitializeControls(). So I changed it to Private mDrawMode as DrawMode = DrawMode.OwnerDrawFixed <DefaultValue(GetType(DrawMode), "OwnerDrawFixed")> Shadows Property DrawMode() { get return mDrawMode set mDrawMode = Value MyBase.DrawMode = ...Show All
Game Technologies: DirectX, XNA, XACT, etc. ... TRIDEX VB.NET dimistified Can it be done YES YES YES YES .............
ok guys and girls a lot of people think you cannot use vb.net with XA, well either I am crazy or I am a wizard, it can be done the same way you do with c#, I have code for all the vb.net users who wold like to try it on my website, http://www.tridexconsultants.co.uk/pages/DirectxClasses.htm I am just waiting for the conetent pipe line stuff to get some animation into the models!!!! Every thing can be done including creating game components e.t.c, No secret to refrence an Assembly!!!! ... Tridex... If what you say is true then excellent stuff !! However - someone posted something similair in that they started a vb.net project and just referenced the XNA, which worked. BUT somew ...Show All
SQL Server Executing stored procs using a view
Hello, Does anyone know how to execute a stored procedure within a sql view Or, if it's even possible Any help would be appreciated... Dave It's not possible to execute stored procedures within a View - Views are not intended to be used in this way. I guess you could create a UDF that called an Extended Procedure and then utilise the UDF in the View. One other possibility would be an InsteadOf Trigger that executes a stored procedure whenever an Insert, Update or Delete is performed against the View. What is it that you are trying to achieve Is there a workaround Chris ...Show All
Visual Studio Express Editions Linking Forms - Please Help! Im New to VB
How do you make a command button link to another form in the same project it the name of your button is btn if no then. change the code as fallows Private Sub btn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles <your button name>.Click dim frm as new Form2() frm.Show() End Sub it will better you double click on the button in the desing form and on the code put the two line to show the form in side the click event. dim frm as new Form2() frm.Show() ...Show All
.NET Development obtain the same value
Hello, i'm a freshman on C#...,seems that's a simple question but i can't do it..., please give me some clue on it... i've a text file as below, every string line ends with CR & LF A A B B C ..... how can i retrieve the lines which has the duplicated ones, as the text file, there're two lines of A & two lines of B... etc. please forgive me if it's really very easy... thanks Richard Hello OmegaMan, thanks for your guidance, my code is almost done. thanks again Richard ...Show All
.NET Development MD5 Algorithm
Does anyone has the source code to encrypt and decrypt md5 strings Thanks Example C code : http://msdn2.microsoft.com/en-us/library/aa382380.aspx ------------------------------------------------------------------------------------------------------ mehmet vedat sivri ...Show All
Software Development for Windows Vista Dynamic URL's for invoke webservice activity
I have a webservice invoke activity that calls a webservice at a particular URL. Now I want my Workflow to invoke a different webservice URL. To change the URL for webservice invoke activity dynamically, I did the following : Select the web reference of the WS and Select properties. Updated the Web Reference URL to the required WS URL Did "Update web reference" to update the proxy. Now the runtime invokes the correct webservice. However, the webservice activity in XOML still shows the URL with old value in design view. Is there a better workaround Thanks Karthik Hi, Use the InvokeWebServiceActivity Invoking event. It has a parameter of type InvokeWebServiceEve ...Show All
SQL Server Rendering report when one dataset times out
We use Report Server reports to provide our support staff with views into several production databases on various servers. The most commonly used report is a summary of the data on several production servers. The report contains multiple datasets. Each dataset points at a different server. If one of the servers is down some reason, one dataset fails to execute, and the entire report fails to to render. What I would like is some control over this behaviour. If a given data set fails to execute, I would like the report to continue and render the results. The failed data set would obviously show no data but this is fine by me. I know I can place timeout values on each dataset. But this doesn't help me. Can I structure my report or SQ ...Show All
Visual Basic Computer info?
How would I show PC info as in CPU(Name/GHz) RAM(total in MB) Sound(card name) Video(card name) Thanks, That was simple surprised I didn't no that already. But now the first line is coming up unhandled System.Management.ManagementException was unhandled Message="Invalid parameter " Source="System.Management" ...Show All
