HomeHome Product Discus... Product Discus...SmithCartSmithCartDatabase error dbo.Smith_ProductsDatabase error dbo.Smith_Products
Previous
 
Next
New Post
11/26/2012 1:16 PM
 
I was testing Smith Cart and decided not to use it so uninstalled all the module which was fine but now if I try and duplicate tables in my sql database (I am a developer) then I now get the following error:

42S02 - [SQL Server]Invalid object name 'dbo.Smith_Products'.

I also notice that their are lots of stored procedures related to Smith Cart still in the database.

Please can you let me know how to resolve the issues with the invalid object name.

Thanks.

Nathan
 
New Post
11/26/2012 1:47 PM
 
Hi Nathan,

Which version of the Cart had your site been running?

Here are some scripts to remove all smith tables and stored procedures, so you don't have to do it manually.

Remove all tables

DECLARE @SQL VARCHAR(1000)
DECLARE @tempName VARCHAR(1000)
DECLARE @count VARCHAR(1000)
select @count = COUNT(*) from dbo.sysobjects where type = 'U' and name like 'smith%'
while @count > 0
Begin
Select @tempName = name from dbo.sysobjects where type = 'U' and name like 'smith%'
exec('drop table ' + @tempName)
set @count = @count - 1
END

Remove all Stored Procs

DECLARE @SQL VARCHAR(1000)
DECLARE @tempName VARCHAR(1000)
DECLARE @count VARCHAR(1000)
select @count = COUNT(*) from dbo.sysobjects where type = 'p' and name like 'smith%'
while @count > 0
Begin
Select @tempName = name from dbo.sysobjects where type = 'p' and name like 'smith%'
exec('drop procedure ' + @tempName)
set @count = @count - 1
END

Please let me know if I can help with anything else.

Thanks
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartDatabase error dbo.Smith_ProductsDatabase error dbo.Smith_Products