Re: (SQL Server) I had no idea you could do this

2010-12-01 Thread Erika L. Rich
Oh yeah. The Insert Into, Select blah is the bees knees! One of my faves. :) On Wed, Dec 1, 2010 at 1:20 PM, Judah McAuley wrote: > > Yeah, that's essentially the same thing as the other bulk insert syntax: > > INSERT INTO Table (X) > SELECT (Y) FROM OtherTable > > Handy stuff on occasion. > >

Re: (SQL Server) I had no idea you could do this

2010-12-01 Thread Judah McAuley
Yeah, that's essentially the same thing as the other bulk insert syntax: INSERT INTO Table (X) SELECT (Y) FROM OtherTable Handy stuff on occasion. Judah On Wed, Dec 1, 2010 at 9:22 AM, G Money wrote: > > When inserting multiple rows of literal data, instead of: > > INSERT INTO Table (X) VALUE

Re: (SQL Server) I had no idea you could do this

2010-12-01 Thread Ras Tafari
i had no idea... nice! On Wed, Dec 1, 2010 at 12:22 PM, G Money wrote: > > When inserting multiple rows of literal data, instead of: > > INSERT INTO Table (X) VALUES (1); > INSERT INTO Table (X) VALUES (2); > Etc, Etc > > You can just do: > > INSERT INTO Table (X) VALUES (1), (2), Etc, Etc..

(SQL Server) I had no idea you could do this

2010-12-01 Thread G Money
When inserting multiple rows of literal data, instead of: INSERT INTO Table (X) VALUES (1); INSERT INTO Table (X) VALUES (2); Etc, Etc You can just do: INSERT INTO Table (X) VALUES (1), (2), Etc, Etc. I learn new things every day, but rarely shortcuts that are this basic! Anyway, you