Click here to Skip to main content
15,886,518 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Create Pdf Viewer Pin
Eddy Vluggen5-Feb-12 0:56
professionalEddy Vluggen5-Feb-12 0:56 
QuestionNewby to ADO.NET needs help upgrading from VB6 recordset update batch Pin
Member 86051774-Feb-12 5:51
Member 86051774-Feb-12 5:51 
AnswerRe: Newby to ADO.NET needs help upgrading from VB6 recordset update batch Pin
Eddy Vluggen5-Feb-12 6:05
professionalEddy Vluggen5-Feb-12 6:05 
GeneralRe: Newby to ADO.NET needs help upgrading from VB6 recordset update batch Pin
Member 86051775-Feb-12 6:50
Member 86051775-Feb-12 6:50 
AnswerRe: Newby to ADO.NET needs help upgrading from VB6 recordset update batch Pin
Eddy Vluggen5-Feb-12 7:19
professionalEddy Vluggen5-Feb-12 7:19 
GeneralRe: Newby to ADO.NET needs help upgrading from VB6 recordset update batch Pin
Member 86051775-Feb-12 11:03
Member 86051775-Feb-12 11:03 
GeneralRe: Newby to ADO.NET needs help upgrading from VB6 recordset update batch Pin
Eddy Vluggen5-Feb-12 19:45
professionalEddy Vluggen5-Feb-12 19:45 
QuestionDataReader with SQL Join Pin
C#Coudou2-Feb-12 19:51
C#Coudou2-Feb-12 19:51 
Is there any workarounds on how to read the data from sql join using sqldatareader.

SQL
query ="SELECT TABLE1.FID FROM TABLE2 WHERE TABLE1.ID = TABLE2.ID" ---StoredProcedure

VB
Dim sqlRead As SqlDataReader

cmd.CommandType = CommandType.StoredProcedure 
sqlRead = cmd.ExecuteReader 

While sqlRead .Read()
  Dim str as String = sqlRead("FID") '-------> error here!
End While


Yes, I know that the good solution is to put "AS" clause on query.
Let say, TABLE1.FID AS FID.

But the problem is I have 100 StoredProcedures and each has no alias.
It's very difficult if I will modify all the SP just to put that clause.

Thanks in advance
C# コードMicrosoft End User
2000-2008




「「「「「「「「「「「「「「「「「「「「「「「「「「「「
The best things in life are free
」」」」」」」」」」」」」」」」」」」」」」」」」」」」


AnswerRe: DataReader with SQL Join Pin
Wayne Gaylard2-Feb-12 20:26
professionalWayne Gaylard2-Feb-12 20:26 
GeneralRe: DataReader with SQL Join Pin
C#Coudou2-Feb-12 21:13
C#Coudou2-Feb-12 21:13 
GeneralRe: DataReader with SQL Join Pin
Simon_Whale2-Feb-12 21:54
Simon_Whale2-Feb-12 21:54 
GeneralRe: DataReader with SQL Join Pin
C#Coudou2-Feb-12 21:57
C#Coudou2-Feb-12 21:57 
GeneralRe: DataReader with SQL Join Pin
Wayne Gaylard2-Feb-12 22:13
professionalWayne Gaylard2-Feb-12 22:13 
AnswerRe: DataReader with SQL Join Pin
Johan Hakkesteegt2-Feb-12 23:35
Johan Hakkesteegt2-Feb-12 23:35 
AnswerRe: DataReader with SQL Join Pin
Dave Kreskowiak3-Feb-12 2:28
mveDave Kreskowiak3-Feb-12 2:28 
Questionvb.net Pin
Member 82843502-Feb-12 18:58
Member 82843502-Feb-12 18:58 
AnswerRe: vb.net Pin
Simon_Whale2-Feb-12 21:50
Simon_Whale2-Feb-12 21:50 
AnswerRe: vb.net Pin
Eddy Vluggen3-Feb-12 0:22
professionalEddy Vluggen3-Feb-12 0:22 
QuestionCopy Content from Word Docuemnt to RichBox Pin
Peace4all2-Feb-12 17:50
Peace4all2-Feb-12 17:50 
AnswerRe: Copy Content from Word Docuemnt to RichBox Pin
Wayne Gaylard2-Feb-12 19:19
professionalWayne Gaylard2-Feb-12 19:19 
Questionshow/hide datagridview rows by setting trackbar value Pin
bezkintos2-Feb-12 14:09
bezkintos2-Feb-12 14:09 
AnswerRe: show/hide datagridview rows by setting trackbar value Pin
Luc Pattyn2-Feb-12 15:07
sitebuilderLuc Pattyn2-Feb-12 15:07 
GeneralRe: show/hide datagridview rows by setting trackbar value Pin
bezkintos3-Feb-12 11:51
bezkintos3-Feb-12 11:51 
GeneralRe: show/hide datagridview rows by setting trackbar value Pin
Alan N3-Feb-12 13:01
Alan N3-Feb-12 13:01 
GeneralRe: show/hide datagridview rows by setting trackbar value Pin
bezkintos3-Feb-12 14:43
bezkintos3-Feb-12 14:43 

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.