hi,
I have created an application with SQL Server as back end. Once I tried to save in a speciufic table it says "Conncetion Faliure". Where as in all other tables it saves fine. This is the code where the error occurs:
Thanks for your help in advance.
I have created an application with SQL Server as back end. Once I tried to save in a speciufic table it says "Conncetion Faliure". Where as in all other tables it saves fine. This is the code where the error occurs:
Code:
TADODataSet(Dataset).CommandText := Format('Select * From %s Where (%s=%d) and (%s=%d)',[TableName, IDFieldName, NoID, StoreIDFieldName, 0]);
try
Dataset.Open;// This is where error occurs....
except
ErrorMsg('Error Opening Table with Command: %s',[TADODataset(Dataset).CommandText]);
raise; // re-raise the exception
Thanks for your help in advance.