Viewing 15 posts - 1,696 through 1,710 (of 5,394 total)
As Gail and Matt already pointed out, physical file fragmentation and index fragmentation are two different things.
Is fragmentation seriously no longer a problem with SANs?
Files are fragmented by definition on...
March 16, 2012 at 3:35 am
MySQL has no native physical backup tool to date.
That alone should keep you away from that crap.
On another note, Oracle bought the product just to kill it. If you don't...
March 16, 2012 at 3:23 am
Great!
Glad you solved your issue.
And, sorry if I have not been helpful enough.
March 15, 2012 at 11:22 am
The procedure does not run any query now, but it refreshes the view.
Right click the view and select "Script View AS... --> Create to... --> New Query Editor Window".
Has the...
March 15, 2012 at 10:19 am
kinderdesign (3/15/2012)
SELECT FacilitiesList.Name
FROM FacilitiesList INNER JOIN
...
March 15, 2012 at 9:23 am
The procedure builds a dynamic SQL statement that UNIONs all the tables selecting all the columns that are present in all the tables.
You can see the statement being run adding...
March 15, 2012 at 9:21 am
kinderdesign (3/15/2012)
Thanks Gianluca, but it seems as though this would be pretty complex.
Not complex at all.
5 tables? No problem: just add them inside the IN predicates:
... object_id IN (
...
March 15, 2012 at 8:46 am
The only way I can think of is a stored procedure with dynamic sql:
-- SETUP
CREATE TABLE TableA (
id int PRIMARY KEY CLUSTERED,
[1]...
March 15, 2012 at 4:19 am
Elliott Whitlow (3/14/2012)
March 15, 2012 at 3:52 am
Lynn Pettis (3/14/2012)
GilaMonster (3/14/2012)
Koen Verbeeck (3/14/2012)
Gianluca Sartori (3/14/2012)
Back on topic, yes, they definitely are: http://www.sqlservercentral.com/Forums/FindPost1266924.aspxI actually laughed out loud.
Well it's one of our old friends, so are you that surprised?
Amazing...
March 15, 2012 at 3:46 am
Back on topic, yes, they definitely are: http://www.sqlservercentral.com/Forums/FindPost1266924.aspx
March 14, 2012 at 12:15 pm
Makes sense.
You would have to use dynamic SQL and perform a select distinct to make the column names dynamic in SQL.
March 14, 2012 at 12:12 pm
Ah! Thanks Mr. Coffee!
I changed the column names because the OP wanted them with the '-' inside, but I forgot to change the code.
This should do:
SELECT *
FROM (
SELECT PartId,
value,
attribute...
March 14, 2012 at 11:51 am
This should do the trick:
SELECT *
FROM (
SELECT PartId,
value,
attribute = attribute + CAST( ROW_NUMBER() OVER(PARTITION BY PartId, attribute ORDER BY PartId, attribute) AS varchar(10))
FROM (
SELECT PartID,
value = COALESCE(CodeA, CodeB,...
March 14, 2012 at 11:24 am
Viewing 15 posts - 1,696 through 1,710 (of 5,394 total)