CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 2 of 2 FirstFirst 12
Results 16 to 25 of 25
  1. #16
    Join Date
    Jul 2010
    Location
    .NET 4.0/VS2010
    Posts
    79

    Re: Write data to SQL database

    alright so when i make a SProc, where do i store it exactly? in the database itself? or where?

  2. #17
    Join Date
    Nov 2004
    Location
    India
    Posts
    63

    Re: Write data to SQL database

    I'd propose some reading. Use some samples and read a DB book. You will be able to run (solve) most of your queries.
    http://msdn.microsoft.com/en-us/libr...v=sql.80).aspx
    Last edited by talksandy; December 22nd, 2010 at 04:05 PM.
    Sandeep
    http://www.sandeeprawat.com
    Code:
    Forget the language. Remember the logic.

  3. #18
    Join Date
    Jul 2010
    Location
    .NET 4.0/VS2010
    Posts
    79

    Re: Write data to SQL database

    Quote Originally Posted by talksandy View Post
    I'd propose some reading. Use some samples and read a DB book. You will be able to solve most of your queries.
    http://msdn.microsoft.com/en-us/libr...v=sql.80).aspx
    haha queries, database humor. lol

  4. #19
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    Re: Write data to SQL database

    Quote Originally Posted by rockking View Post
    Quote Originally Posted by talksandy View Post
    I'd propose some reading. Use some samples and read a DB book. You will be able to run (solve) most of your queries.
    http://msdn.microsoft.com/en-us/libr...v=sql.80).aspx
    haha queries, database humor. lol
    Excuse me, but what is the reason here to lol?
    Victor Nijegorodov

  5. #20
    Join Date
    Dec 2007
    Posts
    234

    Re: Write data to SQL database

    It's not like you have a choice of where to store them. by their very nature they are kept in the database. That said, it would be a good idea to store the sql scripts you used to create them so that if you need to make changes it's easier... those files you can store where ever you like, but what gets run is what's in the database.

    -tg
    * I don't respond to private requests for help. It's not conducive to the general learning of others.-I also subscribe to all threads I participate, so there's no need to pm when there's an update.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help - how to remove eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to???
    * On Error Resume Next is error ignoring, not error handling(tm). * Use Offensive Programming, not Defensive Programming.
    "There is a major problem with your code, and VB wants to tell you what it is.. but you have decided to put your fingers in your ears and shout 'I'm not listening!'" - si_the_geek on using OERN
    MVP '06-'10

  6. #21
    Join Date
    Jul 2010
    Location
    .NET 4.0/VS2010
    Posts
    79

    Re: Write data to SQL database

    not sure. i was looking for something to take the stress away from trying to get this working. i did make a SProc for inserting data into a database. i need to create a few more, one to update and delete. i dont think they will be to bad, i am going to use the insert one as a sort of template. the only other thing i need to get working, is using a "config" file to give the dataconnection string. this way i can have the app available on more than just one machine, because it would allow for an easy way to change database paths.

  7. #22
    Join Date
    Jul 2010
    Location
    .NET 4.0/VS2010
    Posts
    79

    Re: Write data to SQL database

    alright everyone. i have gotten the "config" file working. i have all my stored procedures created. now the ultimate part.

    i need to select data in the database and return the data received. once returned it will be assigned to variables and those variable will be set to the text of the corresponding textboxes.

    suggestions?

  8. #23
    Join Date
    Dec 2007
    Posts
    234

    Re: Write data to SQL database

    It's geared towards VB, but the principles (and objects/namespaces) are the same....
    http://www.vbforums.com/showpost.php...53&postcount=2

    -tg
    * I don't respond to private requests for help. It's not conducive to the general learning of others.-I also subscribe to all threads I participate, so there's no need to pm when there's an update.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help - how to remove eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to???
    * On Error Resume Next is error ignoring, not error handling(tm). * Use Offensive Programming, not Defensive Programming.
    "There is a major problem with your code, and VB wants to tell you what it is.. but you have decided to put your fingers in your ears and shout 'I'm not listening!'" - si_the_geek on using OERN
    MVP '06-'10

  9. #24
    Join Date
    May 2015
    Posts
    2

    Re: Write data to SQL database

    1. I have a jsp file which has dropdown containing product names which are fetched from the sql table. 2. My problem is, when i click the product name from the drop down, it should fetch the productID associated with the product name from the database and that product ID should be updated in another table. So everytime I select product name, it's product ID must be updated in another SQL table**

  10. #25
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    Re: Write data to SQL database

    Quote Originally Posted by vinayshirish View Post
    1. I have a jsp file which has dropdown containing product names which are fetched from the sql table. ...
    And does your problem have to do with this 4.5 years old thread?
    And what does this jsp file have to do with the C-Sharp Programming forum?

    Please, start a new thread in the appropriate forum and describe your problem (if any) a bit more carefully!
    Victor Nijegorodov

Page 2 of 2 FirstFirst 12

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

Featured