Viewing 15 posts - 4,861 through 4,875 (of 13,460 total)
I see the execution plan returns 8 columns of data and 90 rows, but had estimated 237,932;
I see that WR_SCOPE_FITUP is actually a view of other tables; are...
Lowell
August 27, 2012 at 6:20 am
interesting Pablo;
If i drag add existing tables that belong to a different schema, no problem;
creating them via the diagrams interface, you can't specify the schema, i agree.
I think you'll...
Lowell
August 24, 2012 at 2:42 pm
i see your point Chad;
I'd consider removing the table as well;'
for me, a phone number is an attribute of a person/location; so the attribute should stay with it's containers.
you could...
Lowell
August 24, 2012 at 12:18 pm
nested replace would probably be the easiest:;
you could substring it as well, because the desired string, including dashes will be 36 chars.
SELECT REPLACE(REPLACE('{784A4579-8689-438E-ADAA-9DCBC8A88AE7}','{',''),'}',''),
SUBSTRING('{784A4579-8689-438E-ADAA-9DCBC8A88AE7}',2,36)
Lowell
August 24, 2012 at 12:11 pm
Are all the tables the same layout/columns?
if they were, you could create One View to Rule Them All:

CREATE VIEW OneViewToRuleThemAll
AS
SELECT 'CLT123' AS ID, * FROM ClientTableCLT123 UNION ALL
SELECT 'CLT124' AS...
Lowell
August 24, 2012 at 12:02 pm
well, A: cannot be correct at all: a table doesn't have collation, only the columns in a table do(and only those that happen to be varchar/char/nvarchar/nchar)
D cannot be correct, becuase...
Lowell
August 24, 2012 at 11:16 am
True story: my wife was miserable at her job; mean co-workers and the usual underpaid, overworked, underappreciated, story.
so I told her she should start shopping around, but not settling for...
Lowell
August 24, 2012 at 11:13 am
well, the forum inteprets the escaped values as something it should render...whoops.
link to the function as raw text here:
Lowell
August 24, 2012 at 11:04 am
and here's a similar one i wrote long ago which converts things like © to the html entity ©
I think it was specifically due to XML:
CREATE FUNCTION HTMLEncode(@OriginalText VARCHAR(4000))
RETURNS...
Lowell
August 24, 2012 at 11:01 am
i've put more than a few posts on the board here on SSC, so I've helped an aweful lot of people.
;
the best way to learn is to try. if...
Lowell
August 24, 2012 at 7:48 am
both these posts looked way to much like homework;
I don't think the OP will learn anything if we do the work for him, without letting him learn the techniques.
Lowell
August 24, 2012 at 7:31 am
it depends on what you mean by "month", either the number or the name:
there's some handy built in functions to help:
SELECT ContId
,CreditL
,CreatedOn,
MONTH(CreatedOn) As MonthNumber,
DATENAME(month,CreatedOn) As MonthName
...
Lowell
August 24, 2012 at 7:14 am
i would swear i've seen this; i think it has to do with the account that is starting the service having the password/expired/changed.
i'm not having luck finding it in my...
Lowell
August 24, 2012 at 7:00 am
did you create the proc on this server, and put it in the master database?
remember you also had to mark it as a system procedure with EXECUTE sp_ms_marksystemobject 'sp_spaceused2'
like i...
Lowell
August 23, 2012 at 3:10 pm
the USE <dbname> and the EXEC sp_....have to be in the same EXEC statment....otherwise the fiirst one, just use <dbname> goes out of scope when the the eXEC finishes (instantly)
declare...
Lowell
August 23, 2012 at 2:58 pm
Viewing 15 posts - 4,861 through 4,875 (of 13,460 total)