|
-
May 28th, 2002, 01:34 PM
#1
SQL Server?
Hello,
Would anyone have an idea how to programmatically :
1. Connect to an SQL Server database
2. Select data by using either a SQL Stored Procedure or View
3. Then bind it to a DataGrid?
Public SQLconn As SqlConnection
Public strConn As String = "SERVER=SER01;DATABASE=dbNoelTest;UID=sa;PWD=;"
Public strSQL As String
SQLconn = New SqlConnection(strConn)
strSQL = "SELECT * FROM tblOrderSearch"
Dim SQLda As New SqlDataAdapter(strSQL, strConn)
Dim SQLds As New DataSet()
.....thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|