Viewing 15 posts - 151 through 165 (of 1,216 total)
I'm afraid this will be a problem. You can't parse strings automatically with that much variability - and I suppose this was just an example. There can be various abbreviations...
September 25, 2008 at 5:25 am
On the other hand.. it is so common that probably no-one realized that this is what you were asking :-).
If you want to execute part of the code, not all...
September 25, 2008 at 5:06 am
Hello Tom,
it may have worked in your particular environment, but I don't think it is a good idea to post this trigger in an article... unless it is an article...
September 25, 2008 at 2:35 am
Well, now this is very different from the original post... the original post contained GOTO inside of a SELECT (that is, between SELECT and FROM, actually you were trying to...
August 29, 2008 at 3:16 am
Hello,
I read all the posts twice and there seems to be some confusion on both sides :w00t:
Main thing the we need to know is how do you wish to treat...
August 29, 2008 at 3:10 am
Well, you have to keep in mind, that you are inside of a select... so you can hardly jump somewhere else (GOTO). You can do that between two SELECTs, but...
August 29, 2008 at 2:33 am
ggraber (8/21/2008)
We have temporarily resolved the issue by only concatenating a comma and not a space, and stripping out the last comma at the end.
It is possible to make...
August 22, 2008 at 2:41 am
Actually, it seems to me that what the original poster wanted could be more appropriately defined as random ordering than generating a random number.
- there is a predefined set of...
August 20, 2008 at 2:21 am
Hi,
to your question "For example, i have 3 rows inserted, does it mean that i = 3 rows and the SQL is inteligent enough to retrieve row by row and...
August 18, 2008 at 2:40 am
Hello Natalia,
the problem with your code is probably in the parenthesis. You could try to call your procedure with parameter like that:
EXECUTE DeleteRows @ItemName=@name
instead of EXECUTE DeleteRows(@name).
As others have remarked,...
August 18, 2008 at 2:22 am
Hello,
unless you give us more info, probably the best answer we can give you is to read about shrinking, especially "Shrinking transaction logs", in BOL. You didn't say anything about...
August 18, 2008 at 1:40 am
As far as I can understand, it is something like calculating totals of an ordered set (ORDER BY date), where the desired result is that row of the original table...
July 7, 2008 at 1:24 am
Ben,
I don't think we are making it too hard 🙂 - your solution is almost identical to this of Hari Sharma. The only difference is use of INNER or OUTER...
July 4, 2008 at 7:39 am
I'm sorry - I think there is no solution that would meet all your requirements.
- if trigger is enabled, trigger will fire on any delete; if trigger is disabled,...
July 4, 2008 at 7:27 am
Basically, this problem is very similar to the one solved here:
http://www.sqlservercentral.com/Forums/Topic520209-338-1.aspx
You can get the result you need with the following query:
SELECT t.UserID, t.TestID, Q.Questions
FROM Tests t
JOIN (SELECT TestID, COUNT(*) as...
June 20, 2008 at 5:29 am
Viewing 15 posts - 151 through 165 (of 1,216 total)