The value's length for key 'data source' exceeds it's limit of '128'

  • Thread starter Thread starter 沈世鈞
  • Start date Start date

沈世鈞

Guest
open System.Data;;
open System.Data.SqlClient;;
let connString = new SqlConnectionStringBuilder();;
connString.DataSource <- @"Data Source=20.2.2.200;Initial Catalog=Project_Cert_Test;User ID=sa;Password=xxxx;Connect Timeout=60;MultipleActiveResultSets=True";;

let query() =
let query = "SELECT * FROM Project"
seq { let conn_string = connString.ConnectionString
use conn = new SqlConnection(conn_string)
do conn.Open ()
use comm = new SqlCommand(query, conn)
use reader = comm.ExecuteReader()
while reader.Read() do
yield (reader.GetString 0) };;
query();;

why have this limit, how to allow exceed this limit?極意

Continue reading...
 
Back
Top