G
Guest
i am accessing a string value from an access db query that is longer than 255
chars.
the problem:
the field in the datareader only shows 255 chars.
when i run the query in the access query window i get the entire string.
the code is pretty simple:
....
Dim cmd As New OleDbCommand( "sp_invoiceText", con )
cmd.CommandType = CommandType.StoredProcedure
cmd.Parameters.Add( "@traID", value ) ' value is an Integer
Dim dr As OleDbDataReader
Dim strInvoice As String
Try
cmd.Connection.Open
dr = cmd.ExecuteReader
dr.Read
strInvoice = dr(0)
....
can someone PLEASE tell me how to fix this?
chars.
the problem:
the field in the datareader only shows 255 chars.
when i run the query in the access query window i get the entire string.
the code is pretty simple:
....
Dim cmd As New OleDbCommand( "sp_invoiceText", con )
cmd.CommandType = CommandType.StoredProcedure
cmd.Parameters.Add( "@traID", value ) ' value is an Integer
Dim dr As OleDbDataReader
Dim strInvoice As String
Try
cmd.Connection.Open
dr = cmd.ExecuteReader
dr.Read
strInvoice = dr(0)
....
can someone PLEASE tell me how to fix this?