Tuesday, July 14, 2009
I was looking for SmartList tables in SQL so that I could restore some SmartLists that someone accidentally deleted. Here's what I came up with:

ASITAB20 -- empty for me
ASIEXP51 -- seems to hold SmartList exports, empty for me
ASIEXP81
ASIEXP83
ASIEXP86

After restoring a copy of my company db to my UA box, I copied missing rows from my UA server from these 5 tables back into my production servers tables and that did the trick!

I did a simple insert for each one (even though the first two tables didn't have any missing rows), like so:


SET IDENTITY_INSERT ASIEXP81 ON
INSERT INTO ASIEXP81
(ASI_Favorite_Dict_ID, ..., DEX_ROW_ID)
SELECT *
FROM [UA].DYNAMICS.dbo.ASIEXP81
WHERE DEX_ROW_ID NOT IN
(
  SELECT DEX_ROW_ID
  FROM DYNAMICS.dbo.ASIEXP81
)
SET IDENTITY_INSERT ASIEXP81 OFF


FYI, I ran this code on my production server and had my UA server set up as a linked server.

2 comments:

fillikir72518 said...

This actually answered my downside, thanks! casino slots

Eve Harrell said...

Had to do this yesterday and it worked amazingly!

Thank you!