Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADO - vbScript limiting records in the recordset

Status
Not open for further replies.
Joined
Mar 25, 2003
Messages
34
Location
GB
I've created an ADO connection within DTS using vbScript ... can I limit the number of records returned?

I've tried using MaxRecords but it doesn't like it!

If Not isNull(recSQL(5).Value) then
connDW.MaxRecords = recSQL(5).Value
End IF

connDW.Open = "DSN=" & recSQL(2).value & ";Uid=*******;Pwd=******;
 
Sorry should have said, db i'm using doesn't accept TOP !!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top