Home Page link  

Dynamic Script

 

Point-Of-Sale Software - - MS Point Of Sale software discussed here

 Post an article  get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content  add this group's latest topics to your Google content  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
Dynamic Script nt8378 11-17-2006
Posted by nt8378 on November 17, 2006, 5:01 pm
Please log in for more thread options
Nashat,

Could you either repost this script or directly email it to me. The script
is to insert the missing items into ItemDynamic table. I may have some items
that are missing the Dynamic information. neil at kidsstuffsuperstore.com is
my email. I would greatly appreciate it. This script was posted on 10/13/06
but my newsgroup won't go back that far.

Thank you,
Neil

Posted by Rob on November 17, 2006, 8:23 pm
Please log in for more thread options
declare @StoreID int
declare @ItemID int

DECLARE Item_Cursor CURSOR FOR
select distinct item.id from item left join itemdynamic on item.id=itemid
where itemid is null

open item_cursor
FETCH NEXT FROM item_cursor
into @ItemID
WHILE @@FETCH_STATUS = 0
BEGIN
DECLARE Store_Cursor CURSOR FOR
SELECT id
FROM store

OPEN Store_Cursor
FETCH NEXT FROM Store_Cursor
into @StoreID
WHILE @@FETCH_STATUS = 0
BEGIN
insert into
itemdynamic(itemid,StoreID,quantitycommitted,quantity,ReorderPoint,RestockLevel,SnapShotQuantity,SnapShotQuantityCommitted)
values (@ItemID,@StoreID,0,0,0,0,0,0)

FETCH NEXT FROM Store_Cursor
into @StoreID
END
CLOSE Store_Cursor
DEALLOCATE Store_Cursor
FETCH NEXT FROM item_cursor
into @ItemID

END
CLOSE item_Cursor
DEALLOCATE item_Cursor
GO

For historical searching try Google Groups, you won't be able to find
attachments though
http://groups.google.ca/group/microsoft.public.pos?lnk=oa&hl=en

Rob

> Nashat,
>
> Could you either repost this script or directly email it to me. The script
> is to insert the missing items into ItemDynamic table. I may have some
> items
> that are missing the Dynamic information. neil at kidsstuffsuperstore.com
> is
> my email. I would greatly appreciate it. This script was posted on
> 10/13/06
> but my newsgroup won't go back that far.
>
> Thank you,
> Neil



Posted by nt8378 on November 20, 2006, 2:25 pm
Please log in for more thread options
Rob,

Thank you for this script. I greatly appreciate it.

Sincerely,
Neil

"Rob" wrote:

> declare @StoreID int
> declare @ItemID int
>
> DECLARE Item_Cursor CURSOR FOR
> select distinct item.id from item left join itemdynamic on item.id=itemid
> where itemid is null
>
> open item_cursor
> FETCH NEXT FROM item_cursor
> into @ItemID
> WHILE @@FETCH_STATUS = 0
> BEGIN
> DECLARE Store_Cursor CURSOR FOR
> SELECT id
> FROM store
>
> OPEN Store_Cursor
> FETCH NEXT FROM Store_Cursor
> into @StoreID
> WHILE @@FETCH_STATUS = 0
> BEGIN
> insert into
>
itemdynamic(itemid,StoreID,quantitycommitted,quantity,ReorderPoint,RestockLevel,SnapShotQuantity,SnapShotQuantityCommitted)
> values (@ItemID,@StoreID,0,0,0,0,0,0)
>
> FETCH NEXT FROM Store_Cursor
> into @StoreID
> END
> CLOSE Store_Cursor
> DEALLOCATE Store_Cursor
> FETCH NEXT FROM item_cursor
> into @ItemID
>
> END
> CLOSE item_Cursor
> DEALLOCATE item_Cursor
> GO
>
> For historical searching try Google Groups, you won't be able to find
> attachments though
> http://groups.google.ca/group/microsoft.public.pos?lnk=oa&hl=en
>
> Rob
>
> > Nashat,
> >
> > Could you either repost this script or directly email it to me. The script
> > is to insert the missing items into ItemDynamic table. I may have some
> > items
> > that are missing the Dynamic information. neil at kidsstuffsuperstore.com
> > is
> > my email. I would greatly appreciate it. This script was posted on
> > 10/13/06
> > but my newsgroup won't go back that far.
> >
> > Thank you,
> > Neil
>
>
>

Similar ThreadsPosted
Dynamic Due Date for Work Orders August 28, 2005, 8:01 pm
Updates & Hotfixes needed more often for Dynamic RMS June 24, 2007, 4:43 am
Dell Retail Integrator vs Dynamic Touch Primo 200 August 8, 2008, 12:52 pm
Microsoft Dynamic program is not connecting with Data Credit Card June 18, 2007, 7:56 pm
Trigger / Script June 27, 2007, 8:18 pm
Can someone give me a script please September 26, 2007, 9:18 am
Can someone give me a sql script please October 22, 2007, 7:39 am
Automate SQL Script January 10, 2008, 2:37 pm
Backing Up DB via macro script August 9, 2005, 5:41 pm
Remove ALL items script September 8, 2005, 7:27 am

Contact Us | Privacy Policy
This site is not affiliated with Intuit - makers of Quickbooks and Quicken software
This site is not affiliated with Sage Software - makers of Peachtree accounting software
XML SitemapXML Sitemap