Peter Reavy

Very basic SQL Server 2005 querying from Emacs

Posted in emacs, Uncategorized by Peter Reavy on June 8, 2010

M-x sql-ms (then enter your connection info)
M-x rename-buffer (the help recommends something like Connection 1)
Now open your .sql file, which will pick up your Connection 1 buffer as
its default
Make sure your SQL statement has a GO at the end
M-h to select a region
C-c C-r to send that region off to the SQL buffer you created in the
same step

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s