Viewing 15 posts - 14,911 through 14,925 (of 14,952 total)
You don't have a "Fred" column in your target table, but you do have one in your insert statement. Fix that part, and you should have a working solution,...
December 27, 2007 at 1:28 pm
It's a clever solution to complex lookups in small tables (very few rows), where indexes won't matter. On larger tables, it's going to bypass indexes and quite probably slow...
December 27, 2007 at 1:24 pm
I can't think of a way to do this without loops of some sort, either cursors or a while loop. Since changing the existing nested cursors to nested while...
December 27, 2007 at 1:13 pm
You can use an inline function in a group by clause. I've done so. (It kills performance, but if it's necessary, it's necessary.)
Try running the select without the...
December 20, 2007 at 9:06 am
@@spid will give you that.
user_name() might be more useful, depending on the connection context.
Books Online has data on each of these and what they do.
December 20, 2007 at 9:02 am
In the case of patents, we're getting back into the chair-design realm, instead of the physical chair.
If you like the chair so much that you copy it, you have put...
December 18, 2007 at 11:56 am
In the case of the chair used as a flowerholder, or a "sitting fee", you can return the chair and the chair-maker then has control over it. You no...
December 18, 2007 at 11:50 am
You need to add a "GroupID" column, so that the first set is group 1, the second set is group 2, etc.
If you do that, then it becomes much easier...
December 18, 2007 at 11:31 am
For the concept of data ownership to be simplified, we have to simplify the concept of data work first.
If a person spends time and effort to make a wooden chair,...
December 18, 2007 at 11:19 am
Robert Davis (12/22/2006)
Of course, I don't think the author's intention was to claim that Context_Info was the solution to all of our security concerns. I think he merely chose that...
December 18, 2007 at 7:12 am
It looks to me like your "fromdate" field might be char/varchar instead of datetime. In that case, you'll get any string that starts with a character > "2" in...
December 17, 2007 at 11:53 am
select *
from table1
inner join table2 on table1.key = table2.key
inner join table3 on table1.key = table3.key
That's the SQL text. In Query Designer, I think you just drag the column from...
December 14, 2007 at 11:04 am
You need to change the first line of the first update command to "Update O" instead of "Update Orders". You used a table alias in your update query, and...
December 14, 2007 at 11:01 am
When you use "top" and "order by" together, they work together.
Thus, your first query select 3 and 2, because it first orders by sequence, descending, then it picks the top...
December 14, 2007 at 10:55 am
Generally, the best way is going to be to create a linked server (Books Online has directions on how to do this), and then use the 4-part name of the...
December 14, 2007 at 10:48 am
Viewing 15 posts - 14,911 through 14,925 (of 14,952 total)