Sanjay12345's Q&A profile
SQL Server Stuck between "Failed to generate user instance" and "An attempt to attach...failed"
I wrote an application using Visual Studio 2005 beta 2 which uses a SQL Express .mdf file, included in the project, for the database. After installing Visual Studio 2005 RC and the SQL Express that comes with it (I followed all of the uninstall instructions first) I can no longer add a SQL Express database to any of my projects, nor can I open the SQL Express database in my original project. When I try either of these tasks, I get th ...Show All
SQL Server Transfer Database Task
I am attempting to utilize the 'Transfer Database Task' to copy a SQL 2000 database to 2005. I would like to set up the task as a job to run nightly and update the 2005 database from 2000. I have the DestinationOverwrite set to true, the Action set to Copy, the Method is DatabaseOnline. I receive the following message... ERROR: errorCode=-1073548784 description=Executing the query CREATE ROLE[RSExecRole] failed with the following erro ...Show All
Visual Basic Weird debugging issue in Vb.Net
Hi, I was having no trouble coding and debugging my project until this morning. I put in a break-point and then ran the debugger. The break point gives me this message: "The breakpoint will not currently be hit. The source code is different from the original version". I have no idea what I am doing wrong or why it is different. When I go to run the program, I added a few new lines of code and it does not execute them at all. I ha ...Show All
.NET Development Inserting string from XML file to System.Drawing.Image
What am I doing wrong I simply want to add the "im" field at the end of the path, so that the correct jpg is shown. I've created filestreams and everything works fine for the the text fields. The images are located in the "Program Files\SmartDeviceApplication1" directory, as is the XML file. If I type in the actual name of an image, it works, but of course the image is shown for every entry. (So I know the directory ...Show All
.NET Development Decode serialport data (system.io.ports)
I have connected an IR reciever to my com port and I’m using System.IO.Ports.SerialPort to recieve data sent from a remote control to the reciever. I am having trouble doing anything with the data I recieve using the new SerialPort class. I need help decoding the data into something useful, like differentiating between different remote control keys. If I use ASCII encoding the data I recieve is usually something like " ". If I use Unicode I ...Show All
.NET Development .Net Scheduler
Why does MS not think of coming up with a .NET Scheduler component for .NET 2.0 Similar to the one over at http://www.codeproject.com/csharp/TSNewLib.asp It would be a lot better if MS came up with this. They already have the code for it in Outlook and Windows Scheduler, to name a few places... Thanks, JGP Hi, Microsoft is surely interested in taking feedback from people. Please post this as a suggestion here: ...Show All
Visual Studio Express Editions Add Record
I'm able to display data from my database with this code but can't add a new record. What am I doing wrong Dim MyConn As New OleDb.OleDbConnection( "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\db.mdb" ) Dim MyComm As OleDb.OleDbCommand Dim strSQL As String MyConn.Open() strSQL = "INSERT INTO [Names] (LastName, FirstName) VALUES ('" & LastNameTextBox.Text & &qu ...Show All
Visual C++ C6.0->VS2005 -user messsages- ON_MESSAGE error C2440: 'static_cast'
Help Needed: I'm moving a program from C6.0 to Visual Studio 2005 C++. It's an MFC program. The problem I am having is with ON_MESSAGE handling user messages. The compiler is not happy with the function prototype for the message handler. I've made the needed changes to the code to satisfy the stronger type checking of this compliler, but don't understand the 'static_cast' comment. I've tried making the function ' ...Show All
Visual Basic VB6.0, ShellNotifyIcon
Why the icon not displaying in the status bar when i try to use loadpicture directly. And i dont want to use form or picture box to get the picture/icon. 'General Declaration Private Type NOTIFYICONDATA cbSize As Long hwnd As Long uId As Long uFlags As Long uCallBackMessage As Long hIcon As Long szTip As String * 64 End Type Private Const NIM_ADD = &H0 Private Const NIM_MODIFY = &H1 Private Const NIM_DELETE = &H2 Priv ...Show All
Visual Studio VS2005 Install Problem
Hi! While trying to install the latest release of VS2005 I keep getting the following error: "Suite Integration Toolkit Executable has encountered a problem and needs to close. We are sorry for the inconvenience." Does anyone have any idea why I get this This usually means the media is corrupt. How did you get the CD/DVD If you got it off MSDN as an ISO, make sure you bur ...Show All
Visual Studio 2008 (Pre-release) Dragging slider makes items in TreeView appear blurry
One other quesetion, however, when I drag the slider quickly from a large value to small one and hold the mouse down, the items in the TreeView appear blurry. Only after I release the mouse are they rendered nicely. Is this a bug Text and other primitives are usually pixel snapped when we render them, effectively meaning their rendered position is rounded to the nearest pixel. We do this because the qual ...Show All
SQL Server Inner Join problem
Merit, The best way to understand joins is read BOL. There are several algorithms to perform a join, such as inner loop join, merge join and hash join. Each of them needs thorough coverage that is impossible to provide in one post. I will give 2-word description of each type of joins, but, yet again, you need to read BOL to understand everything in detail. Inner loop join works like you guessed-it devides the tables to be joined to inner and ...Show All
Visual Basic Help me Filter Checkbox
hi all.... i have good experience with vb but i have some serious problems i have created a mysql with table dss but i`m confused about this i think many people will have this problem in future this is the table of dss ================== date (data type = date) drivers(data type = text) group (data type = text) speed(data type = number) score (data type =number) ================== ---------------------------------------------------------- ...Show All
Visual Studio 2008 (Pre-release) Multiple endpoints for a service hosted in IIS
Is it possible to have a service hosted in IIS to have multiple endpoints I suppose WCF services hosted on IIS only support HTTP. But, can I have a scenario whose config is shown below : < system.serviceModel > < services > < service type = " PaymentGatewayService.Payment " > < endpoint address = "" binding = " basicHttpBinding " contract = " PaymentGatewayService.IPa ...Show All
Smart Device Development Custom MessageBox on Pocket PC
Ok here's the case: I need to show a messagebox, that looks just like the ordinary Pocket PC (or smartphone) MessageBox. Only difference should be, that the messagebox should have timeout time and it could be playing sound in a loop. I can handle those, but the look and feel of the message box causes me problems. I have tried to make a form, that looks like message box, and show it using ShowDialog method. In Visual Studio 2005 designer it looks ...Show All
