nidionys's Q&A profile
Visual Basic Clean Up Question
Hello- I am a relatively novice developer with more of a question then a problem. Does anyone know of a tool, utility or code that I can use to make sure that when I close my form(s) / application that any instances of classes and such that were created are being cleaned up quickly and efficiently I just want to make sure I am ‘cleaning up after myself’ correctly and effectively! Thanks- Tony Wissler I understand your point, thank you and I will keep that in mind. Part of my questions is - one particular application I am working on has many, many forms and uses mdi. As such some of the forms may be open at the same time and depending on the use case some may create instances of the same cl ...Show All
Visual Studio vb file for a crystal report is not getting created in visual studio 2005
Hi Friends, I like to know how we can use crystal report in visual studio 2005. Today i created an rpt file, but the corresponding vb file is not getting created. in Visual studio 2003 vb file will be created as we are including a new rpt file. Please help me out. It will be highly appreciable. Regards, Jayan Crystal Reports in VS 2005 and web apps no longer creates the .cs or .vb files. These were created to allow you to embed the reports into the application. This worked well with windows applications as you did not have to include the .rpt files with the .exe. With web applications you still had to include the .rpt files with your web application so they removed creating these files. Now instead of being able to declare ...Show All
Visual Studio 2008 (Pre-release) Configuration error due to System.serviceModel tag in App.Config file
I have created a simple HelloWorld WCF service. In the Host project, when I am trying to read the config entries for HTTPBaseAddress, I am getting an exception "Configuration system failed to initialize". However as soon as I comment out the System.serviceModel section in the config file, it is having no problems in reading the same config values. Here is my App.config file: < xml version="1.0" encoding="utf-8" > <configuration> <appSettings> <add key="HTTPBaseAddress" value=" http://localhost:8000/HelloWorld/"/ > <add key="TCPBaseAddress" value="net.tcp://localhost:8010/HelloWorld/"/> </appSettings> <system.serviceModel ...Show All
SQL Server How to map new columns to an oledb destination using script?
Overview of my scenario: i have an SQL table with 10 columns. I read data off a csv flat file source and insert / update them into the sql. No problems there. Now, after the 10th column, the columns are variable from site to site. Ie, for any customer, the first 10 columns are the same but the following 'n' number of columns can be different. I'm already able to detect what are the 'custom' columns from the source db and can programmatically add / modify the columns to the destination sql tables when SSIS runs. My problem now is, i have the flat file source with 'fixed' and 'custom' columns together, and my sql table is ready to receive them, but i don't have the proper column mappings in my SSIS package. I only have mappings for ...Show All
Smart Device Development Can We Put a Button in DataGrid?
I am developing PocketPC application in VS2005 an PPC2003 Emulater. i ve lit bit confusion can we put a button or any control in DataGrid hows we are doing in webbased application in. is it supportable in CompactFrameworl Datagrid. Please give up answer imediately Digant Oza No, the Compact Framework Datagrid control does not support hosting other controls, nor would it allow creating ColumnStyles that have controls. You will need to create your own custom control from the scratch ...Show All
SQL Server Text Box.. Dumb Question
Hey guys, I have a really dumb question. In the header of my report I am trying to put in a text box. This text box should look like this. Legend Value 1 Value 2 Value 3 Here is my problem. Everytime I put in a carrige return it clears everything that I have in the box. What is going on I then thought I should put in a table which would make my life easier but it does not allow me to put in a table in the header.. HELP Open the expresion builder and simply enter the text as you want it to appear (without an equal sign) but with your returns. Even though it will look as if there is only one line, all three will be there when the report is renderred. PS... only dumb question is the one you ...Show All
.NET Development Reading a DataReader from two places at the same time.
I have a SqlDataReader which returns some data from a database. I would like to insert the data from this DataReader into two different tables on two different servers, using two SqlBulkCopy instances. Somehow my SqlBulkCopy objects should read the same DataReader in parallel, so I won't have to read my data twice from the source. The amount of data is quite large, so I wouldn't cache them, for example into a DataSet. How would you solve this problem The only idea I could think of is creating a wrapper over the DataReader, which implements the IDataReader interface, and which can be read in parallel from two different threads. However I don't know how this would perform, as each thread would block after each row of data, and th ...Show All
SQL Server Another Major Flaw with Reporting Services!
Where is the text (.txt) export functionality I don't see any ascii text export mechanism without the .csv extension. Where is actual .TXT file of the reports. How do I get a .txt conversion out of the reports without messing with the .csv files. I would've wanted direct .txt export from the generation mechanism. This seems extremely basic form of reporting generation. I can't believe you can't get txt report out of reporting services. Enkh. I definitely agree with ENKHT. I have the same issue. One of our external partners expect a txt file with specfic columns and associated data. In other words, they read each line and know exactly where the start and end point of each column. And ha ...Show All
SQL Server Custom Annotations on SRS 2000 charts
I would like to be able to put custom annotations on charts. Specifically I have a line chart I want to annotate. I don't want to indicate all plot points, just areas of interest. For example, on one of our line charts there is a value for a week (weeks are the x-Axis) that is way out of whack with other weeks. I would like to be able to display only that value, circle that location on the chart and create a custom note so that when the report displays, all users can see it. All I've been able to find that I can customize on SRS line charts is to add all plot points and be able to change their shape and color and font size. I want to be able to do way more than that with annotations. Is it possible I have .NET programming abilities so ...Show All
SQL Server Execute SQL Task speed
I've created a SSIS package, in a sql 2005 instance, that uses an Execute SQL Task" to call a stored proc as its last step. When run from BIDS, the last step takes about 2 to 3 minutes, consistently. When I run the exact same query from Management Studio (either via exec <spname> or by copying the sp's t-sql code into a query window) it consistently takes about 1 minute. I've run sevral test and these number are quite reproducible. Any ideas to account for the "slowness" of the Execute SQL Task TIA, Barkingdog The first task truncates a table called Contact. The second task imports a CSV file into a table (uses a SQL Server Destination. Does a straight copy of the dat ...Show All
Visual Basic Listbox
hello, How can I retrieve the values the user selected from a listbox with a selection mode set to = SelectionMode.MultiExtended Thank zou spottz, the MsgBox(obj (0) .ToString) did it! ...Show All
.NET Development Desperate Need of Help "Attempted To Read Or Write Protected Memory"
have a web application that uses a DLL using DLLImport. Twice I have put the application live on the net and it has been used hundreds or thousands of time before it has been strangely brought down. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at ProjApi.Proj.pj_init_plus(String pjstr) at coordinate.LLtoUTM(Int32 datumIn, Int32 datumOut, Double p_lat, Double p_lon, Double& UTMNorthing, Double& UTMEasting, Int32& UTMZone) at coordinate.LLtoUTMZone(Double lat, Double lon, Int32 datumIn, Int32 datumOut, Int32& z, Double& n, Double& e) at getfactory.Page_Load(Object sender, EventArgs e) at System.Web.Util.CalliHelper. ...Show All
Visual Studio Team System Get Latest Version extremely slow
Hello, When we do a "Get Latest Version" for a project containing about 450 subfolders this operation shows the "Contacting server to get list of items to update..." for a very long time. Eventually it will come up with an error "HTTP code 500: Internal Server Error". The event log indicates a time out. I have already increased the executionTimeout values for the various .config files used by the Web Services. This increases the time it takes for this error to appear (this can take up to 2 hours) but the error still appears. These subfolders each contain about 20 files with a total size in each folder of 180KB. While the "Get Latest Version" is active the server CPU is not busy at all, it stays ...Show All
Software Development for Windows Vista All games run slower than XP
I have nvidia 6600GT. All games run bad! Fifa 2007 in XP runs more than great on 1280x1024 + AA and all effects, in Vista from the game menu is starting to run bad! When a match starts, starts veery slow fps. The same is with some other games i tried, even the old Counter-Strike 1.6 I play with 60 fps, that is very slow for that kind of game and that kind of videocard. Tried to run with XP Compatibility mode, same :(. Videodriver is updated (that shows Device manager) My Vista is RTM, Ultimate. Tried to stop all visual effects, same story. RAM - 1024, 60% free. Hello samardjiev, Microsoft does not support 3rd party software or hardware. Performance is dependant on many factors in both hardware and software configurations. I would g ...Show All
SQL Server connecting to remote server
Hi friends we've C# app that connects a sql server 2005. we've new requests from client that when users go offsite they still want use our app and connect to sql server. my question is how can we connect to sql server remotely is it using TCP/IP protocol if so how do we do that Thanks for ur help. Hi prk, DNS is the Domain Name System -- essentially the directory service that translates your hostnames into IP address. Your network probably has one and your network admin should be able to give you more info. Regardless of the geography, if your server is configured to listen to a remote protocol and the firewall (if any) is configured properly, you should be able to connect from your client app. The BOL contains some great info ...Show All
