Forum Replies Created

Viewing 15 posts - 91 through 105 (of 113 total)

  • RE: how to pass result from a Stored Procedures

    if i get you right:

    DECLARE @retval INT

    EXECUTE @retval = my_stored_proc 'x', 'y'

    PRINT @retval

    use RETURN to return any integer expression from a stored proc (exits immediately).

    if you're looking for "real" return...

  • RE: Getting UNIQUEIDENTIFIER data

    if you don't want to wrap your insert logic into a stored procedure, generate your GUID directly on client side and insert it into your client side recordset (rowguidcol attribute...

  • RE: SQL 6.5 - Alias

    open the "client network utility" program (cliconfg.exe) from the start menu. take a look at (depending on your version) either a tab called "Aliases" or a list of aliased servers....

  • RE: Sorting

    generate your own sort key in the select statement by using one of the following statements:

    select *, case when nullable_col_name is not null then 0 else 1 end sort_key

    ...

  • RE: Question of 7/3/03

    The one about usr and pwd was just "best practice" advice -> code clarity and readability.

    regards,

    chris.

  • RE: Outer join failing

    Hi!

    Looking at BOL you'll see that the *=/=* syntax is not anymore supported ("can lead to unpredicted results").

    Use LEFT/RIGHT OUTER JOIN instead. In addition, you'll have to include a restricting...

  • RE: MQSeries Interface

    if everything else isn't an option for you (writing extended stored procedures), you can reside to use the MQSeries-Client automation interface (MQAX200.DLL) and the MSSQL functions to access automation objects...

  • RE: Bulk Delete without logging

    you can use "TRUNCATE TABLE mytable", which is in fact a DDL statement (*not* DML) and therefore not logged at all.

    that means that you won't be able to run it...

  • RE: Replication Script

    Got a little how to for you. Create a table you want to add to your publication. Afterwards issue something like that (depending the options you want to use and...

  • RE: Retieving default values from a table

    That will do the trick (2nd part of the script):

    http://www.sqlservercentral.com/scripts/contributions/246.asp

    best regards,

    chris.

  • RE: Maximum number of prefixes

    quote:


    cneuhold,

    Please try it.


    sorry, you're absolutely right ... in my posting i meant to write...

  • RE: undeletable databases

    ok! what about:

    exec sp_dboption 'dbname', 'bulkcopy', false?

    best regards,

    chris.

  • RE: IF EXISTS error.....

    suggestion: don't get rid of those objects, the optimizier needs them (at least partly). they won't disturb you when dropping objects.

    if you don't want to see them when selecting indexes...

  • RE: Maximum number of prefixes

    hi!

    select into is an implicit DDL statement (it creates a table).

    DDL statements are not possible to be executed on a linked server (try eg. create table, truncate table).

    best regards,

    chris.

    Edited by...

Viewing 15 posts - 91 through 105 (of 113 total)