Click here to Skip to main content
15,911,141 members
Home / Discussions / C#
   

C#

 
GeneralRe: Philisophical question Pin
Gary Wheeler16-Jan-09 1:52
Gary Wheeler16-Jan-09 1:52 
QuestionSybase Binary Columns [modified] Pin
mobius11100115-Jan-09 4:25
mobius11100115-Jan-09 4:25 
AnswerRe: Sybase Binary Columns [modified] Pin
Dave Kreskowiak15-Jan-09 4:49
mveDave Kreskowiak15-Jan-09 4:49 
GeneralRe: Sybase Binary Columns Pin
mobius11100115-Jan-09 10:09
mobius11100115-Jan-09 10:09 
GeneralRe: Sybase Binary Columns Pin
Dave Kreskowiak15-Jan-09 10:40
mveDave Kreskowiak15-Jan-09 10:40 
GeneralRe: Sybase Binary Columns Pin
mobius11100116-Jan-09 2:50
mobius11100116-Jan-09 2:50 
GeneralRe: Sybase Binary Columns Pin
Dave Kreskowiak16-Jan-09 11:36
mveDave Kreskowiak16-Jan-09 11:36 
GeneralRe: Sybase Binary Columns Pin
mobius11100121-Jan-09 5:37
mobius11100121-Jan-09 5:37 
i still only get the byte[0] to write out.

OdbcConnection cn = new OdbcConnection(); // assuming db connection made correction
OdbcCommand cm = new OdbcCommand();
Random r = new Random( ( int )DateTime.Now.Ticks );
OdbcParameter op;

cm.Connection = cn;

byte[] b = new byte[32];

for ( int i = 0; i < b.Length; i++ )
{
b[i] = ( byte )( r.Next() % 256 );
}

cm.CommandType = CommandType.StoredProcedure;

cm.Parameters.Clear();

op = cm.Parameters.Add( "@binVal", OdbcType.Binary );
op.Direction = ParameterDirection.Input;
op.Size = b.Length;
op.Value = b;

cm.CommandText = "sp_SaveBinaryVal";

cn.Open();

try
{
cm.ExecuteNonQuery();
}
finally
{
if ( cn.State == ConnectionState.Open )
{
cn.Close();
}
}
QuestionHow to import data from rtf file to datatable Pin
srinivasadithya15-Jan-09 4:11
srinivasadithya15-Jan-09 4:11 
AnswerRe: How to import data from rtf file to datatable Pin
Jani Giannoudis15-Jan-09 12:56
mvaJani Giannoudis15-Jan-09 12:56 
QuestionRe: How to import data from rtf file to datatable Pin
srinivasadithya16-Jan-09 8:19
srinivasadithya16-Jan-09 8:19 
AnswerRe: How to import data from rtf file to datatable Pin
Jani Giannoudis16-Jan-09 9:06
mvaJani Giannoudis16-Jan-09 9:06 
QuestionRegarding Asynchoronous Multithreading Pin
tasumisra15-Jan-09 3:48
tasumisra15-Jan-09 3:48 
AnswerRe: Regarding Asynchoronous Multithreading Pin
SeMartens15-Jan-09 3:49
SeMartens15-Jan-09 3:49 
GeneralRe: Regarding Asynchoronous Multithreading Pin
tasumisra15-Jan-09 3:57
tasumisra15-Jan-09 3:57 
QuestionHow to get the instance that called a method. Pin
DaveyM6915-Jan-09 3:19
professionalDaveyM6915-Jan-09 3:19 
AnswerRe: How to get the instance that called a method. Pin
benjymous15-Jan-09 3:38
benjymous15-Jan-09 3:38 
GeneralRe: How to get the instance that called a method. Pin
DaveyM6915-Jan-09 3:42
professionalDaveyM6915-Jan-09 3:42 
AnswerRe: How to get the instance that called a method. Pin
Tim Groven15-Jan-09 3:42
Tim Groven15-Jan-09 3:42 
GeneralRe: How to get the instance that called a method. Pin
DaveyM6915-Jan-09 3:50
professionalDaveyM6915-Jan-09 3:50 
AnswerRe: How to get the instance that called a method. Pin
musefan15-Jan-09 3:55
musefan15-Jan-09 3:55 
GeneralRe: How to get the instance that called a method. Pin
DaveyM6915-Jan-09 4:21
professionalDaveyM6915-Jan-09 4:21 
AnswerRe: How to get the instance that called a method. Pin
Pete O'Hanlon15-Jan-09 4:02
mvePete O'Hanlon15-Jan-09 4:02 
GeneralRe: How to get the instance that called a method. Pin
DaveyM6915-Jan-09 4:03
professionalDaveyM6915-Jan-09 4:03 
GeneralRe: How to get the instance that called a method. Pin
DaveyM6915-Jan-09 6:35
professionalDaveyM6915-Jan-09 6:35 

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.