Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / October 2004

Tip: Looking for answers? Try searching our database.

Need help for following an database arcticture using .net

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Fahad Khan - 01 Oct 2004 05:44 GMT
Respected Sir
            background:
            I am a VB6 developer from last two years and developing
            database applications using vb6, crystal reports and sql
            server following a three tier architucture using dll as
            middle tier.
            My quries:
         1) I wanted to switch into vb.net and want to follow the
            best architucture so please guide me for this.
         2) Can you provide me any sampe code for following
            this architucture and design.
         3) If i use xml as middle tier then how can i define a dynamic
            connection string which could be generated at run time.
         4) how can i connect to my presentation layer with web service
            dynamically at run time.

                                   Waiting for ur kind reply
Nick Malik - 01 Oct 2004 16:01 GMT
Hello Fahad,

May I suggest that you start with a book.  You have many questions that are
going to take time to answer.
Here's one that may prove useful.
http://www.amazon.com/exec/obidos/tg/detail/-/0764543849/ref=pd_sim_books_5/104-
0692560-9975161?v=glance&s=books


>              My quries:
>           1) I wanted to switch into vb.net and want to follow the
>              best architucture so please guide me for this.

Good guidance on architecture can be found in many places.  Here's a good
place to start:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpatterns/html
/esp.asp


>           2) Can you provide me any sampe code for following
>              this architucture and design.

There are literally thousands of working applications online that use fairly
good practices.   When you install Visual Studio, you can elect to install
sample applications from Microsoft.  There are a couple in there that are
windows-based apps.  Start there.

>           3) If i use xml as middle tier then how can i define a dynamic
>              connection string which could be generated at run time.

XML is a storage and communication format... doesn't have that much to do
with the connection string which is just a string that you use to open the
db.  I'm not sure how to begin to answer your question.  Normally, I use
windows authentication and a connection string that is coded directly into
the config file for the application.  My Database Access Layer reads the
connection string and uses it to connect to the DB.  My queries themselves
can be coded to return XML from the DB, or I can use XML internally either
to store or transmit data.

>           4) how can i connect to my presentation layer with web service
>              dynamically at run time.

Fairly easy.  Create a web reference for your presentation layer to a web
service on your dev box.  That created some code for calling the web
service.  At runtime, when you create the object that is derived from the
web service name, you have a URL parameter.  Set the URL parameter to your
production web service location before calling any methods.  You can store
the location of the production web service in your config file.

Hope this helps,
--- Nick Malik

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.