scott8000's Q&A profile
SQL Server can we pass dataset dynamically???
Is it possible to pass the dataset dynamically in ssrs I am using sqlserver express edition at present. so in future it may change. is it possible to change the dataset in future or not now I am using sqlserver2005 as my datasource. In future it may change to some other database. So is there any way to change the data source with out coming to design mode. ...Show All
Visual Studio Team System Why did not Menu Data appears when install CT4
I have installed Visual studio 2005 and SQL server 2005 enterprise on my computer(Its OS is Windows 2000 server). After that I continue install CT4 . But there is error happen . When I open Visual studio 2005 there isn't data menu on menu bar, It have only Test menu as well as some menus that default of studio 2005 as File, View, Tool,.... So all data menuItems as Schema compare, Data compare and T-SQL compare did not appear. But when I install CT4 on other computer has XP OS , Data Menu appears . Why I'm sorry, but I can not for the life of me imagine any reason to install CTP4 anymore. If you have VS 2005 Team Suite then install CTP7, otherwise CTP6. I think a new installation of DataDude will pro ...Show All
Windows Forms Hyperlink as a treenode?
Is it possible to have a tree sub-node as a hyperlink, or at least to make the treenode behave like one (change the cursor to a hand etc). You can set the child nodes forecolor to Blue to represent a hyperlink, then in the child nodes OnHover event you can change the mouse cursor to the hand, and in the OnLeave event change it back to the normal pointer. Then just implement the click event to do what you want. ...Show All
SQL Server REporting services error
Hi to everybody, I have installed on a windows server 2003 machine with all the last update until 12/10/06 sql server 2k analysis services with all the last update the problem is that when I tray to export the report I recieve this error Reporting Services Error -------------------------------------------------------------------------------- Exception of type Microsoft.ReportingServices.ReportRendering.ReportRenderingException was thrown. (rrRenderingError) Get Online Help Exception of type Microsoft.ReportingServices.ReportRendering.ReportRenderingException was thrown. Cannot find font ' '. -------------------------------------------------------------------------------- Microsoft Reporting Serv ...Show All
Visual C# Interfaces and Abstract Classes
Hi, I am hoping someone can explain this to me. Lets say I have an abstract class called Employee, from Employee, the following classes are inherited, Manager and Cleaner Can someone explain to me how to incorporate an Interface for this scenario so my application can tell which type of object "Manager or Cleaner" its dealing with Thanks As Indian Ocean Said I also agree with him that you do not need the use of Interfaces here. Abstract classes will do the pretty job. And then when you need to check the type of the object that an Abstract class's object originally holds then the better choice is to use "as" keyword if you want to do processng on that type otherwise "is" w ...Show All
SQL Server Login failed for the user (using windows integrated security)
Hello Everyone, I am trying to connect SQL database through code but I get this error,I have spent days to solve it but unfortunately I couldn't...Here is my code in VB express(OP:windows 2000 with SP4)I am new to VB,so it makes the situation more difficult for me. my code is: Public Class Form1 Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Dim conn1 As SqlConnection = _ New SqlConnection( "Data Source=.\SQLEXPRESS;" & _ "Integrated Security=SSPI;" & _ "database=deneme3_database;" ) 'Open connection conn1.Open() MessageBox.Show( "Connection succeeded." ) 'Close conn ...Show All
Visual Studio Tools for Office VSTO SE, Vista RC2, Caspol, Oh My
Hello, I've been playing with my VSTO 2005 SE Outlook addin under Vista RC2 using Office 2007 B2TR and the VSTO 2005 SE beta loader (I also run around a lot with scissors) My first issue has been with the installer. I get a 'Error: 2869' that requires my users to go and either turn off UAC (can you imagine!) or run the MSI with 'Run as Administrator'. Obviously I don't like this and would feel bad for lots of good reasons. What seems to fail is some custom action [RunInstaller] code that allocates the .NET Security Policy around my wee Add-in assembly. This code seems to work fine under XP before. I had a look at how the VSTO Team recommends doing it and saw the tutorial/examples of SetSecurity/CaspolSecurityPolicyCreator. I ...Show All
Visual Studio Tools for Office Getting item scope on PropertyChange event
I have an event handler for a ContactItem that fires on the PropertyChange (which is wired up when a new contact window is opened--e.g. I am monitoring what changes in this window). private void Inspector_NewInspector(Outlook.Inspector inspector) { Outlook.ContactItem ci = inspector.CurrentItem as Outlook.ContactItem; if (ci != null) { ci.PropertyChange += new Outlook.ItemEvents_10_PropertyChangeEventHandler(ci_PropertyChange); } } void ci_PropertyChange(object item) { MessageBox.Show(item); // displays the name of the property (item is of type string) //what contact ...Show All
Visual C# Help in Execute Scalar
hi i creating a form in VS 2005. I want to have this error at execute scalar(). Invalid casting. Can someone please help SqlConnection conn = new SqlConnection ( this .ConnectionString); try { conn.Open(); SqlCommand cmd = new SqlCommand ( "Select sum(qty) from Inventory where prodNo = @prodNo AND qty <> @qty" , conn); cmd.Parameters.Add( "@prodNo" , SqlDbType .VarChar); cmd.Parameters[ "@prodNo" ].Value = prodNo; cmd.Parameters.Add( "@qty" , SqlDbType .Int); cmd.Parameters[ "@qty" ].Value = 0; int qty = 0; qty = (int )cmd.ExecuteScalar(); return qty; } finally { conn.Close(); } ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Beginning Game Development: Part III - DirectX II - Problem with the "Using..."
Just started the Direct X Part II (Part III) tutorial, and I seem to have an odd problem. I get one error whenever I try to build the solution, Error 1 The type or namespace name 'Device' could not be found (are you missing a using directive or an assembly reference ) C:\Documents and Settings\Doug Ross\My Documents\Visual Studio 2005\Projects\BattleTank2005\BattleTank2005\GameEngine.cs 68 17 BattleTank2005 Now, I put at the very top of the GameEngine.cs class, right below all the other "using" directives... using Microsoft.Samples.DirectX.UtilityToolkit; So now the "Using" section at the top of the GameEngine.cs looks like... using System; using System.Collections.Generic; us ...Show All
Visual C# List/ArrayList to Type[] array reference
Hi, First off I'm a c++ convert and am liking C# so far. I am currently using a List<Matrix> and am hoping there's an approach that will let me convert it to a Matrix[] without doing a deep copy. The only shallow function I can find in List or ArrayList (either will work for me) is GetRange but that still returns a List/ArrayList. Is there a way to get at the memory inside the object As you can see below, every iteration, I have to copy a batch into a static array. I'm just hoping for a better way to do this. Seems pretty basic to me to get the array reference inside a Collection object yet I can't seem to figure it out. Matrix[] marr = new Matrix[nInstances]; m_matrixList.CopyTo(nOffset, marr, 0, nInstances); effect.Param ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Please help me im new, debugging trouble
is there any way to create an xbox 360 game out of the template, write the code, develop the game, and then debug it on a pc, and the reason for doing this, is that i dont have the money for a creators club memborship right now, some one help No, if it's a 360 game, you have to run it on the 360. You can however create a PC game and run and debug that just fine using XNA. Typically there is very little work that you have to do to get your XNA PC games running on the 360 when you finally do have the money and the opportunity to play it on the 360. I would recommend develop your potential 360 game on your PC, but every now and then make sure it builds as a 360 game so that you know you haven't used something ...Show All
.NET Development How to schedule a windows service for every 5 minutes
I wrote a Windows Service in C#, basically, the service get a value from database and compare with my current value, if two values are different, it will send a message through email However, I need this Windows Service to be run frequently, every 5 minutes forever. How to schedule a service I need the code and need to know where the code to be put. Bye. programmatically, you could place a timer in the service, and set the interval to be 5 minutes (timer calculates it's time in milliseconds) and then do your operation. The "operation" will be carried out on the "timer_tick" event, so for every 5 minutes, a tick will be generated. Does this help/give you some guidence ...Show All
.NET Development Public Folders & Permissions
Hi, All! I get list of public folders on Exchange Server 2003: OutX. Application objOutx = new ApplicationClass (); OutX. NameSpace objNS; OutX. MAPIFolder objFolders; ... objNS = objOutx.GetNamespace( "MAPI" ); objFolders = objOutx.Session.GetDefaultFolder( OlDefaultFolders .olPublicFoldersAllPublicFolders); foreach ( MAPIFolder objFolder in objFolders.Folders) { lstFolders.Items.Add(objFolder.Name); // Add List Folders into ListBox } How can I get list of permission of folders, which have been set on folders This forum is dedicated to questions about the System.Net namespace. Please see http://www.microsoft.com/community for a list of newsgroups/foru ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Per vertex fog (Custom Effect)
I just want to make a simple per vertex fog with XNA, I thought, it will be easy, but... The problem is: if I set everything correct (I think), only the objects get the fog, not the scene/ screen! But why I set this parameters: FogEnable = true; FogColor = 1.0f; And I use the FOG semantic in the vertex shader: OUT.FogD = saturate( (fFogEnd - d) / (fFogEnd - fFogStart) ); So why happen this Here is the code, if it's needed: Code (txt) ...Show All
