Viewing 15 posts - 2,941 through 2,955 (of 13,469 total)
temp_int_field DOES NOT EXIST in #sub_table, it's a column in #temp.
because you are not aliasing your columns, it isn't obvious that that is the issue at first glance.
--this works, becuase...
November 18, 2013 at 7:46 am
George i have the Redgate SQL Search plugin added, and it searches meta data only: object names from sys.objects, and definition text from sql_modules.
Sean Lange And I have a couple...
November 18, 2013 at 7:16 am
winston, i think one of the built in extended events session templates, along with where you would add a filter on database Id, is probably what i'd look at first.
In...
November 18, 2013 at 6:29 am
i think there is a built in function for that, [&UserID], right?
November 15, 2013 at 2:01 pm
dba schema, or was that a misspelled dbo?
here's my code modified to use your table...if you spelled your tables and columns right, i think this will work as advertised, assuming...
November 15, 2013 at 1:07 pm
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
Viewing 15 posts - 2,941 through 2,955 (of 13,469 total)