Last active
November 14, 2018 15:32
-
-
Save rexcfnghk/17e942d0fd6eb4d644f654eca1b4b221 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open System.Data.SqlClient | |
let findPlayerNames dbConnectionString = | |
fun () -> | |
use sqlConnection = new SqlConnection (dbConnectionString) | |
use sqlCommand = new SqlCommand ("SELECT [Name] FROM Players", sqlConnection) | |
use reader = sqlCommand.ExecuteReader () | |
seq { while reader.HasRows do yield reader.["Name"] :?> string } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment