Viewing 15 posts - 76 through 90 (of 229 total)
Thanks you all for the input, even if it was mostly "there aren't any hole-in-one solutions". I'll talk with our DBAs about the viability of using merge replication.
February 26, 2015 at 9:59 am
Thanks, Lowell.
All three data centers are full read/write instances of SQL, each processing their own data, and serving it up when a load balancer directs web traffic to that data...
February 23, 2015 at 11:50 am
Online index rebuilds are nice, but they're only on the enterprise version of the db (IIRC). If you have an environment with that, they're nice to use. The drawback is...
February 4, 2015 at 9:07 pm
If I understand your question correctly (and I'm not sure I do), you have a certain number of users, and you want to, presumably on some sort of round-robin basis,...
January 30, 2015 at 4:49 pm
Or if you prefer the pivot syntax (which lets face it, nobody does)....
;with t (SID, _Name, Data) as
(
select 1, 'Name', 'Joe' union all
...
January 28, 2015 at 8:56 pm
It's just casting the number to a string. You can make any number into a string, but you can only turn valid number strings into numbers.
January 28, 2015 at 8:52 pm
I saw a question posted on StackOverflow which puzzled me. This is NOT an argument against fully qualifying table names, but just curiosity about an oddity of the feature.
You can...
January 27, 2015 at 1:37 pm
Jeff Moden (1/23/2015)
January 23, 2015 at 8:37 pm
An elegant solution. I'll try scaling it up and see how it performs. Thanks, Dwain!
January 20, 2015 at 6:05 pm
You'll have to write out the possible columns individually. If you have lots of columns, you could script out the statement against something like sys.columns for the table. If you...
January 16, 2015 at 9:24 am
It's still not clear what you're trying to get at here. What do you mean differences in column 2 and 3? Are you referring to the columns Grade and Sec?...
January 15, 2015 at 1:55 pm
Please provide table structure and sample data.
January 15, 2015 at 1:44 pm
Inner join the two tables together on their keys, and additionally filter on records where the fields you choose don't match.
;with a as
(
select myKey = 1,...
January 15, 2015 at 1:42 pm
Just something like this?
declare @RID int, @p1 int, @p2 int, @p3 int, @p4 int, @p5 int
declare @targetTable table
(
_key int,
_value int
)
insert into @targetTable...
January 14, 2015 at 11:10 pm
Everything said here was spot on. You're probably best doing this in a lookup table of sorts. That said, here is an example of the sort of "hard coding" Grant...
January 14, 2015 at 4:31 pm
Viewing 15 posts - 76 through 90 (of 229 total)