User Profile
Collapse
-
Validating State abbreviations using a Check Constraint
I want to make sure that valid US states are input in my database. Can someone provide exampleas of a check constraint to do this. If not a check constraint are there any hard code examples? -
Thank you. I have been using the if, else statement. It seems to work in some of my stored procedures, but not the others. Here is a sample of what I have done. Any more suggestions?
Begin
If Exists (select 1 from table_name, table_name1
where table_name.fiel d name = table name1.field_nam e)
Begin
Select .......
End
ELSE
begin... -
Printing No Records Found
I am new to this. Someone please help.
I am creating stored procedures that queries the tables to pull certain information together in a listing (report). I would like to be able to print to the user "No records found", if no records were found based on the search criteria. I can able to query the information, but can't get the "No records found" to print. The listing just comes back with no records.
... -
Reporting No Records Found
I am new to this. Someone please help.
I am creating stored procedures that queries the tables to pull certain information together in a listing (report). I would like to be able to print to the user "No records found", if no records were found based on the search criteria. I can able to query the information, but can't get the "No records found" to print. The listing just comes back with no records.
...
No activity results to display
Show More
Leave a comment: