learningdba's Q&A profile
Visual Studio VSS icons in VS
I have been using VSS2005 together with VS2005 for a little while now. I have managed to figure out what the meanings of some of the VSS icons that get displayed in the solution explorer window and in the VC class wizard windows are, but I recently saw an icon that I was not sure about. Is there a list somewhere that gives a detailed explanation of meaning of the various icons Thanks. I do not believe that we have a list describing what each icons mean. But if you describe what icon you have questions on, I will be happy to tell you what they mean. Thanks, Barry ...Show All
Smart Device Development how can i bind listview items like a listbox ?
hellow >> first , i wanna to thank some very good members here who help me and other freinds > my question about how to bid listview items to display a column from a table to look like listbox with checkboxes please help us , we need this too ! See my blog for info on how to bind the ListView: http://blog.opennetcf.org/ayakhnin/PermaLink.aspx guid=e2e7f6d3-c356-473f-87d2-127fb54ec531 ...Show All
SQL Server Using on lowest level LastNonEmpty and then Total value
Hi! I have 4 tables - Visit data, Customers, Products, Time. Customers are visited several times in a month, and measures are taken. We calculate just the last measure. I would like to get sum of all last measures for all customers by months. I have used LastNonEmpty to get last values of customers products for months. In cube when going to last detail I get the correct values, but the sum is then functioning as LastNonEmpty, where I would like to get a sum for all customers. Example Year 2006 Month January 2006 Tescox 200 mm Sparx 100 mm Total 200 mm I would like to get total 300 mm, and just use LastNonEmpty on lowest detail. Only solution ...Show All
Visual Studio The Operation could not be completed. No such interface supported
I have visual studio 2005 Team Edition and visual studio 2003 installed. After removeing the CTP edition and reinstalling 2005 and 2003 serveral times. I finally have everything working again. VS 2005 displays a message box with the error message whenever I try to search the help documentation. If I am in the IDE the help page will launch with the message box. If I click the search button in the help tool bar the message box appears again and searching fails. Please fix this. Can you try the following: === If you're seeing the "Common IDE Package Failed to load" error, try the following: Open a command prompt. Run the following command and hit "y" when prompted. r ...Show All
SQL Server SQL Database connection set up in Global.asax.vb for multiple users
We have an application where users log in and set up a ConnectionString based on the login-info. As to now, we have used Application.Contents("conn") = (strConnectionString) in Global.asax.vb (Application_Start section) and then in the in the webforms we use Dim con As New SqlClient.SqlConnection con = New SqlClient.SqlConnection(Application("conn")) con.Open() ...... ...... con.close() (Each user has their own sql database that they connect to using the same scripts.) The question is: When many users are logged on at the same time, will the use of Application.Contents be a safe way to connect to each users own database or is there a possibility that users suddenly will try to establish a connection to a databa ...Show All
Windows Forms Messagebox
hi Is there anyway so my "messagebox.show" buttons will be in different language meaning instead of "Yes/No" Thank you for your reply but it didnt work Public Sub main() Dim ci As New System.globalization.CultureInfo(" de-DE ") System.Threading.Thread.CurrentThread.CurrentCulture = ci System.Threading.Thread.CurrentThread.CurrentUICulture = ci Dim frmMain As New Main frmMain.Show() Application.Run() End Sub ...Show All
.NET Development Critical bug in Microsoft.Win32 class RegistryKey
There is a critical bug in a .NET class RegistryKey. The class/methods should be able to write DWORD values (max ff ff ff ff), but it is only able to write ff ff ff and breaks with ArgumentException when ff ff ff ff is used (which is actually a normal max DWORD value). It can't even read a max value once it has already been into registry. Could you post the code you are using because I have no problems creating DWORD values of the value you specified. int nValue = - 1 ; //0xFFFFFFFF key.SetValue( "Test" , nValue); int nNewValue = Convert .ToInt32(key.GetValue( "Test" )); //Ditto You should be aware that any type other than an int will be written as a string value. If ...Show All
Visual Studio Express Editions cl.exe really missing from install dir
Some months ago I installed VC Express 2005 + SQL Server and MSDN, then after a while I uninstalled them from Control Panel -> Add Remove Programs to get some space on the disk. But some of them refused to uninstall, so I removed the rests by hand (not a good idea I understand, but too late). So far so good, yesterday I tried to re-install VC Express again. First, the setup program does not follow the usual sequence, but proposed me to add new components, uninstall it or repair. I tried uninstall but it failed with a messsage saying that it cannot determine the order of installs. OK, second try: repair. It downloaded some files on the internet, did its job and exited. I start the VC Express from the Start->Programs and it seems to wo ...Show All
Software Development for Windows Vista Difference between the Terminate and Throw activity?
Hello, What is the difference between the Terminate and the Throw activity They both stop the running workflow instance and they can also both send an exception to the host application. The throw doesn't always terminate the workflow : ex: if in a sequenceActivity you have a throwActivity and you set the sequenceactivity faulthandler, your workflow can go on; with a TerminateActivity your workflow will be in the "Terminated" state. Serge ...Show All
Windows Forms TextBox control without caret
Hi, I have a following requirement. We are developing Windows application in VB.Net. There is a requirement to make the textbox readonly, so that the user cannot modify the text, at the same time the textbox should in disable color. We went with two solution but both of them failed Sol 1 : We disabled the textbox and set the Background color to be highlight. This was working fine but the forecolor was in grey which our client disliked. So he wants the textbox to be disabled, forecolor to be black and background color to be White. Sol2 : We inherited textbox control and exposed a new property so that user cannot modify, but we are unable to remove the caret. Can anyone tell how to high the caret in the textbox i ...Show All
Visual Studio Team System Minimum previlege required to Deploy database project into Database Server
hi, I want to know what are the minimum SQL permissions required to deploy database project onto the database. Can a user with ddl_admin access do the deployment I am very new to databases. Not much aware of the administration part of it... Please help... Thanks. It appears from your script that you are using CTP6. We had a known issue with the db_chaining and trustworthy options prior to CTP7 - these require sysadmin permissions to execute. We now wrap these up and skip 'em (with a warning) if the user trying to execute the script doesn't have the sysadmin role - the rest of the script should complete successfully. I'm guessing that the ALTER DATABASE statement that's throwing on you is not the first one, but the big ...Show All
Visual C++ C++ Newbie needs a c++ expert converting bits to bytes
Hello all, I need some C++ experts to help me with a problem I have in converting a PBM file to a PGM file. These files are used to store digital images. The PBM file uses monochrome to display images while the PGM file is a grayscale image. I have written a test program that works somewhat. The problem I have is that the PBM format uses 1 bit to represent a pixel while the PGM format uses 1 byte to represent a pixel. Therefore 1 byte in PBM format represents 8 pixels. I need help in converting those bits to bytes for the PGM format. I am not sure how to achieve this. I have never really had any experience in masking bytes. Here is my code thus far: #include <iostream> #include <fstream> #include <string> using namespace ...Show All
Smart Device Development How to add a voice tag and speed dial for application?
Dear all: I want to write an application that can add speed dial or voice tag for applications( not for contact) on Windows CE smartphone. But I cannot find a lot of informations and don't know how to implement it. And is anyone can give me some suggestions or informations to do it Thanks and Best Regards ...Show All
.NET Development FTP entire folders with FtpWebRequest in 2.0
I'm trying to use FtpWebRequest to get entire directory (folder) contents from an FTP site including sub-folders, etc. Basically I am using recursive ListDirectoryDetails calls to build the folder structure first. Here's some pseudo-code: method foo( localTargetDir, uri) create new ftpwebrequest with method set to ListDirectoryDetails get response and store it as text close response check response text for any sub directories for each sub-directory found in response set localTargetDir equal to currentLocalTargetDir plus sub-directory name create localTargetDir call foo with localTargetDir and uri + sub-directory name end of for each end of method This seems to work fine for the ...Show All
SQL Server Syntax error
I am receiving a error when running a report. "Syntax error converting the varchar value 'RM' to a column of data type int." I checked both the datasets that return the data and there both set as Char(2). I know that the colum has both numbers and alph. Anyone, is there a syntax error that I am missing in the query's Or knows a work around Query 1 ="Select distinct jomast.fjobno, jomast.fpartno,jomast.fopen_dt " & "from jomast " & "join inmast on jomast.fpartno = inmast.fpartno " & "Where fjobno not in (Select qalotc.fcdoc from qalotc) " & "and inmast.fgroup = 'FG' " & "and jomast.fstatus = 'RELEASED' " & "and jomast.fpartno <> ...Show All
