Panish's Q&A profile
SQL Server Bulk insert and splitting content into collumns
Hi, when i try to load XML file into a table with bulk insert, i get bunch of errors: Msg 4864, Level 16, State 1, Line 2 Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 1, column 1 (cislo_subjektu). My guess it is, that it has something to do with 11 different collumns defined in dbo table and this command's lack of some specification about where to put which value. BULK INSERT pokus.dbo.organiz FROM 'D:\organizace.xml' /* my file */ WITH (FORMATFILE = 'D:\organiz-x-c.xml'); /* formatfile*/ GO Is there a way to split content of loaded file into correct collumn in dbo table Hi, thanks for input. Do you know, what this error means Bulk load da ...Show All
.NET Development sent byte array shifted
hi, I have a case whereby when i try to send an byte[], the receiver receive it as its has been shifted. When i tried to debug: sender byte[] before socket.BeginSend() consist of: [1] 60 [2] 63 [3] 120 [4] 109 [5] 108 32 [7] 118 101 ... receiver byte[] after socket.Receive() consist of: [1] 0 [2] 0 [3] 0 [4] 0 [5] 60 63 [7] 120 109 ... The size of the byte[] is sent beforehead, and both sender and receiver has same number. The filestream is created afterwards, and the receiver file has 4 spaces at the front file and 4 character truncated at the rear of the file as it follows the size of the byte[]. What is exactly happening... Anyone can solve my problem Thanks in advance Your problem is sender: byte [] fSiz ...Show All
Visual Studio VS SDK and TeamSystem source control problem
Hi, After installing Visual Studio SDK, C# project files in my solution are taken in checkout if a build the solution. I'm the only member of our team that have the SDK installed. I look at what is added to project file when I build a solution with the SDK installed. The following XML is added to the prj file: > <ItemGroup> > <Service Include="{B4F97281-0DBD-4835-9ED8-7DFB966E87FF}" /> > </ItemGroup> Is there a way to avoid this modification to prj file Thanks FYI...This bug has been fixed in the (upcoming) December 2006 CTP release of the Visual Studio 2005 SDK. Thanks, Aaron ...Show All
Visual Studio Team System Team Site Licensing question
We would like to create a user site underneath our Team Site so that users can post feature requests and bug reports. Will these users need a CAL in order to access this site Thanks, Ovi I'm not a licensing expert so you will need to verify this but if they are only accessing the Windows Sharepoint Services site then I believe they would only need the appropriate Windows Sharepoint Service CALs which is either a per user CAL or an external connector CAL: http://www.microsoft.com/windowsserver2003/howtobuy/licensing/sharepoint.mspx ...Show All
Visual Basic hiding the startup form
Hi, I was wondering if there is a way to immediately hide the startup form on startup. The Me.visible = False and Me.hide() Methods don't work. I am trying to make a simple program that has a login form and the main form. When my program starts i want the login screen to appear and the main form to immediately disappear, then when the user clicks OK the login screen closes and the main form shows. Everything works except when the program runs both the login and the main form window appear and i can't seem to make the main form disappear, and for other reasons setting the login form as the startup form is not an option. Hope this is a simple fix. Connor There are a couple of ways: 1. Use a sub Main(). Y ...Show All
Visual Basic VB6 convert?
VB6.TwipsToPixelsX The VB6 is coming up undeclared and im using VB 2005 Express Edition(I think thats why) What should it be Add a reference in your project to Microsoft Visual Basic Compatibility .NET Component and then put the following statement at the top of you code. Imports Microsoft.VisualBasic.Compatibility ...Show All
Visual Studio Team System Refresh add-in MS Project is not picking up dates from tasks in team system and distorting start dates
URGENT HELP !! I have a project plan where items are scheduled using the leveling tool. All the tasks setup in MS Project were initially published to team system correctly. On a daily basis, users will update the tasks in team system by entering the actual start date in a customised field called actual start date along with completed and remaining work. Also on a daily basis, I access the project plan and 'refresh' the data so that the actual start date, completed work is updated in the project plan. Upon doing this, I will save the changes and then manually level the project plan so that any newly added tasks are scheduled accordingly and then save. At this stage, I am happy with MS Project's scheduling of tasks and ...Show All
Software Development for Windows Vista hi
hi all i have problem using complex 2d arrays in c#.net (complex **c) , (double *x, double *y). My error is - Pointers and fixed size bufffers may only be used in an unsafe context. Hope u understand the problem and get bck to me asap. thanx madhuri. Hello Madhuri: This forum is for the discussion of developing software specifically for mobile PCs. I recommend you repost your question in the Visual C# Language forum. Thanks! - Mark Hopkins (MSFT) ...Show All
SQL Server Dynamic Stored Procedures uses vars only
Hi there, I would like to know how to create Dynamic stored procedure which defines TableName as a Variable and return all fields from this Table. And also how to Dynamicly create a sp_GetNameByID (for instance) using vars only. Thanks It would be very helpfull to me if you could give links of Dynamic SQL tutorials from which i can learn. Writing dynamic T-SQL doesn't strike me as being relevant to SSIS so I'm a little confused. Perhaps you could elaborate. By the way, best practice stipulates that you shouldn't name your sprocs "sp_*". -Jamie ...Show All
Software Development for Windows Vista Using LUA/UAP in custom applicatons
Hi, The December CTP of Vista has a modified version of UAP/LUA. There's a shield icon (windows colors) next to any setting that requires aleveated status (brings up the verification dialog instead of an earlier dialog that asked for admin password). Also, for other tasks such as opening a file, modifying registry, modifying the drive, etc the dialog pops up asking the user to verify the action. The question being, if I have several settings in my application that I'd like to be either Admin specfic or just out of concern I don't want the user to click on that unknowingly (i.e. might pose a danger to the system/security, etc). What should I be doing are there APIs in the platform SDK/Windows SDK for Vista that allow me to b ...Show All
Visual Studio Tools for Office About the Outlook addin in 2005
Hi all, i need to develop a addin in outlook-2003 using visual studio-2005.For that i have installed Visual Studio 2005 Tools for Office Second Edition Beta.Then i have downloaded the samples from the msdn. But while i am running those samples, i get the following error. one or more projects in the solution could not be loaded for the following reasons......................................... So please anyone help to solve this problem cheers ravi You've probably downloaded samples that were for the Outlook 2003 addin project in VSTO 2005, not for the VSTO 2005 *SE* Outlook 2003 project (which is new and has a different architecture). Actually, converting that code to work with t ...Show All
Visual Basic Compact and Repair Access 2003 Database
I am using VB .NET 2005 and I would like to compact an Access 2003 database. I've read "How to compact a Microsoft Access database by using Visual Basic .NET" from the knowledge base but it will only save in Access 2000 (link below). Attempting this with a 2003 database throws an exception about not being able to save it as an older version (losing features and what not). Is there a way to do this with a 2003 database http://support.microsoft.com/default.aspx scid=kb;en-us;306287 That didn't work for me but this did right out of the box. Credit tutuster (Programmer) from the tek-tips forum, here is the link. http://www.tek-tips.com/viewthread.cfm qid=1128991&page=4 Sub fixmdb ...Show All
Windows Forms a good book about windows form
I would like to purchase a good book about windows forms, focusing in organizing the forms, mvc, an those things. Could you recomend one to me Thanks in regards. I refuse to recommend books to others, because everyone has his own GOOD books. However, you can have a loook at "Windows Forms 2.0 Programming" written by Chris Sells, and "Windows Forms in Action 2nd Edition" written by Erik Brown and ... It's all up to you. :-) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problem loading a Blender exported .X file
I've been searching these forums and on Google looking for a solution to my problem but have yet to find an answer. I have created a simple model in Blender and now I want to load it into XNA. From within Blender I use the DirectX exporter which creates a .X text file (not binary). I then add that to my XNA project (essentially just following the first 3D tutorial in the XNA help). However, upon trying to compile and run the program I get the error message "Could not read the X file. The file is corrupt or invalid. Error code: D3DXFERR_BADFILETYPE". I have tried a number of different combinations with the exporting settings in Blender, but I always get the same result. I found a tutorial on the web that had a .X file for download ...Show All
SQL Server VS 2005 SP1 brings to program crash of SQL Server Management Studio
Hi! Well... I've installed: - Windows XP Professional x64 Edition (with latest SPs and updates) - SQL 2005 (with SP1 installed) - VS 2005 I installed SP1 for VS 2005. After it I cannot use SSMS because after attempiting to execute any query or just open Database Engine in Object Explorer, SSMS crashes with the error: .NET Runtime version 2.0.50727.42 - Fatal Execution Engine Error (7A05E2B3) (80131506) Any ideas how it can be solved Paul Generally a "Fatal Execution Engine Error" means that your .NET 2.0 runtime has been corrupted. You can probably just uninstall the runtime and reinstall it to fix the problem. Make sure you install the x64 version of the runtime. ...Show All
