I know this is similar to this question, but I'm using SQL Server CE 3.5 with a WinForms project in C#. How can I determine whether a table exists? I know the IF
keyword is not supported, though EXISTS
is. Does information_schema exist in CE where I can query against it? Thanks.
views:
2806answers:
2
+9
A:
Yes, it does exist:
SELECT *
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_NAME = 'TableName'
Mehrdad Afshari
2009-01-10 18:51:21
A:
Funny how I can never find these things on the MSDN site until I post here. Thanks, Mehrdad.
Michael Itzoe
2009-01-10 18:57:55
You're welcome. This should be a comment though, not an answer. Using an answer to post comments will clutter up SO.
Mehrdad Afshari
2009-01-10 20:36:52