|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#16
|
|||
|
|||
|
You do not return the output parameter, you just need to populate it. You are issuing:
return @nextID ... This is incorrect.
__________________
El éxito consiste en una serie de pequeñas victorias día a día MySQL, MS SQL, MS ACCESS, Oracle Database Manager - http://victorpendleton.net/products/psdviewer.html |
|
#17
|
|||
|
|||
|
that was something I changed after trying it without as well, because in the example in one of the links had a return value like I did. It does the same thing after removing the return value
this however works ![]() Code:
declare @nextID integer Exec GetNextID2 'hockeyPlayers', @nextID output select @nextID Thanks for the help |
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > assigning values by select within a procedure |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|