473,403 Members | 2,323 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Problems with dataset and dataadapter


Greetings,
Can You take a look to the following code?

SQLComando = New SqlCommand(strsql, myConnection2)

SQLComando.CommandTimeout = 45

Dim daGrid1 As SqlDataAdapter = New SqlDataAdapter

daGrid1.SelectCommand = SQLComando

myConnection2.Open()

Dim dsGrid1 As DataSet = New DataSet

daGrid1.Fill(dsGrid1, "Lista")
As you can see it is a perfect straight forward code. The sql SELECT string
is correct, and it's not placed here for space concern.
Now it comes the question. Why sometimes the fill doesn't work? Sometimes it
gives me the following error:

System.Data.SqlClient.SqlException: Invalid object name 'ASS_Processamento'.
Invalid object name 'ASS_Justificacao'. Invalid object name
'ASS_TipoJustificacao'. Invalid object name 'ASS_Justificacao'. Invalid
object name 'ASS_TipoJustificacao... ************ retirado parte da
mensagem por espaço*************

wAssiduidade.wfrmJustificar.Justificar() in
C:\Inetpub\wwwroot\wAssiduidade\wfrmJustificar.asp x.vb:line 161 Invalid
object name 'ASS_Processamento'. Invalid object name 'ASS_Justificacao'.

Invalid object name 'ASS_TipoJustificacao'. Invalid object name
'ASS_Justificacao'. Invalid object name 'ASS_TipoJustificacao'.

Am I making any sense? The table is in DB, SELECT statement has a (NOLOCK)
statement,...
Sometimes, even more rarely, the fill doesn't fills :) data. datatable comes
with no rows when it should come. they're there!

Regards,

Rui Dias

Nov 19 '05 #1
0 791

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mojtaba Faridzad | last post by:
Hi, Please check these lines: DataSet dataSet = new DataSet(); dataAdapter.Fill(dataSet, "mytable"); DataRow row; row = dataSet.Tables.Rows; row.BeginEdit(); row = "555";
3
by: JacksonYin | last post by:
1. I can fill data from Excel to DataSet like this: OleDbConnection connection = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=../../Book1.xls;Extended Properties=Excel...
8
by: Kris Rockwell | last post by:
Hello, I have done the following to bind data to a DropDown box: 1. Drag SQLServer table onto web form to create data connection and data adapter. 2. Generate dataset by right-clicking on...
15
by: JIM.H. | last post by:
Hello, Can I send a dataset as a parameter into stored procedure and import data to a table in the stored procedure? Thanks, Jim.
12
by: chreo | last post by:
I GIVE UP...I can't refresh datagrid (dataset) I have datagrid = dgrPaczki Datasource of that datagrid = DataSetPaczki1.PACZKI_PAKOWALNIA (forgive me Polish words) Dataadapter which fills my...
4
by: Robert Bravery | last post by:
Hi All, I'm New to VS.net. Trying to figure out this new dataset thingy. Ok so I add a dataadapter with all the correct properties for a table. Then generate the dataset. Now open the dataset and...
7
by: David P. Donahue | last post by:
My experience with databases using C# has been pretty limited thus far. Mostly I just use a SELECT statement to populate a DataSet, which is just read-only (mostly for display on a web page), or...
7
by: koonda | last post by:
Hi guys, I am trying to create a web interface in C# using ASP.NET. The database being used is SQL Server. I have some problems loading the tables in the datalist controls. When I run the program...
1
by: koonda | last post by:
Hi guys, I posted my messages before and one of the members helped me a lot. Now I have another problem with the web Interface. I can populate the listboxes with tables from database.The code...
3
by: Tony K | last post by:
VB 2005 - Windows Vista I have a form that seems to lock up when the number of rows exceed the height of the datagridview. The following code executes when data is received through the serial...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.