Check if SQL table exists from Access

wh00t

Registered User.
Local time
Today, 22:56
Joined
May 18, 2001
Messages
264
Perhaps I'm phrasing it wrong, but my searches have been fruitless.

Can I check to see if a table exists in an SQL database from within MS Access?
 
You can query sysobjects using something along the lines of:

Code:
SELECT * 
FROM dbo.sysobjects 
WHERE id = object_id(N'[dbo].[YourTable]') 
AND OBJECTPROPERTY(id, N'IsUserTable') = 1
 

Users who are viewing this thread

Back
Top Bottom