Viewing 15 posts - 121 through 135 (of 325 total)
August 30, 2018 at 10:47 pm
You could do it from a Powershell job step, with something like:
Invoke-WebRequest -Uri http://www.google.com
August 30, 2018 at 10:38 pm
Something like this should do it:
$badLines = 0
Get-Content .\test.txt | ForEach-Object {
$currentLine = $_
$cols = $_.Split('|')
Try {
# Note...
August 30, 2018 at 10:30 pm
The EOMONTH function can give you the last day of the month from any given date.
August 30, 2018 at 11:54 am
August 30, 2018 at 11:49 am
Row Number in this case is not guaranteed to return the order nodes were in the XML, you have to use XQuery to get that.
August 30, 2018 at 9:44 am
Get used to "it depends", such is the world of database development. Compound keys can be a good solution, but make sure they don't get too wide - sometimes it...
August 30, 2018 at 6:48 am
Good discussion here. Choosing clustering keys and fill factors strikes me as one of those "black arts" when it comes to SQL Server and I'm not surprised people gravitate towards...
August 30, 2018 at 6:43 am
There most certainly was a decimalised half penny. I'm not old enough to remember pre-decimal currency, but I am old enough to remember being gutted that half-penny sweets were about...
August 29, 2018 at 10:35 pm
August 29, 2018 at 10:21 pm
Are you absolutely sure you didn't mis-type the last line of that query when you tried it in SSMS (or accidentally missed it off). The fact you have a HEAP...
August 29, 2018 at 4:02 pm
Dumb moment on my part, try: August 29, 2018 at 3:49 pm
Casting things to CHAR will force a specific length, so something a bit like:Select
Cast(trans As Char(3))
+Cast(Number As Char(3))
+Cast(Loan As Char(6))
+Space(41-13+1)
+Cast(Interest As Char(7))
August 29, 2018 at 3:40 pm
It looks like you just lost track of which bits are supposed to be in the dynamic sql (hence you're writing out the CASE expression instead of evaluating it)
August 29, 2018 at 3:25 pm
Just write it as a piece of conditional logic, i.e.WHERE (@ExMaxBC = 0 AND Active = 1) OR MaxBC > @ExMaxBC
August 29, 2018 at 3:19 pm
Viewing 15 posts - 121 through 135 (of 325 total)