Viewing 15 posts - 616 through 630 (of 698 total)
did you try it in SSMS 2008? doens't work in 2005, those features are part of the 2008 version.
August 25, 2009 at 7:42 am
Elliott W (8/24/2009)
August 24, 2009 at 12:52 pm
That's unfortunate. There's no way you can have the user essentially "impersonate" a higher-access user when running that view only? I know with functions you can say "WITH EXECUTE AS...
August 24, 2009 at 12:51 pm
You're sure that when you inserted that information into the field, you inserted NVARCHAR characters? if you were using a stored proc, the stored proc needs to accept NVARCHAR, not...
August 24, 2009 at 12:45 pm
Alrighty then, Bob, how? 😛
My view in database B is running a query along the lines of,
SELECT FIELDS
FROM DatabaseB.dbo.Table1
JOIN DatabaseB.dbo.Table2 ON Table1.Column = Table2.Column
...etc...
I don't want to give the user...
August 24, 2009 at 11:22 am
should be doable, sure. if you can post the equation in question, then it should be easy enough to apply it to the result set and transform it accordingly. my...
August 24, 2009 at 10:11 am
Ravi, a lot of what you're asking, you really should be doing yourself. I mean really, the main purpose of posting here should be to get ideas on how you...
August 24, 2009 at 10:02 am
Re-write it such that you're returning all the records on the join, rather than just the MAX record, then use the ROW_NUMBER() function to partition your recordset in a way...
August 21, 2009 at 12:22 pm
Sorry, there's a better way actually,
What you can do is, insert the records with a NULL value for the foreign key field, and then after inserting, run an update and...
August 21, 2009 at 7:07 am
If I understand it right, what you're trying to do is, insert records into a table, and then after inserting the records, update the foreign key field, because you don't...
August 21, 2009 at 7:00 am
yeah, lucked out on getting it right, since both of those answers are technically correct.
August 21, 2009 at 5:22 am
same as everyone else who got it wrong ... focussed on the varchar and float operations, and totally forgot it was being assigned to an int at the end :/
August 21, 2009 at 5:18 am
here's the deal -
what you're trying to accomplish, at least from what i've understood, is really not something you should be doing from a T-SQL level.
T-SQL handles iterative things...
August 19, 2009 at 11:39 am
well that's totally different than what you asked. the procedure i gave you isn't going to work for having different items to go with.
you've now got a triple-nested iteration there....
August 19, 2009 at 10:53 am
Viewing 15 posts - 616 through 630 (of 698 total)