Ali Coder's Q&A profile
SQL Server SSIS process error "Too many buffers are locked"
Anyone seen this SSIS error when importing data I have a 64bit quad processor with 8gb and am importing from Oracle 9 using 32bit DTExec.exe from the command line. OnInformation,Myserver,MyDomain\SQLAdmin,J001OracleDimExtract,{CEB7F874-7488-4DB2-87B9-28FC26E1EF9F},{1221B6EB-D90A-466E-9444-BA05DBC6AFD8},6/29/2006 10:58:08 AM,6/29/2006 10:58:08 AM,1074036748,0x,The buffer manager detected that the system was low on virtual memory, but was unable to swap out any buffers. 2 buffers were considered and 2 were locked. Either not enough memory is available to the pipeline because not enough is installed, other processes are using it, or too many buffers are locked. Thanks Most likely you are runni ...Show All
Visual Basic Form object resizing
Hi there everyone, Something is baffling me here. I'm trying to code a resize event to ensure correct placement of my controls whenever the form is resized. I have a picturebox control that I wish to fill the screen but leaving a gap, of around 3, either side. At the bottom of the form I have a textbox control (txtCallsign) that I intend to keep fixed to the bottom of the form. I've tried the following code: Private Sub frmMain_Resize( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Resize ' Resize the picture box control as the form ' resizes. PictureBox1.Left = 3 PictureBox1.Top = MenuStrip.Height + 1 PictureBox1.Width = Me .Width - 6 PictureBox1.Height ...Show All
Visual C++ Visual Studio 2005 layout prob
Hi guys I have been trying to compile an app in Visual Studio 2005(its a c++ app) but every time i run the proggy after compiling it, it looks like this: After Compiling(click me) although when i click on the Test Dialog button in Visual Studio 2005 it shows the apps layout like this: Using Test Dialog(click me) I started the project in Visual Studio 2005 and the first time when i compiled the app after adding just a simple button ,nothing else, it worked and my app was compiled in the VS2005 format although after adding som functions and stuff it compiled in Visual C++ 6 format! Visual Studio 2005 Format: Click Here ...Show All
Smart Device Development Targeting different devices with one code base
Hello all, We have our base build in .net compact framework 1.0 targeted for Motorola Q smartphone 5.0. Now the question is can we use the same codebase for pocket pc 2003/5.0, Smartphone 2003/5.0 phones. Secondly is it possible to have one codebase for all these devices We are not using any reference from win mobile 5.0 sdk. All references we are using are from c:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v1.0\WindowsCE\ Thanks in advance regards, Rashmi Todkar Hi Rashmi Yes, .NET CF 1.0 is availabe on all platforms you want to support. This sould be possible to use a single code base for all 4 platforms. The MEDC 2006 session named 'Essential T ...Show All
SQL Server Formatting With Multiple Columns
Hello, Is it possible to view the contents of a report in 2 columns for example, if i had a report contained a table with 1 column, could I, rather than epanding that table column down, use some of the room to the right of the table to "repeat" the columns in the table to show more of the data In crystal reports you could achieve this effect by using the "format with multiple columns" option. If you need a better explanation please let me know. Thanks in advance. ...Show All
Visual Studio 2008 (Pre-release) Test Endpoint Connection
Hi, I am trying to develop my version of the ChannelFactory class that has some built in functionalty to endpoint failure. The general idea is that consuming application calls my static method specifying the contract and endpoint name to connect to. The class can then make this connect and confirm that the remote service is available and if not it connect to a know backup machine. The problem i am having is that my class inherits from ClientBase and exposes the static but I cannot find anything to check if the connection was made. The code i have in the static has the following code inside it : returnValue = new ServiceFactory <TServiceContract>(endpoint); returnValue.Open(); I would have expected the open method to ...Show All
Software Development for Windows Vista Getting text out of DrawingVisual?
I'm playing with Feng Yaun's watermarking sample at http://blogs.msdn.com/fyuan/archive/2006/08/23/715938.aspx It basically creates a DrawingVisual and adds it to a page's children collection. Later on, I can enumerate the page's collection and get back my DrawingVisual. What I can't figure out now is how to get the actual text that I drew into it. From the DrawingVisual, I can get the DrawingGroup and DrawingChildren collection, but none of these have anything that remotely looks like text. Maybe I'm misinterpreting what the original DrawText into the DrawingContext does, and it's really just storing a bitmap (meaning, later changing the watermark would be a little tricky). So the obvious first question is: is there a way for me ...Show All
.NET Development SqlCommand Problem
I'm working on a project that uses an SQL database to link geometry between two 3D modeling applications. In the process, I'm learning C# and .NET. Right now, I'm working on the SQL stuff, using Visual C# Express. In the following code, I'm trying to instantiate an SqlCommand object. The instantiation seems to work, but when I try to use it (cmd.CommandTimeout, cmd.Connection) the cmd object does not show up in Intellisense and gives me an error "Invalid token '=' in class, struct, or interface member declaration." I seem to have all of the right references, and I'm actually converting this (as an exercise) from a VB project that a friend of mine wrote, which has no issues. I even tried inserting a similar sequence of code direct ...Show All
Windows Forms Closing original Form
If I have a startup form that allows the user to open other forms is there a way to close that original form or hide it until the user needs it again Thanks Thomas no, it only loads forms as it needs them. it just keeps them around after they are disposed so they can be queried. performance wise, you won't notice any difference - it's all pretty fast. ...Show All
SQL Server Databases missing from Backup Task of Maintenance Plan
I'm moving databases from SQL7 to another server with SQL2005. I have created new databases in SQL2005 via a restore from backup files created in the old server. Now I want to back up these new databases but they don't show in the Backup Task of a new or existing Maintenance Plan in Management Studio. I can backup them manually though. Any ideas I assume you have restored this database to a local 2005 server. If this is the case, they should show up. Maintenance plans can not make connections to SQL 7. Can you see this database via Management Studio ...Show All
Visual Studio Tools for Office Reading pane previewer in Outlook 2007
Hi, how can I write (and register) my own previewer for attachments Any tutorials available Thanks I have had a look through a load of resources and cant see any public interface for this, and is a shame as not following the same as the Explorer Viewer in the Vista UI as would be so logical to follow this :( Here's hoping MS will respond but this isnt really a VSTO based question Regards ...Show All
Visual Studio Drill through behaviour
When a report performs a drill through action via the Report Viewer Control, will the report render again to get the drilled data or are all needed data for available drilling already collected in the first and only "round trip" to Reporting Services ...Show All
.NET Development ImportCspBlob - does it work?
Has anyone had any luck with the ImportCspBlob method of RSACryptoServiceProvider I am trying to verify a signature that was created with an unmanaged app. So, I export the public key blob to a file from the unmanaged app like so: CryptExportKey(m_hKey,0,PUBLICKEYBLOB,0,NULL,&dwBlobSize) BYTE *pbData = new BYTE[dwBlobSize]; CryptExportKey(m_hKey,0,PUBLICKEYBLOB,0,pbData,&dwBlobSize); HANDLE hFile = CreateFile("public.key",GENERIC_WRITE,FILE_SHARE_WRITE,NULL,CREATE_ALWAYS,0,NULL); if (hFile != INVALID_HANDLE_VALUE) { DWORD dwNumberOfBytesWritten = 0; if (WriteFile(hFile,pbData,dwBlobSize,&dwNumberOfBytesWritten,NULL)) { bRet = TRUE; } CloseHandle(hFile); } Then, in my managed app ...Show All
Visual Basic how to select combo box items
can i knz how to selected the combox item that is data-bound If the combo box item is selected it will display the results of the that correspond to the combobox item pls send link or sample codes asap You can use a variety of methods on the Combobox. SelectedIndex, SelectedItem, SelectedValue, SelectedText all for slightly different purposes. With a combobox you dont have a multiselect option as you do with a listbox - I mention this as you refer to items in the title of the thread. I would suggest having a look at these in the help file, playing around with them and seeing which serves you purpose. ...Show All
Visual Basic How to check if an Array contains a string.
I want to search through an array and find out if a certain string is contained within. But, Array does not have a Contains member so I do not know what else to use. Thank you, Troy L Dim IndexInArray As Integer = Array . IndexOf ( MyStringArray , Str ) ...Show All
