Hai!
:)Thanks for your replies. I disabled friendly error messages in internet explorer and got the following error.

ERROR MESSAGE:
--------------
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
/SDB.asp, line 9
As the error said Data source name not found I checked with my ODBC connections. All was fine. I recreated the DSN and finally did "Test Data Source" and result was as follows
AS RESULT OF TESTING:
---------------------
Microsoft SQL Server ODBC Driver Version 03.85.1022
Running connectivity tests...
Attempting connection
Connection established
Verifying option settings
Disconnecting from server
TESTS COMPLETED SUCCESSFULLY!
The Data Source testing was successfull, the data source name that is given in the ASP file is the same as in ODBC, then what might be the problem. Is there any problem with the source code posted above. Any solutions please!
Arul Kumar.PA