Posts
391
Comments
137
Trackbacks
0
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 1 and 6 and type the answer here: