Forum Replies Created

Viewing 15 posts - 31 through 45 (of 381 total)

  • RE: Update ID in the table

    jacksonandrew321 (10/11/2014)


    Hi Folks

    I wrote query to update id int(1,1) to some value but its not giving me the result. Is it not possible to update id on the table. Please...

    Russel Loski, MCSE Business Intelligence, Data Platform

  • RE: Is FOR XML RAW, ELEMENTS = FOR XML PATH, ELEMENTS?

    I'm not sure what you mean by "always the same." There are things that you can't do with Raw that you can with Path.

    IF OBJECT_ID('XMLForHomework') IS NOT NULL DROP...

    Russel Loski, MCSE Business Intelligence, Data Platform

  • RE: Due Diligence

    Great article. So far I have only had one employer mention reading my blog, which is still a little light, but is still a better representation of me than...

    Russel Loski, MCSE Business Intelligence, Data Platform

  • RE: Noob xquery problem

    You can use the where or put the query into your XQuery (I don't know which is more efficient):

    DECLARE @X XML;

    DECLARE @CategoryID int = 9;

    SET @X = '<root>...

    Russel Loski, MCSE Business Intelligence, Data Platform

  • RE: Noob xquery problem

    SET @X = '<root>

    <production.Categories categoryid="1" categoryname="Beverages" description="Soft drinks, coffees, teas, beers, and ales" />

    <production.Categories categoryid="2" categoryname="Condiments" description="Sweet and savory sauces, relishes, spreads, and seasonings" />

    ...

    Russel Loski, MCSE Business Intelligence, Data Platform

  • RE: Help retrieving a dataset that only includes the latest versions of data

    I prefer to use Row_Number().

    with cte as

    (Select *

    , row_number() over (Partition by [Doc#] order by Version Desc, [Occurrence #] Desc)

    as RowNum from...

    Russel Loski, MCSE Business Intelligence, Data Platform

  • RE: [SSRS Subscriptions] : Credentials Stored Securely in the report server won't work

    Uncheck the impersonate checkbox. I have never checked that and it works.

    Russel Loski, MCSE Business Intelligence, Data Platform

  • RE: Calculate number of days based on Computer System Date and a Due Date row!

    Select DueDate

    , case when DateDiff(day, Current_timestamp, DueDate) >= 45

    then 'YES' else NULL end as [45 Days Expectant]

    , case when DateDiff(day, Current_timestamp, DueDate) <= -30

    ...

    Russel Loski, MCSE Business Intelligence, Data Platform

  • RE: Stairway to Integration Services

    Which of the stairway articles are you looking at? In the second one, he is connecting to the Person.Contact table not the Person.Person table.

    Russel Loski, MCSE Business Intelligence, Data Platform

  • RE: XML Noob Question

    rho_pooka (2/19/2014)


    I'm working through the 70-461 training book, and have gotten to the chapter about XML. If I'm querying element centric XML would the following code be the most...

    Russel Loski, MCSE Business Intelligence, Data Platform

  • RE: Multiple CASE Statements in SQL Server 2012 Dev Ed

    When you say, "not working" what do you mean? Do you get an error? Do you get unexpected results? If unexpected results, what are the values that...

    Russel Loski, MCSE Business Intelligence, Data Platform

  • RE: Increment query based off two tables

    imba215 (2/17/2014)


    Hello!

    I have two tables with this info:

    TABLE 1

    COL1 COL2 COL3

    AAA BBB CCC

    QQQ WWW EEE

    AAA SSS DDD

    WWW EEE RRR

    BBB BBB BBB

    TABLE 2

    COL1 COL2 COL3 COL4

    b b b 343

    a a a...

    Russel Loski, MCSE Business Intelligence, Data Platform

  • RE: Error with trying to use this XSD

    complexType can have sequence as a sub-element. http://www.w3schools.com/schema/el_complextype.asp

    Russel Loski, MCSE Business Intelligence, Data Platform

  • RE: Error with trying to use this XSD

    xs:complexContent cannot have xs:sequence as a child. You can have xs:extension or maybe xs:restriction which in turn can have xs:sequence as its child.

    http://msdn.microsoft.com/en-us/library/ms256053(v=vs.110).aspx

    Russel Loski, MCSE Business Intelligence, Data Platform

  • RE: Query to consolidate data from tables

    One correction (I'm getting used to user interface). You need to order by RankID:

    WITH cteUsersAndSoftware(UserName, Software)

    AS

    (

    SELECT DISTINCT s.User_Domain0 + '\' + s.User_Name0 AS 'UserName',

    (CASE

    WHEN p.DisplayName0 LIKE 'Microsoft Visual Studio%...

    Russel Loski, MCSE Business Intelligence, Data Platform

Viewing 15 posts - 31 through 45 (of 381 total)