Click here to Skip to main content
15,919,500 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Reading hex from SQL into VB.Net Pin
Dave Kreskowiak5-Jun-07 8:34
mveDave Kreskowiak5-Jun-07 8:34 
GeneralRe: Reading hex from SQL into VB.Net Pin
svanwass5-Jun-07 8:41
svanwass5-Jun-07 8:41 
GeneralRe: Reading hex from SQL into VB.Net Pin
Dave Kreskowiak5-Jun-07 9:05
mveDave Kreskowiak5-Jun-07 9:05 
GeneralRe: Reading hex from SQL into VB.Net Pin
svanwass5-Jun-07 9:18
svanwass5-Jun-07 9:18 
GeneralRe: Reading hex from SQL into VB.Net Pin
Dave Kreskowiak5-Jun-07 9:29
mveDave Kreskowiak5-Jun-07 9:29 
GeneralRe: Reading hex from SQL into VB.Net Pin
svanwass14-Jun-07 4:56
svanwass14-Jun-07 4:56 
GeneralRe: Reading hex from SQL into VB.Net Pin
Dave Kreskowiak14-Jun-07 16:26
mveDave Kreskowiak14-Jun-07 16:26 
GeneralRe: Reading hex from SQL into VB.Net Pin
svanwass18-Jun-07 8:45
svanwass18-Jun-07 8:45 
I found a fix for it. I changed from using System.Data.ODBC to System.Data.SQLClient. That does not limit me at all.



Dim myConnection As SqlConnection
Dim myCommand As SqlCommand

myConnection = New SqlConnection("server=" + Server + ";uid=" + Username + ";pwd=" + Password + ";database=" + DB + ";Trusted_Connection=yes;")
'establishing connection. you need to provide password for sql server

Try
myConnection.Open()
'opening the connection
myCommand = New SqlCommand("SELECT *FROM MYTABLE WHERE MYID='" + MYTHING.ToString + "'", myConnection)
Dim dr As SqlDataReader = myCommand.ExecuteReader()
While dr.Read()
'mystr = dr.GetString(0)
'reading from the datareader
MsgBox(Encoding.Unicode.GetCharCount(dr(0)))
mystr = Encoding.Unicode.GetString(dr(0))
MsgBox(mystr)
'displaying data from the table
End While
dr.Close()
myConnection.Close()
Catch
End Try
Questionadding files to two different listboxes Pin
jds12075-Jun-07 7:55
jds12075-Jun-07 7:55 
AnswerRe: adding files to two different listboxes Pin
Dave Kreskowiak5-Jun-07 8:10
mveDave Kreskowiak5-Jun-07 8:10 
QuestionUsing DoCmd to email an object using an .oft template Pin
reegan415-Jun-07 7:25
reegan415-Jun-07 7:25 
QuestionDatagrid Event in Windows Application Pin
Senthil_M5-Jun-07 7:01
Senthil_M5-Jun-07 7:01 
AnswerRe: Datagrid Event in Windows Application Pin
Dave Kreskowiak5-Jun-07 8:12
mveDave Kreskowiak5-Jun-07 8:12 
QuestionUnable To create connection Pin
Ajeet mittal5-Jun-07 6:00
Ajeet mittal5-Jun-07 6:00 
AnswerRe: Unable To create connection Pin
originSH5-Jun-07 6:11
originSH5-Jun-07 6:11 
AnswerRe: Unable To create connection Pin
Dave Kreskowiak5-Jun-07 6:12
mveDave Kreskowiak5-Jun-07 6:12 
GeneralRe: Unable To create connection Pin
originSH5-Jun-07 6:23
originSH5-Jun-07 6:23 
QuestionRe: Unable To create connection Pin
Ajeet mittal5-Jun-07 16:50
Ajeet mittal5-Jun-07 16:50 
AnswerRe: Unable To create connection Pin
originSH5-Jun-07 22:09
originSH5-Jun-07 22:09 
AnswerRe: Unable To create connection Pin
SimulationofSai5-Jun-07 22:52
SimulationofSai5-Jun-07 22:52 
AnswerRe: Unable To create connection Pin
Dave Kreskowiak6-Jun-07 4:52
mveDave Kreskowiak6-Jun-07 4:52 
QuestionEnvironment settings local user Pin
Josjekoko5-Jun-07 3:23
Josjekoko5-Jun-07 3:23 
QuestionError that debug doesn't handle Pin
cstrader2325-Jun-07 1:45
cstrader2325-Jun-07 1:45 
AnswerRe: Error that debug doesn't handle Pin
Dave Kreskowiak5-Jun-07 4:37
mveDave Kreskowiak5-Jun-07 4:37 
AnswerRe: Error that debug doesn't handle Pin
mr_lasseter5-Jun-07 16:00
mr_lasseter5-Jun-07 16:00 

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.