|
Hi there for all the replies.
However it seems there are more and more question marks for now.
The reason I choose Access is because of simplicity, everything is stored in a file; all I have to is upload a file and voila.
What happens if I had 2 people accessing the same piece of data, and coincidently modifying it at the exact same time (with Access). Could the results be disastrous?
How exactly does those M$ SQL Server and Oracle work? How do I upload the database to the webserver. Is there any database files (as with Access?) for SQL Server? I've been long baffled by the this. And is M$ SQL server free for download?
I also spoke to someone else, he said I could give SQL-Lite a try, exactly what is it?
I can assume that I am able to create databases on the fly with SQL Server?
Thanks a big bunch for the replies!!!
|
|
|
|
|
Infernojericho wrote: The reason I choose Access is because of simplicity, everything is stored in a file; all I have to is upload a file and voila.
Yes, that's all it has going for it.
Infernojericho wrote: Could the results be disastrous?
I'm not really sure what concurrency support Access has, how many users are you thinking of ? More than one user, implies that this is a distributed app, so it probably makes sense to consider setting up a SQL Server instance on the server. Having the DB on the server negates any question of security, it's access to the server that is your first line of defence there.
Infernojericho wrote: How exactly does those M$ SQL Server and Oracle work?
They use services to run their main program, and they also create just a data file, the difference is simply that the main DB has to be connected to it.
Infernojericho wrote: How do I upload the database to the webserver.
The way I do it, when I have to, is to do a backup of my local DB, then copy the file to the server, terminal services in, and use the local SQL Server to restore my backup file.
Infernojericho wrote: And is M$ SQL server free for download?
SQL Server is actually cheap, compared to Oracle, but it's quite expensive, in real terms. As I said previously, SS Express is free, it only allows 5 connections or something, tho. If this is a web app, and you get it hosted, you may want to look into MySQL, just because a lot of hosts support it, I believe. But, I am sure you can find hosts with SQL Server hosting.
Infernojericho wrote: I also spoke to someone else, he said I could give SQL-Lite a try, exactly what is it?
Never heard of it, could he mean SQL Server Express ?
Infernojericho wrote: I can assume that I am able to create databases on the fly with SQL Server?
SQL Server is a real database, Access isn't quite. You can run any SQL you like on a SQL Server instance, and you can write SQL to create any database.
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 )
|
|
|
|
|
Hi,
Christian Graus wrote: The way I do it, when I have to, is to do a backup of my local DB, then copy the file to the server, terminal services in, and use the local SQL Server to restore my backup file.
I have a question concerning that matter. I know it's not the right thread or forum maybe but since you mentionned it...
I ran into that problem. I had my SQL Server 2005 database on the dev server and we wanted to copy the data to the testing server. The first thing I thought of was backup and restore but it didn't work.
The backup went well but when i took the file and tried restoring, it kept saying that this backup file was not made for that database.
I was wondering if there are special flags or configurations to set for it to work. The way I did it was just to have the same database on both sides, i.e. same tables (but empty) and same stored procedures. And then I ran the backup procedure with the default settings.
Could you please tell me what might be wrong?
Thanks
-- If this is a post that has been helpful to you, please vote for it. Thank you!
"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."
--Rich Cook
|
|
|
|
|
Infernojericho wrote: The reason I choose Access is because of simplicity, everything is stored in a file; all I have to is upload a file and voila.
True, but the basics of SQL Server are not much different from the basics of Access.
Infernojericho wrote: What happens if I had 2 people accessing the same piece of data, and coincidently modifying it at the exact same time (with Access). Could the results be disastrous?
This is an issue for all databases. If 2 users try to concurrently write records in SQL its just as problematic. You must deal with concurrency issues whatever database you choose.
Infernojericho wrote: ow do I upload the database to the webserver. Is there any database files (as with Access?) for SQL Server? I've been long baffled by the this. And is M$ SQL server free for download?
Using the term "M$" looks childish. Microsoft is a corporation and just like all corps they like making $$$. Choose MySQL or some other open source database if you are offended by a commercial entity making money!
In answer to your question. There are database files with SQL Server in a similar way to access. There are 2 files representing the database and the transaction log - it is NOT just a case of copying them to a server though - they must be attached to an instance of a running SQL Server. You can also backup your local copy (used in development) and restore that to the sql server instance at your hosting provider. SQL Server express edition (a cut-down local version of the server but fully featured) is free.
Infernojericho wrote: I also spoke to someone else, he said I could give SQL-Lite a try, exactly what is it?
A competing product for the likes of SQL Server express.
Infernojericho wrote: I can assume that I am able to create databases on the fly with SQL Server?
You can, but as you've already been advised its a really really really bad idea! Read up on defining a database schema that is dynamic by design.
|
|
|
|
|
hi
Infernojericho wrote:
Could the results be disastrous?
if 2 users accessing the same piece of data
are you responsible to handle this, access do not support transaction's.
the maximum users allowed in access are 256. look at the *.ldb file
created by access. this file is created every time a user open a *.MDB database
if the file exist, the user is added to it.
the file-structure is limited to 256 records. each record contains
the user name, machine name and any table-loking.
regards
|
|
|
|
|
I am using VS 2003 .Net framework. I have to integrate the web application with active diretory. I browsed net i found the below code.no luck there.
i dont know how to solve the error.
void Page_Load(Object Src, EventArgs E )
{
if(!Page.IsPostBack)
{
lblMessage.Text = "use domain\\username format";
}
}
private void AuthenticateUser(object sender, EventArgs e)
{
string ldapPath = "LDAP://dc=domain",DC=dn;
DirectoryEntry de = new DirectoryEntry(ldapPath);
de.Username = txtUsername.Text;
de.Password = txtPassword.Text;
de.AuthenticationType = AuthenticationTypes.Secure;
try
{
string name = de.Name; //force a bind
lblMessage.Text = "Success, You have authenticated";
}
catch(Exception ex)
{
lblMessage.Text = "Failure: " + ex.Message;
}
finally
{
de.Close();
}
}
User name
<asp:textbox id="txtUsername" runat="server">
password
<asp:textbox id="txtPassword" runat="server" textmode="Password">
<asp:button id="btnSubmit" onclick="AuthenticateUser" runat="server" text="Submit">
<asp:label id="lblMessage" runat="server">
User name:
<%=User.Identity.Name %>
My process is running as:
<%=System.Security.Principal.WindowsIdentity.GetCurrent().Name %>
I am getting the following exception:
Failure: System.Runtime.InteropServices.COMException (0x8007054B): The specified domain either does not exist or could not be contacted at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices.DirectoryEntry.Bind() at System.DirectoryServices.DirectoryEntry.get_Name() at ASP.index_aspx.AuthenticateUser(Object sender, EventArgs e)
please advice on this
|
|
|
|
|
As is says, Your domain name is wrong. You need to provide valid domain name.
To know your domain name you may contact your network administrator.
See if the following link is useful for you http://forums.asp.net/p/943717/1340605.aspx[^]
|
|
|
|
|
thanks for your reply.
I checked the name.It is not working. Do i have to use DirectorySearcher to check the user name?
All i have to do is that, i have to get the user name who is currently logging in.
|
|
|
|
|
See if you are authenticating an user by providing a username or against a active directory, then you can get the user name. Its is not possible to get the currently logged in user name from a client system, if he is in someother network.
|
|
|
|
|
thanks a lot sathish.
I am through.I did a mistake in DirectorySearcher.
|
|
|
|
|
This should work for you. You need to specifiy the domain controller server name including its domain name in full. The following code should make things alot clearer.
DirectoryEntry de= new DirectoryEntry();
de.Path = "LDAP://clown.acme.com"; //clown is the server name hosting the domain controller & acme.com is the domain name.
de.Username = "administrator";
de.Password = "passw$rd";
de.AuthenticationType = AuthenticationTypes.Secure
//now lets search for a user using the above credentials
try
{
DirectorySearcher searcher = new DirectorySearcher();
searcher .SearchRoot = de;
searcher .Filter = "(cn=" + "Domin Admins" + ")";
SearchResultCollection results = searcher .FindAll();
Console.Writeline(results.Count.ToString())
}
catch (Exception exception)
{
Console.Writeline(exception.Message);
}
|
|
|
|
|
I saw an interesting point raised here: http://www.atrevido.net/blog/2007/08/02/C+Frustration.aspx[^]
The C# 3 spec does not permit assigning a labmda expression to type infered value. So the following statement is invalid:
var Add = (int a, int b) => a + b;
The keyword var will give error CS0815, "Cannot assign 'lambda expression' to an implicitly typed local".
If the type is changed from var to Func<int, int, int> , the error goes away. The type of this lambda expression is not ambiguous, so the error must simply be a limitation in the type inference. Does anyone know if Microsoft has plans to fix this issue? If the type is known and expressible as a variable, then I see no good reason why this variable should behave differently than any other type-infered generic variable.
I ran into this problem while using VS2008 beta 1, so if it works in beta 2, please let me know.
-sharoz
|
|
|
|
|
Have you looked to see if this isssue has been raised on http://connect.microsoft.com[^]?
Thats were bugs and suggestions are reported back to MS and where they give answers to those bugs and suggestions.
If theres nothing there already about this you might want to submit some feedback and they *might* change it. If theres already feedback about it then you can show your support for it ... the more support for an issue, the more likely they are to do something about it.
|
|
|
|
|
|
And they've already replied
Thanks for your feedback. We have reproduced this bug on Vista and OrcasBeta2VSTS, and we are sending this bug to the appropriate group within the Visual Studio Product Team for triage and resolution. Thank you, Visual Studio Product Team.
Posted by Microsoft on 20/08/2007 at 02:24
of course this doesn't mean they'll defiantly do something about it ... but atleast they are looking at it
|
|
|
|
|
Hi all!
I have Windows Services and a WPF application that should share a common resource (config file).
To make sure that no application is reading while another is writing I'm locking this resource with a system-wide Mutex.
It doesn't work. The Mutex doesn't seem to be unique.
Can it be that a Mutex is not unique if a Windows Service (running under the System account) and an WPF application (running under the user account) try to create a Mutex?
thanks,
MMartin
|
|
|
|
|
You need to use a named mutex for it to be system wide.
---
single minded; short sighted; long gone;
|
|
|
|
|
Thanks, but "I'm locking this resource with a system-wide Mutex" (=named Mutex)
MMartin
|
|
|
|
|
Ok, I'm not certain as to why you would be doing it that way.
Have you checked the error codes or exception codes that are being generated?
Is your security descriptor set up properly?
Phil
|
|
|
|
|
Hi,
we found out that the Windows Services created a Mutex named:
\BaseNamedObjects\Map_ConfigFile_Mutex
while the WPF-Application (Admin = Icon in System Tray with hidden Window) creates:
\Sessions\1\BaseNamedObjects\Map_ConfigFile_Mutex
Any idea how I can solve this issue?
Thanks,
MMartin
|
|
|
|
|
Problem solved:
"[...] The \Sessions\1\... is created by Terminal service session (or Fast User Switching which uses terminal services). To make a Mutex global across all sessions prefix the name with 'Global\' [...]"
MMartin
|
|
|
|
|
Hi,
A Multiline textbox contains these strings
"Line1
Line2
Line3"
Is there any builtin function to extract text on the basis of line terminator or i need to write my own function to parse it.
Best Regards,
Mushq
Mushtaque Ahmed Nizamani
Software Engineer
Ultimus Pakistan
|
|
|
|
|
Have a look at Textbox.Lines property.
|
|
|
|
|
you can use textbox1.Text.Split function to split the string based on a particular character.
Rocky
You can't climb up a ladder with your hands in your pockets.
|
|
|
|
|
Thanks
Best Regards,
Mushq
Mushtaque Ahmed Nizamani
Software Engineer
Ultimus Pakistan
|
|
|
|