Viewing 15 posts - 1,111 through 1,125 (of 1,554 total)
pmfji, but there are a few things I'm not quite clear about..
What is the end purpose of all this? It seems to me much like reinventing the wheel, by triggers...
March 31, 2005 at 2:56 am
Not necessarily. This behaviour is controlled by SET CONCAT_NULL_YIELDS_NULL ON|OFF
Depending on if this setting is on or off,
string + null may be:
string
or
null
/Kenneth
March 23, 2005 at 8:50 am
In this case, the sp_OAxxx procs are overkill.
imo, they are to be avoided if possible. There are way too many issues with sp_OAxxx procs for me to consider them as...
March 23, 2005 at 8:45 am
Parsename works just fine for this (and actually would be perfect for the title-part, since that may make it a four-part name)
...and yeah,...
March 23, 2005 at 8:22 am
Just for diversity, here's one way to do it the Transact SQL way (ie setbased)
..assumptions: three columns output - first, middle and last...
March 23, 2005 at 8:01 am
If you have the same phonenumber several times, only with different dates, and you want to find then 'newest', then...
select phonenum, MAX(date) as maxDate
from myTable
group by phonenum
...will find the...
March 22, 2005 at 2:27 am
Is it necessary to have this reflected in real time? If it is, perhaps replication would be more suitable. If real-time isn't required, a batch solution, run at some convenient...
March 21, 2005 at 9:42 am
..it's not the first, I assure you
The thing with cursors is just that they shouldn't be anyones first choice - they do however...
March 16, 2005 at 1:52 pm
If the URL to be updated is guranteed to be found within the first 8000 chars, this will work. If the text column may be larger, you might need to...
March 16, 2005 at 2:48 am
Must confess I don't use openquery that much, but from what it looks like, openquery doesn't support four part naming..?
-- snip BOL --
OPENQUERY ( linked_server , 'query' )
linked_server
Is...
March 16, 2005 at 2:40 am
There are a few different ways and techniques to have two servers exchange data. Which one is 'best' largely depends on the particular requirements.
You may want to read some in...
March 16, 2005 at 2:36 am
Perhaps a small example of the two tables, a few rows data and the desired output, illustrating the problem would clear things up then.
March 16, 2005 at 1:43 am
Why not just do it plain and simple?
SELECT TOP 1 b.column1, b.column2, ....
FROM tableA a
JOIN tableB b
ON a.PK = b.PK
/Kenneth
March 15, 2005 at 8:34 am
You probably have one or more users in the database.
Make sure that noone is using the database, then try again.
sp_who2 is an easy way to see in which db's users...
March 15, 2005 at 8:23 am
This is one way to do it:
use northwind
select top 1
x.employeeId
from (
select top 2
employeeId
from employees
order by employeeId desc
) x
order by x.employeeId...
March 15, 2005 at 8:20 am
Viewing 15 posts - 1,111 through 1,125 (of 1,554 total)