Posted on May 26, 2008 by alertbrain
Focus: Database programming
Domain: Accounting Software
Tools used: VB 2008, and SQL Server for the windows os.
This book takes you through the steps of developing an accounting software. The first few chapters cover topics like vb and sql server. Next, the steps for developing an accounting software are outlined.
The steps are fairly detailed and some of them [...]
Filed under: Book Review #1 | Tagged: visual basic accounting software | Leave a Comment »
Posted on May 19, 2008 by alertbrain
Basics of Visual Basic and SQL Server
Basics of the domain you want to develop the application for.
For example of Accounting domain or Inventory Domain.
Basics of Client / Server Application Development with Visual Basic ( visual basic ) and SQL Server or C# and SQL Server
Knowledge of how to install a Network Operating system.
Knowledge of how [...]
Filed under: visual basic | Tagged: develop a database software using visual basic | Leave a Comment »
Posted on May 14, 2008 by alertbrain
The Recordset object enables your application to access data returned from an SQL query or stored procedure. Using the Recordset object, you can navigate through the records that have been returned. A Recordset has a conceptual pointer, using which Visual Basic points at any one particular record, which is the current record.
A Recordset object has [...]
Filed under: visual basic | Leave a Comment »
Posted on May 13, 2008 by alertbrain
The following code is for creating a Server-side Recordset.
Option Explicit
Dim CN As Connection
Dim comobj As Command
Dim rs As Recordset
Private Sub Form_Load()
Set CN = New Connection
Set comobj = New Command
Set rs = New Recordset
rs.CursorType = adOpenStatic
rs.CursorLocation = adUseServer
With CN
.ConnectionString = “Integrated Security=SSPI;Initial Catalog=FinAccounting;Data Source=SYS1”
.Provider = “SQLOLEDB”
.Open
Option Explicit
Dim CN As Connection
Dim comobj As Command
Dim rs As Recordset
End [...]
Filed under: visual basic | Tagged: recordset | Leave a Comment »
Posted on May 13, 2008 by alertbrain
Recordset object is created in the same way as the Connection object and the Command object.
Type the following code in the frmAccountDetails form:
Private Sub Form_Load()
Set CN = New Connection
Set comobj = New Command
Set rs= new Recordset
With CN
.ConnectionString = “Integrated Security=SSPI;Initial Catalog=FinAccounting;Data Source=SYS1”
.Provider = “SQLOLEDB”
.Open
End With
With comobj
.ActiveConnection = CN
.CommandText = “SELECT * FROM AccountsTable”
End With
Set rs [...]
Filed under: visual basic | Tagged: creating recordset | Leave a Comment »
Posted on May 13, 2008 by alertbrain
A resultset returned from a database server as a result of the execution of an SQL statement can be stored in a Recordset object for further manipulation. In other words, a Recordset object can manipulate data returned by a provider. All Recordset objects consists of records (rows) and fields (columns).
There are 4 types of recordsets
Dynamic [...]
Filed under: visual basic | Tagged: recordset | 1 Comment »
Posted on May 13, 2008 by alertbrain
Executing a Stored Procedure having INPUT and OUTPUT parameter using a Command object
Stored procedures may contain output parameters and return values. For example, the procedure GetAccountName, can return the name of the Account for an Account Code passed as a parameter. First, create the stored procedure and then write code in the frmAccountDetails form.
Create Procedure [...]
Filed under: visual basic | Leave a Comment »
Posted on May 13, 2008 by alertbrain
Executing a Stored Procedure having INPUT parameters using a Command object
The stored procedure returns names when we pass the account category. As you can well understand, the below procedure accepts an input parameter. So, in order to execute the stored procedure, you need to create a Parameter object by using the CreateParameter method of the [...]
Filed under: visual basic | Tagged: Command object | Leave a Comment »
Posted on May 12, 2008 by alertbrain
Many are not aware that they can download and use free of cost, Microsoft Visual Basic 2008 express edition free of cost. Here is the link:
Download Visual Basic 2008
Note that there are simple lessons on the page listed above.
Filed under: visual basic | Leave a Comment »
Posted on May 12, 2008 by alertbrain
You can use the SQL Update statement to issue a command that changes a record or group of records. The below code demonstrates how to do this.
Option Explicit
Dim CN As Connection
Dim comobj As Command
Private Sub Form_Load()
Set CN = New Connection
Set comobj = New Command
With CN
.ConnectionString = “Integrated Security=SSPI;Initial Catalog=FinAccounting;Data Source=SYS1”
.Provider = “SQLOLEDB”
.Open
End With
With comobj
.ActiveConnection = [...]
Filed under: Uncategorized | Leave a Comment »