![]() |
System.Data
In Visual Studio 2003 I could run the following statement:
:
cmdUser.Parameters.Add("@firstname", SqlDbType.VarChar, 25).Direction = ParameterDirection.Output;Thanks. |
i didn't play with VS 2005 but i think what you should do is to write (using System.Data.SqlClient).
|
I have done that...
|
I have these 2 inclusions
using System.Data; using System.Data.SqlClient; and this: :
cmd.Parameters.Add("@asd",SqlDbType.VarChar,25).Direction = ParameterDirection.Output;compiles fine. |
Maybe I can Give you some background info. What I have found is that you have to be more explicit about what Libraries you want the compiler to use. Cause I to had this kind of problem. Best thing to figure out what you need is put in what you think:
:
cmdUser.Parameters.Add("@firstname", SqlDbType.VarChar, 25).Direction = ParameterDirection.Output; |
OK I fixed it. I just closed down my project and re-opened it and it compiled fine... very weird.
Thanks for the input guys. |
Quote:
|
Did you tried adding System.Data.Common in using directives and try
:
|
| All times are GMT -5. The time now is 1:42 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC