Viewing 15 posts - 9,916 through 9,930 (of 14,953 total)
Take a look at the "Except" operator in Books Online. It's a pretty slick way to compare the contents of two tables.
April 17, 2009 at 8:33 am
jcrawf02 (4/17/2009)
GSquared (4/16/2009)
Michael Valentine Jones (4/15/2009)
Maybe you should learn to use what is available in SQL Server, like REVERSE, instead of spending time duplicating what is already available.
Nah. One...
April 17, 2009 at 8:30 am
Currently, I don't see a need for it with what I'm doing.
On the other hand, I'm almost always interested in trying these kinds of things out. Given the chance...
April 17, 2009 at 7:49 am
It'll need to look something like this:
-- Build and populate test tables
create table #Objects (
ID int identity primary key);
insert into #Objects
default values;
insert into #Objects
default values;
create table #Components (
ID int identity...
April 17, 2009 at 7:43 am
Steve Jones - Editor (4/16/2009)
However if you want to challenge it, what's the likelihood...
April 17, 2009 at 7:20 am
When you run the BAT file from the command prompt, does it work?
Also, why would you want an SQL script to raise an alert window? Wouldn't the alert window...
April 16, 2009 at 2:59 pm
That sounds like a bug to me. I'd definitely contact Microsoft about it.
April 16, 2009 at 2:57 pm
Not really. Foreign keys references one other table.
April 16, 2009 at 2:22 pm
You won't have to iterate through them. Run the test case I gave you a few posts back, you'll see how it works.
What this kind of script function does...
April 16, 2009 at 1:33 pm
Finally got a chance to speed test these things on a different computer.
Concat8kTest version took 1982 milliseconds total, 1328 CPU.
XML cross-apply took 1793 total, 1594 CPU.
Subsequent runs cut 8k down...
April 16, 2009 at 1:28 pm
My wife gave me "Shawn of the Dead" and "Hot Fuzz" on DVD for Christmas. Very, very funny movies!
April 16, 2009 at 9:09 am
Personally, I'd do that kind of pivoting in the application, not the database. You could do that in Reporting Services, or Crystal Reports, or Excel, very easily. In...
April 16, 2009 at 9:07 am
The database design sounds okay for that kind of thing. If the components and objects tables are similar enough, it might be better to merge them, but it's not...
April 16, 2009 at 9:04 am
John Bradford (4/15/2009)
It is my understanding that you...
April 16, 2009 at 8:45 am
It's not as much a collation thing as it is a design issue. You'll need to make sure the appropriate tables hold nvarchar instead of varchar, data types, and...
April 16, 2009 at 8:34 am
Viewing 15 posts - 9,916 through 9,930 (of 14,953 total)