Reza Bemanian's Q&A profile
Visual C++ How to convert string to byte array?
How can I convert any string (containing not only numbers) to array of bytes in VS2005 (for storing in Registry as binary) If you mean any string, that it may conatin also binary (i.e. 0x00 bytes) than base64 would be a gould emthode to code the binary byte sequence into a string. Look at http://msdn.microsoft.com/library/default.asp url=/library/en-us/vclib/html/vclrfbase64encode.asp But note the RegSetValu ...Show All
SQL Server Guids as primary keys
Is it a good idea to use Guids as primary key. What is the impact on performance. Guids are random by nature that may have an impact on writing clustered index. Any comments or suggestions I'm not a complete expert, but one problem I know of with GUID's with clustering keys is that they are not naturally increasing so this could introduce lots of fragmentation in environments with lots of inserts. They are a ...Show All
SQL Server File System Task - relative location ?
hi, I am using "File System Task" to copy files from one pre-defined location to another. Is there a way to provide a "relative path" for the corresponding connections If yes, how to set it up for deployment If not, I guess the option will be to update the "connection string" property for the file connections using package configurations. thanks, Nitesh Another option is to store the "root" location in a folder (it can be populated from a ...Show All
SQL Server SSIS Sequence container,data flow task
I am creating a staging database in which I am loading required tables from 2 different sources. I have 30 different tables to load from source 1 and 10 different tables from source 2. This is the way I am doing, in Control flow task I am using Sequence container and in that I included the data flow task, the data flow task has source OLD DB connection from where I select the table and then destination OLE DB connection where I load the data ...Show All
SQL Server Copy Data from Access to SQL Express in Code?
I have tried the upsize wizard from access 2000 and access 2003 and get records transfer in 90% of the tables I have data stored an 89 meg MS access database (2003) on an XP machine. I can use, compact and copy etc in MS Access without problem. With the upsize, I get No errors, just does not reliably move ALL data. I have run it multiple times and occasionally get some data in these tables, but never all data in a few t ...Show All
SQL Server Error copying databases in SQL Server 2005
How does one copy databases in SQLServer 2005 I am trying to copy a database from one instance of SQLServer 2005 to another instance of SQLServer 2005 using the SQL Server Management Studio Copy Database Wizard. The source database is a continuously updatable database, while the destination database is used for reporting purposes. When the wizard tries to create a SSIS package (as part of Copy Database), I get the following error: While trying ...Show All
Smart Device Development Win 5.0 debug with eVC 4.0
Hello folks, I am using Microsoft eMbedded Visual C++ 4.0 with SP3 + SP4 installed and I want to debug my aplication on a SPV C600 that runs with Windows Mobile 5.0 - debug on. The set platform is SmartPhone 2003. My question is do I have to install a debug tool for this device or what I want to do is not possible Either way I would appreciate an answer. Best regards. You cannot develop/debug fo ...Show All
.NET Development VS 2005 Application Deployment
Hi, All I am evaluating the VS2005 and made some applications , now i am stucked at a point where i want to Deploy the application on a client machine for testing. i tried using the publish option, but it does'nt work. could some one help me with this, what are the pre-requisites for application to run. are they available in the VS2005. Thx. Hi, Applications built using .NET Framework 2.0 would require the machines on which they are de ...Show All
SQL Server SQL Server Mobile Replication Error
Hello, I've been trying to convert an application to use the CF 2.0, and of course to SQL Server Mobile. There have been some kinks along the road, but I've worked all of them out except an error on replication. When I call the SqlCeReplication's Synchronize() method, the connection goes fine, it works for about 20-30 seconds, and then comes up with the following error: Error code: 0x80004005 Message: The data types cannot be converted im ...Show All
Visual Studio VS 2005 Beta 2 Images not showing
I'm using VS 2005 Beta 2 on Server 2003, IIS 6 and embedded images in crystal reports show a red X when browsed. To remedy the problem, I found that if I setup a virtual directory (in the root directory of my site) to the root directory of my site and labeled it "data." When I browse that site (https://mysite.com/data), the image works and the properties of the image are: https://mysite.com/data/CrystalImage ...Show All
Visual Studio Team System How can I configure which rules to use...
Hi, I'm using Beta2 and I want to configure which rules to uses when I run Code Analysis on my projet. Can I do this through the IDE What about CustomDictionnary.xml Thanks JF See http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnvsent/html/vsts-dev.asp The part you need is under "FxCop", about half way down the page. ...Show All
SQL Server How To Avoid Table Scan
Hello All, Is their any way I can avoid a Table Scan by modifying the follow WHERE clause WHERE tbl_mis_Dashboard.loan_active_flg = 1 AND [tbl_mis_Dashboard].[loan_create_dt] between DATEADD(dd, DATEDIFF(dd,0,dateadd(mm,-13,getdate())), 0) And getdate() The field loan_create_dt is indexed on the table tbl_mis_Dashboard. The query returns approximately 256K records which is appropriate and necessary. Thanks all, Orlanzo First, ...Show All
Windows Forms setting the parent HWNDfor a form
Hi all, i'm building a Windows Forms component with a form as the top level control and then export it via COM interop so that other applications can use it through its COM interface. In order to synchronize event loops (for longer drawing&nb ...Show All
Game Technologies: DirectX, XNA, XACT, etc. winnt.h errors?
I have just linked Direct X 9 to the new of Microsoft Visual Studio 2005 Beta 2. Trying to compile a program i know that works under Microsoft Visual C++ 6.0 gives me the following errors: c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h(222) : error C2146: syntax error : missing ';' before identifier 'PVOID64' c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h(222) : error ...Show All
Visual Studio Problem Debugging Multithreads (catch imposible exceptions)
Hi ... I have a problem debugging multithreads in VS2003 .. I run a process in a thread ... is just one long process so I put it in a thread .. but ... when I lost windows focus (change to another window or at debugging when I get into a breakpoint and show me the code) VS2003 throws this exception: "System.nullReferenceException" at "System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNative Methods+IMsoComponentManag ...Show All
