SQL Query of a *.csv file with >255 variables?

Thomas

Active Member
Joined
May 3, 2002
Messages
366
I am building a query that pulls ~ 225 variables from a dataset that is 800+ variables x 30,000+ observations. I know the Query Wizard won't help me out here, since it limits it's column readings to 255; can I just use the Microsoft Query feature (not the wizard), and type in what columns I'd like via SQL code, and do an extraction? The problem I'm having is that I type in what seems to be good SQL code, but I'm getting errors on it.

Any thoughts on this?

Thanks in advance :)
- Thomas
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
You might be better off with the SQL.REQUEST( ) function. As far as I understand it now there are three ways to do queries

- MS Query
- SQL.REQUEST
- Programming a Macro

It seems iwth MS Query you have least flexibility and it is rather clumsy because you can't easily change the location of your data base. For SQl.REQUEST you have to install the ODBC addin and then you have access to this function which can be used to get access to all kind of databases including Excel datalists.

Joke
 
Upvote 0

Forum statistics

Threads
1,203,605
Messages
6,056,234
Members
444,852
Latest member
MJaspering

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top