Use Filter to filter Data Table
Imports System
Imports System.Data
Imports System.Data.SqlClient
public class MainClass
Shared Sub Main()
Dim thisConnection As New SqlConnection("server=(local)\SQLEXPRESS;" & _
"integrated security=sspi;database=MyDatabase")
' Sql Query
Dim sql As String = "SELECT ID, FirstName, LastName FROM Employee"
Try
' Create Data Adapter
Dim da As New SqlDataAdapter
da.SelectCommand = New SqlCommand(sql, thisConnection)
' Create and fill Dataset
Dim ds As New DataSet
da.Fill(ds, "Employee")
' Get the Data Tables Collection
Dim dtc As DataTableCollection = ds.Tables
' Get and Display First Data Table
' 1. Display header
Console.WriteLine("Results From Employee Table")
Console.WriteLine("FirstName".PadRight(25) & " | LastName")
' 2. Set display filter
Dim filter1 As String = "FirstName = 'Joe'"
' 3. Set sort
Dim sort1 As String = "LastName asc"
' 4. Display filtered and sorted data
For Each row As DataRow In dtc("Employee").Select(filter1, sort1)
Console.WriteLine("{0} | {1}", _
row("FirstName").ToString().PadRight(25), _
row("LastName"))
Next
Catch ex As SqlException
' Display error
Console.WriteLine("Error: " & ex.ToString())
Finally
' Close Connection
thisConnection.Close()
Console.WriteLine("Connection Closed")
End Try
End Sub
End Class
Monday, February 16, 2009
VB.Net » Database ADO.net
Simple Connection String
Imports System
Imports System.Data
Imports System.Data.OleDb
Imports System.Data.SqlClient
Imports System.Collections
Imports System.Windows.Forms
Imports System.Resources
Public Class MainClass
Shared Sub Main()
'Declare variables and objects
Dim strConnectionString As String = _
"Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=Employee.mdb;"
Dim objConnection As New OleDbConnection(strConnectionString)
Dim strSQL As String = _
"SELECT FirstName, LastName FROM Employee"
Dim objCommand As New OleDbCommand(strSQL, objConnection)
Dim objDataAdapter As New OleDbDataAdapter(objCommand)
Dim objDataTable As New Data.DataTable("Employee")
Dim objDataRow As DataRow
Try
'Open the database connection
objConnection.Open()
'Fill the DataTable object
objDataAdapter.Fill(objDataTable)
'Load the list box on the form
For Each objDataRow In objDataTable.Rows
Console.WriteLine(objDataRow.Item("FirstName") & " " & _
objDataRow.Item("LastName"))
Next
Catch OleDbExceptionErr As OleDbException
'Write the exception
Console.WriteLine(OleDbExceptionErr.Message)
Catch InvalidOperationExceptionErr As InvalidOperationException
'Write the exception
Console.WriteLine(InvalidOperationExceptionErr.Message)
End Try
'Close the database connection
objConnection.Close()
'Clean up
objDataRow = Nothing
objDataTable.Dispose()
objDataTable = Nothing
objDataAdapter.Dispose()
objDataAdapter = Nothing
objCommand.Dispose()
objCommand = Nothing
objConnection.Dispose()
objConnection = Nothing
End Sub
End Class
Imports System
Imports System.Data
Imports System.Data.OleDb
Imports System.Data.SqlClient
Imports System.Collections
Imports System.Windows.Forms
Imports System.Resources
Public Class MainClass
Shared Sub Main()
'Declare variables and objects
Dim strConnectionString As String = _
"Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=Employee.mdb;"
Dim objConnection As New OleDbConnection(strConnectionString)
Dim strSQL As String = _
"SELECT FirstName, LastName FROM Employee"
Dim objCommand As New OleDbCommand(strSQL, objConnection)
Dim objDataAdapter As New OleDbDataAdapter(objCommand)
Dim objDataTable As New Data.DataTable("Employee")
Dim objDataRow As DataRow
Try
'Open the database connection
objConnection.Open()
'Fill the DataTable object
objDataAdapter.Fill(objDataTable)
'Load the list box on the form
For Each objDataRow In objDataTable.Rows
Console.WriteLine(objDataRow.Item("FirstName") & " " & _
objDataRow.Item("LastName"))
Next
Catch OleDbExceptionErr As OleDbException
'Write the exception
Console.WriteLine(OleDbExceptionErr.Message)
Catch InvalidOperationExceptionErr As InvalidOperationException
'Write the exception
Console.WriteLine(InvalidOperationExceptionErr.Message)
End Try
'Close the database connection
objConnection.Close()
'Clean up
objDataRow = Nothing
objDataTable.Dispose()
objDataTable = Nothing
objDataAdapter.Dispose()
objDataAdapter = Nothing
objCommand.Dispose()
objCommand = Nothing
objConnection.Dispose()
objConnection = Nothing
End Sub
End Class
Friday, February 6, 2009
Butuh Mendesak Programmer ASP.Net
Dibutuhkan cepat ASP.Net, hanya dua bulan
Membangun sistem, fulltime, 11 juta
Mulai kerja 12 Pebruari 2009
Hub: 085693301744
Membangun sistem, fulltime, 11 juta
Mulai kerja 12 Pebruari 2009
Hub: 085693301744
Tuesday, January 20, 2009
Lowongan Programmer VB.Net
Dibutuhkan segera, tenaga Programmerr di PT. Indo Cyber Multimedia (Incymedia), perusahaan yang bergerak di bidang IT
Kualifikasi :
* Pengalaman dibidang ini selama 1 – 2 tahun
* D3/S1 di bidang Informasi tekhnologi
* Pengetahuan yang mendalam mengenai Programming Language seperti vb.net, asp.net, php, java
* Pengetahuan yang mendalam mengenai Database SQL Server, Oracle, MySQL and postgresql
* Kemampuan Debugging
* Kemampuan untuk customize Program yang sudah ada
* Memiliki kendaraan sendiri
Kirimkan Surat lamaran, CV beserta foto terbaru ke : Email : vsehelen@incymedia.com
Webite : http://www.incymedia.com
Career Level Middle
Qualification Diploma
Yr(s) Exp 1 year(s)
Job Category Information Technology (I.T.) - Application Specialist, Information Technology (I.T.) - Programming, Information Technology (I.T.) - SAP / Oracle
Job Location DKI Jakarta - Jakarta
Salary Not Specified / Negotiable
Job Type Full Time, Permanent
Kualifikasi :
* Pengalaman dibidang ini selama 1 – 2 tahun
* D3/S1 di bidang Informasi tekhnologi
* Pengetahuan yang mendalam mengenai Programming Language seperti vb.net, asp.net, php, java
* Pengetahuan yang mendalam mengenai Database SQL Server, Oracle, MySQL and postgresql
* Kemampuan Debugging
* Kemampuan untuk customize Program yang sudah ada
* Memiliki kendaraan sendiri
Kirimkan Surat lamaran, CV beserta foto terbaru ke : Email : vsehelen@incymedia.com
Webite : http://www.incymedia.com
Career Level Middle
Qualification Diploma
Yr(s) Exp 1 year(s)
Job Category Information Technology (I.T.) - Application Specialist, Information Technology (I.T.) - Programming, Information Technology (I.T.) - SAP / Oracle
Job Location DKI Jakarta - Jakarta
Salary Not Specified / Negotiable
Job Type Full Time, Permanent
Wednesday, January 14, 2009
Job at PT. MICRON MUSTIKA INTEGRASI
We are a fast growing IT company which located in Jakarta, specialized in IT solutions and Hardware Resellers. We have extensive experience both in software development, implementation as well as hardware supplies. In addition we also have cooperation with reputable partners, both local and multinational companies.
PROGRAMMER
Requirements :
* Very familiar ASP.NET 2.0
* Very familiar with JavaScript
* Very familiar with ASP. NET Web Controls
* Familiar with Windows Services
* Familiar with XML web services
* Good programming in C#
* Very good command in SQL Server 2005 programming using T-SQL (Store Procedure and Function)
* Familiar in application development using Visual Studio 2005
* Web Form report viewer
Work Experiences :
* Min 2 years experience in software development project as programmer using ASP. Net and C#.Net
Some of Main Job Descriptions :
* Bug Tracking and fixing for existing applications.
* Update or/and add new function to the application based on customer requests.
* Update existing or/and create new report using Microsoft Report Viewer.
* Day to day application developing, monitoring and maintaining.
How to apply :
Please submit your application letter and CV, email to : care@micronmustika.com
PROGRAMMER
Requirements :
* Very familiar ASP.NET 2.0
* Very familiar with JavaScript
* Very familiar with ASP. NET Web Controls
* Familiar with Windows Services
* Familiar with XML web services
* Good programming in C#
* Very good command in SQL Server 2005 programming using T-SQL (Store Procedure and Function)
* Familiar in application development using Visual Studio 2005
* Web Form report viewer
Work Experiences :
* Min 2 years experience in software development project as programmer using ASP. Net and C#.Net
Some of Main Job Descriptions :
* Bug Tracking and fixing for existing applications.
* Update or/and add new function to the application based on customer requests.
* Update existing or/and create new report using Microsoft Report Viewer.
* Day to day application developing, monitoring and maintaining.
How to apply :
Please submit your application letter and CV, email to : care@micronmustika.com
PT. INTIKOM BERLIAN MUSTIKA
PT. Intikom Berlian Mustika works in partnerships with the world’s leading companies to provide a comprehensive range of IT services and products for a broad client base. Its main services and products are consultancy, software customization & implementation assistance, education & training, software and hardware, system integration, e-commerce, networking and communication, IT Security and maintenance service.
Intikom integrates people, process and technology to deliver innovative and reliable solutions to both the private and government sector. The company’s special focus is on banking, finance, manufacturing, distribution, hospital, pharmaceutical, chemical, insurance, retail, automotive, and mining industries.
PROGRAMMER
Qualification:
* Has experience 1-2 years with Object Oriented Programming (Power Builder / Visual Basic, Visual Basic.Net and SQL Server) under Windows-NT Platform
* Education background – S1 Teknik Informasi
* Strong academy record from reputable University, GPA 3.00
* Has good communication, presentation and writing skill
* Able to communicate in English
* Willing to work out of town
Please send your CV and recent photo to: recruitment@intikom.co.id
We are sorry that only those who meet the requirements will be processed
Intikom integrates people, process and technology to deliver innovative and reliable solutions to both the private and government sector. The company’s special focus is on banking, finance, manufacturing, distribution, hospital, pharmaceutical, chemical, insurance, retail, automotive, and mining industries.
PROGRAMMER
Qualification:
* Has experience 1-2 years with Object Oriented Programming (Power Builder / Visual Basic, Visual Basic.Net and SQL Server) under Windows-NT Platform
* Education background – S1 Teknik Informasi
* Strong academy record from reputable University, GPA 3.00
* Has good communication, presentation and writing skill
* Able to communicate in English
* Willing to work out of town
Please send your CV and recent photo to: recruitment@intikom.co.id
We are sorry that only those who meet the requirements will be processed
Jobs Programmer
Perusahaan distributor Consumer Goods yang sedang berkembang pesat, mengundang Anda yang menyukai tantangan dan kerja keras untuk bergabung sebagai:
PROGRAMMER
Kriteria:
* Pria / wanita, usia max 35 Thn
* Pendidikan S1 Manajemen Informatika / IT
* Pengalaman kerja dalam membuat program software min. 1 thn
* Menguasai Database SQL Server 2005 (Replication, Store Procedure, Trigger, OLAP) dan MS Access
* Menguasai bahasa pemrograman ASP / ASP.net, VB, VB.net (2)
* Menguasai network, Windows Server 2003, MS Exchange dan sistem distribusi (nilai tambah)
* Memiliki kemampuan analisis data yang kuat
* Rajin, disiplin, jujur, dan bertanggung jawab
* Bersedia bekerja lembur
Segera kirimkan surat lamaran dan CV lengkap Anda ke: recruit_me_id@yahoo.co.id
PROGRAMMER
Kriteria:
* Pria / wanita, usia max 35 Thn
* Pendidikan S1 Manajemen Informatika / IT
* Pengalaman kerja dalam membuat program software min. 1 thn
* Menguasai Database SQL Server 2005 (Replication, Store Procedure, Trigger, OLAP) dan MS Access
* Menguasai bahasa pemrograman ASP / ASP.net, VB, VB.net (2)
* Menguasai network, Windows Server 2003, MS Exchange dan sistem distribusi (nilai tambah)
* Memiliki kemampuan analisis data yang kuat
* Rajin, disiplin, jujur, dan bertanggung jawab
* Bersedia bekerja lembur
Segera kirimkan surat lamaran dan CV lengkap Anda ke: recruit_me_id@yahoo.co.id
Subscribe to:
Posts (Atom)