Viewing 15 posts - 2,611 through 2,625 (of 3,678 total)
The CEO in my last place was also the owner of the company and he observed that there is a difference in attitude between the US and the UK.
Failure is...
December 16, 2005 at 11:54 am
Can we assume that the web server can use THEFORCE?
Have your tried replacing Data Source=THEFORCE with Server=THEFORCE?
December 16, 2005 at 9:47 am
SELECT * from dbo.tblInventory
WHERE intInvItemTypeID = ISNULL(NULLIF( @strTypeScopeX,0),fk_intInvItemTypeID )
IF @strTypeScopeX is zero the the NULLIF function returns NULL
The ISNULL statement therefore returns the value of fk_intInvItemTypeID
In effect you...
December 16, 2005 at 9:41 am
SELECT @viewname= 'View'+CAST(MAX(dt.value)+1 AS VARCHAR(50))
FROM (
SELECT CAST(SUBSTRING(Name,5,len(Name)) AS Integer) as value
FROM Views
WHERE Name LIKE 'View%'
) as dt
December 16, 2005 at 3:50 am
Steve,
If you had stepped up into the CTO chair you would have just burnt out faster. May be you would have made a difference, probably you wouldn't have.
For ages...
December 16, 2005 at 1:37 am
I have found that NVARCHAR, NCHAR, and NTEXT are rarely useful even in multi-lingual applications.
The Welsh use CHRW(333) but will tollerate the standard ASCII equivalent.
The Indic languages Urdu, Bengali, Punjabi,...
December 15, 2005 at 12:31 pm
So if I have a temp table with id IDENTITY, field1....field n
and I write
INSERT mytemptable(field1...fieldn)
SELECT field1....fieldn
FROM dbo.mysourcetable
ORDER BY field2, field4
The IDENTITY values won't be in order of field2 and 4?
December 15, 2005 at 12:24 pm
Strangely enough you can achieve quite a bit with just SQL Query Analyser and the template functions.
Right-clicking on an option and choosing "Script to new window as..." allows the rapid...
December 15, 2005 at 12:21 pm
Well the APEX stuff isn't free but it is very good. If you start with a shrink wrapped ApexSQL Doc and a cup of coffee it will pay for...
December 15, 2005 at 9:33 am
Do I have to go through the all the CreateObject("ADODB.Command") stuff to execute a query to get the count back or is there a quicker way of doing this?
December 15, 2005 at 8:55 am
In the UK estate agents have their own dialect of English.
Agent: A property with a sea view.
English: Its on a crumbling cliff top that recedes at 6ft per...
December 14, 2005 at 12:59 pm
The row size limit comes into play if the DATA exceeds 8096 bytes not if the STRUCUTRE exceeds 8096 bytes.
I seem to recall that for TEXT and NTEXT only 16...
December 14, 2005 at 12:52 pm
Thanks Noggin, that fixed it
December 14, 2005 at 6:53 am
Use the TEXT or NTEXT datatype. In SQL2005 use VARCHAR(MAX) or NVARCHAR(MAX).
This gives you 2GB of text.
In SQL2000 the text itself is not stored in the row, only the...
December 14, 2005 at 6:41 am
I thought that the @@RETURN_VALUE is intrinsic to the RETURN statement. I didn't think you could set it at will.
I tend to use positive values greater than zero to...
December 14, 2005 at 6:36 am
Viewing 15 posts - 2,611 through 2,625 (of 3,678 total)