Robert Chu's Q&A profile
SQL Server HOw to export txt file with column name??
i want to know the bcp command to export dat to txt file include column names. I can do export data wiht the table content that do not include column names, it means that i can not ue this text file to do SELECT statement with condition.Pleas for any help.Thanks Io: I don't think this is directly an option of BCP and I do not immediately see it in books online or with BCP / ; can someone please check me on this ...Show All
.NET Development TCP Server Application
Please it is my first trial with network programming, I want to ask about if I can send a message from a TCP Server application to only some clients of the connected clients, I mean such as in UDP SendTo() method which specifies the Endpoints it wants. Great thanks for your reply But i want to ask is n't there any solution to make a reliable and connection oriented chatting messenger ( i mean using the TCP features ) an other request can you help me finding material in C# network programming Thanks again ...Show All
.NET Development Not the same Primary Key in DataTable and in SQL Table
The database: I have three tables in a Microsoft SQL Server 2005. Those tables are given and can not be changed. The main table of those three is called spbTable and has a primary key (int) called spbId. Further settings of this primary key are: (Is Identity) = Yes Identity seed = 1 Identity increment = 1 The other two tables are dependent on the spbTable with the foreign key spbId. The code: I am coding a web application using C# (ASP.NET 2.0 and ADO.NET 2.0). I was generating three DataTable using the Designer of VisualStudio 2005. So I have three TableAdapter, one for each DataTable and each DataTable has its own sql commands. The code I wrote looks like the following: ...Show All
Community Chat ok it,s done...update
ok guys I have tried everything to publish my new web browser on to my site.... thanks spotty for all your help.... much appreciated.... I think my isp is not configured for click once.... I have clicked a thousand times to no avail....... so I am wondering if there is some other way to post my application... I would like to put my app on show and tell and get some feedback... any advice on how to do this thanks cheyenne Zip up your package and post the URL under the show and tell forum: http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=991&SiteID=1 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XACT and occlusion
Hi all. Just a quick Q about how to go about setting occlusion parameters in XACT: I'm unfamiliar with exatly how occlusion data is generated within a game engine, and I'm trying to anticipate some needs for an upcoming project. First off, would it be simple for a game engine to generate a single occlusion value to feed my variable, or does occlusion consist of multiple values In other words if I set an RPC parameter named "occlusion" with values from 0-100 where zero = nothing in between the listener and emitter and 100 = a wall completely in between the listener and emitter [obstruction], would that be enough control Would more variables be needed Is 0-100 fine enough, or should I go with 0-1000 Se ...Show All
SQL Server Creating a table from .NET
I need to create tables from a C# code. I made a stored procedure hoping that I will pass a table name as a parameter: @tabName. The procedure executed in SqlServer All Right but when I called it from C# code it created not the table I put in as a parameter but table " tabName ." Otherwise everything else was perfect: coumns, etc. Here is my stored procedure. set ANSI_NULLS ON set QUOTED_IDENTIFIER ON GO ALTER PROCEDURE [dbo].[CreateTableTick] @tabName varchar(24) = 0 AS BEGIN SET NOCOUNT ON; CREATE TABLE tabName ( bid float NULL, ask float NULL, last float NULL, volume float NULL, dateTimed datetime NULL ) END What went wrong Thank you. To be honest, I wouldn't expect the SProc you've listed to work the ...Show All
.NET Development New column problem....!
I made a procedure Public Sub Novo(ByVal nova1 As String, ByVal nova2 As String) that creates a new oledbDataAdapter with insert update select and delete commads. I also added that commands can change depending how many columns are in a Table (insSql). Dataset is Studenti1data, I made it by the new data source wizard,and made datagridview and bindingsource draging Table1 to Form2. I use Access database. I add a new column with this code: Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click Dim noviStupac As Data.DataColumn = New Data.DataColumn("Test Marko", System. ...Show All
Visual C++ Creating a text box in a dialog and processing it using the message loop
How do make a text box in a dialog I need it so that i can set a text box to a string, and as the user edits the numbers of this box, any other numbers of the same type become that value, e.g. 12234356 If i change either 2 to a Q then it would instantly become: 1QQ34356 How do i initially make a text box in a dialog And how am i going to pass a text changed message to the message loop within a dialog After this i can simply compare it to the original string and change the other values, that bit isn't too hard. Thanks a lot, Chris. It would be better to know what kind of development technology you're using: .NET framework, MFC, straight Win32, etc before giving an answer. In any case, this is the wro ...Show All
Windows Live Developer Forums IE7 Crashes
Hey is anybody else getting errors with IE7 and VE For me it has started in the last 3 days and appears to be while downloading: http://local.live.com/i/bin/1.3.0908172755.52/ero/breakLeft.gif John. Tony, can you provide more information Is it on any VE map or you custom application My problem was I was making too many AJAX calls. I had to put some throttling in place (limit the calls per sec) and it solved the problem. John. ...Show All
.NET Development Dataset.GetXml incorrectly renders XMLNS, breaks XSLT
I have a very simple dataset, just 4 fields in one table. I am using the GetXml method of the dataset to render the XML into an XmlStream, and then XmlCompiledTransform to implement an XSLT, then save it to an HTML file. The Dataset.GetXml method oncorrectly renders the xmlns for my dataset, though. Since it is a strongly typed dataset, the XSD is added to the root node, as such: < xml version="1.0" encoding="UTF-8" > < xml-stylesheet type='text/xsl' href='ProblemStoreReport.xsl' > <ProblemStores xmlns=" http://tempuri.org/ProblemStores.xsd "> <ProblemStore> <SiteNumber>00260</SiteNumber> <SiteName>00260 - 632 3RD AVE.</SiteName> <Variance> ...Show All
SQL Server connection string error
OK - I have seen lots posted on this, but the behavior is very strange, and I am trying to understand: I am using Visual Basic 2003 with SQLEXPRESS 2005 to connect to a database and to develop a desktop application. My connection string is: Conn_Str = "Data Source=.\SQLExpress;AttachDbFilename=" & _ Directory.GetCurrentDirectory & "\CWW.mdf;" & _ "Trusted_Connection=Yes;" I get the following error: "An attempt to attach an auto-named database for file C:\Documents and Settings\Brian\My Documents\Compressor Program Development\bin\CWW.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share." However, if I c ...Show All
Visual Studio 2008 (Pre-release) Token Provider
I have just upgraded my app to netfx beta 3. Now I get an exception: [System.ServiceModel.Security.SecurityNegotiationException] {"The token provider cannot get tokens for target 'http://localhost:8080/HttpDownloader'."} System.ServiceModel.Security.SecurityNegotiationException What does this mean Steve Hi Graeme, Are you still seeing this problem with the latest RTM bits We had an issue which smells exactly like what you are describing - however this has been fixed. I'd be curious to find out more. Thanks, Sidd Shenoy - MSFT ...Show All
Visual Basic System.Security.Cryptography.pkcs.SignedCms
Hello, I'm trying to sign a message using the folowing code: Dim myContent As ContentInfo = New ContentInfo(System.Text.Encoding.UTF8.GetBytes(txtMessage.Text)) Dim mySignedCms As SignedCms = New SignedCms(myContent) Dim myCmsSigner As CmsSigner = New CmsSigner(myCert) mySignedCms.ComputeSignature(myCmsSigner) 'HERE OCCURS AN ERROR: Occured an internal error of data encoding. (in portuguese: Ocorreu um erro interno de encadeamento de certificados.) Dim encodedSignedCms() As Byte = mySignedCms.Encode() Does anyone can help me Is there any other way to sign and envelope messages ...Show All
Visual Studio Express Editions some questions again
1) i want my program to cover everyones screen full, i could use the windowstate maximize for that but what i want is that everything scales with the size of the form, i hope u understand what i mean 2) how can i get/put data from/in a dataset with coding thx in advance ahmedilyas wrote: as for the video, you need to use either 3rd party control to do this or use and embed the WMP control in your application for the listbox, not sure but I know you can do this with a combobox. I guess one theory would be on the textchanged event of the textbox, to go through each item in the listbox and see if the item "startswith" the text the user entered and if so, keep it otherwise remove ...Show All
Visual Basic how to bring the form or msgbox to the front?
Hi, how to bring the form or msgbox to the front while I open a excel file (just for example) The excel file is occupied the screen and I want the form or msgbox to show up in the front of the excel file. Thank you ...Show All
