Forum Replies Created

Viewing 15 posts - 6,001 through 6,015 (of 7,636 total)

  • RE: Dynamic SQL Problem

    The only way to pass something back from Dynamic SQL is through a Table: temporary or permanent (table vars will not work).

    You can pass limited info back through an Error...

  • RE: sp_MSforeachtable unable to delete referenced tables

    Yes. In the SSMS Explorer pane, right-click on the database and pick "Tasks > Generate Scripts". From these script drops for all of your tables, and include "Dependent...

  • RE: Need Help please

    Disable automatic updates on the Windows Server?

  • RE: Sharepoint database

    kevriley (6/24/2008)


    So off I went an issued an update to change the link using T-SQL. Checked the row, all changed - checked Sharepoint no change at all???

    Anyone...

  • RE: many possible input combinations

    Dynamic SQL.

  • RE: Convert nanoseconds since 1/1/1601

    Actually, it's a different error now. This should do it:

    SELECT

    DATEADD(minute,(convert(bigint,lastlogon)*100.0/POWER(10, 9) - (CONVERT(bigint, DATEDIFF(minute, '1/1/1801', '1/1/1953')) * 60))/60, '1/1/1753') AS date

    from dbo.smx_empdirectory

  • RE: Please help this Store Procedure

    You wrote your stored procedure to require 5 parameters and you are not passing any to it.

    How can we help you with that?

  • RE: Convert nanoseconds since 1/1/1601

    Actually, I think that this will fix Jack's original code:

    SELECT

    DATEADD(minute,(convert(bigint,lastlogon)*(100/POWER(10, 9)) - (CONVERT(bigint, DATEDIFF(minute, '1/1/1801', '1/1/1953')) * 60))/60, '1/1/1753') AS date

    from dbo.smx_empdirectory

  • RE: Exponent Engima

    Folks:

    For What It's Worth: I sincerely doubt that I would have gotten this question right myself. I am pretty sure of that because I have actually tripped...

  • RE: Exponent Engima

    Melville (8/7/2008)


    Good question, the bitwise XOR ^ made this a school day for me (always good). Once I took out the -17 it became clear that sqrt (n^n) (n...

  • RE: Just For Fun: An Impossible Delete

    Andy DBA (8/7/2008)


    RBarry,

    ...

    I'll say it again: Great article!

    I'll bet you never thought it would generate so much discussion!

    Thanks, Andy. And yeah, I thought that hardly anyone would even be...

  • RE: Exponent Engima

    Almost:

    DECLARE @a BIGINT

    , @b-2 BIGINT

    SET @a =...

  • RE: When will RC1 be available?

    GilaMonster (8/7/2008)


    rbarryyoung (8/7/2008)


    Downloaded RTM last night, can't install it until tomorrow though...

    I started downloading it last night, stopped when I noticed the size. 3 GB download will use my entire...

  • RE: Exponent Engima

    Festeron (8/7/2008)


    There are problems with the question, though.

    Why is @b-2 declared and never used?

    Where is @b-17? Answer B cannot be correct

    Yikes! You are right, "@b" shouldn't be...

  • RE: Creating Packages

    You can however, use Schemas to have a similar naming and organizational format. But it is still a lot different.

Viewing 15 posts - 6,001 through 6,015 (of 7,636 total)