TableAdapter Commands on PostgreSQL Direct.
-
- Posts: 18
- Joined: Sat 12 Aug 2006 06:37
- Contact:
TableAdapter Commands on PostgreSQL Direct.
Good Day.
I created a form in Visual Studio 2005, Added a datagridview to databind it to a datasource
upon form load.
I created a dataset that contains different tables from different databases (SQL Server 2000, MS Access, Posgres 8.1) by dragging from the tables in the Server Explorer to the dataset.
Reviewing the Tables and the generated TableAdapter. I noticed that TableAdapters from SQL Server and MSAccess have generated the InsertCommand, UpdateCommand, DeleteCommand and SelectCommand, while the TableAdapter of Postgres has only SelectCommand and InsertCommand generated. And with that, I cannot call the TableAdapters' Update Method, it will generate and exception since the UpdateCommand and the Delete Command is not generated.
Data Binding on controls in VS2005 designer relies on BindingSource and TableAdapters, which i think makes it easy to add and update data compared to Data Adapters.
The Tables have simple structure, it has a primary key, other fields and contains data.
How can I solve this problem, I hope that PostGreSQL Direct can work fully with VS2005 TableAdapters.
Any advise and help would be greatly appreciated.
Thank you very Much.
I created a form in Visual Studio 2005, Added a datagridview to databind it to a datasource
upon form load.
I created a dataset that contains different tables from different databases (SQL Server 2000, MS Access, Posgres 8.1) by dragging from the tables in the Server Explorer to the dataset.
Reviewing the Tables and the generated TableAdapter. I noticed that TableAdapters from SQL Server and MSAccess have generated the InsertCommand, UpdateCommand, DeleteCommand and SelectCommand, while the TableAdapter of Postgres has only SelectCommand and InsertCommand generated. And with that, I cannot call the TableAdapters' Update Method, it will generate and exception since the UpdateCommand and the Delete Command is not generated.
Data Binding on controls in VS2005 designer relies on BindingSource and TableAdapters, which i think makes it easy to add and update data compared to Data Adapters.
The Tables have simple structure, it has a primary key, other fields and contains data.
How can I solve this problem, I hope that PostGreSQL Direct can work fully with VS2005 TableAdapters.
Any advise and help would be greatly appreciated.
Thank you very Much.
-
- Posts: 18
- Joined: Sat 12 Aug 2006 06:37
- Contact:
-
- Posts: 18
- Joined: Sat 12 Aug 2006 06:37
- Contact:
-
- Posts: 18
- Joined: Sat 12 Aug 2006 06:37
- Contact:
-
- Posts: 18
- Joined: Sat 12 Aug 2006 06:37
- Contact:
Hi.
Thank you very much for your reply.
I am using postgres 8.1.3, i tried several tables. All of them have
primary keys. as i drag a table from the server explorer in to
the dataset, still the update and delete commands are not created.
So, i used the pgsqlDataAdapter to create tableadapter commands using
it's dataset wizard. but the problem is that if you have several datatables
in your dataset, the dataset wizard will include them all, so you'll be
setting commands for all the tables. It would have been better if you can
select table(s) in which you can generate the commands.
Another thing is that when i add another query in the tableadapter generated
by the pgsqlAdapter dataset wizard, such as a select query with parameters,
(e.g. select * from tbl where :col = :search), it will generate
an error.
Thank you very much for your help and support.
Thank you very much for your reply.
I am using postgres 8.1.3, i tried several tables. All of them have
primary keys. as i drag a table from the server explorer in to
the dataset, still the update and delete commands are not created.
So, i used the pgsqlDataAdapter to create tableadapter commands using
it's dataset wizard. but the problem is that if you have several datatables
in your dataset, the dataset wizard will include them all, so you'll be
setting commands for all the tables. It would have been better if you can
select table(s) in which you can generate the commands.
Another thing is that when i add another query in the tableadapter generated
by the pgsqlAdapter dataset wizard, such as a select query with parameters,
(e.g. select * from tbl where :col = :search), it will generate
an error.
Thank you very much for your help and support.
-
- Posts: 18
- Joined: Sat 12 Aug 2006 06:37
- Contact:
Good Day.
I have already sent through support at crlab.com the videos regarding the issues of tableadapters, which doesnt generate the update and delete commands, and the parameters on tableadapter queries, which generates an error, similar to Thomas Holschen's post.
Hope that this bug will fixed, Thank you very much.
I have already sent through support at crlab.com the videos regarding the issues of tableadapters, which doesnt generate the update and delete commands, and the parameters on tableadapter queries, which generates an error, similar to Thomas Holschen's post.
Hope that this bug will fixed, Thank you very much.
-
- Posts: 18
- Joined: Sat 12 Aug 2006 06:37
- Contact:
good day.
may i know if the issues and bugs of postgres sql direct.net has been fixed, particularly
* tableadapters - it wont generate update and delete commands even
if tables had primary keys
* tableadapter query parameters - creating parameters on tableadapter
queries will result an error, thus limiting the use of multiple
tableadapter queries
thank you very much
may i know if the issues and bugs of postgres sql direct.net has been fixed, particularly
* tableadapters - it wont generate update and delete commands even
if tables had primary keys
* tableadapter query parameters - creating parameters on tableadapter
queries will result an error, thus limiting the use of multiple
tableadapter queries
thank you very much