Viewing 15 posts - 541 through 555 (of 1,584 total)
Just so you know, it's kind of dangerous to be using queries like this if you're not sure what they actually do (just saying). This being said, the SUBSTRING()...
February 7, 2014 at 6:10 am
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...
February 7, 2014 at 5:55 am
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...
February 6, 2014 at 7:49 pm
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...
February 6, 2014 at 7:40 pm
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...
February 6, 2014 at 3:30 pm
@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...
January 31, 2014 at 3:58 pm
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...
January 24, 2014 at 11:35 am
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...
January 20, 2014 at 8:14 am
TheSQLGuru (10/16/2008)
1) You should cover the need to handle foreign keys to the PK
2) You should cover a best practice of dropping...
December 6, 2013 at 7:29 am
Please refer to this great article (near the bottom)
November 26, 2013 at 8:49 am
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")...
November 19, 2013 at 12:48 pm
What are you using? TSQL? SSIS?
Where's your query that generated the data?
November 8, 2013 at 9:58 am
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...
October 31, 2013 at 11:19 pm
MUCH SIMPLER 🙂
Mark-101232 (10/23/2013)
;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...
October 23, 2013 at 8:17 am
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
October 23, 2013 at 8:15 am
Viewing 15 posts - 541 through 555 (of 1,584 total)