R
Robert Bravery
HI all,
I want check for the existence of a particular table in sql. Then branch
code on the result
I was thinking of a command something like:
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id =
OBJECT_ID(N'[dbo].[tempimport]')
AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
But dont know how to get a return value to my C# app so that I can make
decisions in my code
Thanks
Robert
I want check for the existence of a particular table in sql. Then branch
code on the result
I was thinking of a command something like:
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id =
OBJECT_ID(N'[dbo].[tempimport]')
AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
But dont know how to get a return value to my C# app so that I can make
decisions in my code
Thanks
Robert