programmatic database access




This is a long post. If you have answers I'm ready. If you have web
links, that'd be great too. I'm a Junior/Senior in Computer Science at
Washington State University, so you can make some assumptions about
terminology I'll be familiar with based on that.

I am trying to write a class that will abstract out database access
stuff for my application. This class will be called DBUtil
I will use this class to do the gruntwork for a custom membership
provider. I will call this class CustMemProvider.
I need help with two things. First I need help with the web.config
file. Second I need help with the programmatic access of the database.


***First, the web.config stuff: My problem with the web.config file is
that I don't understand most of the naming stuff that goes on in it.
Specifically with the ' name="<what??>" ' tag. I need to know what to
name the database. Also I need to know what to name the membership
provider when it appears in the web.config membership provider tag. I
need to know what the ConnectionString should say as well. (I've seen
the fields for these tags, but never seen a good explanation of them.)

***Now on to the custom class stuff: In my DBUtil class I will have a
static string to hold the connectionString for the connection setup. I
will hard-code the query string into each individual function. These
functions will return DataSets (to make it easier to pass the DataSet
reference out to the page) or booleans.

I prefer to use email to uniquely identify users, so I'll write my own
custom validation code as well. I need help figuring out what to do
with that. I'm assuming it's a predefined interface from the required
base class, but I need to change the fields around to pass in an email
instead of the default username, and then, of course, the password.
Also, I need to see code for the setup of a connection and the running
of a query from my module.

Is there a way to make a script or something that sets up my database
and tables when it's run? I'm thinking about future installation needs.


***As an afterthought...what the heck are stored procedures and how do
I make one?

Thank you for your help.


--
williamphenryjr

--
William
www.williamphenryjr.com
--
"Obstacles are those frightful things you see when you take your eyes
off your goal."-Henry Ford
------------------------------------------------------------------------
williamphenryjr's Profile: http://www.hightechtalks.com/m268
View this thread: http://www.hightechtalks.com/t361805

.



Relevant Pages

  • Re: Replacing VS .NETs SQL Server Express Edition Integration
    ... You could write a custom membership provider. ... You could add the tables you need to your existing database table. ... As for configuring ASP.NET 2.0 membership to connect SQL Server 2000, ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: MembershipProvider and ADAM
    ... membership provider has choosed to use SSL connection to access AD server. ... following article which has mentioned the AD connectionstring and provider ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: MembershipProvider and ADAM
    ... membership provider has choosed to use SSL connection to access AD server. ... following article which has mentioned the AD connectionstring and provider ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • WebControls.Login.MembershipProvider
    ... I've also configured the web.config to specify the new database as the ... role provider and the membership provider. ... membership provider is specified as default in the web.config). ... Express installed on the same machine, along with SQL Server 2000 as ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: ASP.NET Configureation - can NOT connect to SQL server
    ... I solved this issue my modifying the connectionString block of the ... I installed SQL 2008 Express in my machine, ... Provider, then click Test, I get ... If you have not yet created the SQL Server database, ...
    (microsoft.public.dotnet.framework.aspnet)