Forum Replies Created

Viewing 15 posts - 1,906 through 1,920 (of 2,007 total)

  • RE: SQLCmd - Length

    NicHopper (6/17/2010)


    skcadavre (6/17/2010)


    As I mentioned in the previous version of this thread - I'd use SSIS, query parts of it and build a file by appending the seperate parts.

    Hi,

    Sorry I'd...

  • RE: SQLCmd - Length

    I'd use SSIS, query parts of it and build a file by appending the seperate parts.

  • RE: to find string between special characters appearing twice in a string

    Is it always three characters before the part that you're interested in? And always three characters after it?

    e.g. XX_wantthis ?

    If so, simple way to do it is: -

    --First, lets build...

  • RE: to find string between special characters appearing twice in a string

    Are you just trying to strip the numbers/special characters?

    If so: -

    DECLARE @input AS VARCHAR(50)

    SET @input = '00_MECH_UG,00_PRE_LG'

    SELECT @input

    DECLARE @output VARCHAR(50)

    SET @output = ''

    DECLARE @length INT

    SET @length = Len(@input)

    DECLARE...

  • RE: Report Locations

    Open the report in BIDS (SQL Server Business Intelligence Development Studio).

  • RE: Report Locations

    dunne.neal (6/17/2010)


    hi

    yes it looks like you understood the question

    the code gives the error - invalid object name catalogue

    Thanks again

    The code you were given works if executed in the correct...

  • RE: Need help on T-SQL

    --First, lets build some test data

    DECLARE @table AS TABLE(

    rid VARCHAR(50),

    posi INT,

    busn VARCHAR(7),

    ddate DATETIME)

    --Using the test data you specified...

  • RE: Write out large XML file

    NicHopper (6/17/2010)


    However the issue I'm getting is that my file seems to stop writing at around 37mb, about half way through, anyone any suggestions on how I can resolve this?

    I...

  • RE: converting varchar to datetime in spacific format

    DECLARE @date AS VARCHAR(10)

    SET @date = '2010/01/29'

    SELECT CONVERT(VARCHAR(10), (CONVERT(DATETIME, @date)), 101)

    --OUTPUT -> "01/29/2010"

    ??

  • RE: Month wise report

    The reason you've had no replies is because you've not given us much incentive to work on it. Post your data like this: -

    DECLARE @table AS TABLE(

    eventid ...

  • RE: TSQL query Performance Issue

    With the restriction you've placed, chances are that the only way you'll get a performance increase would be to either feed the server's hamsters rocket fuel or get a bigger...

  • RE: Inserting / Selecting / Truncating - Question.

    In that case, I'd need to be able to reproduce the error to look into it. With no data, that's not possible. When I tried using test data I wrote,...

  • RE: Inserting / Selecting / Truncating - Question.

    Please re-read my post and execute the SQL I showed.

    The SELECT query you wrote to see the max length of the column is not doing what you think it is...

  • RE: Inserting / Selecting / Truncating - Question.

    SQLSeTTeR (6/15/2010)


    Nope, that is it. here is the table structure. It's truncating at AttributeValue column.

    select max(len(AttributeValue)) from ClientXAttributeText

    --3167

    SQLSeTTeR (6/15/2010)


    [AttributeValue] [varchar](8000) NULL

    SQLSeTTeR (6/15/2010)


    and it's TRUNCATING on AttributeValue....

  • RE: Passing a local variable to an Alter table

    I found this script awhile ago that dynamically alters tables

    --ALTER TABLES SCRIPT

    --change the line marked *** to suit your update needs....

    -- Jamie Moffat, 4/2/02

    DECLARE tablenamescursor CURSOR FOR

    --*** ...

Viewing 15 posts - 1,906 through 1,920 (of 2,007 total)