ADO  dotnet
  
Home | DotNet Hosting | eCommerce Hosting | SQL Server Hosting| ADO DotNet | ASP DotNet | DotNet Tutorials | Contact Us  |
  
         
 

Your domain available ?
www.

BUY NOW
ASPNET 3.0 New
ASPNET 2.0
SQL SERVER 2005 HOSTING
GET LISTED IN GOOGLE
30 DAY MONEY BACK
OUR PARTNERS
TUTORIALS
WEB DESIGN TEMPLATES
 TERMS
 PRESS ROOM




 

 

Connecting to SqlServer using ADO.Net and ASP.Net

 

Dim myConnection As New SqlConnection("server=ukcwdswst02;database=pubs;uid=userid;pwd=password")
Dim myCommand As New SqlDataAdapter("select * from Authors", myConnection)


Sub Page_Load(sender As Object, e As EventArgs)
Dim ds As New DataSet()
myCommand.Fill(ds, "Authors")

Dim pRow As DataRow
For Each pRow In ds.Tables("Authors").Rows
Response.write (pRow("au_fname") & "&nbsp;" & pRow("au_lname") & "<BR>")
Next

End Sub

 

 

 

 

 

 

 

 

Stacks of web space and bandwidth with all packages

ASP Hosting £6/Month


.net hosting

.NET Hosting £10/Month
400MB


Copyright ©2002 DotNet Hosting UK, All rights reserved