Results 1 to 2 of 2

Thread: Using SQL Server database with vb

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2013
    Posts
    13

    Using SQL Server database with vb

    Hello,

    I created an application that serves as an inventory manager for the printer toner cartridges that we have in the company. Due to the restraints of not being able to set triggers with access, I went through the process of migrating my database over to SQL server 2012.

    I have found that the code for setting up the SQL database within visual studio is a lot more complicated (or so it seems) than it was for access. I have successfully added the database as a new data connection. However, I am unsure how to actually load the database into the application. I have searched online for tutorials but everything I find is different than what the last person is saying.

    Basically, what I want from this program is to activate a trigger whenever a certain model of toner reaches 0 and send out a notification to our rep. I have already configured the email part and that works fine. But, I am having to re-program the database functions to access the new SQL database instead of access.

    For example, the code to load a table from the access database was something like Me.TblTonerTableAdapter.Fill(Me.PrinterinventoryDataSet.tblToner). But it seems exponentially more difficult to do this with SQL. Maybe I am not looking in the right places?

    Any guidance or work through would be appreciated!

    Anthony

  2. #2
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    9,017

    Re: Using SQL Server database with vb

    Read this post.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

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