Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sub query with Ado RecordSet
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Sub query with Ado RecordSet
Divers
Thread ID:
00475498
Message ID:
00475498
Vues:
148
I have a recordset object created with something like the following:
MyRs = CreateObject("AdoDb.RecordSet") 
WITH MyRs
	.Fields.Append("RowNo", adInteger) 
	.Fields.Open 
	.AddNew 
	.Fields(0).Value = 1
	.AddNew
	.Fields(0).Value = 2
	*-- And so on
EndWith
What i need to do is to use this recordset in a subquery on SQL Server 2000 without creating a temp table. something like:
MySql = "Select * From MyTable Where IdNo IN ( MyRs.Fields..... )
And then use SPT Or another Rs to get my result, anybody ?

Thanks
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform