Forum Replies Created

Viewing 15 posts - 676 through 690 (of 1,109 total)

  • RE: index error

    Have a look at this index. Most likely it will have a few variable length columns in it. There is a limit to index entry sizes, and it can be...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Execute a Stored procedure from different databases

    Another thing, you cannot use @t in the from clause if @t is not a table variable.

    If you are passing only the name, you need to build up your query...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Execute a Stored procedure from different databases

    You can create a stored procedure in the master database, and name it sp_whatever

    the sp_ will make it available in all of your databases, and the context will be the...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: How to get Resultset in the order of Items given in IN clause

    The "in" expression is converted into an OR, and there is no guarantee for the order in which the individual parts evaluate. However, if the order in which the items...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Which is faster.. TRuncate or DROP

    Neither the truncate nor the table drop will record individual row deletes.

    Regards,

    Andras


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: SQL SERVER 2000 AND SQL SERVER 2005

    Yes you can, You need to use named instances.

    Regards,

    Andras


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: How to Select Rows based on Unigue Data

    On SQL Server 2005 you can also use CTEs which will improve the performance:

    WITH maxvals ( [Client ID], maxdate )

    ...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: How to Select Rows based on Unigue Data

    An expensive solution:

    SELECT c2.*

    FROM CLSERVICES c2

    JOIN ( SELECT [Client ID]

    ...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Access to sys.objects and syscomments

    Johannes Fourie (10/31/2007)


    Sorry, I lied. sys.sqlmodules did not work. I tested with an admin login

    When using a login who is only part of the public role it returns NULL

    here is...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Access to sys.objects and syscomments

    Johannes Fourie (10/31/2007)


    Sorry, I lied. sys.sqlmodules did not work. I tested with an admin login

    When using a login who is only part of the public role it returns NULL

    here is...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Access to sys.objects and syscomments

    Execute as expects a user in the database (items in the sys.users in the database). A simple example is:

    create user blah without login

    GO

    create proc blah2 with execute as 'blah'...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Access to sys.objects and syscomments

    Some answers to the many questions :

    - Have a look at the VIEW DEFINITION permission

    - on 2005 use sys.sql_modules instead of syscomments (this does not chop up texts over a...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: determining data types

    Antares686 (10/31/2007)


    Andras Belokosztolszki (10/31/2007)


    You may also want to look at the SQL_VARIANT_PROPERTY. Not the nicest solution :), but:

    Just be aware the table must have data in it to produce an...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: determining data types

    You may also want to look at the SQL_VARIANT_PROPERTY. Not the nicest solution :), but:

    select SQL_VARIANT_PROPERTY ( cast (1 as int) , 'BaseType ' )

    gives you back int 🙂

    Regards,

    ...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: determining data types

    somefunction is typed, so at the moment you specify a parameter, the parameter is cast to the type the function accepts.

    Are you trying to get the data type of a...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

Viewing 15 posts - 676 through 690 (of 1,109 total)