deviparimala's Q&A profile
SQL Server Sql Notification Services and SqlCacheDependency .. nothing happens!
Hi, I'm not sure if this is the right forum.. I have an ASP.NET 2.0 web page and I want that when something change on the DB (SQL SERVER 2005)the content of the page changes. I'm writing in this forum because I don't have ASP.NEt error but actually nothing happens on the table when I insert new record in the DB. This is what I have done: ALTER DATABASE MyDB SET ENABLE BROKER I haven't run the GRANT SUBSCRIBE because the table has been created by me (dbo user) Then in the global.asax I called the two method SqlDependency.Start and SqlDependency.Stop Then I started to build my simple example made by a datagridview populated by a simple SELECT. This is the code: Protected Sub Page_Load Dim contracts As DataTable = CType (Cache.Get ...Show All
Visual Studio Consuming a webservice
what are the steps to consume data from a web service in the report viewer control I am assuming that we need to configure an object datasource for this. but i am not getting any documentation on this. Thanks Brian. That is the only website that has decent documentation for report viewer. But it doesnt detail on consuming web services though. ...Show All
SQL Server OWC, Pivot & "OR" queries
this is probably a very easy question but I can't seem to find an answer... Is there any visual way of building a query in OWC that includes a couple of conditions included as 'OR' basically every dimension I drop becomes a condition but they all get added as 'AND' & I can't seem to have a way to do 'OR' - even cube browser in BI studio doesn't have this option... if it was the same dimension it'd have been easy, but it's a bit complicated since it's a role playing dimension & so even though it's the same hierarchy & same level it becomes 2 different dimensions. something like this: DateOpened.Year = 2000 or LastRenewalDate.Year = 2000 ...Show All
SQL Server Changing data type from Char to Datetime
Thanks in adance Platform: SQL 2000 A SQL table has a field named "pay-day" with Char(8) data type. I tried to change its data type to datetime but only with an error message like this. I did right-click the table and tried to modify a data type. - Unable to modify table. The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value. The statement has been terminated. Jay The conversion is not working because some of the data has non-conforming values -values that do NOT convert to valid dates. You will need to locate the non-conforming values and correct them first. The following query should help you find them. SELECT [Pay-Day] F ...Show All
SQL Server working with sets
I need to manipulate some sets, doing joins based on intersection, and looking for subsets. Is there any way to store an array in a single data field And then do operations based on those array lists e.g. - {1,2,3} intersect {2,3,4} ==> {2,4} (would like to then be able to do joins based on intersection, so that I could say, return all cases where two sets have all but one member from each in common...) appreciate the response, and I will toy with linked article (and your code) to see if a function based on one of those methods would help, though it looks like my real problem is with logs... (I have a kludge in place which works, but explodes... I start with 2 megs of data, and end up with 100 ...Show All
Windows Forms reating BufferedGraphics resulting in "Parameter is not valid" exception
Hi I try to use double buffered graphics. The following lines work: private BufferedGraphicsContext plotBufferedGraphicsContext = new BufferedGraphicsContext (); private BufferedGraphics plotBufferedGraphics; protected override void OnPaint( PaintEventArgs pe) { plotBufferedGraphicsContext.MaximumBuffer = new Size (100, 100); plotBufferedGraphics = plotBufferedGraphicsContext.Allocate( this .CreateGraphics(), graphRect); This line doesn't: plotBufferedGraphics = plotBufferedGraphicsContext.Allocate(pe.Graphics, graphRect); Some questions: 1) Why can't I use the Graphics form the paint event The content of the 2 Graphics is the same, except that the PageUnit for thi ...Show All
Game Technologies: DirectX, XNA, XACT, etc. FragmentLinker
Hello. I would like to know if there is any planned support for the FragmentLinker in XNA. From what I can tell this currently is not supported (correct me if I'm wrong). I feel these are very useful, especially in a shader-only environment. Thanks. I don't think the fragment linker is really needed. I would go for offline shader permutation and compilation. There is a nice article on ATi devloper about how this is done in Half-Life 2. ...Show All
Windows Forms Live Search in a datagridview...
Hello, I wrote a DVD database program that stores your dvd info. I would like to implement a live search feature where as you type your collection is narrowed down in the datagridview. I have a binding source, datagridview, and tableadapter as such CollectionBindingSource DataGridView DataTableAdapter I have tried using this code in the keyup event of the text field with no luck, it does nothing. Me.CollectionBindingSource.Filter = "title=" & txtLiveKeywords Any suggestions Jack Bruno ...Show All
Visual Studio Getting ITextTemplating from GAT or custom library
Inside the dsl package project you can get the ITextTemplating object by the following code: ITextTemplating templateGen = ( ITextTemplating )<dslName> Package .GetGlobalService( typeof ( STextTemplating )); Is it possible to get an ITextTemplating instance from GAT or custom library thx Christoph I implemented it successfully by creating a custom template host and custom directive processor. It's based on the following walkthroughs; Walkthrough: Creating a Custom Text Template Host Walkthrough: Creating a Custom Directive Processor ...Show All
Windows Live Developer Forums Fire Fox Map not sizing right
I have a page that contains a VE map and am using this code to make the map the size I want it: <div id='myMap' style="width:700px; height:880px;"> In FireFox 2 the map fills the whole window I have added this code to detect the browser: var ffv = 0; var ffn = "Firefox/" var ffp = navigator.userAgent.indexOf(ffn); if (ffp != -1) ffv = parseFloat(navigator.userAgent.substring(ffp + ffn.length)); // If we're using Firefox 1.5 or above override the Virtual Earth drawing functions to use SVG if (ffv >= 1.5) { Msn.Drawing.Graphic.CreateGraphic=function(f,b) { return new Msn.Drawing.SVGGraphic(f,b) } } I had hoped that would fix the problem but it did not. Does anyone know how to fix this problem ...Show All
Visual C++ Error LNK2019??
Below is my buildlog....Any suggestions for me to solve this issue... I am using Visual Studio 2005. Thanks a lot!! =========================== Build Log Rebuild started: Project: ColorCalibrationUtil, Configuration: Debug|Win32 Command Lines Creating temporary file "d:\ITRI_MIRL\Intelligent Robotics_related\CMU\Project_CBR\cbr_latest_20070227\ColorCalibrationUtil\obj\RSP00004D839610136.rsp" with contents [ /Od /I "..\\" /I "..\external\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "WIN32_LEAN_AND_MEAN" /D "VC_EXTRA_LEAN" /D "WIN32_EXTRA_LEAN" /D "_CONSOLE" /D "CAVERN_DO_NOT_USE_GLOBUS" /D "CAVER ...Show All
Software Development for Windows Vista SqlTrackingWorkflowInstance lose ActivityEvents
I'm using StateMachineWorkflow,SQL Server 2000 SP4 on different computer in local newwork,DTC on both computer is enabled, WWF Beat2.2. I used SqlTrackingQuery to track workflow instance, and I found the SqlTrackingWorkflowInstances of the workflow instances created after application start lost all its events. ActivityEvents:count =0; UserEvents:count=0; workflowEvents:count=0. But SqlTrackingWorkflowInstances of the workflow instances created before application start is ok. My code as follow: //Add WorkflowRuntime Service string connectionString = "Data Source=RemoteSQLServer;Initial Catalog=ShareService;Integrated Security=SSPI"; SqlWorkflowPersistenceService persistence = new SqlWorkflowPersistenceService(co ...Show All
Visual C++ How to execute
ok so im still a begining learner and all.. i tried to execute a c++ file and it wouldnt work.. i tried compiling, building and executing but still... says file not found.. when i tried the same steps in visual studio 6 it works.. can some one guide me thru what im supposed to do You probably need to create a project first and then add your C++ to it. Take a look at the last video at http://msdn2.microsoft.com/en-us/visualc/aa336415.aspx for a sample on how to create a project and run it. Thanks, Ayman Shoukry VC++ Team ...Show All
Windows Forms Project special directories
In my project solution I have a directory named "data" and a couple of files below that which will eventually be included in the deployment. The files contain data which will be read in via a streamreader and added to a dictionary. Is there a special name I can use in "My.Settings" to point to this directory without having to hardcode a path in thanks. ...Show All
.NET Development Sending Message to a known IP
I am asking how to send message to a known IP. This question has been answered a number of times before in this forum. A quick search for socket code examples, will provide you a number of links to full samples http://msdn2.microsoft.com/en-us/library/w89fhyex.aspx ...Show All
