|
As you adding a Car relation to Person, you are actually inserting 40 000 objects (i think )
|
|
|
|
|
Yeah... you are right...my bad. But the question remains.
|
|
|
|
|
Hi there .
During transaction is began , I inserted new data in table , until I don't call commit() or rollback() functions , another processes can not access to this table.
I mean, if i try to add a new data in a table with transaction and before closing transaction(commit or rollback) another process can't read that table; then a exception will occurred.
what is the problem?
|
|
|
|
|
Developer611 wrote: what is the problem?
Didn't I just answer this in the SQL Forum? Would it be too much to ask that you only post the question once?
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."
My website
|
|
|
|
|
Developer611 wrote: what is the problem?
It's by design, read the sections on TransactionScope.
|
|
|
|
|
Hi,
I've loaded an xml file into a dataset. Is it possible to send the data from the dataset to a sql server table as xml.
Since i've to sort the xml data based upon a tag i'm loading it into dataset.
Or is there any way that i can load it to the sql server table so that i can sort it directly there in the table as xml data type.
Plz. can any one send suggestions/help.
Thanks
PLS
|
|
|
|
|
Hi there
I'm not exactly sure what it is you need, but take a look at this :
dataSet1.Tables[0].DefaultView.Sort
This way you can tell every single table in your dataset, for the default view, which columns to sort by.
Another way could be to create a custom view instead.... look for DataView, databound to a Dataset.
Yours
Wilco
|
|
|
|
|
What is the correct syntax for multiple conditions in an "if" statement.
For example:
<br />
if var == 1 or var == 2<br />
{<br />
}
Thanks
|
|
|
|
|
first of all if you begin programming in some language you should read a book or two to get the basics right..
answer to your question:
if(var == 1 || var == 2){
//code
}
|| or
&& and
| bit or
& bit and
life is study!!!
|
|
|
|
|
heh, yeah i guess i should. I went to the library to look for a c# book, but they didn't have any in. I was relying on online tutorials to get such things.
Thanks for your help
|
|
|
|
|
Hello Everyone,
Can anybody let me know how to run the videos in video-player.
Actually i've 5 links each link hold a flash file or video and i want to run these videos on the video-player.So plz give me the way to come out of this problem.........
And also how can i take a video-player to run the video.............
Or Also ..........
Is this code useful for me to an extent............
System.Diagnostics.Process.Start("wmplayer.exe",ur);
Thnx & Regards
Manoj Bisht
|
|
|
|
|
|
hello friends,
I have selected mutple rows of datagrid by highlighting them into different color, progrmatically. But when i click anywhere on datagrid then all the highlighted rows gets unhighlighted, which i don't like..........
my code to select rows
dataGrid1.Select(i);
dataGrid1.SelectionBackColor=System.Drawing.Color.RoyalBlue;
I have to delete any single row from datagrid without changing the color of other rows.
Can, anyone suggest me the appropriate solution for this..
Thanx in advance.
Nisar Inamdar.
|
|
|
|
|
I have some old com class that return to me VARIANT as string array.
How can i use it in C#? what i meen is how can i getting back this variant and use it as string array ?
Thanks for any help.
|
|
|
|
|
Not sure, but what I would do is grab the return value as an object, jump in the debugger, and see what you get. I mean, a VARIANT has, as it's claim to fame, it's ability to be many things. Perhaps you can cast the return type to the thing that it is, in this case. But, starting from object means you get something to look at, instead of a crash.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
OK ,
SO if i getting back object - and the variant is actually a string array - i can do casting to Array object and by using TYPE of reflection i can know which type i have in the Array ?
I`m right ?
|
|
|
|
|
In the debugger, if you type the variable name, it will actually show you the type. So, just set a breakpoint the line after the object is set, and experiment in the debugger ( where you can try casts, etc, also )
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
Since you dont tell us anything about your app and dont show code, no. How could we?
Did you check your MouseDown handler ?
does your code contain Control.MouseButtons somewhere ?
|
|
|
|
|
I have A long number I want to reverce it to Ip address
merwa
|
|
|
|
|
|
Hello all,
I've posted this before in another thread[^] but I'm anxious to get some more opinions so I'm posting this again.
Consider the following small command line application:
class Program
{
static void Main(string[] args)
{
NextDouble(Double.MinValue, Double.MaxValue);
Console.ReadLine();
}
public static void NextDouble(double minValue, double maxValue)
{
double range = maxValue - minValue;
if (double.IsPositiveInfinity(range))
Console.Out.WriteLine("NextDouble: Infinity");
else
Console.Out.WriteLine("NextDouble: Not infinity");
}
}
Looks very simple and should always print out "NextDouble: Infinity", but it does NOT.
If running the program in debug mode everything is fine.
If the program is run in release mode, it prints out "NextDouble: Not infinity"!!
If the program is run in release mode with the last line in NextDouble uncommented everything is fine again.
First I thought it may be some problem with code optimization that is by default activated for release build, but deactivating the code optimization has no influence on the result. I've furthermore taken a look at the IL code but could not see any obvious error that could explain the behavior.
In my previous thread I got two responses: One responder obeserved the same weird behavior and one does not i.e. the program always prints "NextDouble: Infinity" as expected.
Does anyone have an explaination or clue what is happening here?
Also, maybe some of you have the time to run the program in order to get some more observations.?
I'm looking forward to your input.
-- modified at 5:02 Thursday 2nd August, 2007
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Hi again,
Stefan Troschuetz wrote: If running the program in debug mode everything is fine.
If the program is run in release mode, it prints out "NextDouble: Infinity"!!
If the program is run in release mode with the last line in NextDouble uncommented everything is fine again.
So what is the problem ??
And did you ever care to print out range (that is, if it ever goes wrong) ?
|
|
|
|
|
Luc Pattyn wrote: So what is the problem ??
Error in my post: It should be: "If the program is run in release mode, it prints out "NextDouble: Not infinity"!!". I modified this.
Luc Pattyn wrote: And did you ever care to print out range (that is, if it ever goes wrong) ?
Yes I did. The last line in NextDouble prints out range (if uncommented of course). It always gives that range is positive infinity and as I said in this case the program works as expected.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
I save the login IP adress in my Application DB as Long data Type, I want to Retrive it a gain in a report as IP address. can you help me.
merwa
|
|
|
|