Viewing 15 posts - 31 through 45 (of 182 total)
It was a fun one to bend my mind around to clear my head of my current problems. Take it easy.
May 8, 2007 at 2:08 pm
Loop != Cursor
If you wanted to do this in a single select query, you would have to anticipate the maximum "times transferred" and use that many left joins - 1,...
May 8, 2007 at 1:47 pm
SELECT [A],
INTO [#Temp1]
FROM
(
SELECT 1 AS [A], 2 AS
UNION
SELECT 2 AS [A], 3 AS
UNION
SELECT 5 AS [A], 7 AS
UNION
SELECT 7 AS [A], 8 AS
UNION
SELECT 8 AS...
May 8, 2007 at 12:15 pm
Joel, my guess is this query result was not your idea. You may want to consider, using a UNION, this format.
John Site 1 NY
John Site 1 CT
John Site 2...
May 8, 2007 at 8:08 am
As I stated above: "Next there needs to be an assumption made that the names are grouped together and in order of significance... of course the order may not be...
May 8, 2007 at 8:02 am
There are 2 options for you...
#1 Add an ID field to each table
or #2 Create temp tables when you run the query and insert the data. You can search...
May 8, 2007 at 7:49 am
2 ways to acheive this. The first would be to create a x-ref table of sql-user to NT user. When you run the INSERT/UPDATE/DELETE trigger, you would just...
May 7, 2007 at 4:42 pm
Shawn, I think he is holding out on the extent of the table. There is probably multiple names, in which case makes the ID field not useful (at least directly).
Next...
May 7, 2007 at 4:31 pm
First off, kudoz to Siva! I have a more clear picture now that I can better read through the log. I definitely have a bit of reworking to...
May 3, 2007 at 4:03 pm
Adrian,
To put it simply... WOW!
I will look this through when I get time later (hopefully). I hate finding short-comings in MSSQL, because they drive me nutzo as well.
April 27, 2007 at 10:29 am
Oh, I am sorry! I read that wrong! I thought you meant to move the "PRINT" inside the cursor loops. If you move the EXEC inside, you...
April 27, 2007 at 8:16 am
yeah, which removes the automation portion of it. It's still better than nothing 🙂
April 27, 2007 at 7:51 am
the limitation of characters for a varchar to 8000 doesn't help here. and you cannot use text as a local variable. Also appears you need to use sp_sqlexec....
April 26, 2007 at 4:52 pm
Thank you Carl. IS_SRVROLEMEMBER kept slipping my mind and I couldn't find it on MSDN.
Cheers!
-Kevin
February 7, 2007 at 7:33 am
Viewing 15 posts - 31 through 45 (of 182 total)