Results 1 to 5 of 5

Thread: general architecture - connecting to SQL SERVER

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2003
    Posts
    175

    general architecture - connecting to SQL SERVER

    Ok thats will be hard

    i have enough knowledge in C# language to write almost anything, Serializations, Generics, ADO.NET Etc - all the time i developed as part of a team for local data base.

    BUT i have lack of knowledge how to combines things into one projecrt!!!

    for example - lets assume that i develope winform app. i have remote SQL server with its own IP addr.

    what is the architecture of developing such program - where do i put the connection string and where i stores the file of the connection string, DAL, mmm - how do i call the SQL server, how do i manage the data trafic, and presets it to the client etc.......i hope the point was clarified....

    i will be happy for relevant links, code samples...etc....



    thanks alot
    Last edited by ronlahav; Aug 14th, 2007 at 05:12 AM.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: general architecture - connecting to SQL SERVER

    The connection string is a matter for the DAL. You might even choose to put connection string management in its own assembly, as I have in my current project that requires failover to a local database when the master is offline.

    If you want the user to be able to set connection properties then you need to provide a facility to pass the connection strings up from the DAL, through the BLL to the PL. You would then use an SqlConnectionStringBuilder to break the string up into its constituent properties and display them to the user. Once editing is complete the complete connection string is retrieved from the builder and passed back down through the BLL to the DAL, where it would be saved and used for all subsequent connections.

    Where you save it is up to you. Maybe the registry, maybe a config file, maybe a serialised settings object of your own creation, etc., etc.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2003
    Posts
    175

    Re: general architecture - connecting to SQL SERVER

    thnks for the reply!
    is there any relevant links with which i can read more detail how to design client server applications??

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: general architecture - connecting to SQL SERVER

    I'm sure there are.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: general architecture - connecting to SQL SERVER

    Quote Originally Posted by ronlahav
    thnks for the reply!
    is there any relevant links with which i can read more detail how to design client server applications??
    This is usually where sitting down with the team to chalk out ideas comes in. You gain from each others' experience and add to your own.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width