Click here to Skip to main content
15,897,187 members
Home / Discussions / Database
   

Database

 
GeneralRe: Sql Server Security Pin
GuyThiebaut28-Apr-08 22:28
professionalGuyThiebaut28-Apr-08 22:28 
GeneralRe: Sql Server Security Pin
~V~28-Apr-08 23:16
~V~28-Apr-08 23:16 
GeneralStoring files in a field of type image ??? [modified] Pin
devboycpp28-Apr-08 20:37
devboycpp28-Apr-08 20:37 
GeneralSum the top 2 records Pin
Broken Bokken28-Apr-08 12:30
Broken Bokken28-Apr-08 12:30 
GeneralRe: Sum the top 2 records Pin
Harini N K28-Apr-08 19:48
Harini N K28-Apr-08 19:48 
GeneralRe: Sum the top 2 records Pin
WoutL28-Apr-08 23:24
WoutL28-Apr-08 23:24 
GeneralRe: Sum the top 2 records Pin
Broken Bokken29-Apr-08 2:06
Broken Bokken29-Apr-08 2:06 
QuestionRetrieve an image from Sybase using VB.Net Pin
bodala_venu28-Apr-08 3:25
bodala_venu28-Apr-08 3:25 
I'm trying to retrieve an image from Sybase DB using VB.Net. The field (sImage) is of type
"image". I've tried with dataset and dataReader, but no luck so far.
Here is what I have done:

This code works fine for SQL Server database.

Example:


Dim strConn As String
Dim strQuery As String
Dim objConn As OleDbConnection
Dim objDs As New DataSet
Dim intId As Integer
Dim objDa As OleDbDataAdapter

intId = Request.QueryString("uniqueId").ToString()
strQuery = "Select SImage From IMAGE Where ImageId= " & intId
strConn = ConfigurationManager.AppSettings.Get("ConStr")
objConn = New OleDbConnection(strConn)
objDa = New OleDbDataAdapter(strQuery, objConn)

objDa.Fill(objDs)
If Not IsNothing(objDs) AndAlso objDs.Tables.Count > 0 Then
Response.BinaryWrite(objDs.Tables(0).Rows(0)("SImage"))
End If

objDa.Dispose()


The code gave me this error:
"Invalid cursor position"

I'm using The Sybase DB version 9 .0.1

I'm stuck here so please help me!

Venu

GeneralRe: Retrieve an image from Sybase using VB.Net Pin
bodala_venu29-Apr-08 0:13
bodala_venu29-Apr-08 0:13 
QuestionHow to create MSAccess database from a dataset? Pin
Shreyas Ganesh28-Apr-08 2:28
Shreyas Ganesh28-Apr-08 2:28 
AnswerRe: How to create MSAccess database from a dataset? Pin
Blue_Boy28-Apr-08 3:50
Blue_Boy28-Apr-08 3:50 
GeneralRe: How to create MSAccess database from a dataset? Pin
Shreyas Ganesh28-Apr-08 18:21
Shreyas Ganesh28-Apr-08 18:21 
GeneralRe: How to create MSAccess database from a dataset? Pin
Shreyas Ganesh28-Apr-08 18:22
Shreyas Ganesh28-Apr-08 18:22 
GeneralRe: How to create MSAccess database from a dataset? Pin
Blue_Boy28-Apr-08 21:44
Blue_Boy28-Apr-08 21:44 
General(Primary Key problem)How to enter the value ( Sunday to saturday ) with Primary Key Pin
bruze28-Apr-08 1:44
bruze28-Apr-08 1:44 
GeneralRe: (Primary Key problem)How to enter the value ( Sunday to saturday ) with Primary Key Pin
Ashfield28-Apr-08 3:40
Ashfield28-Apr-08 3:40 
Questionlink Dbase III file to SQLServer Pin
Behzad Ordubadi27-Apr-08 22:58
professionalBehzad Ordubadi27-Apr-08 22:58 
GeneralNeed help on query Pin
krishnan.s27-Apr-08 19:29
krishnan.s27-Apr-08 19:29 
GeneralRe: Need help on query [modified] Pin
Ashfield27-Apr-08 20:10
Ashfield27-Apr-08 20:10 
GeneralRe: Need help on query Pin
krishnan.s27-Apr-08 21:09
krishnan.s27-Apr-08 21:09 
GeneralRe: Need help on query Pin
Ashfield27-Apr-08 21:16
Ashfield27-Apr-08 21:16 
GeneralRe: Need help on query Pin
krishnan.s27-Apr-08 21:40
krishnan.s27-Apr-08 21:40 
GeneralRe: Need help on query [modified] Pin
Blue_Boy27-Apr-08 21:49
Blue_Boy27-Apr-08 21:49 
GeneralRe: Need help on query Pin
krishnan.s27-Apr-08 22:18
krishnan.s27-Apr-08 22:18 
GeneralRe: Need help on query Pin
Blue_Boy27-Apr-08 22:31
Blue_Boy27-Apr-08 22:31 

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.