Click here to Skip to main content
16,004,977 members
Home / Discussions / Database
   

Database

 
AnswerRe: SQL Doubt. Pin
Colin Angus Mackay5-Jan-06 20:49
Colin Angus Mackay5-Jan-06 20:49 
QuestionDAO Notification? Pin
lynchspawn5-Jan-06 9:51
lynchspawn5-Jan-06 9:51 
AnswerRe: DAO Notification? Pin
Dave Kreskowiak6-Jan-06 5:05
mveDave Kreskowiak6-Jan-06 5:05 
QuestionPartial name Pin
gharry5-Jan-06 9:47
gharry5-Jan-06 9:47 
AnswerRe: Partial name Pin
Colin Angus Mackay5-Jan-06 11:01
Colin Angus Mackay5-Jan-06 11:01 
GeneralRe: Partial name Pin
gharry5-Jan-06 22:46
gharry5-Jan-06 22:46 
GeneralRe: Partial name Pin
Colin Angus Mackay6-Jan-06 1:45
Colin Angus Mackay6-Jan-06 1:45 
QuestionReading CSV file into DataGrid Pin
gharry5-Jan-06 5:32
gharry5-Jan-06 5:32 
I use this code to read a CSV file into a DataGrid:

Dim objConnString As String = "Provider=Microsoft.Jet.OleDb.4.0;Data Source=" & Server.MapPath("Sql\") & ";Extended Properties=""Text;HDR=Yes;FMT=Delimited"""
Dim objString As String = "SELECT * FROM C_Registered_horses.csv"

Dim objConn As New OleDbConnection(objConnString)
Dim objConnCommand As New OleDbCommand(objString, objConn)

Dim objConnReader As OleDbDataReader

objConn.Open()
objConnReader = objConnCommand.ExecuteReader()

dataGridConn.DataSource = objConnReader
dataGridConn.DataBind()

But it only shows the first column from the CSV file.
This methode works fine when connecting to a SQL database but why not here


QuestionProblem populating table Pin
TheJudeDude5-Jan-06 5:06
TheJudeDude5-Jan-06 5:06 
AnswerRe: Problem populating table Pin
Colin Angus Mackay5-Jan-06 6:45
Colin Angus Mackay5-Jan-06 6:45 
GeneralRe: Problem populating table Pin
TheJudeDude5-Jan-06 14:38
TheJudeDude5-Jan-06 14:38 
GeneralRe: Problem populating table Pin
Colin Angus Mackay5-Jan-06 20:45
Colin Angus Mackay5-Jan-06 20:45 
GeneralRe: Problem populating table Pin
TheJudeDude7-Jan-06 3:30
TheJudeDude7-Jan-06 3:30 
GeneralRe: Problem populating table Pin
Colin Angus Mackay7-Jan-06 3:42
Colin Angus Mackay7-Jan-06 3:42 
QuestionSQL query Pin
Deian5-Jan-06 4:33
Deian5-Jan-06 4:33 
AnswerRe: SQL query Pin
Colin Angus Mackay5-Jan-06 6:39
Colin Angus Mackay5-Jan-06 6:39 
GeneralRe: SQL query Pin
Deian5-Jan-06 7:32
Deian5-Jan-06 7:32 
QuestionRe: SQL query Pin
Deian6-Jan-06 5:22
Deian6-Jan-06 5:22 
QuestionJoin On Null?? Pin
tadhg885-Jan-06 3:05
tadhg885-Jan-06 3:05 
AnswerRe: Join On Null?? Pin
Colin Angus Mackay5-Jan-06 3:28
Colin Angus Mackay5-Jan-06 3:28 
GeneralRe: Join On Null?? Pin
tadhg885-Jan-06 4:42
tadhg885-Jan-06 4:42 
QuestionMSDE 2000 upgrade to SQL Server 2005 Developer Pin
Kevin McFarlane5-Jan-06 2:34
Kevin McFarlane5-Jan-06 2:34 
QuestionProblem with connection pooling Pin
nguyenvhn4-Jan-06 15:51
nguyenvhn4-Jan-06 15:51 
AnswerRe: Problem with connection pooling Pin
S. Akif Kamal4-Jan-06 18:21
S. Akif Kamal4-Jan-06 18:21 
GeneralRe: Problem with connection pooling Pin
nguyenvhn5-Jan-06 16:09
nguyenvhn5-Jan-06 16:09 

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.