Forum Replies Created

Viewing 15 posts - 7,816 through 7,830 (of 15,381 total)

  • RE: ?? on creating a temp table for a date range

    And please don't post multiple threads with the same question.

  • RE: Matrix showing all days of month

    jbalbo (6/25/2013)


    Hi

    Looking for some samples on how to create a matrix report to show all days of the month even if there is no data for that date

    so if the...

  • RE: Different Approach

    Thanks for posting the proc that you are working with. As I said previously we need to have ddl and sample data. These both seem to be missing from your...

  • RE: How to make hierarchical structure

    No your sample data does not work as posted. Here is the script after removing all the references to EDMS.

    CREATE TABLE [dbo].[tblDocuments](

    [Originator] [nvarchar](255) NOT NULL,

    [Document Type] [nvarchar](255) NOT NULL,

    [Unit] [nvarchar](255)...

  • RE: Need tree structure

    tonyarp05 61903 (6/25/2013)


    I am really sorry.

    I couldn't provide data, its having more data and also i couldn't get it for specific data for sample.

    please give me some idea how this...

  • RE: SP producing an impossible error

    Any suggestion on what might be causing a stored proc to execute as a previous version of itself rather than it's modern version? If so, how can I force the...

  • RE: How to make hierarchical structure

    Thanks for posting ddl and sample data. There seems to be something a little wrong with your sample data. It will not run because it violates some of your foreign...

  • RE: Different Approach

    Hi and welcome to the forums. I would agree that getting rid of the cursor is a good way to go. In order to help we will need a few...

  • RE: The database is not accessible (ObjectExplorer)

    Welsh Corgi (6/24/2013)


    I get the error the Database is not accessible for a user.

    What is wrong?

    I can't find an answer.

    What have you tried? Did you read through this thread (which...

  • RE: How to insert result from cross-tab query into a table?

    Just like you would with any other select statement that you would use as the source of an insert...

    For an existing table:

    Insert into YourExistingTable

    SELECT *

    FROM (

    SELECT

    year(invoiceDate) as [year],left(datename(month,invoicedate),3)as [month],

    InvoiceAmount as...

  • RE: Do I need a group by to get last value ??

    jbalbo (6/24/2013)


    Here is snippet of the code

    SELECT Client.LName + ', ' + ISNULL(Client.FName, ' ') AS clientname, RECORDED_SERVICE.STARTTIME,

    ...

  • RE: Do I need a group by to get last value ??

    Pretty spare on the details here. I will take a shot in the dark. Maybe you can use ROW_NUMBER and group by date?

    If you want more detail help we will...

  • RE: Performance Tuning for the procedure

    Avik Roy (6/24/2013)


    Hi All,

    I need your urgent help regarding this procedure performance tuning so that the execution time become very less.

    Below is the procedure :

    I know you are brand new...

  • RE: Can I use SQL Server Agent >> Jobs - to send a email reminder to an email address?

    mrichardson 57577 (6/24/2013)


    Can I create a Job in SQL Server Agent...

    - to send a simple email reminder to an email address?

    yes. Look up xp_sendmail. Or you could create an...

  • RE: non-correlated subquery failing to fail

    Larry.Findley (6/24/2013)


    In the following NON-CORRELATED subquery

    DELETE

    FROM dbo.DimCustomer_LLF

    WHERE CustomerKey in (SELECT DISTINCT(CustomerKey) FROM dbo.cdc_states);

    GO

    we should get a syntax error. CustomerKey is not a column in dbo.cdc_states. If we...

Viewing 15 posts - 7,816 through 7,830 (of 15,381 total)