Iouri Simernitski - MSFT's Q&A profile
SQL Server Attach database from network drive
Hello, when I attach an database from a network drive in SQL Express 2005 the access permissions on the data and log files will be change. This ends in a deadlock when the user doesn't have administrator right on the network server, because the permissions will allow access only for administrators and an unknown Usergroup on the network server. I think it's the SQLServer2005MSSQLUser$xxx$MSSQLSERVER group from the local server. Example ...Show All
Smart Device Development C# - Loading a Large JPEG file (> 2Mb) - Memory Issue
I'm writing a Pocket PC application in C#, VS2005. I'm using the .NET Compact Framework 2.0. All I want to do is load a large JPEG file (2-3MB) taken from a digital camera, and display it in a Picture Box. When I try to do so using the following code, I get HResult -2147024882 --- "OutOfMemoryException" Bitmap bmp = new Bitmap ( @"\Storage Card\TEMP\2MBJPEG.JPG" ); I know that other programs are able to d ...Show All
Visual Studio Express Editions Character* in string comparison....
Can anyone tell me if this is correct ........................ if ( (strcmp( returnVal, "<name> %s </name>" )!=0 ) ) { ................ where returnVal a char*.If not is there any way to correct it This line looks fine to me, as long as returnVal is declared as: char *returnVal; or const char *returnVal = "foo"; don't forget, strcmp returns 0 if the strings are equal, and something ot ...Show All
Windows Forms Problem with TreeView-Icons and EnableVisualStyles() (Beta2/Windows XP)
Hi there, we recently found out that there still seems to be a bug with EnableVisualStyles() in Beta2. We want to show a Treeview with different icons and have VisualStyles enabled. However none of the icons are shown under WinXP whereas Win2000 shows them all. Calling Application.DoEvents() after EnableVisualStyles doesn't change this behaviour. We found out that adding a manifest to the executable like in http://msdn.microsoft.com/library/defa ...Show All
Visual Studio Express Editions Monitor Program For Crashes
HI all, I have written a program that trades Forex for me that connects to my broker via an API interface. As the program can run for days at a time un monitoried I need to know if the program crashes and if it does restart it. I know this is band aid fix and I should just fix why it crashes. The thing is I can not find out why it crashes every now and then and until i do I want to use the band aid. It is a multi threaded app and fro ...Show All
SQL Server Problem with Hyphen in server name?
Hi all, My sql server has a hyphen in its name, and I've noticed I can't use a fully qualified reference, server.database.owner.table. Is this a known bug , what's the fix apart from renaming This is standard version, not a beta. Could it be something like : Select a.groupName from [DYFLIN-SQL].DyflinSqlDB.dbo.tblGroups as a ...Show All
Visual C++ __CONTEXT from winnt.h in x64
Hi .... i am getting the following error when including one of my previous code constructs. It is using the member of Struct CONTEXT from winnt.h, error C2039: 'Ebp' : is not a member of '_CONTEXT Dont have much depth in x64 bit system structs or its equivalents for x64. any idea for its substitute or a suggestion for correction will be highly appreciated. Best Regards, - Imran. You can preprocess the file using the /P compile ...Show All
SQL Server Mssearch.exe consuming High CPU over extended time period
Hello, We are running SQL 2000 sp4 with full text search, recently we are getting 100% CPU over extended period of time and the only way to resolve this is by killing the Mssearch.exe process. (we tried to restart the service but it hang) the Microsoft search service is running under local system account. our system topology is active/passive cluster with NAS disks, 4GB RAM and 4 CPU for each server. May be some one can help me The issue happ ...Show All
Visual C# HELP: Not working like it should
I'm working through the "SAMS Teach Yourself C# in 24 hours" book using the free download Microsoft Visual C# 2005 Express Beta. I don't know if a lot's changed between the book being written in 2002 and the release of the beta but a few things don't seem to work exactly the same as in the book. Hence, some sections of code won't compile without giving errors. I've gone over the code meticulously and can confirm that I've entered it correctly. ...Show All
Visual Studio 2008 (Pre-release) ResourceDirectionary has not effection
Hi, I'm puting a ResourceDirectionary that refers to a ResourceDirectionary file in the Windows.Resources section, but the style setter don't take effect. Why Couldn't tell you without seeing your code, it might be a bug we recently discovered, or it might be something incorrect in your xaml. ...Show All
Visual Studio Express Editions BindingSource.Filter help please
Hi, I have an Access database which I've managed to link up to my VB.net application, and I can view whole tables, edit the data within it etc just fine. However, I would like to filter one of my Tableviews to show only the rows where the value in the UserID column is equal to the User logged into my application. The form this Tableview will be on has access to the current user that is logged on by: Public thisuser As String with that stri ...Show All
Visual Studio Team System PublishRun: Server was unable to process request
Hi everyone, I get the following errors when the Test Run completes... it seems that permissions may be incorrectly set for this account (against the build server), but everything in the drop phase works fine for other build output, which I find somewhat confusing. Has anyone seen this before MSBUILD : warning : Test Run Failed. MSBUILD : warning : PublishRun: Server was unable to process request. ---> Access to the path '\\90dsdev001\Bui ...Show All
SQL Server Foreach NodeList Enumerator
Does anyone have any experience of using the NodeList enumerator in a Foreach loop BOL is a bit light on this. I want to enumerate over an XML Document that is passed into my package. The package is executed from a .net application. Has anyone done anything like this Any demo material Should I pass the XML Document into an SSIS object variable or a String variable Can the NodeList enumerator enumerate an XML document that is stored in a Str ...Show All
.NET Development access permission probelms. HELP ME!!!
I have two computers, a desktop and a laptop, both running win xp home. Both are wirlessly enabled and connect wirelessly to the internet through a belkin router. The desktop will happily see the laptop and share files, and everything seems to work just fine. The laptop, however, refuses to see the desktop. I have shared all folders properly, both are part of the same workgroup, and I have run the network set up wizard, and tried to connec ...Show All
.NET Development Thread Safety of Generic Queue
I need to use a System.Collections.Generic.Queue in a multi-threaded application and I am confused by the description in the documentation. The documentation says: Thread Safety Public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe. A Queue can support multiple readers concurrently, as long as the collection is not modified. Even so, enumerating t ...Show All
