Click here to Skip to main content
15,893,790 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Please someone tell that how to insert images in table by stored procedure, I am able to insert images in table with single query, like ~/images/7s.gif , in application folder also , but I dont know how to insert images in table by stored procedure with image path ~/images/7s.gif.

If some one know, Please help me.
Posted
Updated 30-May-11 0:47am
v2

1 solution

For usage of Stored Procedure via ADO.NET, go here:
MSDN: HOW TO: Call SQL Server Stored Procedures in ASP.NET by Using Visual C# .NET[^]
MSDN: HOW TO: Call a Parameterized Stored Procedure by Using ADO.NET and Visual C# .NET[^]
ADO.NET : Using Stored Procedures[^]

About image path that you speak of will be just a string. So, it's like saving a string in database using ADO.NET with help of Stored Procedure. Smile now right? Try!
 
Share this answer
 
Comments
thatraja 30-May-11 14:06pm    
/*Smile now*/
here look at me :)

My 5 for this bunch
Sandeep Mewara 30-May-11 14:08pm    
Actually thats a typo! :laugh: I wanted to write 'simple'... I guess my fingers wrote 'smile'... not bad, it still makes sense and is fine so will keep it as is.

:)
thatraja 30-May-11 14:15pm    
:D Some times errors also funny in our programs.

:)
Espen Harlinn 30-May-11 19:22pm    
Nice links, my 5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900