|
In C:\abc\PiPe Modules\pipe\PiPe\source: "C:\Program Files\CVSNT\cvs.exe" -q update -P -d
ObjectFlatten.cs
CVSROOT=:pserver:vgcoder2@192.168.2.137:2401/piperoot
C ObjectFlatten.cs
Error, CVS operation failed
Tortoise Tip: One or more of your files has a conflict. This means that someone else has altered the
same part of the file as you. Look above for the files marked "C ", and manually edit them to resolve
the conflict.
Unable to understand what the problem could be
|
|
|
|
|
humayunlalzad wrote: Unable to understand what the problem could be
I'm guessing that it might be:
humayunlalzad wrote: One or more of your files has a conflict. This means that someone else has altered the same part of the file as you. Look above for the files marked "C ", and manually edit them to resolve the conflict.
|
|
|
|
|
I assume CVS is your source code evrsion manager, so the answer is really in the Tortoise Tip -
humayunlalzad wrote: One or more of your files has a conflict. This means that someone else has altered the same part of the file as you. Look above for the files marked "C ", and manually edit them to resolve the conflict.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
You know how the xml writer automatically makes the ampersand character (&) into it’s character entity reference ‘&’. Is there anyway of preventing it from doing this. I am working with an application that does not read the file the xml writer creates with an xml parser, therefore the character entity reference ‘&’ reference never gets parsed back to an ampersand. This is causing an error with the application because it does not understand the ‘&’.
|
|
|
|
|
IF you dont quote & it is not valid XML any more.
But if you really want it, just write out the file using the XmlWriter, and then just read over the created file/stream and replace & with & .
|
|
|
|
|
Fix the application that does the reading.
|
|
|
|
|
Hello gurus,
I have a request for you.
I have imported a flat file (delimited text file) into a DataTable from a DataSet . I wish to run an SQL statement such as "SELECT toto as X, count(titi) as Y from MY_TABLE GROUP BY X, ORDER BY X" where 'toto' and 'titi' are field from the MY_TABLE.
How is it possible to do that in C#?
I hope my question is clear. If not, let me know, I'll try to explain in better way.
Best regards.
Fred.
There is no spoon.
|
|
|
|
|
You can use LINQ for that if you have VS2008, else it's not really possible.
|
|
|
|
|
hi bouli
Firstly your Question is not Clear , you have imported a Flat File into a Datatable from a Dataset, its not making sense at all. Please Tell us Step by Step and show us your code, where you import and so we can understand what you mean and we will take it from there.
Hope it helps
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Okay,
Sorry for my poor english.
I have sucessfully imported a CSV file into a DataSet .
I need to execute an SQL statement using COUNT , GROUP BY and ORDER BY . The request is done and works fine. I need to run it in C#.
While the data remain in a DataSet , I would like to know how I can execute the SQL statement on this DataSet?
Best regards.
Fred.
There is no spoon.
|
|
|
|
|
Hi man
here is the Code.
public Dataset GetData()
{
Dataset dsdata = new Dataset();
String Constr = @"User ID=sa;Password=;Database=MyDB; Server =MYSERVER";
SqlConnection con = new SqlConnection(Constr);
SqlCommand cmdselect = new SqlCommand("SELECT toto as X, count(titi)as Y from MY_TABLE GROUP BY X, ORDER BY X");
cmdselect.CommandTimeout = 0 ;
cmdselect.Connection = con;
SqlDataAdapter da = new SqlDataAdapter(cmdselect);
da.Fill(dsdata);
return dsdata;
}
Tell me if you have Problems (vuyiswamb) Skype
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Hi,
As I said, the data are already in a DataSet loaded in memory from a CSV file and not in a database.
Best regards.
Fred.
There is no spoon.
|
|
|
|
|
ok,
I was showing you, if the data is already in the dataset. then your Dataset will have a name and a datatable, then from the above code.
see , you will end up with a dataset object.
Dim strFileName As String = "MyFile.csv"
Dim strPath As String = "C:\"
Dim strCon As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=" + strPath + ";Extended
Properties='text;HDR=Yes;FMT=Delimited'"
Dim con As New OleDbConnection(strCon)
Dim cmdGetCsv As New OleDbCommand("SELECT * from " +
strFileName, con)
Dim csvAdapter As New OleDbDataAdapter(cmdGetCsv)
'Dim csvReader As OleDbDataReader
con.Open()
Dim dsCsv As DataSet = New DataSet
csvAdapter.Fill(dsCsv)
you can change your Select statement to your liking.
Hopr this Helps
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Hi,
I have a web service that references the DLL. Inside the DLL I make a connection to a database, and do some data manipulation. However, for some reason I can not establish the connection. (DLL is a COM object).
On the other hand if I just use a simple windows forms application and reference the same DLL, I connect with no problems.
It seems that I am missing some settings or something.
Really need help.
Thank you!
|
|
|
|
|
What is the error? What exceptions are being thrown?
|
|
|
|
|
The exception that it's throwing is the Time out exception.
Thank you
modified on Monday, June 9, 2008 10:12 AM
|
|
|
|
|
Hi zaboboa
If you can just post your code , it will be easy for us to help you
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Hi!
Unfortunatelly I have no control over the DLL that I am using.
The method in DLL will return the ADO connection object.
It's working fine when I reference it from Windows Form Application (connection object is returned), and not fine (get the Timeout Exception) when referenced from Web Service running on my local machine.
So, I guess my question is what is the difference in referencing components from Web Service and Windows Form application?
Thank you.
|
|
|
|
|
hi man
I understand your Problem. What you receive is the timeout in the Command object. I hear you say you have no Access to the DLL code. So that means you have little to do with that Problem. i will tell you what did the person who write the DLL missed.
CommandObject.CommandTimeout = 0;
Atleast microst Recomend it, that means it is infinite.There Shouldnt be a Difference.
Thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Thanks.
How come it works when I call it from a Windows Form Application?
|
|
|
|
|
Hi
Remember there is a Difference Between Web and Windows.
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
hi
how to use TextEffectFormat from Microsoft.Office.Interop.Word ?
thnx
|
|
|
|
|
I need to call a function just before ComboBox.SelectedIndexChanged event is fired.
The idea is to take screen-shot of Windows Form (having a ComboBox) showing last-selected ComboBox item when the user selects another item in the ComboBox.
Please let me know if of an event which is called before SelectedIndexChanged (i.e before selected value changes).
May be an event like BeforeSelectionIndexChanged.
|
|
|
|
|
Madandu wrote: May be an event like BeforeSelectionIndexChanged.
If there is the general convention is to using the -ing ending.
BlahChanging - fired before an action is taken
BlahChanged - fired after an action is taken.
|
|
|
|
|
Colin Angus Mackay wrote: BlahChanging - fired before an action is taken
But there is no SelectedIndexChanging so i suggest you create a control that inherits from ComboBox and override OnClick to raise a SelectedIndexChanging.
Or, keep an image of the combobox to use it when next SelectedIndexChanged.
Eslam Afifi
|
|
|
|