I have instantiated an SqlDataReader, and when using reader.GetString(1) -OR- reader["Details"], it only retrieves the first 4000 characters of the string. How do I get the rest?
SqlCommand command = new SqlCommand(queryString, connection);
connection.Open();
SqlDataReader reader = command.ExecuteReader();
try
{
while (reader.Read())
{
string foo = reader["Name"];
string bar = reader.GetString(1); //reader["Details"];
// bar ONLY has the first 4000 bytes - not the entire field!
}
}