Click here to Skip to main content
15,890,947 members
Home / Discussions / Database
   

Database

 
QuestionHelp required with Joins Pin
Rajiya10-Sep-08 20:14
Rajiya10-Sep-08 20:14 
AnswerRe: Help required with Joins Pin
EBeylo10-Sep-08 20:43
EBeylo10-Sep-08 20:43 
GeneralRe: Help required with Joins Pin
Rajiya10-Sep-08 21:20
Rajiya10-Sep-08 21:20 
GeneralRe: Help required with Joins Pin
EBeylo10-Sep-08 22:56
EBeylo10-Sep-08 22:56 
QuestionAccess to SQL Pin
TheEagle10-Sep-08 20:07
TheEagle10-Sep-08 20:07 
AnswerRe: Access to SQL Pin
Paul Conrad11-Sep-08 6:33
professionalPaul Conrad11-Sep-08 6:33 
Questionreturn Left or right value Pin
nelsonpaixao10-Sep-08 13:09
nelsonpaixao10-Sep-08 13:09 
AnswerRe: return Left or right value Pin
Mycroft Holmes10-Sep-08 15:29
professionalMycroft Holmes10-Sep-08 15:29 
When you query for "Hamilton" you should get the columns ordinal position/index. The simply get the previous/next column

Set the column index to i and:
Dataset.Tables(0).Rows(2)(i + 1)

[edit]
Oops - wrong forum.
Assuming you know the name/index of the column with "hamilton"

You can apply the same logic to a sql construct. Look into the schema information views (system views), this will give you the ordinal position of the column you found and simply increment the ordinal position to get the column name. This will require a lot of dynamic SQL
[/edit]


Never underestimate the power of human stupidity
RAH

GeneralRe: return Left or right value Pin
nelsonpaixao11-Sep-08 14:10
nelsonpaixao11-Sep-08 14:10 
AnswerRe: return Left or right value Pin
PIEBALDconsult10-Sep-08 16:49
mvePIEBALDconsult10-Sep-08 16:49 
GeneralRe: return Left or right value Pin
nelsonpaixao11-Sep-08 14:00
nelsonpaixao11-Sep-08 14:00 
QuestionEnhance this query Pin
DrukenProgrammer10-Sep-08 9:19
DrukenProgrammer10-Sep-08 9:19 
AnswerRe: Enhance this query Pin
Wendelius10-Sep-08 9:57
mentorWendelius10-Sep-08 9:57 
GeneralRe: Enhance this query Pin
DrukenProgrammer12-Sep-08 23:52
DrukenProgrammer12-Sep-08 23:52 
AnswerRe: Enhance this query Pin
Blue_Boy10-Sep-08 10:02
Blue_Boy10-Sep-08 10:02 
AnswerRe: Enhance this query Pin
nelsonpaixao10-Sep-08 13:15
nelsonpaixao10-Sep-08 13:15 
QuestionImporting fixed length file to SQL server Pin
geekfromindia10-Sep-08 7:26
geekfromindia10-Sep-08 7:26 
AnswerRe: Importing fixed length file to SQL server Pin
Wendelius10-Sep-08 8:06
mentorWendelius10-Sep-08 8:06 
Questionhow to count multiselected queries Pin
harcaype10-Sep-08 5:45
harcaype10-Sep-08 5:45 
AnswerRe: how to count multiselected queries Pin
Blue_Boy10-Sep-08 6:31
Blue_Boy10-Sep-08 6:31 
AnswerRe: how to count multiselected queries Pin
harcaype11-Sep-08 0:32
harcaype11-Sep-08 0:32 
GeneralRe: how to count multiselected queries Pin
Blue_Boy11-Sep-08 1:58
Blue_Boy11-Sep-08 1:58 
QuestionProblems with installing SQL Server 2008 Pin
makumazan8410-Sep-08 3:55
makumazan8410-Sep-08 3:55 
AnswerRe: Problems with installing SQL Server 2008 Pin
Wendelius10-Sep-08 8:14
mentorWendelius10-Sep-08 8:14 
Questionautomated mail Pin
vjvjvjvj10-Sep-08 3:49
vjvjvjvj10-Sep-08 3:49 

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.