Click here to Skip to main content
15,900,110 members
Home / Discussions / Database
   

Database

 
QuestionShowing progress of a long query Pin
Zoltan Balazs20-Mar-07 15:33
Zoltan Balazs20-Mar-07 15:33 
AnswerRe: Showing progress of a long query Pin
Dave Kreskowiak20-Mar-07 16:46
mveDave Kreskowiak20-Mar-07 16:46 
GeneralRe: Showing progress of a long query Pin
joon vh.20-Mar-07 22:53
joon vh.20-Mar-07 22:53 
GeneralRe: Showing progress of a long query Pin
Colin Angus Mackay20-Mar-07 23:24
Colin Angus Mackay20-Mar-07 23:24 
GeneralRe: Showing progress of a long query Pin
joon vh.20-Mar-07 23:27
joon vh.20-Mar-07 23:27 
GeneralRe: Showing progress of a long query Pin
Colin Angus Mackay20-Mar-07 23:31
Colin Angus Mackay20-Mar-07 23:31 
GeneralRe: Showing progress of a long query Pin
Dave Kreskowiak21-Mar-07 1:42
mveDave Kreskowiak21-Mar-07 1:42 
AnswerRe: store and retrive audio file from/in database Pin
Colin Angus Mackay20-Mar-07 6:39
Colin Angus Mackay20-Mar-07 6:39 
shriku24 wrote:
i have problem to store audio file in database


If you are using SQL Server 2000 use an image column type (you can store upto 2Gb in there). If you are using SQL Server 2005 you can also use varbinary(max) which also has a 2Gb limit and is easier to use.

To get the data in and out use a byte array
byte[] audioData = SomeMethodForGettingTheAudioData();<br />
SqlCommand cmd = new SqlCommand();<br />
cmd.CommandText = "INSERT INTO SomeTable(AudioDataColumn) VALUES (@audioData)";<br />
cmd.Parameters.Add("@audioData", audioData);<br />
cmd.ExecuteNonQuery();


To get it out again just select the relevant column

SqlCommand cmd = new SqlCommand();<br />
cmd.CommandText = "SELECT AudioDataColumn FROM SomeTable WHERE ID = @id";<br />
cmd.Parameters.Add("@id", someIdValue);<br />
byte[] audioData = (byte[])cmd.ExecuteScalar();



GeneralRe: store and retrive audio file from/in database Pin
shriku2421-Mar-07 6:44
shriku2421-Mar-07 6:44 
GeneralRe: store and retrive audio file from/in database Pin
Kunal P27-Mar-07 7:07
Kunal P27-Mar-07 7:07 
GeneralRe: store and retrive audio file from/in database Pin
Colin Angus Mackay27-Mar-07 12:41
Colin Angus Mackay27-Mar-07 12:41 
GeneralRe: store and retrive audio file from/in database Pin
Kunal P28-Mar-07 5:48
Kunal P28-Mar-07 5:48 
QuestionI want to get the create table query of existing table in access Pin
jesusara20-Mar-07 5:16
jesusara20-Mar-07 5:16 
AnswerRe: I want to get the create table query of existing table in access Pin
joon vh.20-Mar-07 23:00
joon vh.20-Mar-07 23:00 
QuestionHow to get list of databases in Oracle? [modified] Pin
NanaAM20-Mar-07 1:35
NanaAM20-Mar-07 1:35 
AnswerRe: How to get list of databases in Oracle? Pin
Smart_Boy20-Mar-07 20:44
Smart_Boy20-Mar-07 20:44 
GeneralRe: How to get list of databases in Oracle? Pin
scottgp21-Mar-07 3:25
professionalscottgp21-Mar-07 3:25 
QuestionInsert into Table Values Pin
Rajiya20-Mar-07 0:28
Rajiya20-Mar-07 0:28 
AnswerRe: Insert into Table Values Pin
coolestCoder20-Mar-07 1:10
coolestCoder20-Mar-07 1:10 
GeneralRe: Insert into Table Values Pin
NanaAM20-Mar-07 1:38
NanaAM20-Mar-07 1:38 
GeneralRe: Insert into Table Values Pin
Dave Kreskowiak20-Mar-07 16:42
mveDave Kreskowiak20-Mar-07 16:42 
AnswerRe: Insert into Table Values Pin
Pete O'Hanlon20-Mar-07 1:50
mvePete O'Hanlon20-Mar-07 1:50 
QuestionCant Add Column with text to System.Data.DataSet Pin
dimaaan20-Mar-07 0:03
dimaaan20-Mar-07 0:03 
Question"All words" or "Any word" query Pin
hepsy.i19-Mar-07 23:45
hepsy.i19-Mar-07 23:45 
AnswerRe: &amp;quot;All words&amp;quot; or &amp;quot;Any word&amp;quot; query Pin
coolestCoder19-Mar-07 23:53
coolestCoder19-Mar-07 23:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.