|
Yes you can create a stand alone database, or a 'single file database'. You can do this with SQLite.
|
|
|
|
|
your answer is different from Tom Deketelaere's,so could you make it more clear?
|
|
|
|
|
Yes, it's really simple, you can make a database withouth an sql server. I myself are using SQLite for this, because I'm making applications which will run localy, if that's all you need a single file database is enough and I reccomend SQLite. SQLite is working as an dll, nothing more.
It works the same as the rest, you just execute some sql statements and you're done.
Just try and search google with 'C# SQLite', you'll find some information about it.
|
|
|
|
|
Interesting didn't know that, will have to give it a try.
I'm guessing tho that this is not usable with multiple connections?
|
|
|
|
|
What do you mean with multiple connections?
That there are 2 applications running which will make connections to one (the same) database?
I've never tried that.
OR
That there are 2 databases which will be accessed from 1 application?
This is possible.
OR
Something else :P?
|
|
|
|
|
Deresen wrote: What do you mean with multiple connections?
Deresen wrote: That there are 2 applications running which will make connections to one (the same) database?
I've never tried that.
That one
|
|
|
|
|
Lol, I guess it won't be possible. In order to do that, you have to connect twice to the database at the same time, if you manipulate some data at that point, the other connection won't be aware of that. But I guess that's with every database the same.
It works exactly the same as when you work with a server like sql express or something. But in stead of storing it via the sql server, you just store it directly (via a dll) into a file.
|
|
|
|
|
No, you need at least Sql Server Express, you can install it on your machine (some Visual Studio versions have it included) or on a development server.
There are database engines that don't require a server runtime installed, such as SqlServerCompact, but keep in mind that they are meant for local client databases, not for server-side database that require multiple concurrent connection from different clients.
|
|
|
|
|
yes,i have installed SQL server management studio express ,but i don't know how to create a database.
|
|
|
|
|
IT depends what database you want to install - you need to have some program to run it. plus this is a c# forum and not a database forum. Try there for better answers!
|
|
|
|
|
I have used several code for email validation like
{string pattern=@"^[a-z][a-z|0-9|]*([_][a-z|0-9]+)*([.][a-z|" +
@"0-9]+([_][a-z|0-9]+)*)?@[a-z][a-z|0-9|]*\.([a-z]" +
@"[a-z|0-9]*(\.[a-z][a-z|0-9]*)?)$";
System.Text.RegularExpressions.Match match =
Regex.Match(txtEmail.Text.Trim(), pattern, RegexOptions.IgnoreCase);
if(match.Success)
MessageBox.Show("Success");
else
MessageBox.Show("Fail");
}
// But it is not working .It gives a run time error like argument exception.Please help me out ASAP.
Thanks & Regards
Sayantan Basu.
|
|
|
|
|
string pattern = "^[a-z][a-z|0-9|]*([_][a-z|0-9]+)*([.][a-z|" +
"0-9]+([_][a-z|0-9]+)*)?@[a-z][a-z|0-9|]*\.([a-z]" +
"[a-z|0-9]*(\.[a-z][a-z|0-9]*)?)$";
This?
I are troll
|
|
|
|
|
I have written following code but It is not displayed on the form
pictureBox1 = new System.Windows.Forms.PictureBox();
pictureBox1.Location = new Point(Wnd[18].Left + 2, Wnd[18].Top + 2);
pictureBox1.Name = "pictureBox1";
pictureBox1.Size = new System.Drawing.Size(80, 40);
pictureBox1.Image = new System.Drawing.Bitmap("c:\\bitmap1.bmp");
pictureBox1.Show();
pictureBox1.BringToFront();
what to do ?
thanks
|
|
|
|
|
you have to add the control to the form
Form1.controls.add(picturebox1);
|
|
|
|
|
Have you forgot formObject.Controls.Add(pictureBox1) ?
|
|
|
|
|
Hi all,
The garbage collector runs in specific intervals(hope i am correct), and during this it collects all variable and dispose them when they becomes out of scope or not referred any more.
a) In a particular Method() if i am creating many variables, then is it possible to dispose them all before exiting that method ?
b)Suppose i have a method and inside this many methods, this MethodX execute till the last G() got executed and then it returns control to calling one.
MethodX()
{
A();
B();
.
.
.
G();
}
But somehow its slowing the execution, Is it possible that all methods executed independently/simultaneously/parallely?
regards,
|
|
|
|
|
Hum Dum wrote: The garbage collector runs in specific intervals
It runs whenever cleanup is required.
Hum Dum wrote: In a particular Method() if i am creating many variables, then is it possible to dispose them all before exiting that method ?
If your variables are not referred and GC ran, it will get *collected*.
Hum Dum wrote: But somehow its slowing the execution, Is it possible that all methods executed independently/simultaneously/parallely?
Are you asking how to execute these methods in parallel? If yes, you need separate threads to execute each method. I am not sure how this is related to your actual GC question.
|
|
|
|
|
A manuall call to GC.Collect is not recommended because it will do a full memmory compaction after the the collection process.. if you are using any heavy objects...Probably you can set is as null after use.. GC will get triggered only when the memmory pressure is more for a particular allocated heap. or when the allocated threashold limit is reached.
You can used threading. But only after a good analysis upon your method structure ( that whether it is taking any input from the previus one) and requirement.. Remember Threading is there to use the CPU Idle time.it will take more time if it does't have any.
|
|
|
|
|
I am doing a windows mobile application(birthday reminder) using .net C#. I am unable to retrieve the birthday info from the pocket outlook. any one got any idea??
Thanks in advance for your help...!
|
|
|
|
|
Mobile application, sounds like you should be here[^]">
|
|
|
|
|
i didnt get you
|
|
|
|
|
|
Thanks so much Deresen, i had never known there is an exclusive mobile application developers forum here..!
|
|
|
|
|
No problem, I hope they will solve your problem, because I really don't know how to solve it
|
|
|
|
|
How to remove title bar of form .
thanks
|
|
|
|