Viewing 15 posts - 286 through 300 (of 1,192 total)
Edvard Korsbæk (10/23/2014)
Gazareth (10/23/2014)
SELECT
SUM(CAST(CASE WHEN A.posetive_negative = 1 AND (B.dutyrosternorm = 0 OR A.Timesum = 1)...
October 23, 2014 at 5:20 am
SUM supports BIGINTs, so just cast the case statements into BIGINT, something like this:
SELECT
SUM(CAST(CASE WHEN A.posetive_negative = 1 AND (B.dutyrosternorm = 0 OR A.Timesum = 1) AND A.Counterbalance_date BETWEEN...
October 23, 2014 at 5:00 am
rodjkidd (10/22/2014)
Talk of barbecues and England reminds me of a party I went to years ago, the barbecue was one guy flipping burgers while another held an umbrella over the...
October 22, 2014 at 10:46 am
Hi Drew,
I get where you're coming from, but those ISNULLs are to prevent incorrect results, as NULL + 5 + NULL = NULL. They won't prevent divide by zero errors.
My...
October 21, 2014 at 7:20 am
Jeff Moden (10/20/2014)
Gazareth (10/20/2014)
It's a bit more work to insert into a SQL table but thought you could...
October 21, 2014 at 5:39 am
Yep, just use a UNC path - \\servername\... instead of the local path.
It's a bit more work to insert into a SQL table but thought you could do a speed...
October 20, 2014 at 8:50 am
In Powershell it should be something like this - just change 'c:\' to the top folder you want to query.
Set-Location 'c:\'
Get-ChildItem -Recurse | Where-Object {$_.PSIsContainer -eq $false} | Select-Object Name,...
October 20, 2014 at 4:53 am
spaghettidba (10/17/2014)
If this is an import project, SSIS might be what you're looking for
Seconded.
October 17, 2014 at 8:23 am
Haven't seen it myself, but plugging your search into google does give me the 'we're sorry...' page
Played about with the search term & it's the nnnnnnnn..nnnnnnnnnn bit that google seems...
October 17, 2014 at 7:26 am
What error is showing on your colleague's machine when he tries to connect?
October 17, 2014 at 6:32 am
Not sure you can do this directly in T-SQL without using xp_cmdshell.
I'd highly recommend investigating Powershell as a solution.
Note if there's a lot of files it's likely to be slow...
October 17, 2014 at 6:01 am
Hi Jako,
Your third line has a typo - $smo.datases instead of $smo.databases which probably doesn't help.
Try calling the Alter method at the database level rather than the file level:
$smo.databases["TempDB"].Alter()
Remember you'll...
October 17, 2014 at 5:30 am
Talking to yourself again Gaz? 😉
Gaz
October 16, 2014 at 7:09 am
Luis Cazares (10/14/2014)
October 15, 2014 at 4:23 am
Viewing 15 posts - 286 through 300 (of 1,192 total)