Forum Replies Created

Viewing 15 posts - 25,336 through 25,350 (of 26,490 total)

  • RE: Order ID for latest order for every customer

    Code suggested was based on AdventureWorks database. OrderID is an identity column, therefore (and I checked) the maximum OrderID is associated with the latest order for each customer.

    I looked...

  • RE: Restore Error

    First, are you applying both transaction log backups after you restore the full backup? Second, if you are restoring to the point in time of the second transaction log...

  • RE: Order ID for latest order for every customer

    How about this:

    select

    CustomerID,

    max(SalesOrderID)

    from

    Sales.SalesOrderHeader

    group by

    CustomerID

    order by

    CustomerID

    😎

  • RE: Date/time question

    You could still convert to a string, use format code 112 instead of 101. It will give your date in yyyymmdd format, and will sort as you expect.

    This will...

  • RE: Who's Counting? ...Apparently Not Me

    It would help if you could provide some test data, the DDL for the table(s), and the expected results. Just looking at the code, its hare to tell what...

  • RE: Better Licensing

    Per processor licensing is also valid if you have a large internal user community that is accessing your database. If you purchased SQL Server 2000 or SQL Server 2005...

  • RE: Weired Error

    You are confusing the the names in the call below with the names of your parameters in the stored procedure definition. they are not the same.

    exec mailsecurity @dbname,@emp,NULL,Admin output

    exec...

  • RE: Weired Error

    Procedure mailsecurity is expecting 4 parameters, inthe following order:

    @dbname, @name, @emp, @admin-2 (output)

    Your call in PRC_GET_EMAIL_ADDRESS is only sending 3 parameters mapped to the expected parameters as follows:

    @name to @dbname,...

  • RE: Weired Error

    In your second call with only two parameters, the second variable is mapped to the second variable in the stored procedure. If you are going to execute the stored...

  • RE: Error creating a SSIS Package to Integrate SQL to Access

    I'm at a loss right now. I was hoping you were running x64 since, as far as I know, MS hasn't released 64 bit drivers for Access as of...

  • RE: Error creating a SSIS Package to Integrate SQL to Access

    What version of SQL 2005 (x32 or x64)?

  • RE: SQL backups and truncation

    Simple recovery model, the transaction log is truncated when the data is checkpointed. In full recovery model, the transaction log is only truncated when a transaction log backup is...

  • RE: SQL backups and truncation

    It "Depends". What type of backup and what recovery model is the database using?

    A full backup and differential backup do not truncate the transaction log. Enough of the...

  • RE: tricky select question

    I'm glad to have been of assistance, even though all I did was point you to Jeff's article. Be sure to post a thank you to Jeff as well...

  • RE: tricky select question

    Here is what would really help, provide us with the DDL for the tables, some sample data for the tables, and your expected results based on the sample data.

    Jeff Moden...

Viewing 15 posts - 25,336 through 25,350 (of 26,490 total)