cheekster's Q&A profile
SQL Server Can't copy a database
I want to make a working copy of a database to a new name on the same server. I use the wizard giving the same name for source and destination, but giving the db copy a new name. I get an error that says "One or m ore arguments are invalid." But no hint as to what is wrong. Is it that I can't copy on the same machine You want to do a 'backup database' and 'restore database' to create a new database based on the old database. Here is a script that you can use. use master go declare @db1 sysname,@db2 sysname, @name1 sysname, @name2 sysname, @file1 sysname,@file2 sysname, @sql nvarchar(1000) set @db1='Northwind' set @db2='NewBD' set @sql='select @name1=name,@file1=filename from '+@db1+'.. ...Show All
Visual Studio Double Buffering help needed
I am trying to reduce flicker in my application by using double-buffering. Unfortunately, the result is not what I was hoping to get. Is there any way to view the content of the memory DC while drawing different components on it Thank you. Sam >>> Is there any way to view the content of the memory DC while drawing different components on it What do you mean can you be more specific still you have flickering checkout the article from codeproject ...Show All
Community Chat Windows Embedded in Kitchen Appliances - Possible?
Hi. I'm a fan of Windows and I've grown fond of Microsoft for many years. I mean--I've used Visual Studio, Microsoft Office, Windows Vista, UTStarcom PPC6700 (Alltel Wireless), Microsoft Exchange Server (for learning purposes with Windows Server 2003), etc. and I wanted to go beyond computers and smartphone/Pocket PC. Is it possible to embed Windows in kitchen appliances (please no flaming/bashing; thanks) like oven, coffee maker, microwaves, toaster, etc. I mean--I'm serious about programming a C# application to check for status and give me visual feedback from those appliances! It'd be so cool that I could tell an oven to cook my pizza at 350 degrees for 20 minutes and give me the feedback to my Pocket PC SmartPhone device! Plus, w ...Show All
Visual Basic Dynamic drawings in VB.Net
Hi, Is there any VB.Net equivalent to the vbXorPen and vbNotXorPen options of the DrawMode property in VB6 These options were very usefull to create dynamic drawings. Thanks by advance, Pierre I think the only option is to use GDI Calls if you wish to use those functions (wrappered by the graphics object GetHdc and ReleaseHdc methods). There doesn't seem tto be the ability to do what you want directly. However, the new drawing techniques available don't really require the old VB6 methods (drawing 'rubber bands' and such). ...Show All
Windows Forms Working with TreeView and ListView
Hi @ all ;) i have a tool, where is (like the Windows Explorer) on the left side a TreeView and on the right side a Listview. Now, when i click on a node the ListView shows correctly the right path of the Node. Eg.: C:\windows. Thats ok ;) But now my Problem: How do i open the right path in the TreeView, when i click an Item in the Listview I think it goes with ListView1.SelectedIndexChanged, but i don't how. I searched for it mor than 3 month *smile*, and no body can help me ! cu Alex hi ;) something is going: My Prog starts with the Letter C: . Thats fine, but it don't goe's deeper. E.G. : MyDokuments is at : C:\Lokale Einstellungen\User \....\ MyDokuments. The Recursion don't works . ...Show All
Visual Studio 2008 (Pre-release) Writing a web test against Service.SVC
I have written a web test against an asmx web service, however when I try to create a web test against http://local.search.services.seattle.gettyimages.com/Service.svc I get an error 400 HTTP/1.1 400 Bad Request Content-Length : 0 Cache-Control : private Date : Fri, 26 Jan 2007 19:43:54 GMT Server : Microsoft-IIS/6.0 I have tried going against the above service using .Net web service studio, and have had no problem. I was successful in writing a webtest agains Service.SVC without adding any additional code to the original web service. What was nessasary was to add an additional header - SOAPAction=blablabla I hope this helps others, Tom ...Show All
Windows Forms DataGridView Survey
Hello WinForms users, My team, which owns Windows Forms, would like to gather some information about the new DataGridView control that shipped in the .NET Framework 2.0. At the high level, we would like to figure out: - which features of the grid you are using - which features you wish were available - what works well, what does not - what’s the typical size of your grid Any feedback you may have would be welcome. If time permits, you can also mark the features you use in the table below (this is not an exhaustive list, just a small subset): DataGridView feature Used unbound mode databound mode ...Show All
Software Development for Windows Vista Wrong driver in Vista's Windows Update. Do not DISTRIBUTE it!
Microsoft should immediately withdraw "VIA/S3G Unichrome IGP" video driver from distribution and auto-updating. This driver prevents Windows Media Center from working correctly. Under this driver the media center displays itself scrambled. The Microsoft's driver is fully incompatible and so far I could not see any advantage to use this one than better original XP version of it that names: VIA/S3G KM400/KN400. Hello spammer, The MSDN forums are geared more towards developers, I would suggest posting this question in the TechNet Vista Hardware forums here http://forums.microsoft.com/TechNet/ShowForum.aspx ForumID=714&SiteID=17 as it has to do with a driver usability issue. Also since this is ...Show All
Visual FoxPro VFP 6 - Auto-numbering with the characters
I'm trying to write the code to get the desired result: - CN060901, CN060902, etc... Am lost with the existing code (as below) and wld appreicate if you help to correct my existing codes (highlighted brown front). CN060901 stands for:- 06 - Year 09 - Month 01 - Serial number (dn_no from the ".dfbnos" table) **dbfnos is the table name. **dn_no is the field name in the table (.dbfnos). It is the auto-numbering, starting from 01. . Anyway, the date format on the form is 28/09/2006. [CODE] if empty(thisform.pf.pg1.invno.value) select dbfnos goto 3 && Remarks: For Credit Note select dbfbcn seek TRIM('CN' + right(str(dtoc(df_date),4),2) + right("00"+alltrim(str(month(df_date))) ...Show All
Software Development for Windows Vista Program that accesses database failing in Vista
Hi, Thanks for the help here, I found out that it is because the software is not Vista digital signed, so I will have to disable quite a few signature checking before it allows the program to be installed. However I still don't have any idea why it allows those built in InstallSheild 7 to go through without any problem. After the installation, I also released that the program can't work in Vista too. Even if I have set to Win XP SP2 compatible. The program is calling a database which is in Microsoft Access format. Everytime the application trying to open the database, it will be prompted that it is currently being used or have no rights to access it. I am already in Administrator rights, and shouldn't it be working if we have set ...Show All
Software Development for Windows Vista GetAvailableVidMem with DirectX 10
Hi The problem details are: Setup: -------- I have a Windows Vista(RC1) machine with Intel Graphics card. The DirectX version 10. Problem: ------------- When I run my application which uses the API GetAvailableVidMem the application gives an error "A hardware only DirectDraw object creation was attempted but the driver did not support any hardware." Analysis: -------------- When I run dxdiag.exe on my machine,in the Display Tab it shows me DirectDraw Accleleration and AGP Texture Acceleration-Not Avialble.I think the problem is because of this(I think so because when a disabled DirectDraw Accleleration on another machine with Windows Xp and DirectX 9.0C it gave me the same error) Help Required: ---------------- ...Show All
Windows Live Developer Forums IE7 Beta 2 Enables XMLHTTP without ActiveX
One of the biggest requests we got during the contest was to make XMLHTTP and XMLDOM functionality available without requiring ActiveX provisioning. I'm happy to announce that there is now a way to do this. IE7 moves the XMLHTTP and XMLDOM functionality into the core IE binary. This means you can now create Activity Apps using XMLHTTP and XMLDOM functionality without needing the ActiveX provisioning flag. IE7 Beta 2 is available from http://www.microsoft.com/ie -Scott IE7 web browser control is throwing exception "Not Implemented" when we try to use xmlhttprequest object. Is this a bug ...Show All
Visual Studio 2008 (Pre-release) RTC application in C#
Hello friends, Right now I am building an application which is based on RTC (Real-Time Communications) technology. P roblem I am facing is to use RTC events in C#. I have developed RTC application in VB and it works fine but when I run the code in C# (after successful conversion from VB to C#) the events are not occurring which occur normally in VB application. For example when any incoming call comes an event should occur which occur normally in vb ap ...Show All
SQL Server Create an automatic SUM ROW
Hello. In a previous program i used to create reports, I had the option to enter a "SUM ROW". I saw that in RS2005 I can check the "add total" when using the report wizard and it will create for me a row with SUM for my column. Is there a way to create a row like this automatically with out the wizard (a sum row for all my columns instead of creating a textbox with "sum" for each column) Thanks in advance, Roy. Hi Jens, Thanks for the replay. I don't want the " standard behaviour" of the wizard to change. I'll like the "SUM" je is makeing in the entire row. what i whanted to know is: if i'm making my own report, not with the wizard, is there a simple way t ...Show All
.NET Development export to excel
how can i export the data from gridview to excel file without do any looping by using .net framework 1.1. If my data is too large it is posible to export Kang, You can use an OLEDB connection to Excel from your code. An example of an OLEDB connectionstring to excel is : "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\MyExcel.xls;Extended Properties=""Excel 8.0;HDR=Yes;IMEX=1""" It's limit to 65000 rows per worksheet. ...Show All
