Click here to Skip to main content
15,900,818 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi frnds...
i make a web site in a asp.net and retrive data from the sql server 2005 and it's represent in page table format how it is done please replay
thanks...
Posted
Comments
[no name] 9-Apr-14 9:40am    
How is what done?
Mehul Tank 15-Apr-14 22:56pm    
i want to create website like you tube store video and retrive video from that...

Hi
pls try this link
http://lmgtfy.com/?q=how+to+store+and+retrieve+vedio+file+in+sql+server+2005+%3F[^]


Simply save some video in one folder and based on file name from sql and get that same video file form folder and play it is not good idea,Try to save video file sql server itslef.Sometime files is delete from that folder,so best way is store video file in sql server with detail,so only u can retrieve data with video file name ,and convert to vedio and play it ,if user click file name in grid view (table format)
 
Share this answer
 
Comments
Mehul Tank 13-Apr-14 23:44pm    
thank you
i will try this but pls tell me how much maximum size of video store in sql server ??
i tried also that you are said i can storw only 2 mb video in the server no more than 2 mb size store
how to store 1/2 gb video file store in the db ???
Aravindba 14-Apr-14 11:20am    
hi sorry for late reply,pls try this link
https://www.google.co.in/?gws_rd=cr&ei=evtLU5vRN86Hrgfdk4CYCQ#q=how+to+store+3gb+video+in+sql+server+2005
Mehul Tank 15-Apr-14 22:54pm    
thx i will check it
try this.. :)

how to retrive data from sql server ?[^]

Bind data in gridview like table

C#
string str = " select filename from tblFiles  ";

        //con.Ins_Upd_Del("insert into tblnews(title,description,date) values('"+txtTitle .Text +"','"+txtDescription .Text+"','"+txtDate .Text .Trim ()+"')");

        SqlConnection sqn = new SqlConnection(@"Data Source=MEHUL-PC\SQLEXPRESS;Initial Catalog=dbFiles;Integrated Security=True");
        sqn.Open();

        SqlCommand cmd = new SqlCommand(str, sqn);
       SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
da.Fill(ds);
con.Close();
gvUserInfo.DataSource = ds;
gvUserInfo.DataBind();
 
Share this answer
 
v2
Comments
Mehul Tank 9-Apr-14 9:58am    
i am trying to this and retrive but how to display table format ????

string str = " select filename from tblFiles ";

//con.Ins_Upd_Del("insert into tblnews(title,description,date) values('"+txtTitle .Text +"','"+txtDescription .Text+"','"+txtDate .Text .Trim ()+"')");

SqlConnection sqn = new SqlConnection(@"Data Source=MEHUL-PC\SQLEXPRESS;Initial Catalog=dbFiles;Integrated Security=True");
sqn.Open();

SqlCommand cmd = new SqlCommand(str, sqn);
cmd.ExecuteNonQuery();

cmd.Dispose();
sqn.Close();
Nirav Prabtani 10-Apr-14 1:53am    
see updated solution and try to bind data in gridview, If you are not satisfied with that then try to search in google "How to Binf data in gridview c#"
PIEBALDconsult 9-Apr-14 10:11am    
I'm guessing some sort of Control that displays Data in a Grid for Viewing.
Mehul Tank 9-Apr-14 10:31am    
you are right
but i want to do retrive data from the table and again retrive data from the folder as data appropriate retriving database
i.e data retrive from the table is give in the input in the other query that query is such as retrive data from the folder
PIEBALDconsult 9-Apr-14 11:01am    
What's a folder?

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