Viewing 15 posts - 2,476 through 2,490 (of 3,543 total)
I do not know PHP but if you need a sql query then
select c.isnullable
from sysobjects o
inner join syscolumns c
on c.[id] = o.[id]
and c.[name] = 'column'
where...
November 1, 2004 at 6:29 am
Still thinking about this but all I could up with so far is to put all the dates in order (start & end), work out the date segments and then match...
October 28, 2004 at 2:35 am
Use
ISNUMERIC(ITEMNO) = 1
to test for numbers only
use
PATINDEX('%[A-Z]%',ITEMNO)
to determine the location of alpha
if the alpha is always at the end then
SELECT CAST(CASE WHEN ISNUMERIC(ITEMNO) = 1
THEN ITEMNO
ELSE LEFT(ITEMNO,LEN(ITEMNO)-1)
END...
October 28, 2004 at 2:31 am
Do you mean this
CREATE TABLE #temp (col1 int, col2 int, ...)
INSERT INTO #temp
EXECUTE procname
INSERT INTO #temp
EXECUTE anotherproc
INSERT INTO [maintable]
SELECT col1, col2, ...
FROM #temp...
October 28, 2004 at 2:13 am
Steve,
It certainly was not meant as an insult and I would never intentionally post such things on a forum. If my attempt at humour did upset you then I apologise.
I must...
October 27, 2004 at 11:02 am
![]() | I thought, incorrectly, that as Developers - we were here to help each other in the generation of... |
October 27, 2004 at 3:24 am
A lot will depend on what indexes you have (if any) and also what is missing in the 'select id from...'. What I do is to break down your query...
October 27, 2004 at 2:56 am
Sorry that it did not help, since you query used whole hours for duration I continued that in my solution
Did not realise...
October 27, 2004 at 2:37 am
I did read somewhere in all that Microsoft bumph online that Microsoft's solution for this type of problem is to split the table into smaller tables and join using a...
October 27, 2004 at 2:24 am
You could EM to script all the tables for each SQL2K database which will give you column collations which you can then analyze.
October 27, 2004 at 2:13 am
Try this
Select * from myTable WHERE CHARINDEX(',' + m_NAME + ',' , ',' + @codeList + ',') > 0
October 26, 2004 at 10:28 am
as I said before your query
Select col_a
from some_table
where Date_col = isnull((select date from tableA where id=host_id()),getdate())
will always invoke a table or index scan
If [tableA] has [id] as a...
October 26, 2004 at 9:39 am
![]() | Eagles may soar in the clouds, but weasels never get sucked into jet engines. |
And Steve,
It is difficult to...
October 26, 2004 at 6:24 am
Jeff's answer should work, eg
bcp "select 'abcd'+CHAR(13)+CHAR(10)+'efgh'" queryout test.txt -S servername -T -c
will produce a text file with
abcd
efgh
October 26, 2004 at 5:05 am
As Douglas has mentioned a lot depends on the whole query and data structure and whether the date column is indexed.
If the date column is indexed isnull will use index...
October 26, 2004 at 4:58 am
Viewing 15 posts - 2,476 through 2,490 (of 3,543 total)