Fill() problem in VS .NET 2003 in Windows application C# with SQL Server

A

Auto

I starting to use Visual Studio .NET 2003 creating C# Windows application
with SQL Server and I get problem with method Fill() for which when
running ends with System Error even with the most simple cases which I
copied from a tutorial. everything else works right for ex Preview Data
except for example sqlDataAdapter1.Fill(ds1).

Is it a bug or some other kind of error. What should I do?

Dalius

Fill() problem in VS .NET 2003 in Windows application C# with SQL Server
 
A

Auto

An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred
in system.data.dll

Additional information: System error.
 
A

Auto

I did!
And DataPreview work correctly... I see tables and data in source DB.

Only Fill() does not work
I tried with simplest program using build in Northwind DB - fill() does
fail() too.
I think it is a bug or I have reinstall VS.NET 2003 ?
Any suggestions.
 
M

Miha Markic

Hi Auto,

Try opening the connection before Fill and place the call between try/catch
block.
It will show us if the problem lies within connection...
 
C

Cor

Hi Auto,

I understand now that you did make it using the desinger,
are you sure that the name of the dataset is correct?

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top