avinashraj's Q&A profile
SQL Server SQL Server 2005 JDBC Driver Output Parameter/Result Set issue
I'm having an issue with the JDBC driver when I execute a stored procedure that both has a return value and also returns a result set. If I attempt to retrieve the return value (registered as an output parameter) after I execute the stored procedure, then any subsequent attempts to retrieve the result set always return null. Is this by design If I use the result set first and then later get the return value that works; however, in my situation I need to first check the return value before I work on the result set. Am I'm I doing something wrong Code: CallableStatement cs = connection.prepareCall("{ = call spGetCustomer( , ) }"); cs.registerOutputParameter(1, Types.INTEGER); cs.setString(2,"blahblahblah"); cs.setB ...Show All
Visual Studio Tools for Office Smart tag development not part of the vsto.
Hello, I would like to develop a smart tag project which will deploy to all the office application as : word, excel and outlook, not just part of a specific word development. In version 1.1 smart tag were register in the registry and all the office document word, xl and outlook identify the smart tag automatically and behave as expected. Now when I develop a smart tag it must be part of word or excel application and its not what we need, Can you please solve this issue and send us a link or an example how to develop a smart tag and catch all the office documents bye regards Yaron karni. www.attunity.com - InFocus - Workplace application yaronkarni@attunity.com Hi, I already watched the linked y ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Material Alpha
For testing purposes I try to create a simple transparency effect, but whatever I do it does not work... PresentParameters presentParams = new PresentParameters (); presentParams.Windowed = true ; presentParams.SwapEffect = SwapEffect .Discard; presentParams.EnableAutoDepthStencil = true ; presentParams.AutoDepthStencilFormat = DepthFormat .D16; presentParams.PresentationInterval = PresentInterval .Immediate; device = new Microsoft.DirectX.Direct3D. Device (0, Microsoft.DirectX.Direct3D. DeviceType .Hardware, this , CreateFlags .SoftwareVertexProcessing, presentParams); ... this .device.RenderState.ZBufferEnable = true ; this .device.RenderState.Lighting = true ; this .device.RenderState.Ambient = Color .From ...Show All
Visual Studio 2008 (Pre-release) Binding Syntax For a Retrieving Attached Properties
I am trying to bind to another property on a parent control and the property is an "attached" property, such as Grid.Row. Anyone know what the syntax is for this My wild stab is something like this, where in this example I want to retrieve the Grid.Column attached property value for a parent StackPanel and place it as the Button content. But it doesn't work: --- < StackPanel Grid.Column = " 3 " > < Button Content = " {Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=StackPanel}, Path=Grid.Column} " ></ Button > </ StackPanel > --- Any ideas If I switch the Path to be something simple like Width, it does work. Grid.Colum ...Show All
SQL Server Displaying Point Labels in Pie chart when data count is 0
Hi All, I am using pie chart in my report to display links and the count(as value) displaying number of clicks in front of them . In Point Labels, I am displaying link and count of clicks (both come from database). e.g, www.hotmail.com : 10 My problem is that when the link click count is 0 then an empty pie chart is displayed and also Point Labels donot display any thing. I want to display point labels even when count is zero. for example www.hotmail.com : 0 Can some body guid me how I can do this ...Show All
.NET Development StreamReader and StreamWriter
I have problems using StreamReader and StreamWriter. everytime i copied a textfile from StreamReader to StreamWriter. the files bytes are in different size. please need help on this matter. Dim sstream As New StreamReader("c:\EULA.txt") Dim sstream2 As New StreamWriter("e:\EULA.txt", FileMode.Create) Do Until sstream.Peek = -1 sstream2.WriteLine(sstream.ReadLine) Loop sstream.Close() sstream.Close() more info: the destination file E:\eula.txt has more bytes (file size ) than the source (c:\eula.txt) please i need help ...Show All
Visual Basic searching in datagridview using textbox
I had a datagridview which contains all the last name of a certain database.the data was displaying properly .I want to accomplished two tasks,first I want it that upon loading on the datagrid, data are sorted alphabetically already even without pressing the column header.Second I want to search the datagrid using a text box. I want like an autocomplete manner, if I type a single letter, say "B", the datagridcolumn will automatically point to the the name say "Bal" and so on...thanks once again. Lets say for example you are searching the first name column. dv.sort="FirstName" dim intRowNum as integer intRowNum=dv.find("Joe") ' Now we need to move to the right ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Console a la Quakes?
I'm wanting to add a console like in the quake series, a simple dropdown... but no text/command entering yet! Just simple "debug" output so i can have detailed information on the game while it runs... how would you guys suggested handling the messages a simple buffer or array Anyone have a link to some code that does something similar to this (not specifically xna, just anything c or c++ i could translate over) Any help is appreciated! Jim Perry wrote: Not sure if he's implemented it yet but you can check here . yes, i saw that a while back while looking for help with another component (forgot about it though) but the only problem with that is that it's so embedded into his own "engine" it would be hard ...Show All
Software Development for Windows Vista What happens to running workflows when the workflow is changed?
Hello, My website uses a workflow for document approval. I was wondering what happens to running workflow instances when I exchange the workflow for a different workflow. For instance, what happens if the current state of the document is removed from the workflow Or what happens if some transitions are different in the new workflow Or is the complete workflow instance stored in the database each time and will the new workflow only be used for the new instances created after the update I hope my question is clear... Where can I find good examples of how to use side by side versioning for ASP.NEt apps. I have been trying to get this to work for a long time. The issue that I have is that I am ...Show All
Visual Basic Application - Object Browser interface.
Alright, I must admit that I am an object browser addict. Is it a Dll that an be called by another application Jack thank you so much for the reference! I'm good but I don't think I'll be able to write anything that nice - this year. :) Does the object Browser use reflection It is slow and reflection is slow. It has to be looking at classes etc. And it has a lot of text so isn't it doing more than just reflection ...Show All
SQL Server Year to Date Calculation
I am trying to write a year to date calculation, month todate and week to date. the problem is I am not getting totals when I just add one week it does not roll downward from year todate month to date and week to date. I used the BI wizard for time intelligence. i do not want a whole lot of columns I just want the week to date to roll to year to date by selection upward. IE. if only wtd 6 is selected i still want the rollup for year to date and month todate for just that month. Here is the current script. This is in 2k5. CREATE MEMBER CURRENTCUBE .[Time].[YTD].[Year to Date] AS "NA" , VISIBLE = 1; // Year to Date ( [Time].[YTD].[Year to Date], [Time].[Fiscal Year].[Fiscal Year]. Members , ...Show All
SQL Server Filter Tables According to User
Hi, Im new to SQL Server and Im having trouble to decide wich is the best way to filter the tables that one user can read and write. For example the table Sales as a field named Branch (SMALLINT) with values 1 or 2 (the store that made the sale). User "A" can see and write only records where Branch = 1. Im developing a windows program that shows all the purchased orders in a DataGridView. So should I make the filters (permissions) in the program or in the SQL Server . I hope I made my self clear (my english is not so good) I could make a table that lists the branches that a user as access to: UserID Branch. Then the program can read and store in a variable the Branch values for the user that log on. Then all ...Show All
Visual Studio Team System TFS Pre-Development - Early Observations :-(
Hi all We have recently installed TFS in our development team. We are going to be using it on a large multisite project that starts the tech spec/development activity sometime in December. At present we are still in the requirements analysis and planning phase. I am sorry to say that at this stage I am yet to see any benefit from using TFS (although I fully accept the picture to change once we begin development) because; - I cannot put my documentation into source control, I have to use Sharepoint's version control. The integration between the two seems very limited. - Work Items; they are very clunky to input using Team Explorer (especially maintaining the relationship between one Work Item and another through Links). I am yet ...Show All
Visual Basic need some help here plss!
I suck at programming and i have a few problems here. Hope some kind soul can save me Firrst, i have a textbox to allow users to input related hyperlinks. Therefore, users are to enter the links lik this in the textbox. http://www.yahoo.com,http://www.asp.net However, when some1 clicks on the link, it appears http://www.yahoo.com,http://www.asp.net in the address bar. Can some1 teach me how to seperate this 2 sites so that it appears http://www.yahoo.com or just http://www.asp.net in the address bar How to seperate them The text box is a single line text box. Secondly, the websites have to input with this format http://www.yahoo.com . can anyone tell me how to detect whether the user has input the website with the ...Show All
Software Development for Windows Vista How to retrieve value of ActivityInstanceId (or Activity's ContextGuid) from an HandleExternalEvent1_Invoked method?
I have a StateMachineWorkflowActivity where each state contains a EventDrivenActivity, HandleExternalEvent, and SetStateActivity. In the HandleExternalEvent1_Invoked handler, I want to be able to access the ActivityInstanceId (or Activity's ContextGuid) value How can I do this (ActivityInstanceId is the name of a field in the ActivityExecutionStatusEvent SQL tracking database table. An Activity's ContextGuid appears to server a similar purpose.) Michael. private void HandleExternalEvent1_Invoked( object sender, ExternalDataEventArgs e { TaskActionSentEventArgs e2 = ( TaskActionSentEventArgs )e; Console .WriteLine( "HandleExternalEvent1_Invo ...Show All
