Viewing 15 posts - 976 through 990 (of 13,465 total)
In my case, i was bitten by the 2./3.0 when i wax using Export-Csv i think, which added -Appen parameter.
I ended up using a command line call to the...
May 25, 2016 at 9:07 am
can you run $PSVersionTable?
i'm thinking the script is for Powershell 3.0, but it's running under 2.0 context?
the third error i would think can occur if the string $DestinationFile has...
May 24, 2016 at 3:23 pm
in that case, your count, as you currently have it, would always be one, since the WHERE statement is limiting data to the same day the person died.
you have to...
May 24, 2016 at 2:24 pm
i would think do the following
add a new column, ie
update it to the equiv orig value, maybe in small batches
rename orig column
rename new column
drop orig column
ALTER TABLE myTable...
May 24, 2016 at 1:18 pm
boehnc (5/24/2016)
May 24, 2016 at 1:04 pm
assuming DCDate is the Deceased Date, and you can only die once(except in the movies)
here's my best guess:
SELECT
a.PatientNumber,
MAX(a.DCDate) As DCDate,
Count(a.PatientNumber) as PatientVisits
FROM [PatientData] a
where a.DCDispCode = '20'
and...
May 24, 2016 at 12:40 pm
here's the script with all columns in T.* exploded out to their full name.
you can remove what you don't need easier than i can.
object_name(object_id) has an additional optional parameter, db_id,...
May 24, 2016 at 12:28 pm
isn't error 0x80004005 file permissions, ie cannot access \\servername\sharename\filename.xls?
this is probably after you publish /delopy the package(so it runs under a different user on the server), but works fine...
May 24, 2016 at 9:44 am
well here's how i do it:
deadlocks are already in the extended events. nothing extra needs to be done with that.
i have a stored procedure that pulls the "latest" deadlock from...
May 24, 2016 at 9:33 am
i did this once, but it's been a while, and it actually worked.
same issue, hardcoded code to three part naming conventions.
it's been a while, but i obviously made sure i...
May 23, 2016 at 1:51 pm
it's just syntax.
you want to select modified data, and insert is still just an insert. i saw what you were tryingto do, though.
below is a better example
Insert INTO (
[ScenarioID]
,[CostCenterID]
,[CostCenterName]
,[FunctionID]
,[FunctionName])
SELECT 'Budget2013'...
May 23, 2016 at 12:22 pm
My prod system s busy, but not 500 queries per second busy.
I've run that particular query quite a few times on production, during prod hours, since it's hitting the DMV's,...
May 23, 2016 at 12:08 pm
what does "not working" mean to you? you did not mention any errors, and convert(varchar will return a string, albeit maybe a string that looks like a date, but it...
May 23, 2016 at 11:45 am
i believe this is one of Glenn Berry's scripts, that determine the most used stored procs.
you could infer that the procedure called the most, might be the ones called the...
May 23, 2016 at 11:35 am
add the column ReportServer.dbo.Catalog.Hidden to your query.
when a folder or report is marked as "hidden", you have to change the view in SSRS to "Details View" to see those hidden...
May 23, 2016 at 11:27 am
Viewing 15 posts - 976 through 990 (of 13,465 total)