Hi there,
I'm wondering whether one of you could clarify how to define the maxlength in bits when inserting a parameter in a stored procedure f.ex. What I might do is something like this:
[Microsoft.SqlServer.Server.SqlProcedure]
public static void CreateUser([B]SqlChars pInitials [/B]... )
{
SqlCommand mSqlCommand = new SqlCommand("", new SqlConnection("context connection=true"));
mSqlCommand.CommandText = @"INSERT INTO .... ";
....
The databaseField to insert data might only accept VarChar(32)
So I have to check for this (max 32 chars) when inserting to the DB. How can I do that in the parameterlist?