SELECT * FROM dbo.sysobjects WHERE id = object_id(N'[dbo].[YourTable]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1
On 27 January 2012 07:32, Maciej Franciszkowski <[email protected]>wrote: > Hello! > > I keep trying to call "Drop table Table1" in my VB.Net code. > > However It fails when there is no table Table1 in my Access > application. > Is there any way to first check whether the table exsist > and if so drop table. > > My problem is the code checking existance of a table in MS Access > Database. > > Looking forward to any help! > > Maciej Franciszkowski > > -- > You received this message because you are subscribed to the Google > Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML > Web Services,.NET Remoting" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en > or visit the group website at http://megasolutions.net > -- You received this message because you are subscribed to the Google Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en or visit the group website at http://megasolutions.net
