Viewing 15 posts - 5,836 through 5,850 (of 7,608 total)
Sorry, I have no idea; that's not my area of expertise.
August 28, 2014 at 3:33 pm
I'm guessing what is happening is that Latin1 has only ascii 0 to 255, not extended characters. So, the double-bytes are being interpreted as single bytes, one of which...
August 28, 2014 at 2:44 pm
I use "__Archive" (double underscore) for those tables.
I also maintain its structure to match the original table. That is, if the main table changes, I make the same changes...
August 28, 2014 at 1:49 pm
I guess "UnitNumber" is the "Patient".
SELECT UnitNumber,
MAX(CASE WHEN DiagnosisSeqID = 1 THEN Diagnosis ELSE '' END) AS Primary_Diagnosis,
'427.31' AS Seconday_Diagnosis_Match
FROM test t
GROUP...
August 27, 2014 at 12:40 pm
Not sure if you want to get the exact proc name being executed or see it and its parameters. Something like this should help you get started, although it...
August 26, 2014 at 2:22 pm
er.mayankshukla (8/26/2014)
I have defined a Nvarchar column of 30 bytes
Lets say
create table demo (name nvarchar(30))
But when I see the length of this column by selecting table and pressing...
August 26, 2014 at 1:35 pm
See if it's possible to summarize data and get rid of some of the details. Yes, they always say then need "everything", but then frequently they roll things up...
August 21, 2014 at 4:36 pm
Tracing scalar UDFs adds enormous time to its execution. That is, just trying to compute the time vastly increases the time. Thus, scalar UDFs generally are performing much...
August 21, 2014 at 4:00 pm
This is an easy one:
ALWAYS use sys.; NEVER use INFORMATION_SCHEMA.
Not only might I_S be inaccurate, I've found it's also much slower and much more prone to locking/deadlocking. The I_S...
August 21, 2014 at 3:55 pm
MickyD (8/19/2014)
Thanks for this . Could you confirm if I need to add the select statement part ?
Ideal situation would be to read this from a table that exists in...
August 19, 2014 at 4:30 pm
Something like this should get you going pretty quickly. You can add the "documentation" part by adding a SELECT and/or PRINT to output a message about what is about...
August 19, 2014 at 4:11 pm
MickyD (8/19/2014)
ScottPletcher (8/19/2014)
August 19, 2014 at 2:57 pm
You should be able to get the spreadsheet into a table by right-clicking on the database to load it into, selecting "Tasks", then "Import Data...", and go thru the wizard...
August 19, 2014 at 2:40 pm
My preference would be this (the "extra" parentheses are important to properly match the requirements):
SELECT *
FROM YourTable
WHERE (SnapshotDate > @from AND SnapshotDate < @to)
OR (SnapshotDate = @from...
August 19, 2014 at 2:35 pm
How many rows will be added / changed between uploads / syncs?
I suggest considering Change Tracking or some other automated method of determining changes rather than trying to do it...
August 18, 2014 at 5:30 pm
Viewing 15 posts - 5,836 through 5,850 (of 7,608 total)