Re: mapping of .net framework types to dbtype, the weird string, nvarchar and...
anyway, thank you TabAlleman. your reply do a great help on me :)
View ArticleRe: mapping of .net framework types to dbtype, the weird string, nvarchar and...
Yes, if you're referring to this line in the article:NVarChar. This implicit conversion will fail if the string is larger than the maximum size of an NVarChar, which is 4000 characters. For strings...
View ArticleRe: mapping of .net framework types to dbtype, the weird string, nvarchar and...
hi TabAlleman,i did some more tests using the sql profiler, following are the result:first time i used parameterized query:select @ssql profiler print these information:exec sp_executesql N'select...
View ArticleRe: mapping of .net framework types to dbtype, the weird string, nvarchar and...
You are doing a parameterized query, which I suspect is different from passing parameters to a stored procedure. I suspect in this case, there is no need for sql server to assign a datatype to your...
View ArticleRe: mapping of .net framework types to dbtype, the weird string, nvarchar and...
thank you for your reply Susanta.the key point here is that no matter i set the sqldbtype or not, this code was just works fine without any warns or exceptions, and that`s the one i want to known why.
View ArticleRe: mapping of .net framework types to dbtype, the weird string, nvarchar and...
You need to provide the type in the Parameter object :p.SqlDbType = SqlDbType.NVarChar;
View Articlemapping of .net framework types to dbtype, the weird string, nvarchar and char
i found informations about mapping of string(.net framework type) and corresponding nvarchar(dbtype) on msdn, which says:'This implicit conversion will fail if the string is larger than the maximum...
View Article