Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Weird problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01519939
Message ID:
01519961
Vues:
52
Here is what I see in SQL Profiler:
exec sp_executesql N'-- NAOMIN/ADMIN sysmanager:item_edit.sct:my_dataform.dataenvironment.opentables:81

if object_id(''tempdb..#csrI_Item'') is not null drop table #csrI_Item
select * 
  into #csrI_Item
  from i_items  
  where department =  @P1  --''RETAIL    ''
  and category = @P2  --''BK-CHILD  ''
  and item = @P3  --''ALICE     ''
SELECT * from #csrI_Item',N'@P1 varchar(10),@P2 varchar(10),@P3 varchar(10)','RETAIL    ','BK-CHILD  ','ALICE     '

-- and then the next batch which is failing 

-- NAOMIN/ADMIN sysmanager:item_edit.sct:my_dataform.dataenvironment.opentables:88

select * from i_attlnk WHERE invent_id in (select invent_id FROM #csrI_Item)
DROP TABLE #csrI_Item
BTW, the fields in the table are CHAR(10), not varchar(10), not sure if this is important.

So, the reason for failure is obvious now. Do you see a way to solve without embedding values back?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform