jadams0173
Technical User
- Feb 18, 2005
- 1,210
Using SQL 2000.
I'm converting (I hope) another DB from access 2000 to SQL server 2000. This DB currently has an update program written in VB6 that updates the tables from other sql and access DB's and runs from my windows task scheduler every 20 minutes. I want to move this to entirely to SQL server if I can to eliminate the dependency to my PC being powered on and logged in. I'm to the point where I do some recursive lookups in my VB6 program and really don't know how to go about converting this to SQL.
I have one table that I query that holds all of the BOM data to make an assembly. On several occasions we have a release part number that is no the same as the ship part number. It is structured in the table in layers. I need to drill down through all these layers to get to the ship level.
We would realease part number 12345a now I must find the ship part number.
I query the table to look for compent type of P. If I find a P for part number 12345a then I take that part number and query the table. I keep drilling down until I find no more P's.
Release PN 12345a and the ship PN would be 89482G
12345a--
|
45678d--
|
89482G
Table looks like
Component COM_TYP
45678d P
89482G P
I can post the VB code if one wants to see it. I hope this makes enough since to give me some guidance or pointers on maybe how I can do this in SQL.
I'm converting (I hope) another DB from access 2000 to SQL server 2000. This DB currently has an update program written in VB6 that updates the tables from other sql and access DB's and runs from my windows task scheduler every 20 minutes. I want to move this to entirely to SQL server if I can to eliminate the dependency to my PC being powered on and logged in. I'm to the point where I do some recursive lookups in my VB6 program and really don't know how to go about converting this to SQL.
I have one table that I query that holds all of the BOM data to make an assembly. On several occasions we have a release part number that is no the same as the ship part number. It is structured in the table in layers. I need to drill down through all these layers to get to the ship level.
We would realease part number 12345a now I must find the ship part number.
I query the table to look for compent type of P. If I find a P for part number 12345a then I take that part number and query the table. I keep drilling down until I find no more P's.
Release PN 12345a and the ship PN would be 89482G
12345a--
|
45678d--
|
89482G
Table looks like
Component COM_TYP
45678d P
89482G P
I can post the VB code if one wants to see it. I hope this makes enough since to give me some guidance or pointers on maybe how I can do this in SQL.