NitinDhall's Q&A profile
SQL Server SP_SETAPPROLE - Get Sql Err Message 15422 when activating application role
Hello, I am trying to activate the Application role feature in my C/C++ (MSVC 6.0) using ODBC calls. Every sample I've seen (only a few) uses VB, C# or T-SQL. I have trawled the net using a google search and have found nothing. I want to be able to track SQL user logins but have the security based on the interface I provide through my program. The Application Role feature is perfect for this reason. This is a snippet of C/C++ ODBC code I'm using. I have a valid statement handle allocated and is freed upon function return. sqlrc = SQLBindParameter(hstmt, 1, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_CHAR, parmlen[0], 0, app, parmlen[0], &cb[0]) ...Show All
.NET Development .Net framework security configuration help for framework deployment
Hello all, I'm trying to configure the .Net framework security for deployment throughout my organization, and I'm having difficulty doing this. I realize this might not be the right place to post, so the first question I have is where should this post be placed Otherwise, I'm trying to follow the NSA standards for .Net framework security, and they're requesting a bunch of different things. Here's an example: Recommendation: Only grant the File IO access permissions Read, Write, or Append to code that is trusted not to allow unauthorized access to file system resources. Grant File IO access to the most restrictive set of files and ...Show All
Visual Studio Team System Error executing reports in RTM Trial
I have been evaluating the Team Foundation Server Beta Refresh 3 without any problems, but have recently installed on a new server the RTM Trial Version, but the reports don't work, so this is not an upgrade. For report Bug Rates: An error has occurred during report processing. (rsProcessingAborted) Query execution failed for data set 'PriorityParam'. (rsErrorExecutingCommand) Query (19, 3) The ALLMEMBERS function expects a hierarchy expression for the argument. A member expression was used. Any ideas Thanks Giles Are you viewing reports from a project you just created using the n ...Show All
Visual C++ Simple VS2003 to VS2005 Migration Question
Hi all First of all I want to clarify that I have no great practice with Visual C++, so please be patient if questions are silly to you. The problem is quite simple: how to migrate to VS2005 a project compiled with VS2003. The project is a windows media player DSP plugin DLL created with the wizards boundled with the M$ SDKs. The error is the following: Error 1 fatal error C1083: Cannot open include file: 'mediaobj.h': No such file or directory k:\source\projects\carlo.dlls\etwmpmix.vs2005\dsp01.h 15 In VS2003 I've installed all required M$ SDKs: windows media format sdk, windows media player SDK, d ...Show All
Smart Device Development Comact framework: C#: Index of the sender control to focus next control
Hi there, How do I find out the index of the sender control and focus the next control without using the name of the contol I know how to do it in VB.NET [Me.Panel1.Controls.Item(Me.Panel1.Controls.IndexOf(sender) + 1).Focus()] Do not know how to do it C#. Could you guys please help with this. Any help is greately appreciated. Thanks, Prasad. Not commenting on the context of your problem but a straight translation of default properties to indexers can be achieved by replacing .Item(x) with [x] If you also replace Me with this, you ...Show All
Visual C# Help with c# send nbtstat -R command
Hi, How can I send "nbtstat -R" to the command prompt Many Thanks Sultan To simply run a command you can use: System.Diagnostics. Process .Start("cmd"); and for more advanced control you can ofcourse use: System.Diagnostics. Process process = System.Diagnostics. Process .Start("cmd"); process.someMethod(); ...Show All
Visual Studio Team System visual studio 2005 team project
hey guys - i've know that it is possible to create a project that enables us to comunicate between all of the people that work on the projet . example : we build a software and the project was a lot of people involved in it - developers, project leader, qa guys, the development team leader and so on... vs2005 enables us to have an interface relevante only for the project and in it the developers or qa people can view only the relevant infomation for them and have a list of tasks and such, and the project leader can update those tasks and check the status of each task and that kind of ...Show All
.NET Development Drawing Font Vertically
I'm trying to draw font vertically, using the System.Drawing.Graphics object: StringFormat format = new StringFormat(); format.Alignment = StringAlignment.Center; format.FormatFlags |= StringFormatFlags.DirectionVertical; The problem is, it draws the wrong way! It draws the text so that you have to tilt your head to the right to read it, but I want it so that you have to tilt your head to the left to read it. Does anyone know how to fix this I tried adding in the DirectionRightToLeft flag but that doesn't d ...Show All
Visual Studio Team System How to hook build engine to get sources from another server?
Hello all, I want to interoperate the TFS with a server using VSS as repository. How can I go about it Environment: Presently clients are on VS .net 2003 IDE and server has VSS as repository. The project uses .NET 1.0 framework. What I want: I have introduced TFS server m/c which i want to get the project sources from the VSS server and build them. So, how can I hook build engine to get sources from VSS server Thanks in advance. Nike We will definitely consider this integration for Team Build later, but for this release (RTM), I am afraid this will not be supported. Thanks for the suggestion Nike. ...Show All
SQL Server JDBC Driver 2005 exception stack trace
Hi, I had some Java code that worked fine using SQL Server 2000 but does not work using SQL Server EXpress 2005. I tried working the JDBC driver for 2005. I got the following excpetion: com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name 'master.dbo.spt_datatype_info'.
 at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(Unknown Source)
 at com.microsoft.sqlserver.jdbc.IOBuffer.processPackets(Unknown Source)
 at com.microsoft.sqlserver.jdbc.SQLServerStatement.sendExecute(Unknown Source)
 at com.microsoft.sqlserver.jdbc.SQLServerStatement.doExecuteQuery(Unknown Source ...Show All
Visual Studio 2008 (Pre-release) WCF Beta 2 Setup Problem
I am trying to install WCF Beta 2 but I keep getting a setup error. I would like to re-download the files but they are on my harddrive somewhere. When winfxsetup.exe starts starts it finds the files and goes straight to the install. Does anyone know where I can delete the file or if there is a way to force the download of the setup files These files often get stored in your temp files directory. Try clicking start/run... enter "%temp%" and press return. This will open your current user's temp folder. Make sure you have no other programs running, and then delete all of the files in that ...Show All
Visual Studio Team System Why does Bug Workitem not have any completion time associated with it?
Why does the bug workitem not have any completion time associated with it (Agile) ...Show All
Windows Forms Accessing SetStyle from Outside the Control
I am developing a two-dimensional game engine using the .NET framework, Managed DirectX(TM) and C#. I am currently working on the Device and Control (in this case a Form) manager and need public access to the SetStyle method. I was wondering why this method was not made public and instead was kept protected Are there any known work-arounds to getting at this method I am using a Direct3D Device and it is necessary to call SetStyle with the following parameters to stop the Background from being erased: ControlStyles .AllPaintingInWmPaint | ControlStyles .Opaque Obviously I can inherit the Control ...Show All
Visual C# GridView
Hi I pass a querystring value on to a page that has a gridview, I want to use this querystring value and put the grid view into edit mode at the row that matches my qstring value Any ideas Hi After populating or Binding the GridView to the DataSource, extract the value from QueryString and set the EditIndex property value with that value extracted from QueryString. If you pass the index Value of the Row other vise search for that row in the DataSource and get it index this will be the EditIndex in the DataGridView. ...Show All
Visual Studio Team System Cannot connect to source control
After fighting project creation errors (SharePoint) forever I was finally able to create a new one. But now I have another problem. Regular domain users, who are part of Project\Contributors group, cannot access Source Control and get the following error: Either source control has not been configured for this team project or you do not have permission to access it. Hi Alex: When you created the team project did you specified for a source control root folder to be created Also who are the users that currently have access to source control Can the administrator add files and folders, etc I am trying to see i ...Show All
