Viewing 15 posts - 3,196 through 3,210 (of 13,461 total)
Japie i personally use CLR functions all the time, so it's probably how you are using it in an update, rather than the CLR being a problem all by itself.
can...
June 28, 2013 at 6:25 am
well, it seems to me the NTILE() funtion could group your data into groups, but your expected results looks like a simple GROUP BY results.
does something like this help? note...
June 28, 2013 at 5:30 am
donluz (6/27/2013)
Ok, I have the setup/install files. What now? Where do I go in the installation options to rename the instance, not the computer?Thanks for any input.
you cannot...
June 27, 2013 at 2:39 pm
add a where statement which will explicitly exclude non numeric data;do that for every table that is in your union all.
this , for example would allow integers only.(no decimal)
...AND...
June 27, 2013 at 1:53 pm
yeah i see that now;
a simple test harness for others to use:
;With MySampleData([Name],[DecimalValue],[NumericValue])
AS
(
SELECT 'Number2_4', 0x14E20100000000000000000000000200, 1234.12 UNION ALL
SELECT 'Number1', 0xCF040000000000000000000000000100, 123.1 UNION ALL
SELECT 'Number5', 0xD9299549000000000000000000000500, 12345.12345 UNION ALL
SELECT 'Number4', 0xF24FBC00000000000000000000000400,...
June 27, 2013 at 9:41 am
in other programming situations, I've used a Regular Expression to strip html tags out of a field, leaving just the content; would that be a possibility?
then you could do Field=StripHtml(SomeValue)
Public...
June 27, 2013 at 9:28 am
you usually solve this by creating a Tally or Numbers table that has all possilbe values, and then joining that agaisnt your data.
this is doing what you asked for, based...
June 27, 2013 at 9:17 am
i prefer to use aliases for my updates, because the format for SQL makes it easy to include a SELECT statement very easily, which lets me do a quick Sanity...
June 27, 2013 at 9:03 am
i typically join the table against the insert/target table with a left join
it seems like the unique criteria you are using is the three columns i'm using in the join?...
June 27, 2013 at 8:58 am
i'm not sure if this will help, I'd really like to see a handful of sample data rows, and their expected values to really be sure.
but can you convert them...
June 27, 2013 at 8:50 am
ahh, i see it now;
objectname is fine for objects, like tables/procs(anything that exists in sys.objects), but you need a different field in the xml data for the database name
CREATE TRIGGER...
June 27, 2013 at 7:13 am
you had most of it, it looks like, but you forgot to handle the EVENTDATA() function, which ahs the currently scoped event information
CREATE TRIGGER Prevent_DB_Drop
ON ALL SERVER
FOR DROP_DATABASE
AS...
June 27, 2013 at 5:27 am
if it's a single 8 gig table, BCP is going to be a better option.
you'll need to create the table DDL on the Target server(as a new name) Like TableName_Imported...
June 27, 2013 at 5:13 am
i did get it working on my own;
If you've installed the 64 bit drivers, and also set these two properties on the drivers:
--Required settings for the provider to work correctly...
June 27, 2013 at 5:06 am
on line 7 there's a space inside "Purchasing _v_Line_Item_e" between "Purchasing" and "_v_Line_Item_e", resulting a double alias.
if the tablename has a space, it needs to be bracketed: [Purchasing _v_Line_Item_e]
otherwise...
June 26, 2013 at 2:15 pm
Viewing 15 posts - 3,196 through 3,210 (of 13,461 total)