Forum Replies Created

Viewing 15 posts - 766 through 780 (of 1,109 total)

  • RE: "function"

    CREATE FUNCTION dbo.split ( @in NVARCHAR(4000) )

    RETURNS @result TABLE

    ( seqNr INT IDENTITY(1, 1)

    , item NVARCHAR(100)

    )

    AS BEGIN

    ...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: returning balance value on TSQL

    Search for "running total" or "running balance" on these forums.

    Basically to do this in SQL and calculating this in queries is very inefficient and does not scale. You are much...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Writing Triggers

    Books online will be your best source (the documentation that comes with SQL Server). It is also available online. For triggers http://msdn2.microsoft.com/en-us/library/ms189799.aspx is a good starting point.

    Regards,

    Andras


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Non cluster Indexing for tables

    Have a look at the Database Engine Tuning Advisor http://msdn2.microsoft.com/en-us/library/ms188639.aspx

    You can start it from Management Studio Via: Tools-> Database Engine Tuning Advisor

    (but do not believe everything it says). It can...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Insert Problem

    Hi Sandy,

    Piotr is right with the solution of removing the default from the select. The select statement should execute on its own when its result is used to put into...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: SQl LOG file growing

    Hi,

    What recovery mode is your database in?

    select databasepropertyex('databasename', 'Recovery')

    If you it is in simple recovery mode, check if you have any transactions that are still running.

    If your database...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: concatenate multiple rows into a single row

    You could use a user defined function to do this. If you are on 2005 then there is a nice trick to use xml path, or you could revert to...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Question of the Day for 29 Jul 2004

    Well, this is no longer a limitation on 2000 SP3

    (of course at that time it was not around :))

    Andras


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Log File growth after re-index

    Hi Susan,

    switching to bulk just before dbreindex, then switching back will keep the transaction log file much smaller. It will increase the transaction log backup file size though. Probably it...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Declare variables dynamically

    Could you describe in more detail what you mean by declaring variables dynamically? You can declare a variable at any time. If you create them on demand, how would...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Is it possible to get resultset from a SQL StoredProc batch by batch?

    This is the same post as http://www.sqlservercentral.com/Forums/Topic410712-149-1.aspx. I reckon it will be easier for you too to look up the answers on a single page.

    Andras


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Bulk Insert

    I've sent you my email address in a pm, but there are many experienced people looking at these forums, so instead of email it would be nicer if you posted,...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Removing Carriage Returns in a Select Statement

    As a follow up, if your LOB data is smaller than 8000 bytes, you could of course convert it to varchar(8000) and do a replace on that.

    To see an...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Removing Carriage Returns in a Select Statement

    Hi Bill,

    this is unfortunately a limitation of the LOB (text, ntext and image) datatypes. This has been improved in 2005 with the new LOM data types ([n]varchar(max) and varbinary(max)),...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Using a row from anoher table in the FROM clause

    You could use dynamic sql, i.e. construct the query string and then use execute, like:

    DECLARE @query NVARCHAR(4000)

    SET @query = N'SELECT tID,... FROM '+

    @table +'.. rest of the query'

    EXECUTE(@query)

    Regards,

    Andras


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

Viewing 15 posts - 766 through 780 (of 1,109 total)