SujitKhasnis's Q&A profile
SQL Server Enable User Instances in SQL Server
I'm just starting out and trying to connect to my first database using the following string: Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\RFPdb.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True I get the following error during debug: " Generating user instances in SQL Server is disabled. Use sp_configure 'user instances enabled' to generate user instances ." I've done this on every database - Master, Model, Tempdb, etc, and my database. Still get the error. I may not be enabling it correctly. Any help would be appreciated. The documentation suggests that I use user instances so th ...Show All
Visual Studio Team System Document Templates
I'm missing the templates for "Baseline Configuration Management" workstream (CM Plan, Access Control Policy and GuideLines). Will they be present on final release Regards, Max Andrade No. This is an error on our part. The baseline for configuration management is part of the setup of Team Foundation Server and not anything that needs a specific document template. Access control policies and guidelines are part of the installed process template. ...Show All
.NET Development Windows service, instance of acrobat.exe
We have a windows service which creates an instance of acrobat.exe, in service on start. The service uses this instance of acrobat and performs all the conversion operations. (conversuion from word, txt and image files to pdf) Now when the service is closed - ServiceOnStop., we try to kill the Acrobat Instance... Public Shared Sub CloseAcrobat() Try Dim oProcess() As Process = Process.GetProcessesByName(ProcessNames.ACROBAT) ...Show All
Visual C++ creating exe's and running them
this is probably an extremely obvious question... but when i type in my code How do i run it I have tried "building" my project but then i don't know how to run the app once it has been built/ Hi! Thanks for the reply, but the answer is in this forum: Can't create .exe file Regards, Frank ...Show All
Visual Studio Team System DoNotMarkEnumsWithFlags
Hi, FxCop recommends that I don't decorate my enum with the flags attribute, even though the enumeration contains bit fields. This rule appears to have a regex that looks for hex values. This regex should be updated for enum declarations like the following: [Flags] public enum ValidationTypes : int { Any = int .MaxValue , Data = 1 << 0 , Model = 1 << 1 } That's better. The names idea is a good one and will certainly get across the meaning more clearly. Cheers, Steve ...Show All
Windows Forms Switches in Console Application??
Can anyone tell me, what is the proper way of creating switches in a console application I want to have certain functions execute on a specific switch. Ex... c:\MyApp /start If you want them to run consecutively, <i>don't</i> create a new thread. By doing the Thread.Start stuff, you're introducing the problem you're trying to avoid. Just c ...Show All
SQL Server Code Access Security and File.Exists
My dataset contains a path to a file on the file system and I'm using File.Exists in an expression to determine whether that file actually exists. Because of CAS File.Exists always returns false that is until I changed rssrvpolicy.config to allow File.Exists to do its thing. I accomplished this by giving the FirstMatchCodeGroup FuilTrust. Now, however, I'm faced with a new problem: File.Exists only works when I access the site from the webserver itself. If I access the site from a remote location File.Exists still fails. I'm running Reporting Services 1.0 for SQL Server 2000 on Windows Server 2003. Both RS and MSSQL are running the latest se ...Show All
Visual C++ Cannot add class
I just downloaded the new Visual C++ Express Edition Beta 2 and created a new project, but I can't add any classes. It just says "Code model not available, cannot add class." Any one know what's going on and how to fix it Uh, more than VC++ Express. I installed from the VS 2005 Standard Edition and get the same results. Something as critical as this should probably be available for us to verify... ;) ...Show All
SQL Server Altering (or recreating) a Stored Procedure "header"
We are using SQL Server 2005 to develop a simple SP. We started by including an output parameter which would report back the identity of the record being inserted or updated. We have since been trying to drop and recreate the SP without the output parameter, or alter the SP with the same outcome in mind. Neither has been succeeding, as confirmed by inspection of the sys.objects and sys.parameters tables. What might we be missing We are using the Developer Edition, which may or may not be adequate to the task. Or maybe earlier versions of SQL Server are more robust and would be more successful to help us succeed Please advise. Thank you. ...Show All
Visual Studio 2008 (Pre-release) A question on xbap
When I open a xbap (formally wab) in IE, a progress bar is displayed indicating that the application is being download and the application will be loaded after the download ended. Since the WPF Jan. CTP has been installed on my machine, I am wondering what will happen if there is no WPF installed on the client machine. Does it promopt the end user to download the .NET Framework 2.0 and corresponding WPF Components Thanks! Nope, the classical "File Download" dialog will pop up to prompt you to download the .xbap file, since IE cannot find any file handler which can execute the files with .xbap extension. Sheva ...Show All
Visual Studio Express Editions how to prevent multiple instances of my program?
how to prevent multiple instances of my program please can someone give me a small example if is posible in C not C++ thanks! Thank YOU ...Show All
Visual Studio Team System General Security Question
Hi I am new to the Team Foundation Server and just set up our first project. When I right click on the project name and clck on Show Project Portal, it takes me to the Web site. However, if I send that URL to someone else, they are presented with a login screen. I'm not sure why they have to log in, but I don't. Is this an IIS issue, Sharepoint, etc. Can someone point me in the right direction Thanks. In order to view the project portal, the following permissions are needed: 1) View Project-level information: In Team explorer, right click on the team Project-> Security-> add the user/group and ...Show All
SQL Server Removing Publication from Monitoring Tool
Hi: I removed the publication from the database but it is still showing in the monitoring tool. Does anyone know how to remove it from there Thanks how did you remove the publication, and what version of sql server are you using ...Show All
Visual C++ changing file path for a project
Hallo, 1) Suppose in my project, i have added c++ files from location c:\c++. Now if i have moved the files from c:\c++ to c\proj\c++, ofcourse when i open the c++ file in the project i will get the error "file not found" . one solution i know is to delete the files from project and add from the new location. but this is not always practical. is there any way to change the path without deleting the files from the project and adding from new location i am using visual studio.net 2003. has anybody some other solution 2) i am using CString in the project and when i debug gets the message "show disassembly..." i have included both &nbs ...Show All
Visual C# .dll options
Im making a .dll and when people use it i want them to be able to seee a structure like this... -- part 1 -- option 1 --|-- part 2 | Begin. - -|- - option 2 --|-- part 1 | -- part 2 -- option 3 ---- part 1 One more thing is all the 'parts' i want to be 'public voids' of my own coding, any help would be appreciated well for example a listboxs structure has lots of different options: listbox1.Items listbox1.SelectedItem listbox1.SelectedIndex And then they can go even further: listbox1.Items.Add etc ...Show All
