.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> Sql Server >> Post New QuestionBookmark and Share Subscribe to Forum

working with stored procedure

Posted By: raj     Posted Date: September 30, 2013    Points:5   Category :Sql Server
Hi,

create stored procedure with parametre id varchar when i want to exec to stored procedure 1 to 9 it will be coming but after 10 it will showing 1 details if 20 that will be showing 2 details.

how to rectify this

thanks

dinesh

Responses
Author: ashleyturnier             
Posted Date: October 11, 2013     Points: 20   

Stored procedure creation is performed by,
create procedure Proc_Name

@Column1Value DataType,
@Column2Value DataType
as
begin
insert into TableName
(
Column1,
Column2
)
values
(
@Column1Value,
@Column2Value
)
end

exec Proc_Name 'TestValue1','TestValue2'



Author: Sasi Prabhu             
Posted Date: October 25, 2013     Points: 20   

Hi raj,

set the size of varchar.

ex: id varchar(10)



Thanks & Regards,
Sasi Prabhu.


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend