Posts
242
Comments
66
Trackbacks
4
Prüfen ob eine Tabelle in der Datenbank existiert

Fürs Archiv: Prüfen ob eine Tabelle exisitiert:

IF

EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE='BASE TABLE' 
AND TABLE_NAME=TabellenName)
-- do something
posted on Wednesday, May 23, 2007 10:47 AM Print
Comments
No comments posted yet.

Post Comment

Title *
Name *
Email
Url
Comment *  
Please add 6 and 5 and type the answer here: