Forum Replies Created

Viewing 15 posts - 781 through 795 (of 1,219 total)

  • RE: Lost permissions

    Judging from the error message, the service account for SQL Agent has problem accessing the AD to validate the user. 0x63 = 110, and NET HELPMSG 110 says:

    The system cannot...

    [font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]

  • RE: Order by Name not works

    pandiyarajk.rjpm (8/21/2013)


    I tried to sort names in my application.

    It is strange that W comes in between V :alien:

    It's not strange at all! That's how we sort in Swedish(*). In...

    [font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]

  • RE: query to find total number of total number of reads for a stored procedure

    If you want to collect this data for a specific execution, you need to save the data before execution into a table, and then after execution read the DMV again...

    [font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]

  • RE: trying to match up two tables

    SELECT n.software_manufacturer, n.productname, n.productversion, d.licensable

    FROM dbo.newtable n

    JOIN dbo.datalookuptable d ON d.software_manufacturer = n.software_manufacturer

    ...

    [font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]

  • RE: Distinct in CTE?

    Your query is very difficult to read, because you don't prefix every column, and therefore it is difficult to tell where they are coming from.

    It also suffers from having...

    [font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]

  • RE: Omit Data Length for Numeric Values

    Here is a query that I have canned. It's part of a tool, and the purpose is to return information about all user-defined types. (But I realised today that it...

    [font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]

  • RE: Query is slow from stored procedure but faster outside the procedure

    There is something which is amiss here. The code you sent me had no parameters or variables. However, the plans you posted has:

    ...

    [font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]

  • RE: Filetable on separate device

    Procmeister (8/21/2013)


    I can hardly believe that the data and log files can be on a UNC Pathname, but not the Filestream.

    FILESTREAM data can be exposed to remote clients on a...

    [font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]

  • RE: BCP Help

    jerome.morris (8/21/2013)


    How do I get this to work ? I know the format is M/d/yyyyHH:mm:ss

    You think you know. Unless the file is produced by a device, it is almost given...

    [font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]

  • RE: Why queries are using certain indexes

    I said that you don't need the inner TOP. The outer TOP is sufficient. Hm, it may have an interesting effect on the query plan. Try it!

    [font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]

  • RE: query is taking long time to run

    New persopn (2013-08-21)


    here in this table 9112177 records are there 6.3gb data is available.

    And from where are you running that query? Not SQL Server Management Studio I hope!

    The problem is...

    [font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]

  • RE: ALTER PARTITION MERGE .... works in SSMS but not SQLAgent Batch

    It should not cause a problem if you stop playing with fire and stop using unsafe date formats. Stick to YYYYMMDD, which is always interpreted the same way.

    So in two...

    [font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]

  • RE: Why queries are using certain indexes

    You don't really need the inner TOP in the UNION ALL query.

    But as Kevin says, the optimizer is not perfect, and it does not shine on queries with OR. I've...

    [font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]

  • RE: does it make difference nvarchar(50) or nvarchar(500)

    aykut canturk (8/21/2013)


    What I confused about is unicode chars. I need all eurepean characters. French, German, English, turkish etc. But not chinese, japanese. only latin characters. should I use nvarchar...

    [font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]

  • RE: Filetable on separate device

    So what you error message do you get?

    Generally, SQL Server does not support databases on remote servers as I recall.

    [font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]

Viewing 15 posts - 781 through 795 (of 1,219 total)