DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Mon, 13 Aug 2007 15:30:03 -0700,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    pelegk1
          2    Peter Bromberg [C# MVP]


dot net and sql server-2 quetion   
1)when i call to a Stored Procedure
and for exampe i do :
myCommand.Parameters.Add("@flag", Data.SqlDbType.Int)
myCommand.Parameters("@flag").Value = DEAULT
how can i pass a DEFAULT value tothe stored procedure (in which the stored 
procedure for the specific variable uses its default defined value)?
2)how /what do i nedd to define and how do i get the returned vale,which i 
return from the Stored Procedure
thnaks in advance
peleg
Date:Mon, 13 Aug 2007 15:30:03 -0700   Author:  

RE: dot net and sql server-2 quetion   
Typically if you want the sproc to use the default value for a parameter, you 
would either pass null or System.DbNull.Value as the parameter value.
-- Peter
Recursion: see Recursion
site:  http://www.eggheadcafe.com
unBlog:  http://petesbloggerama.blogspot.com
BlogMetaFinder:    http://www.blogmetafinder.com



"pelegk1" wrote:


> 1)when i call to a Stored Procedure
> and for exampe i do :
> myCommand.Parameters.Add("@flag", Data.SqlDbType.Int)
> myCommand.Parameters("@flag").Value = DEAULT
> how can i pass a DEFAULT value tothe stored procedure (in which the stored 
> procedure for the specific variable uses its default defined value)?
> 2)how /what do i nedd to define and how do i get the returned vale,which i 
> return from the Stored Procedure
> thnaks in advance
> peleg
> 
> 
Date:Mon, 13 Aug 2007 17:00:01 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us