Viewing 15 posts - 2,941 through 2,955 (of 13,461 total)
basically, you use a FOR XML to build the list, and then replace the LAST comma with an "AND":
here's a working example, with the steps drawn out to help...
November 15, 2013 at 12:34 pm
the EXCEPT operator can do that, but the number /types of columns must be the same in both queries.
otherwise, show us your real queries instead of pseudocode, and we can...
November 15, 2013 at 6:35 am
mstanl (11/15/2013)
November 15, 2013 at 6:24 am
if you switch your database context to tempdb, sp_spaceused works for me:
select top 100 * into #temp from edlogdetail
use tempdb
exec sp_spaceused #temp
/*
namerowsreserveddataindex_sizeunused
#temp_<snip>_000000000187100 56...
November 14, 2013 at 8:09 am
GilaMonster (11/14/2013)
Ed Wagner (11/14/2013)
November 14, 2013 at 7:38 am
no easy way.
you can use the sys.columns view to generate the suite of commands, and the commands might fail if there are any check constraints, default constraints , foreign keys...
November 14, 2013 at 7:26 am
the accepting of parameters interactively would be part of an application, which just happens to call the SQL script when it's ready.
SQLPlus for oracle has that feature built in, but...
November 14, 2013 at 5:51 am
dwain.c (11/13/2013)
Lowell (11/13/2013)
Large String Value needs to be broken down into Human readible...
November 13, 2013 at 9:30 pm
instead of bulk insert directly into your destination table, use a staging table.
what i've always done in this case is to bulk insert into a staging table, and then massage...
November 13, 2013 at 12:56 pm
take a look at this thread, where there's a couple of different ways the same problem was tackled:
Large String Value needs to be broken down into Human readible fixed lengths.
November 13, 2013 at 12:11 pm
dwain.c (11/12/2013)
Exotic JOIN? I think BOL must have forgotten to mention that one. 😛
yeah the whole "exotic' naming convention for non traditional joins started back in 2007 with...
November 12, 2013 at 6:29 pm
Jeff Moden (11/12/2013)
Lowell (11/12/2013)
here's my linked server example for a 64 bit folder full of text files that may help:
Very cool. I've not actually used the ACE drivers, yet...
November 12, 2013 at 10:05 am
here's my linked server example for a 64 bit folder full of text files that may help:
a couple of prerequisites:
install the AccessDatabaseEngine_x64.exe from microsoft:
http://www.microsoft.com/en-us/download/details.aspx?id=13255
make sure you open an...
November 12, 2013 at 8:42 am
the trick here is what some people call an "exotic" join, where it's not joining on discrete values, but rather on the criteria (between dates) you are looking for.
Something like...
November 12, 2013 at 8:10 am
Viewing 15 posts - 2,941 through 2,955 (of 13,461 total)