Results 1 to 10 of 10

Thread: dll to connect DB

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2003
    Posts
    175

    dll to connect DB

    Dear All
    i want to create a dll which functions to connect database and bring some data from the dataBase
    how do i do that.???
    i need steps in general
    1,2,3.....etc.
    thnks alot

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

    Re: dll to connect DB

    First, learn how to create a DLL

    http://www.c-sharpcorner.com/2/pr12.asp

  3. #3
    Member
    Join Date
    Oct 2004
    Location
    India
    Posts
    53

    Re: dll to connect DB

    can this DLL be used in .aspx pages as well....can u plz guide..
    Yash

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

    Re: dll to connect DB

    Yes, you simply add a reference to it.

  5. #5
    Member
    Join Date
    Oct 2004
    Location
    India
    Posts
    53

    Re: dll to connect DB

    ok....

    one thing for 'Mendhak'...if u dont mind, what does it actually mean('Mendhak')...it sounds like indian version of Frog....is it the same..!
    Yash

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

    Re: dll to connect DB

    Yes, I was told it's the Kashmiri word for frog. Later, the person who told me this set himself on fire in a washing machine.

  7. #7
    Member
    Join Date
    Jan 2005
    Posts
    35

    Re: dll to connect DB

    Quote Originally Posted by mendhak
    Yes, I was told it's the Kashmiri word for frog. Later, the person who told me this set himself on fire in a washing machine.
    I hate when that happens. BTW, your sandpaper site is hilarious...was checkin' it out a few weeks ago. Would be interested in what techniques/study methods you used for your certs as I am exploring MCAD.


    [couldn't resist the duck. it may have powers]

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Jan 2003
    Posts
    175

    Re: dll to connect DB

    Quote Originally Posted by mendhak
    First, learn how to create a DLL

    http://www.c-sharpcorner.com/2/pr12.asp
    OK - and then what?????

  9. #9
    Member
    Join Date
    Jan 2005
    Posts
    35

    Re: dll to connect DB

    I would imagine that if you know how to create the code to retrieve data from a DB, and know how to create the DLL - the rest is pretty apparent. Your code (non dll - your codebehind i would assume if youre using vs.net) wil contain whatever parameters you have chosen to have your DLL grab. I would imagine this is somethin like..
    what db youre going to
    credentials
    table name/query

    ..that is just an example. Then you have your DLL run the actual code to do the query, and return the information back to your codebehind. The only actual tricky part if you havent' done before is creating and utilzin the DLL.

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

    Re: dll to connect DB

    Yes, what he said. You'd use the DLL's functions to return datasets to the calling program, work with those values, and use the DLL to update the database again.

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