Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
We are trying to return the results of a query as a text file. The
recordset returns too many rows to bring into a spreadsheet. The following generates a runtime error with the message "Not enough storage to complete this operation" Set conn = New ADODB.Connection connn.Open "driver={SQL Server};server=chtsrvessb01;database=SRAdmin;uid=; pwd=" rs.CursorLocation = adUseClient strSQL = Sheets("Ref").Range("B1").Value Set rs = conn.Execute(strSQL) #1 = Freefile Open strLoc For Output as #1 Print #1, rs.GetString() Close #1 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel VBA - open text file, replace text, save file? | Excel Programming | |||
Type recordset/recordset? | Excel Programming | |||
convert an ADO recordset to a text file that can be queried with SQL | Excel Programming | |||
create recordset from csv file on web | Excel Programming | |||
Recordset Opening Excel File | Excel Programming |