Forum Replies Created

Viewing 15 posts - 3,151 through 3,165 (of 7,636 total)

  • RE: Retrieving an SMO Object by Name

    Ah, okay. I suppose that didn't come up for me because I was using them for scripting and I just used the "dependent objects" trick to get them.

  • RE: Execute a table of statements

    dlongnecker (3/30/2009)


    My mistake RBarryYoung, I tackeld the wrong argument.

    s'alright. 🙂

    Preaching the evil of cursors then using them yourself for particular instances can be a mixed message for neophytes....

  • RE: Double Insert?

    More generally, the OUTPUT parameter modifier does not prevent them being used for input also.

  • RE: Extracting XML File that is stored as a text data type

    Here's a shortcut way to deal with the namespaces problem:

    SELECT CAST(CAST(XMLMessage as VARCHAR(MAX)) AS XML).value('(//*:DocOrgName)[1]', 'NVarchar(50)')

    , CAST(CAST(XMLMessage as VARCHAR(MAX)) AS XML).query('(//*:DocOrgName/text())')

    from DocumentSource

  • RE: Retrieving an SMO Object by Name

    cspencer (3/30/2009)


    So so. While sysobjects does contain the name of most objects (the exception being indexes), it doesn't directly contain the parent object. I need to do another join using...

  • RE: Execute a table of statements

    dlongnecker (3/30/2009)


    I'm going to have to side with the cursor argument on this one.

    A one time use/db script probably isn't going to take the server down.

    The probability of overfilling an...

  • RE: Using xp_cmdshell

    Krushna (3/30/2009)


    RBarryYoung (3/28/2009)


    OK, and what happens when you execute this yourself in a Query windows?:

    xp_cmdshell '\\192.10.10.245\E:\PrintToPDFConsole.exe'

    It was showing :

    The network path was not found.

    But after I've changed it to a...

  • RE: Code Formatting

    The real hard part was figuring out how to spell the tag labels. They're case-sensitive and not generally capitalized the same as they appear above.

  • RE: Code Formatting

    Do view source on any forum page and look at the js "Brush" modules right at the top:

    <script type="text/javascript" src="/shared/syntaxhighlighter/scripts/shCore.js"></script>

    <script type="text/javascript" src="/shared/syntaxhighlighter/scripts/shBrushCpp.js"></script>

    <script type="text/javascript" src="/shared/syntaxhighlighter/scripts/shBrushCSharp.js"></script>

    <script type="text/javascript" src="/shared/syntaxhighlighter/scripts/shBrushCss.js"></script>

    <script type="text/javascript" src="/shared/syntaxhighlighter/scripts/shBrushJava.js"></script>

    <script type="text/javascript" src="/shared/syntaxhighlighter/scripts/shBrushJScript.js"></script>

    <script...

  • RE: Matching employee application log ins to log outs

    Do you ever miss a login or a logout? If the answer is no, then you should be able to just count the logins and logouts and match then...

  • RE: difference between secondary indexes path, value, property

    I think that it is just a matter of the order of the Path and Value within the key.

  • RE: Double Insert?

    By the way, although I don't think that it is the cause of your current problem, you probably should be using SCOPE_IDENTITY() instead of IDENT_CURRENT().

  • RE: Have no access and unable to administer

    john (3/29/2009)


    PS when I reply the previous post is not visable. Is this configurable?

    Also, if you want to quote the post you are replying to, then just click the "Quote"...

  • RE: number of indexes

    If your Inserts are fine, then you are probably OK with that many indexes. You might still use some of the prior advice to determine whether you are using...

  • RE: How to use MERGE()

    good catch Jeffrey!

    On my 2005 server this SQL code gives me the same error as the OP, however on my 2008 server, I get "Invalid object name 'Source'." which is...

Viewing 15 posts - 3,151 through 3,165 (of 7,636 total)