Search found 13 matches

by rakgol_a
Wed 27 May 2009 15:57
Forum: dotConnect for Oracle
Topic: DevExpress datasource sample to WPF GridControl
Replies: 1
Views: 5249

DevExpress datasource sample to WPF GridControl

Hi,

Is there examples of how to use dotConnect for Oracle as a datasource
for WPF application?

Regards,
Alfred
by rakgol_a
Wed 22 Apr 2009 15:46
Forum: PostgreSQL Data Access Components
Topic: Loading file into a DB
Replies: 1
Views: 2604

Loading file into a DB

Hi,

Is there way of loading data into bytea column via a
stored procedure, or the PgLoader the only way
where row must exist first??

Thanks,
Alfred
by rakgol_a
Wed 25 Feb 2009 09:58
Forum: dotConnect for SQL Server
Topic: Datase Wizard
Replies: 1
Views: 3347

Datase Wizard

v2.0.16.0

Whe you edit existin dataset, existing datatables are listed fine, but the existing relations are not listed. Hence if u add additional datatables
u have to redo new and old relations.

Regards,
Alfred
by rakgol_a
Wed 21 Jan 2009 15:34
Forum: dotConnect for SQL Server
Topic: Master Detail
Replies: 3
Views: 6131

Master Detail

Can one create SqlDataTable child relation in design-time than in code?

"....
DataRelation deptEmpRel = new DataRelation("dept_emp", deptTable.Columns["deptno"], empTable.Columns["deptno"]);
deptTable.ChildRelations.Add(deptEmpRel);
..."
by rakgol_a
Wed 21 Jan 2009 08:49
Forum: dotConnect for SQL Server
Topic: Master Detail
Replies: 3
Views: 6131

Master Detail

Hi,

We are using a grid(XtraGrid by Devepress) that ChildRelations required
the datasource to support DataTable ChildRelations for master detail relationships, how add ChildRelations to SQLDataTable?

Qoute from the Grid help file

"This document explains how you can implement master-detail relationships for a DataTable using the methods provided by the data source.

ADO .NET allows you to implement master-detail relationships between data tables. The key object in ADO .NET is the DataTable which encapsulates a two-dimensional table of the in-memory data. You can define a master-detail relationship between two tables via the parent table's DataTable.ChildRelations property. If you bind the grid control to a DataTable, which contains master-detail relationships or to a DataView which refers to such a table, the grid can obtain the relationships and the only thing you need to do is to assign pattern Views for representing particular relationships in the XtraGrid. "

We are using dotConnect for Oracle, SQL Server and Postgres.

Regards,
Alfred
by rakgol_a
Mon 05 Jan 2009 07:37
Forum: dotConnect for SQL Server
Topic: Toolbox Creator Utilility
Replies: 3
Views: 4214

I have not received email reply yet.
[email protected]
by rakgol_a
Wed 17 Dec 2008 12:05
Forum: dotConnect for SQL Server
Topic: Toolbox Creator Utilility
Replies: 3
Views: 4214

Toolbox Creator Utilility

Hi,

Is possible to have a VS2005/VS2008 toolbox creator utility for each
dotConnect Controls without have to add them manually or reinstall,
when components disappear from the toolbox for some strange reason.

I'm using
dotConnect for Oracle
dotConnect for PostgreSQL
and dotConnect for SQL Server

on VS2008 SP1

Regards,
Alfred
by rakgol_a
Tue 14 Oct 2008 06:30
Forum: dotConnect for Oracle
Topic: Using OracleDataSource in ASP.
Replies: 1
Views: 2453

Using OracleDataSource in ASP.

Hi, Newbie

I have a grid on an ASP page hooked to OracleDataSource control.
On page load I would like to load the data manualy set
the query. I can set the query on OracleDataSource
but unlike OracleDataTable it does not have properties
like Active which I use in winforms to activate or deactivate
a data source.

How is this generally do something similar to forms where us have
OracleDataTable wired to OracleCommand for the select command
and one uses OracleDataTable.Active property to control when the
data is loaded and when it is not...etc.

