Shared Function GetNames() As System.Data.Common.DbDataReader
Dim sqlString As String
'sqlString = "select seqno,description from NoSuchTable"
Using cmd As New SqlCommand(sqlString, Sql.ConnSQL)
Try
Return cmd.ExecuteReader(CommandBehavior.CloseConnection)
Catch ex As Exception
Throw
End Try
End Using 'cmd
End Function
Microsoft SQL Server is a suite of relational database management system (RDBMS) products providing multi-user database access functionality.SQL Server is available in multiple versions, typically identified by release year, and versions are subdivided into editions to distinguish between product functionality. Component services include integration (SSIS), reporting (SSRS), analysis (SSAS), data quality, master data, T-SQL and performance tuning.
TRUSTED BY
ASKER
I'd just worked it out and saw the rest of your example when I went to accept the Answer.
Thanks again.