Quantcast
Channel: Change the table name in the stored procedure
Viewing all articles
Browse latest Browse all 2

Change the table name in the stored procedure

$
0
0

I am calling a stored procedure and after calling it using ADO.NET I currently do

ds.Tables[0].TableName = "FormDefinition";
ds.Tables[1].TableName = "PageDefinition";
ds.Tables[2].TableName = "FieldDefinition";
ds.Tables[3].TableName = "EmailDefinition";
ds.Tables[4].TableName = "AutoFillRules";
ds.Tables[5].TableName = "FieldValidationRules";
ds.Tables[6].TableName = "PageValidationRules";
ds.Tables[7].TableName = "ImageDefinition";
ds.Tables[8].TableName = "ImageDefinitionIndexField";

Is there any modification that I can do to the stored procedure to avoid setting the table names in code?

Thank you.


Viewing all articles
Browse latest Browse all 2

Trending Articles