M_J's Q&A profile
SQL Server Creating a database from script - permissions problems
We deploy our app via ClickOnce. Rather than shipping the .mdf and .ldf, the app detects whether the database is there and creates it via script if it's not. The script was originally generated from SQL Exrpess Mangement Console, etc. In the past, we've made the stipulation that the user must have administrator access to the machine. However, we now need to find a workable solution for users who are not administrators on their machine. Currently, we use the following connection string before attempting to run the db creation script: conn.ConnectionString = "Server=.\\sqlexpress;Integrated Security = true;User Instance=false"; The script fails when trying to execute "CREATE DATABASE [myDatabaseName] ON PRIMARY " ...Show All
Visual Studio Express Editions program starts with a right-mouse click...
My program will be initiated by a menu selection from a right-mouse click. I'm trying to find the code which will tell the program the directory & file name of the icon which was clicked to start the process. Can someone help Thanks. Your program cannot find out how it got started. If you need additional information from whomever started your program, try using command line arguments. ...Show All
.NET Development library to revoke certificate
hi i need to develop a module (or small apps) using either C# or vb.net. the module is to revoke pkcs12 certificates...do .net have the library to do this any information is really appreciated Check out PKCS #12 File Types: Portable Protected Keys in .NET to see if that helps. ( Note post rewritten ) ...Show All
Community Chat Vista WoW, but I got problem with Vista's IE7
I runnning dual OS, XP and Vista, both I running IE7, which on Vista side, is ship together with OS. While the IE7 on my XP behave very good, on Vista, whenever I using IE to download the attachment on Hotmail, Yahoo, or whatever, that normally not using download manager, which using IE's built in downloader, and yes, my IE7 will stop responding, everytime will be like that whenever I try to download some small attachment, what might cause the problem I don't want to reinstall or do restore or something, just hope to fix my IE7 on my Vista, thanks. p.s. Vista really really Wow! Check out the windows vista help and support site, better place to get help about any problems like that. http://windowshelp.m ...Show All
.NET Development How to get the error message from Login Provider Validate() method?
Hi, I am trying to use Login control (framework 2.0) with a custom provider for authenticating user. As the custom provider inherits abstract class MembershipProvider, it implements method ValidateUser(). The method just returns a bool and if there is any exception it goes as page error; an unhandled exception. I would like to handle this exception in Login control, but do not find any way or place where I would get this exception. Could you please tell me how do I handle this exception and have a custom message to be displayed to end user instead Thanks in advance, Maithili. Hi Rodrigo, Thanks for your time. I tried that one but in the LoginError event i didn't ...Show All
SQL Server Excel Add-in for Analysis Services - What-If
Hi *, I'm having a hard time with the Excel Add-In for Analysis Services What-If function. Correct me if I'm wrong, but the what-if function is the only possibility to write-back to a analysis services cube, right My problem is that every time I try to run What-If Analysis I get an error message saying that non of the cells satisfy the all-dimension rule. That does'nt make any sense since I'm working with a AS2005-only cube... Any ideas Thanks a lot! Steve ...Show All
Windows Forms Printing the_whole_contents of a form.
Might have posted this is in the wrong forum before, so I’ll give it a new shot in this part which I think is more suitable. Im new here, and there are so many different sections. :) Im using Visual Studio 2003 and is programming a visual basic-application which is based on MDI-parents and -children. The problem I have is that I want to print the whole contents of an mdi children form, but im just getting the visible part. What I need is a method to print even the part that you need to scroll down to see. As it is now, im using this subroutine to generate a bitmap of the form. Private Function GetFormImage() As Bitmap ' Get this form's Graphics object. Dim me_gr As ...Show All
Internet Explorer Development Moving Interent Explorer Toolbards
How do you move the tool bars in interent explorer 7. When i try and move the Menu bar up or down nothing happens. Trying to get the Menu Bar on top then the URL bar 2nd and so forth but cant seem to move the toolbars. Help pls! I was being sarcastic - that column was a complete waste of time to read. I'm embarrased for Microsoft for posting such marketing bull!@#$ . The registry hack really isn't a good solution either - it simply moves all toolbars above the address bar. ...Show All
Visual C# Interacting with an external application (process)
Hello! I'm trying, with VS.Net 2003 and C#, to call an external command line application and retrieve the output several times during its execution (that can be long), so I can track the process and give the user an estimated time to complete. What I did: I created a process and a timer with 500ms tick. I start both at the same time and every tick I read the process' output. The problem: everytime I try to read the output using "StandardOutput.ReadToEnd()", the application freezes and only resumes when the external application is done. Using the search on this forum I found out that I had to use "Application.DoEvents()", so the application could resume the message queue, but it didn't work. So far, that's what I'm doing ...Show All
SQL Server How to Update two copies of the same DB by transfering the changes between each other using sqlServer 2005
ok her is my question. there are two developers in different offices and they have started with the same db and keep modifying the stored procedures. in a point they want to update their copies of the DB with each other. Is there a easy way to do this in MS Sql server 2005. Visual SourceSafe It's not really mirror-related as the mirror-copy cannot be used at all (treat it as non-existent) Replication may be your best, for off-site situations ...Show All
SQL Server insert image into database
how to insert n image.jpg into the database what should be insert query It shoul be this simple: Assume, you have this Table_1 with SelectedImages and Path fields. CREATE TABLE [dbo] . [Table_1] ( [SelectedImages] [image] NOT NULL, [Path] [ntext] NOT NULL ) to add an image, do this: INSERT INTO [testing] . [dbo] . [Table_1] ( [SelectedImages] , [Path] ) VALUES ( 'D:\desktop\05022006\free_chart1.gif' , 'D:\desktop\05022006\free_chart1.gif' ) So, then you will do this : SELECT [SelectedImages] , [Path] FROM [testing] . [dbo] . [Table_1] You will get something like this:( < ...Show All
Windows Forms Please tell about this exception 'A generic error occurred in GDI+. '
Hi I got this exception while dragging.Could anybody tell me the reason for such an exception.Any ideas to get rid of this Stack trace is here A generic error occurred in GDI+. thrown in Void CheckErrorStatus(Int32) at System.Drawing.Graphics.CheckErrorStatus(Int32 status) at System.Drawing.Graphics.FillRegion(Brush brush, Region region) Thanks in advance Are you using .NET, and if so which version Using OwnerDraw If so, have you tried debugging your OnPaint(...) override ...Show All
Visual Studio 2008 (Pre-release) maxReceivedMessageSize and maxStringContentLength
I'm dealing with an issue of large messages generating quota exceeded errors. The default value for maxStringContentLength, for example, is only 8K and the maxReceivedMessageSize limit is 64K. In order for my service to function correctly, I've had to increase these values considerably. I've also tried setting each to 0 as a way of indicating there should be no limit constraint. This has not worked. I'm also observing that message size is much greater when I use wsHttpBinding versus basicHttpBinding. I'd appreciate any comments or suggestions about these issues. TIA You have to provide explicit values for max message, string, array (etc) size, and you should attempt to limit which endpoints (contracts) re ...Show All
Visual Studio Express Editions How do I calculate a person's age with datetimepicker
I have a form with a datetimepicker and a textbox1.text where I want to show the age in the texbox1.text box when user pick a date for the datetimepicker. How do I use it and do I put it under thedatetimepicker or texbox. privaite subs If you do DateTime.Now.Subtract( YourDatePicker.Value ) it will return a TimeSpan object that you can read the Years, Months, Days, etc. from. ...Show All
Software Development for Windows Vista WinForms control positioning not the same in vista?
I have started using VS2005 with vista (SP1 + vista fixes applied) and some windows forms have some controls moved. Is this a known bug Thanks Hello. This forum is focused on individual application compatibility and logo issues and not Visual Studio related issues. A better place that could yield quicker results http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.vstudio.development&lang=en&cr=US Here's another forum that may be of assistance: http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=120&SiteID=1 Also try technet http://forums.microsoft.com/technet/default.aspx siteid=17 Thanks ...Show All
