Forum Replies Created

Viewing 15 posts - 166 through 180 (of 487 total)

  • RE: Strange behaviour

    Function code below.

    Specifically, the error thrown is:

    Msg 515, Level 16, State 2, Line 1

    Cannot insert the value NULL into column 'Clientname', table '@tRS'; column does not allow nulls. INSERT fails.

    The...

  • RE: Strange behaviour

    Lol! Fail as in throws an error. (But for my users, it's the End. Of. The. World.)

    The cross apply returns a table, but the table has the columns defined not...

  • RE: Phantom FK violation

    WHILE: Agreed. However, this sproc is called for Inserts and updates an average of 10x/day, so the perf hit is probably not noticeable.

    As for the cursor, there are 2 related...

  • RE: Phantom FK violation

    Sean, I'd be happy to hear any suggestions re: perf improvement.

  • RE: Phantom FK violation

    The value is passed in the call to the sproc:

    DECLARE @nKeyword_IdVarINTEGER = 120375

    DECLARE @nErrorVarINTEGER = 0

    BEGIN TRAN New_Tran

    EXECUTE @nErrorVar = dbo.wadw_keywords

    @cActionArg = 'D',

    @nKeyword_IdArg = @nKeyword_IdVar OUTPUT

    So it was evaluating to...

  • RE: Phantom FK violation

    OMG!!!!!!

    Yikes. That's been in prod for years.... which means that sproc is never called by the application.

    Thanks John! Good eye!

  • RE: Phantom FK violation

    OK, Here's the DDL for the 2 tables in question (minus some irrelevant constraints).

    IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[KeyWords]') AND type in (N'U'))

    DROP TABLE [dbo].[KeyWords]

    GO

    SET...

  • RE: Phantom FK violation

    ??? Maybe I didn't get enough sleep last night, but... I don't believe it should be possible to provide sample data to reproduce this scenario.

    To paraphrase my post, "I'm getting...

  • RE: Match Procs Across Servers

    You could write something in Powershell to cycle through the procs and functions, comparing source and target versions, and updating as needed.

  • RE: Programmatically create a New Network Location link Windows 7

    Well it took some looking, but I found out to do it. With a couple of minor mods , it works!!

    The gotcha is that a File Folder link is an...

  • RE: Add Network Places using PoSh

    As far as I can tell, they're shortcuts stored in my c:\users\...ethood folder, which I can access in XP, but not in Win 7 even running Windows Explorer as Administrator...

  • RE: Add Network Places using PoSh

    Yes... make them give you the upgrade to Windows 8.1.

    Ha ha! We're just getting to Win 7. By the time we're ready to upgrade, I'd be surprised if it's still...

  • RE: Add Network Places using PoSh

    Hi Tony,

    I did come across that one, but no, that's not what I'm after.

    The one I want is, in Win 7, right click on Computer, Add a network location.

    Thanks.

  • RE: Dynamically creating / evaluating variables

    Close enough for rock and roll 😀

    Thanks Bruce!

Viewing 15 posts - 166 through 180 (of 487 total)