Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: Re: What is pure SQL for odbc?
From
"Dimitriy V. Masterov" <[email protected]>
To
[email protected]
Subject
Re: st: Re: What is pure SQL for odbc?
Date
Wed, 24 Nov 2010 16:17:36 -0500
The solution is to combine load and execute:
odbc load, exec("SQL code goes here;") dsn("DSN Name")
Semicolons are OK. SQL variables that start with numbers are not
(which should not be surprising). The sqlfile approach does not seem
to work.
DVM
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/