Forum Replies Created

Viewing 15 posts - 541 through 555 (of 1,583 total)

  • RE: "Remote Login Timeout" and "Remote Query Timeout" configuration options

    1) Sort of, and 2) Yes.

    If you are using a linked server via MSSQL then it applies, if you're setting up an a linked server via an ODBC or a...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: "Remote Login Timeout" and "Remote Query Timeout" configuration options

    Remote Login Timeout: the time it takes to authenticate on a linked server before timing out. For example, if you are trying to log in to a remote server and...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: Error backing up to network share

    I can't recall off hand if it's a bug within SQL or not, but it will work if you use the fully qualified domain name that the share is mapped...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: Job to Delete folder older than X days ?

    This isn't pretty by any means, and you probably should just use a power shell script or something similar, however this will work - just tweak it as needed: SET...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: DR setup for a customer server

    @arnipetursson +1 - The logins/SIDS completely slipped my mind, but shouldn't pose much of an issue considering they would physically be available to the DR site, you'd just need to...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: A Versioning system for SSRS

    Nice article. However, I am having difficulty opening up the RDL file, many errors:

    Warning1The report definition has an invalid target namespace 'http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition' which cannot be upgraded.00

    I assume this is...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: Can we use transaction replication for my scenario

    Without knowing more details on your setup, transaction replication may be overkill...or not even possible.

    For one table/one column I'd probably just set up a trigger to perform the delete/insert/update as...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: Moving Large Table to Different File Group

    TheSQLGuru (10/16/2008)


    I think several things were missing from the article:

    1) You should cover the need to handle foreign keys to the PK

    2) You should cover a best practice of dropping...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: SSRS Memory Issues

    Please refer to this great article (near the bottom)

    http://blogs.msdn.com/b/sqlcat/archive/2013/10/30/reporting-services-performance-and-optimization.aspx

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: Anyone have a process to save a procedure to network location, then drop it?

    Through Google searching I've come up with a great way to automatically script out the procedures, but currently am having trouble getting the delete portion to work

    Powershell script$rootDrive = "C:\Temp\"

    [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SMO")...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: how to remove duplicate records while inserting to flat file destination in ssis 2008?

    What are you using? TSQL? SSIS?

    Where's your query that generated the data?

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: Anyone have a process to save a procedure to network location, then drop it?

    Thanks for the suggestion, much appreciated - I know I could do that but I'm looking for an automated way it can be done (something I can place in a...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: Removing Duplicates

    MUCH SIMPLER 🙂

    Mark-101232 (10/23/2013)


    Yes, you just need to change the ORDER BY clause

    ;WITH Dups AS (

    SELECT

    [Patient_Count]

    ,[Read_code7]

    ,[Read_code]

    ,[Current_Caseload_Holder]

    ,[Staff_number]

    ,[Event_date]

    ,[Event_done_at],

    ROW_NUMBER() OVER (PARTITION BY [Read_code7],[Read_code],[Staff_number] ORDER BY CASE WHEN [Current_Caseload_Holder] IS NOT NULL THEN 0...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: Removing Duplicates

    Just add a condition Current_Caseload_Holder IS NOT NULL

    Or you can just add to your CTE and fetch records for the ones that are/are not null, using a UNION ALL

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: Removing Duplicates

    An example that may work for you (as mark suggested in the link provided);WITH Dups AS (

    SELECT

    [Patient_Count]

    ,[Read_code7]

    ,[Read_code]

    ,[Current_Caseload_Holder]

    ,[Staff_number]

    ,[Event_date]

    ,[Event_done_at],

    ROW_NUMBER() OVER (PARTITION BY [Read_code7],[Read_code],[Staff_number] ORDER BY [Read_code7]) AS Cnt

    FROM MyTable

    ) SELECT * FROM...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

Viewing 15 posts - 541 through 555 (of 1,583 total)