Forum Replies Created

Viewing 15 posts - 1,756 through 1,770 (of 2,007 total)

  • RE: MDX Query - Simple Count(*)

    Ludo-1135998 (8/31/2010)


    Hi

    I have a Cube with a "Count" Measure. This works well and tell me how many rows are retrieved when I perform Queries, ...

    I also have a few dimensions...

  • RE: GENERATE INSERT QUERY

    balaji.ganga (8/31/2010)


    Hi Siva,

    select 'insert into sam(Id,Name,type,Email,Versionnumber)

    values(' + ""id""+','+""Name""+','+ ""type""+','+""Email""+','+""Versionnumber""+ ')'

    from sam

    when i ran the above query.. the following error occurred

    cannot use empty objects or column names.Use a single space if...

  • RE: Debugging Tool

    ??

  • RE: TSQL Code syntax problem

    Lowell (8/26/2010)


    we cross post each others same answers just a bit too often 🙂

    I'm beginning to think I should reload the page before posting 😛

  • RE: TSQL Code syntax problem

    Would need to be dynamic SQL, e.g.

    DECLARE @sql AS VARCHAR(MAX)

    SELECT @groupname = 'domname\userid'

    SET @sql = 'CREATE USER ' + @groupname + ' FOR LOGIN ' + @groupname

    EXEC (@sql)

    Damnit Lowell! 😛

  • RE: GENERATE INSERT QUERY

    balaji.ganga (8/26/2010)


    Hi All,

    How to generate a insert query script in sqlserver 2000. In Sql server 2000 don't have option to

    generate a script.

    ...

  • RE: Generate Insert Query in SQLSERVER 2000

    Cross post -> http://www.sqlservercentral.com/Forums/Topic973282-5-1.aspx

    (I've answered you in your original post)

  • RE: CTE - How to surpass the limit

    Quatrei.X (8/26/2010)


    can CTE surpass that 32767 limit?

    No. And there's no need for it to either. Generally, if you've got a CTE that exceeds 100, then you've got a circular reference...

  • RE: Running totals... in groups

    gah (8/25/2010)


    I realise that you have probably only given us some sample data....but is there any chance that you have a unique row identifier in your real data

    Yeah, agreed. If...

  • RE: Running totals... in groups

    okkko (8/25/2010)


    skcadavre (8/25/2010)


    That's a bit better 🙂

    OK, what do "movings" and "stock" represent? Is movings the sum of the "quant" per day for each brand/outlet? Then stock the running total...

  • RE: Running totals... in groups

    That's a bit better 🙂

    OK, what do "movings" and "stock" represent? Is movings the sum of the "quant" per day for each brand/outlet? Then stock the running total of the...

  • RE: update table statement

    From what you've given us it's difficult to help, can't correct your code can just point you in the right way. Looks like you're missing a FROM clause to...

  • RE: recursive or a better way to solve this problem

    thava (8/24/2010)


    thanks to your snippet hopes finally i found a way to solve it

    i tried this snippet pretty close to me the resultant show all the records with the...

  • RE: recursive or a better way to solve this problem

    --Sample table

    DECLARE @TABLE AS TABLE(

    [RID] INT,

    [EMID] INT,

    [In Time] DATETIME,

    [Out Time] DATETIME)

    --Insert sample data

    INSERT INTO @TABLE

    SELECT 62, 12, '2005-08-18 06:02:00', '2005-08-18 06:31:00'

    UNION ALL SELECT 63, 12, '2005-08-18 06:31:00', '2005-08-18 06:33:00'

    UNION ALL...

  • RE: Derived column Replace function not working for double quotes

    If there are quotes around all of your data, try this.

    Otherwise, try

    REPLACE(NAME, "\"","")

    If that works, then the problem is with "Upper", so you could set a derrived column that first...

Viewing 15 posts - 1,756 through 1,770 (of 2,007 total)