I have a SQL code to drop a table, but i would need to check if the table exist before i drop it.
For normal SQL i use this code
IF OBJECT_ID('ItemTable') IS NOT NULL DROP TABLE ItemTable
it works fine.. but when i run the same code on my sQL CE on my palm device, it gives me an error
Native Error : 25501
Description : There was an error parsing the query. [Token Line number, Token line offset,, Token in error,,]
anyone have any ideas?
For normal SQL i use this code
IF OBJECT_ID('ItemTable') IS NOT NULL DROP TABLE ItemTable
it works fine.. but when i run the same code on my sQL CE on my palm device, it gives me an error
Native Error : 25501
Description : There was an error parsing the query. [Token Line number, Token line offset,, Token in error,,]
anyone have any ideas?