Forum Replies Created

Viewing 15 posts - 616 through 630 (of 698 total)

  • RE: SQL 2008 T-SQL

    did you try it in SSMS 2008? doens't work in 2005, those features are part of the 2008 version.

  • RE: Assigning A default value in a table

    in a word, yes.

  • RE: Grant Access to a View without access to the Tables?

    Elliott W (8/24/2009)


    You could, although it pains me to suggest it, use DB Chaining, and as long as the tables (and I think databases) are owned by the same user...

  • RE: Grant Access to a View without access to the Tables?

    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...

  • RE: Foreign Language Support.

    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...

  • RE: Grant Access to a View without access to the Tables?

    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...

  • RE: Normal Distribution Function

    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...

  • RE: Aging Query

    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...

  • RE: Rewrite T-SQL to remove MAX function

    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...

  • RE: T-Sql for updating the Foreign key relationship within a Table

    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...

  • RE: T-Sql for updating the Foreign key relationship within a Table

    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...

  • RE: SQL 2008 T-SQL

    yeah, lucked out on getting it right, since both of those answers are technically correct.

  • RE: cast, convert and float!

    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 :/

  • RE: Aging Query

    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...

  • RE: Aging Query

    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....

Viewing 15 posts - 616 through 630 (of 698 total)