Regards,
Alfred
by rakgol_a
Fri 10 Oct 2008 17:04
Forum: dotConnect for PostgreSQL
Topic: Error Calling Stored Procedure?
Replies: 1
Views: 2429

Resolved.

Command had a wrong commandtype... :)

Regards,
Alfred
by rakgol_a
Thu 09 Oct 2008 16:55
Forum: dotConnect for PostgreSQL
Topic: Error Calling Stored Procedure?
Replies: 1
Views: 2429

Error Calling Stored Procedure?

Hi,
Platform : PostgreSQLDirect .NET V3.85.33, VS2008 SP1, XP ProSP3

I'me getting a strange error calling SP in C# that table couple boolean and strings parameters. The error I get is
[syntax error at or near "pas"].
PAS is the Postgres schema as per below sp definition
CREATE OR REPLACE FUNCTION pas.sp_addclient(vclientname character varying,
vaccountnumber character varying,
vaddress1 character varying,
vaddress2 character varying,
vaddress3 character varying,
vaddress4 character varying,
vemailaddress character varying,
vtelephone character varying,
vcontactperson character varying,
vclientstatus character varying,
vclienttype character varying,
vurl character varying,
vmustdebit boolean,
vmustcrorrespond boolean,
vnotes text,
vbillingaddress text,
vpostaladdress text)
RETURNS void AS
....

Next is call from C#
cmdProcs.CommandText = "pas.sp_addclient";
cmdProcs.Parameters.Clear();
cmdProcs.ParameterCheck = true;

PgSqlParameter pm1 = new PgSqlParameter();
pm1.Direction = ParameterDirection.Input;
pm1.DbType = DbType.String;
pm1.ParameterName = "vclientname";
pm1.Value = edtClientName.Text;
cmdProcs.Parameters.Add(pm1);
....
PgSqlParameter pm13 = new PgSqlParameter();
pm13.Direction = ParameterDirection.Input;
pm13.DbType = DbType.Boolean;
//pm13.PgSqlType = PgSqlType.Boolean;
pm13.ParameterName = "vmustdebit";
pm13.Value = edtMustDebit.Checked;
....
cmdProcs.Parameters.Add(pm13);

Note: cmfProcs is PgSqlCommand connected to PgSqlConnection


Thanks in advance,
Alfred
by rakgol_a
Fri 05 Sep 2008 17:02
Forum: dotConnect for PostgreSQL
Topic: Getting current row column value
Replies: 0
Views: 2261

Getting current row column value

Hi .Net Newbiw,

How does one get current row value of a column from pgSqlDataTable in code? Like

label1.Text = pgSqlDataTable1.Column["CompanyNameField"].Value;

I have pgSqlDataTable1 wired to the pgSqlConnection1 and pgSqlCommand1
which select the data and displays it on the grid.

Regards,
Alfred
by rakgol_a
Wed 03 Sep 2008 14:35
Forum: dotConnect for Oracle
Topic: Accessing field values by fieldname using OracleDataReader?
Replies: 1
Views: 2040

Accessing field values by fieldname using OracleDataReader?

Hi,
Is there a way of accessing field values when iterating through OracleDataReader result without referencing fields by their
index instead to use fieldname.

Delphi has
x := dataset1.FieldByName('Field1').AsString;

What's the equivalent?

Regards.
by rakgol_a
Fri 20 Jun 2008 16:34
Forum: dotConnect for PostgreSQL
Topic: Delphi to VS2008 PostgreSQLDirect .NET
Replies: 1
Views: 2139

Delphi to VS2008 PostgreSQLDirect .NET

Hi,
I'm new to Visual Studio 2008 C# coming from Delphi.
How does data components wire together similar to Delphi?

TOraSession=?
TOraTable/TDataset=?
TSmartQuery/TQuery=?
TOraStoredProc=?
TOraDataSource/TDatasource=?

Also how to thing like iterations.
Table1.Open, Table1.Next, Table1.Refresh, while(not(table1.Eof)) do table1.next...etc.

How do parametized tables like Table1.Params...etc.

Thanks
Alfred