Forum Replies Created

Viewing 15 posts - 1,006 through 1,020 (of 1,241 total)

  • RE: help with deletion of multiple records

    With batches, it is meant you can try something like

    WITH Ordered AS

    (

    SELECT*,

    ROW_NUMBER() OVER ( PARTITION BY name ORDER BY Id) AS RN,

    ROW_NUMBER() OVER ( ORDER BY...

    ----------------------------------------------------

  • RE: help with deletion of multiple records

    You could try

    WITH Ordered AS

    (

    SELECT*, ROW_NUMBER() OVER ( PARTITION BY name ORDER BY Id) AS RN

    FROM #mytable where ID

    in ('TIX123','TIX999')

    )

    select * from ordered

    where RN=1

    to move the data...

    ----------------------------------------------------

  • RE: Options for continuously moving data from 2005 to 2008R2 for a single table

    Keep a watch on the distributor's transaction log, make sure it doesn't fill to capacity or that will halt things.

    ----------------------------------------------------

  • RE: SSRS Report slow

    It could just be the report server that renders the report may be low on Ram or disk space, running a heavy process (maybe a anti-virus scan). Have you looked...

    ----------------------------------------------------

  • RE: Are cursors hard on servers?

    I would take a cursor over a triangular join if I was reporting on a running total in a columns. That's once instance.

    ----------------------------------------------------

  • RE: SQL/SSIS Help

    I'm going to take a wild guess here. You have a exec SP in your ole db datasource ... that itself inserts data to a table... and is also passing...

    ----------------------------------------------------

  • RE: Generating schema and population from XML

    You could use SSIS to guess/generate an XSD for you. Create a data flow task with an xml source. If you have the XSD file then even better. Dump the...

    ----------------------------------------------------

  • RE: Violation of PRIMARY KEY constraint

    hi Lowell,

    I'm curious why you need the +1 in the query

    use msdb;

    GO

    DBCC CHECKIDENT ('dbo.backupset')

    SELECT MAX(backup_set_id) + 1 FROM dbo.backupset

    if the current identity is less than the max row in...

    ----------------------------------------------------

  • RE: Replication Issues

    Not sure. Has the agent account password changed recently? Has disk space on the distributor filled up? Is the transaction log full on the distributor database?

    ----------------------------------------------------

  • RE: Second Last work day of month

    For the current month ...

    WITH MYCTE AS (

    SELECT row_number() over (order by [dates] DESC ) as dayNum, [dates], datename(weekday, dates) as [Day Name]

    FROM

    ( /* the last seven days in...

    ----------------------------------------------------

  • RE: Some Data Coming as NULL in a VIew

    Perhaps the OP simply forgot to include the other cases in the where clause

    ChrisM , If I can borrow your code...

    Use ProdDB

    SELECT TOP (100) PERCENT

    [Prod No] = p.ProdNo,

    [Prod...

    ----------------------------------------------------

  • RE: How to show NO DATA FOUND message when there is no data in SSRS

    Just want to mention that I have an old fashioned way of dealing with no data. Be mindful that your report viewers may want to see items that 0 counts,...

    ----------------------------------------------------

  • RE: Importing improperly formatted excel file

    SSIS is a great tool.Once you connect to your data source within a dataflow task you can create a derived column. Here there are built in string and other operators...

    ----------------------------------------------------

  • RE: Starting over after 4 year break

    For your third question >

    http://msdn.microsoft.com/en-us/library/ms130214(SQL.105).aspx

    Don't forget about Books online as this continues to be a valuable resource. Since you have a background things will come back, learning the new...

    ----------------------------------------------------

  • RE: Importing improperly formatted excel file

    I know this is a SQL forum, but for crazy Excel imports, I've found creating macros in VBA to be very helpful. One can move the data to a new...

    ----------------------------------------------------

Viewing 15 posts - 1,006 through 1,020 (of 1,241 total)