Click here to Skip to main content
15,891,943 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how will i save a doc file to a sql server 2005 using file upload
Posted

Do you intend to store the file in SQL Server, or a link to a path on the server? These are two separate mechanisms.

If you intend to store the file in SQL Server, then you really just need to create a VARBINARY(MAX) field and write it there.
 
Share this answer
 
Comments
Starlene 5-Dec-10 10:20am    
But tell what is the code for that to save a file
I replied almost the question this morning here.[^]

Had you Google searched[^] it, you would have found thousands of links like this:
http://www.codeproject.com/KB/aspnet/fileupload.aspx[^]
http://www.aspheute.com/english/20000802.asp[^]
 
Share this answer
 

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