BorisVG's Q&A profile
SQL Server NUMERIC or INTEGER ?
Hi, Is there any difference between NUMERIC and INTEGER datatype I am currently migrating my application from oracle to sqlserver hence i need to know the best equivalent: Oracle var_int int(38); SQLServer: @var_int numeric(38) or @var_integer integer Please let me know the best equivalent --Srik Use integer in SQL Server for Oracle int. NUMBER is close to NUMERIC. Numeric implementation between Oracle and SQL Server is also slightly different. It has to do with storage and how we calculate precision/scale of resulting expression. It is best to understand those rules before using numeric other ...Show All
Visual Studio Team System Warning about obsolete SuppressMessage attributes
Would it be possible to have code analysis warn about obsolete SuppressMessage attributes in the code it checks When changing the code of a metod, a SuppressMessage attribute may become obsolete. so over time, your code can become 'littered' wth obsolete SuppressMessage attributes. It would be nice if code analysis could flag these attributes as being obsolete. It looks as if this should not be too hard. Code analysis has to search for attributes anyway to suppress messages during analysis. So a check if an attribute has really been used to suppress a message does not seem that hard. Thanks, Erwin Derksen ...Show All
.NET Development Need help in passing Custom Object through Webservice
I have a BL.dll that is referenced from the web service and the client GUI. Let's say Employee object is in BL.dll. In the webservice there is a method that requires Employee as the parameter. So on the client side the code will be like: ... myWebService.foo(BL.Employee); on the webservice the code will be like: [WebMethod] public void foo(BL.Employee) { ... } when I compile the project I get error saying that I cannot convert type BL.Employee to myWebService.Employee. Does anybody know how to get around this Devion, One way to do this is to change the parameter type of ...Show All
Windows Forms BindingNavigator & Data Binding Problem
When I use BindingNavigator to add new record, I has a problem: I want to save time for input informations, so I set default value for some controls which has data bindings, but it's not working. for example, I always set DateTimePicker's value to System.DateTime.Now, set CheckBox's Checked to False. If I don't change the default value manually, when I try to save the new record, it'll said the value is null. When I use DateTimePicker, I must select a different value with the default one, otherwise it'll said the value is null. What should I do to fix this Hi! You can add ColumnChanging event for the ...Show All
Windows Forms Using tab control
i dont know the command to access a tab and see which one is the current one For example a Tab control named "Options" with "tab1" and "tab2" i would like to only perform a check when i am on tab2 how do i know this i was looking and i just could not find how to determine this Thanks the names are ...Show All
Visual C# Printer & C#
Hi how can i add a virtual printre automaticly using C# for example Adobe Acrobat added virtual printer so when you want to print a microsoft word file you should to select the type of printers .... hp ... image... Acrobat pdf so i need to add a vitual printer like Adobe Acrobat ...Show All
SQL Server Hotfix for "Cannot apply value null to property Login" error available?
It appears that Microsoft has fixed the "Cannot apply value null to property Login" bug in SSIS, according to this web page: Click here for bug details Question: is there a hotfix available for download ...Show All
Audio and Video Development Coming soon: HD DVD Interactivity Jumpstart
Some people have been asking about tools to help author HD DVD interactivity. Microsoft is planning to post some utilities in the next few weeks that we're tentatively calling "HD DVD Interactivity Jumpstart". This software will include some utilities to help you view HD DVD interactivity. Regards, Steve Geffner Microsoft Awesome!!!!! ...Show All
Visual C# Counting bytes passed in streams written to by StreamWriter.
Hi, Is there a stream implementation or ICryptoTransform implementation similar to the md5 which simply counts bytes rather than calculates a hash. I am writing text to an encrypted file and need to know the md5 and size of the raw unencrypted byte data. I've seen code for calculating md5 of a stream, but need one which simply counts bytes. Something like this // File Stream FileStream fileStream = this.fileInfo.Open(FileMode.CreateNew, FileAccess.Write, FileShare.None);' // Encrypter wraps File Stream CryptoStream cryptoStream = encrypter.BuildEncodingStream(fileStream); // Md5 wraps Encryption CrytpStream md5Stream = = ne ...Show All
.NET Development .NET UI Application Crash
Hi, We have a vb.NET client UI application which calls a number of web services. The application is intermittantly crashing completely without any evidence of an exception etc. The application is single threaded for the most part, the only area that deviates is a class managing serial port comms via win32 calls. (we do not use p invoke..) I understand the most likely cause for an unexpected termination of this nature is threading - more specifically that referencing UI elements unsafely... I can say after a very large code review that this does not take place. Can anyone provide any advice on what might be the cause or where else we might lo ...Show All
Windows Forms dataGrid showing + sign when data is displayed
Hi, I have a datagrid on the form which is populated with the data from the data source. Now when the datagrid is displayed it also display a '+' sign and then I have to click that '+' sign to see the data. Is there any way to get rid of the sign .. if you set the data grid  ...Show All
Visual Studio ".exclude" files in web project are themselves getting added to Source Control
Hi, I have read various posts about how it's not possible to exclude files from a Web project in the way we could with VS 2003. A bit of a pain in some circumstances, but fair enough. However, the exception to this rule is the dlls in the bin folder, because VS generates associated " .refresh " and " .exclude " files for these files, which in turn should cause them to be excluded. (Happy to be corrected if I'm wrong on this point) However, after getting in a bit of a tangle with VSS bindings, which I have hopefully restored correctly, all the " .exclude " and " .refresh " files in the bin folder are marked in the pending checkins ...Show All
Smart Device Development Compact Framework Issues
Hi, Anyone having problems with line breaks in the TextBox control from the Compact Framework I insert a string with line breaks, (yes the textbox is multi line enabled), save it to a database, read it back and all i get is little squares in place of these line breaks. The funny thing is, this same exact data (no changes what so ever) is displayed correctly in a win forms application (running on the desktop). I've tried the traditional methods and none of them seem to work, would re-installing the framework help ps. This is what i am talking about: http://img134.imageshack.us/img134/7590/linebreaksample0ex.jpg Could anyone please hel ...Show All
Visual Basic vb.NET2005 frustration .....'Unable to copy file "obj\Debug\....." to "bin\Release\......"'
Recently, but not immediately, I started to get the above error message almost every time I rebuilt my vb.NET application. The only way I know how to proceed is to rename all the \bin\Release\ files. I'm sure this isn't the normal expectation but why do I get it and how can I avoid it Urgent help required please! Geoff what other programs are running at the time, you dont have a second instance of vs with that project open and running or are running the executable at the same time as trying to recompile the application. Its normally that something is still open or in use and the system will not allow it to ...Show All
Windows Forms Is it possible to create a desktop icon using ClickOnce
I found only one article about creating desktop icons, but that article (MSDN) ruled out creating desktop icons. Is this possible with ClickOnce or not I know windows installer will, but we have a Smart Client and want to provide a way to create a shortcut to the app on the desktop so people could get to it quickly. Any suggestions Thanks It is not a feature of the deployment. In fact, it is not obvious that a ClickOnce application installs a shortcut in the start menu. A user would really never know at install time. I would recommend having your program ...Show All
