.Net Pro's Q&A profile
SQL Server SSIS and the Receive Command
I built a system where I am sending batches of messages using a single conversation. I want to pull these messages out of my queue using Service Broker. I may have more than one batch sitting in the queue waiting to be picked up, so.... In my SSIS package i started by getting a unique list of conversation_handles where the message type is my end of batch message ( should only be one per batch). Then I used the foreach loop construct thinking I could pass the conversation_handles around and into the data flow. In the data flow I want to pull all of the messages at once. It looks like the receive statement is designed to do this with the concept of using a table variable. So I built this SQL to use in for the SQL Command of my OLE ...Show All
Visual Studio 2008 (Pre-release) [WCF-RC1] Adding claims in UserNamePasswordValidator
OK, another dumb *** question (folks, I am _trying_ to research these things first before bothering you, and I'm starting to feel like a child who can't do his homework!) My STS is based on the Federation example in the RC1 release, and it uses a custom UserNamePasswordValidator to validate the client credentials. In the Validate method, I look up the user in the DB, validate the password etc and return true. Then, within the GetIssuedClaims override that "Issue" calls, I need to create the claims that will be added to the SamlToken. However, the values of the claims that I want to add are stored in the DB in the row that I just looked up in the Validate method, and I really don't see why I would need to look them up again. How c ...Show All
Gadgets Can someone test my gadget please?
I posted my gadget a couple weeks ago and it has gotten a good number of downloads (~1500 atm) but mostly negative response. I suspect the problem is that I developed and tested this gadget on Vista RTM, but the Gallery only lets you choose "RC1" as the newest compatibility level (stupid ). I have not had any problems loading into the Sidebar on any RTM machine. What would really help me is to get a few people try to load it up and make sure it is working properly under a variety of environments (RC1, RC2, Beta, RTM, whatever), so I can figure out what the issue is that people are having. You won't be able to test the full functionality of the gadget because it requires you to have a particular type of webcam to stream video. ...Show All
SQL Server Running Database Diagrams Designer
New user here. I am following a step-by-step tutorial for Visual Studio 2005 and am in the process of creating the database. I have created the tables, and the instructions now recommend that I use the Database Diagrams tool to define the relationships. The instructions read "In the Server Explorer, right click the Database Diagrams folder and select Add New Diagram." But my Server Explorer does not display a Database Diagrams folder under my new database. Trying to follow recommendations on various Help screens, I have launched SQL Server Management Studio 2005 and connected to my database there. Here, a Database Diagrams folder appears -- but when I right click, there is no "Add New Diagram" option; the only choices are ...Show All
Visual Studio 2008 (Pre-release) Setting foreground and background to be the same when a control is disabled
Can someone suggest XAML code that would set the foreground and background of a control (say a TextBox) to be the same when it is disabled as it was when it was enabled. I mean if the Background was white and Foreground was Black when the TextBox was enabled, if the TextBox is disabled, the Background and Foreground should remain the same and not be grayed out. you can do something like this(removed the trigger which changes the colors when the textbox is not enabled) < Style x:Key = " {x:Type TextBox} " TargetType = " {x:Type TextBoxBase} " > < Setter Property = " SnapsToDevicePixels " Value = " True " /> < Setter Property = &qu ...Show All
Windows Live Developer Forums Due to a connection problem, changes you make might not be applied to other computers you use
Hi, Due to a connection problem, changes you make might not be applied to other computers you use I am getting this error in Live Messenger for last few days... As a result, my contact list is not appearing correctly and all the contacts are missing. Anyone having same issue Thanks Fahad I am quite surprised that so many people having same issue... and yet there is no official solution available... I am using MSN 7.5 for the time being... until we got some update on this issue from MS... cheers ...Show All
Visual J# JBIMP chokes on my .jar file
I am using a GPLed utility (Hugo Liu's Montylingua) which is distributed as a .jar file that was compiled from Python source with jython. I would like to call this from a C# program. Reportedly, Microsoft's jbimp utility will compile a .jar file into a .NET dll file. But here's what happens when I try: U:\My Documents\>jbimp /target:exe /out:montylingua.dll montylingua.jar Microsoft (R) Java-language bytecode to MSIL converter version 2.0.50727.42 for Microsoft (R) .NET Framework version 2.0.50727 Copyright (C) Microsoft Corp 2000-2002. All rights reserved. Please convert all unresolved references and resubmit for successful conversion JbImp error: Couldn't find class 'java.lang.ref.Reference' Unresolved class 'java.lang.ref.Reference' ...Show All
Visual Studio Express Editions Can you convert this code?
Can somebody convert this code to VB for me I would be very greatful. http://www.codeproject.com/useritems/LoggedOnUsersPart2.asp Thanks... For a fee For consulting services There's a lot of expertise here but I don't think anyone wants to do what you are being paid to do. ...Show All
Smart Device Development how can i display a notification with dismiss button
i whant to display a notification message using C# in NETCF v2 which have a dismiss button like the notification recived in sms messages . Use the new Notification class for this purpose. Here are some samples how to use it: http://msdn2.microsoft.com/en-us/library/ms172539.aspx http://msdn2.microsoft.com/en-us/library/microsoft.windowsce.forms.notification.aspx ...Show All
Visual FoxPro Purging data from Visual Foxpro using oledb in .Net
Hi, Can any one help me on the below.... I am using Visual Foxpro as backed an Vb.Net as the front end... I am using the oleddb connection..... the following is the parameter.... "Provider=vfpoledb.1;Data Source= \\Data; Collating Sequence=general" I have a Visual Foxpro open table dabase which contains nearly a million record.... When I give select * from transcation where id='001' and cust='03' the time taken to purge this record is very high (nearly 5 min).... I have indexed the table on the basis of the above too (id, cust) feild. The purging of record is done thru front end vb.Net OleDB adapter Can any one tell me how to use the indexes which is creted in foxpro to return th ...Show All
Windows Forms update code works for modify but not add new
I have these 2 lines of code for both saving new record and modifying existing record, this.staffBindingSource.EndEdit(); this.staffTableAdapter.Update(this.hPMDataSet.staff); however, it only works for modifying new record, but not saving the new record, seems that it does update the actual database for the changes made to existing records, but doesn't update database with the new record. please help well, i have 2 buttons, "add new" and "save" buttonAddNew has code " this.staffBindingSource.AddNew(); " buttonSave has those 2 lines of code. btw, i set my d ...Show All
Smart Device Development WebBrowser Scrolling
Is there any way to scroll the web browser control programmatically I haven't found any. Thanks for your help. Wolfgang ...Show All
Visual Studio This shouldn't be this tough ... ReportViewerControl Web Forms
I have implemented the following custom authentication code from MSDN: Imports Microsoft.VisualBasic Imports Microsoft.Reporting.WebForms Imports System.Security.Principal Imports System.Net Partial Class psm_moc_reports Inherits System.Web.UI.Page Public Class ReportServerCredentials Implements IReportServerCredentials Private _userName As String Private _password As String Private _domain As String Public Sub New ( ByVal userName As String , ByVal password As String , ByVal domain As String ) _userName = userName _password = password _domain = domain End Sub Public ReadOnly Property Imper ...Show All
Visual Studio 2008 (Pre-release) WPF demos
hi i was trying to get my hands for any of the wpf demos available on msdn but all the links wasn't working i want demos for the last build of this month thanks in advance Which demos are you looking for. There are many samples available in the SDK. There are many samples available on http://wpf.netfx3.net as well. ...Show All
SQL Server Performance degradation after replication rolled out
Hi all. Any assistance would be greatly appreciated. We recently created transactional replication to hopefully improve performance issues we were expereincing. The replication is between 2 SQL Servers (2000), and since we have introduced the replication, the performance has degraded considerably. I will try and explain the scenario. We have a primary db that our internal users use and we also have the newly replicated db that our website and another application use. The users are complaining that the website and the internal application is extremely slow and I was just wondering if it is possible to do an Index Tuning on both the primary db and replicated db based on trace files so as to create new indexes or would this have a ...Show All
