Click here to Skip to main content
15,895,084 members
Home / Discussions / Database
   

Database

 
GeneralRe: SQL Server 2005 & .MDF Files Pin
Unsy10-Jan-09 13:49
Unsy10-Jan-09 13:49 
GeneralRe: SQL Server 2005 & .MDF Files Pin
Wendelius10-Jan-09 20:48
mentorWendelius10-Jan-09 20:48 
QuestionHow to populate a datagrid? Pin
enipla9-Jan-09 6:54
enipla9-Jan-09 6:54 
AnswerRe: How to populate a datagrid? Pin
Wendelius9-Jan-09 8:13
mentorWendelius9-Jan-09 8:13 
GeneralRe: How to populate a datagrid? Pin
enipla9-Jan-09 8:36
enipla9-Jan-09 8:36 
GeneralRe: How to populate a datagrid? Pin
Wendelius9-Jan-09 8:50
mentorWendelius9-Jan-09 8:50 
GeneralRe: How to populate a datagrid? Pin
enipla9-Jan-09 8:57
enipla9-Jan-09 8:57 
GeneralRe: How to populate a datagrid? Pin
Wendelius9-Jan-09 9:13
mentorWendelius9-Jan-09 9:13 
Okay,

At a glance I don't see anything special, but since the datatable is already existsng, perhaps it's schema is incompatible. What if you try the following (there may be typos):
Dim queryString As String = "SELECT * FROM dbo.ADR_BASE;"
Using connection As New SqlConnection("Data Source=DEVBOX;Initial Catalog=PermitsPlus;Persist Security Info=True;User ID=*****;Password=*****")
   Dim command As New SqlCommand(queryString, connection)
   connection.Open()
   Dim reader As SqlDataReader = command.ExecuteReader()
   Dim tempTable As new System.Data.DataTable("ADR_BASE")
   tempTable.Load(reader)
   DataGridView1.DataSource = tempTable
   'PermitsPlusDataSet.ADR_BASE.Load(reader)
   'DataGridView1.DataSource = PermitsPlusDataSet.ADR_BASE.Load(reader)

do you still have error and if you do, does it occur on the Load row?

The need to optimize rises from a bad design.My articles[^]

GeneralRe: How to populate a datagrid? Pin
enipla9-Jan-09 9:29
enipla9-Jan-09 9:29 
GeneralRe: How to populate a datagrid? Pin
Wendelius9-Jan-09 9:37
mentorWendelius9-Jan-09 9:37 
QuestionHow do I share information between a Dozen Databases Locally and Globally without Licenses Pin
BobClarkSQL9-Jan-09 5:05
BobClarkSQL9-Jan-09 5:05 
QuestionRe: How do I share information between a Dozen Databases Locally and Globally without Licenses Pin
Wendelius9-Jan-09 5:15
mentorWendelius9-Jan-09 5:15 
AnswerRe: How do I share information between a Dozen Databases Locally and Globally without Licenses Pin
BobClarkSQL9-Jan-09 5:40
BobClarkSQL9-Jan-09 5:40 
GeneralRe: How do I share information between a Dozen Databases Locally and Globally without Licenses Pin
Wendelius9-Jan-09 6:01
mentorWendelius9-Jan-09 6:01 
QuestionFill Method with a big DB connected through the internet Pin
fifothekid9-Jan-09 3:18
fifothekid9-Jan-09 3:18 
AnswerRe: Fill Method with a big DB connected through the internet Pin
Wendelius9-Jan-09 3:51
mentorWendelius9-Jan-09 3:51 
GeneralRe: Fill Method with a big DB connected through the internet Pin
fifothekid9-Jan-09 3:57
fifothekid9-Jan-09 3:57 
GeneralRe: Fill Method with a big DB connected through the internet Pin
Wendelius9-Jan-09 4:22
mentorWendelius9-Jan-09 4:22 
QuestionInsert sum of two columns to third column in sqlserver Pin
Satish - Developer9-Jan-09 1:39
Satish - Developer9-Jan-09 1:39 
AnswerRe: Insert sum of two columns to third column in sqlserver [modified] Pin
Ashfield9-Jan-09 1:44
Ashfield9-Jan-09 1:44 
GeneralRe: Insert sum of two columns to third column in sqlserver Pin
Wendelius9-Jan-09 2:38
mentorWendelius9-Jan-09 2:38 
GeneralRe: Insert sum of two columns to third column in sqlserver Pin
Ashfield9-Jan-09 4:20
Ashfield9-Jan-09 4:20 
GeneralRe: Insert sum of two columns to third column in sqlserver Pin
Wendelius9-Jan-09 4:28
mentorWendelius9-Jan-09 4:28 
GeneralRe: Insert sum of two columns to third column in sqlserver Pin
Ashfield9-Jan-09 5:21
Ashfield9-Jan-09 5:21 
GeneralRe: Insert sum of two columns to third column in sqlserver Pin
Wendelius9-Jan-09 6:05
mentorWendelius9-Jan-09 6:05 

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.