For anyone using the ADO driver, we've found a bug
When using [ ] around Identifiers, the ComandText gets truncated after the
var command = this.Connection.CreateCommand();
command.CommandType = CommandType.StoredProcedure;
string commandText = String.Format("[{0}].[{1}].[{2}]", database, schema, storedProcedure);
command.CommandText = commandText; //command text should be "[MyDatabase].[dbo].[MyStoredProc]"
Console.WriteLine("CommandText = " + command.CommandText);
This should contain "[MyDatabase].[dbo].[MyStoredProc]"
but Sybase outputs: "MyDatabase"
What's happened to the rest of the string ?
The bug exists in both SDK SP127 and SP130 in the "internal string CommandText" method of AseCommand.