Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DAO FillDataSet
Message
De
28/01/2004 10:32:52
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
DAO FillDataSet
Divers
Thread ID:
00871392
Message ID:
00871392
Vues:
51
I'm trying to build a method in my bizobj that returns the primary key of a SQL table. The code below is what I'm using to call the sp_pkeys stored proc to get the info I need. The problem is that this returns no records back, even though I can execute the same command with the same parameters from Query Analyzer and get back the expected results. Can someone tell me what might be wrong with this code - or is there a better approach?

mmDataAccessBase dao = this.GetDataAccessObject();

IDbDataParameter[] spParams = new IDbDataParameter[1];
spParams[0] = dao.CreateParameter("@table_name", this.TableName);

DataSet dsPrimaryKeys = new DataSet();
dao.FillDataSet(dsPrimaryKeys, "sp_pkeys", "keys", System.Data.CommandType.StoredProcedure, spParams, true);
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform