K
Kevin Quigley
Hi ,
I have a method in an asp.net application that calls a sql server stored
procedure. The stored procedure inserts data to Text field. Here is the
..net procedure...
public int Insert(int articleId,string textData)
{
int rowsAffected;
SqlParameter[] parameters = {
new SqlParameter("@articleId",SqlDbType.Int,4),
new SqlParameter("@text",SqlDbType.Text),
new SqlParameter("@pageId",SqlDbType.Int,4)
};
parameters[0].Value = articleId;
parameters[1].Value = textData;
parameters[2].Direction = ParameterDirection.Output;
try
{
RunProcedure("weeklyreport_inserttext",parameters,out rowsAffected);
}
catch(SqlException exc)
{
return 0;
}
return (int)parameters[2].Value;
}
My problem is that only so much of the text parameter gets stored and
the rest is just cut off.
Has anyone had a similar problem?
Any help would be gratefully appreciated.
Thanks,
Kevin.
I have a method in an asp.net application that calls a sql server stored
procedure. The stored procedure inserts data to Text field. Here is the
..net procedure...
public int Insert(int articleId,string textData)
{
int rowsAffected;
SqlParameter[] parameters = {
new SqlParameter("@articleId",SqlDbType.Int,4),
new SqlParameter("@text",SqlDbType.Text),
new SqlParameter("@pageId",SqlDbType.Int,4)
};
parameters[0].Value = articleId;
parameters[1].Value = textData;
parameters[2].Direction = ParameterDirection.Output;
try
{
RunProcedure("weeklyreport_inserttext",parameters,out rowsAffected);
}
catch(SqlException exc)
{
return 0;
}
return (int)parameters[2].Value;
}
My problem is that only so much of the text parameter gets stored and
the rest is just cut off.
Has anyone had a similar problem?
Any help would be gratefully appreciated.
Thanks,
Kevin.