« first day (645 days earlier)      last day (4519 days later) » 

00:14
0
Q: Does my DB table violate DB normalization?

user1715607Hello guys i am developing a emulator for a game and my item table look like this -- ---------------------------- -- Table structure for `items` -- ---------------------------- DROP TABLE IF EXISTS `items`; CREATE TABLE `items` ( `guid` int(11) NOT NULL, `template` int(11) NOT NULL, `quan...

</Troll>
That's not very nice, Phil ;)
 
6 hours later…
06:24
0
A: How to encrypt columns in postgresql?

Chris TraversLook into the pgcrypto addon. Note that db-level cryptography is tricky. You have key management issues that are not trivial to resolve. In general if you really need this, it is probably worth hiring a professional consultant to do some code review and another one to provide some design revie...

an the joys of db-level encryption.....
 
1 hour later…
07:38
I'll have a stab at that Oracle PCI-DSS question when I get back from work. There really is no need to fork out megabucks for Oracle Transparent Data Encryption. Such a rip-off
waiting impatiently
it's just another field I'm not experienced in the least bit
 
3 hours later…
10:19
How to reach -10 votes in warp speed
-12
Q: Write 463 in hexadecimal?

user43564Why is 463 in hexadecimal 0x1CF? What are the values of the letters? Is there a reference to that I can look at to see the values of these letters?

That calm down comment refers to what?
The OP had commented to that answer with "you idiot. I searched and it wasn't there" and one more comment which included the (word?) "nub"
11:07
@ypercube hahahaha that is good. A cool answer might be to explain how to convert 463 to binary and then how to convert binary to hex.
ANd I can't understand why that answer was deleted.
Ah, it was made a comment, OK.
wondering if a question could get any more vague:
0
A: What are the pitfalls when storing data retrieved from an api

Chris TraversAdvice: Normalize data stored. Consider carefully and figure out your write model. For orders, can you overwrite? do you need to mark superceded and append? The above are generic data entry pieces of advice, but regarding automated application to application interfaces, you have the issu...

and yet the question was upvoted to 4
gbn
gbn
12:22
@ypercube Wow. Just wow.
any luck with jobs?
12:44
@ypercube the answer is also worth mentioning
13:06
if you've got a window function like count(1) over (order by col1, col2) - does ANSI the ANSI standard say the rows will come out ordered by col1,col2?
gbn
gbn
@rfusca AFAIK, no
Only the outermost order by works
i didn't think so, but this teradata training guy is saying that the standard says that...and it just seems unusual
@gbn right
gbn
gbn
Common sense: what if you have 2 window fucntions in the same query with different order bys?
I've done it
especially with PARTITION BY clause too
@gbn ditto, he's got some logic that says which applies
gbn
gbn
tell him to STFU. I said he's talking bollocks
;-)
@rfusca what is it then?
also, only, ANSI 92 is available freely.
13:11
mornings
gbn
gbn
(last time i checked)
howdy
@rfusca which means he can't prove it either
oh and just found out that teradata data goes to shit with different partitions and order bys lol
@gbn ya, basically, you can't have different PARTITION BYs and different ORDER BYs...or just does random stuff
in teradata
@rfusca Really?, is there a sqlfiddle so I can try that?
@Lamak ya, i don't think there's a teradata fiddle
bummer
13:24
ya
gbn
gbn
@rfusca bummer. useful for combined aggregates in one query
@gbn i know
there's several things in teradata like that
really advanced in some things, but way behind non MPP db's in 'standard' stuff
@gbn: Not the official ones but for anyone brave enough: Various SQL material from Wisicorp
any of you with nexus' recommend a good case? or rather, have any regrets on ones you bought? :D
gbn
gbn
@DTest don't use a case for my plain samsung galaxy nexus
13:33
sorry, nexus7 (google tablet)
@gbn but good to know! i'm too clumsy not to use a case
@DTest i can later tonight
i love my case
@rfusca great thanks
14:01
anyone know why an sp would randomly start failing, but running the commands by hand works fine?
@DForck42 what error message are you getting?
@DForck42 What do you mean start failing, exactly, what happens?
sorry, was afk for a minute
this is what i get:
"Msg 8180, Level 16, State 1, Line 1
Statement(s) could not be prepared.
Msg 4104, Level 16, State 1, Line 1
The multi-part identifier "Tbl1017.ResourceNTAccount" could not be bound.
Msg 4104, Level 16, State 1, Line 1
The multi-part identifier "Tbl1009.ProjectName" could not be bound.
Msg 4104, Level 16, State 1, Line 1
The multi-part identifier "Tbl1005.ActualWorkBillable" could not be bound.
Msg 4104, Level 16, State 1, Line 1
The multi-part identifier "Tbl1005.TimeByDay" could not be bound."
the sp, staging.LoadHours, is executed once an hour as part of an ssis package. it was working just fine until 10:15 pm last night. From what i can tell nothing in the underlying database structure has changed.
@DForck42: Do you have both JOIN syntax and commas , in your FROM clauses?
14:17
@ypercube the specific part that's failing, as far as i can tell, is this: textsnip.com/04f92a
@DForck42 And you say that if you run that outside the sp, it works?, on the same database?, same user and schema?
@DForck42 On that snip I don't see the tables Tbl1017 or Tbl1009
@Lamak actually, running just the select works just fine. if i create the temp table and try and insert into that, it fails
@DForck42 "as far as you can tell" - can you cut chunks off the sp until you find out 100% for sure which bit is failing?
ah
same error message?
So, that query also fails if you try to insert the data on the temp table, but works if you don't?
@JackDouglas yes
14:21
really?
@Lamak yes
can we see the part where you create that temp table?
@Lamak sure. it's nothing special
create table #temp (PK_emID int, PK_prID int, PK_taID int, thDate datetime, thHours decimal(18,5) )
And the error you get when you try to insert that select on the temp table is the one you posted?, I don't see how that might happen
@JackDouglas done. it is that part of the sp
14:32
@DForck42 do you get the same error inserting dummy data into an identical temp table?
@JackDouglas there are three seperate insert statements for the temp table, only that query fails
yeah, this has to have something to do with the plan cache, or something
changing the query to only insert the column PK_emID into the temp table works just fine...
it may well be using a different plan for the insert than a standalone select
does a CTAS work?
@JackDouglas CTAS?
aka insert into a real new table
rather than a temp table
hang on, that is a real table?
oh no, it isn't - try that...
ok, created a table called dbo.deleteme with the same structure as the temp table, set the insert to that instead of the temp table and... exact same thing
Msg 8180, Level 16, State 1, Line 1
Statement(s) could not be prepared.
Msg 4104, Level 16, State 1, Line 1
The multi-part identifier "Tbl1017.ResourceNTAccount" could not be bound.
Msg 4104, Level 16, State 1, Line 1
The multi-part identifier "Tbl1009.ProjectName" could not be bound.
Msg 4104, Level 16, State 1, Line 1
The multi-part identifier "Tbl1005.ActualWorkBillable" could not be bound.
Msg 4104, Level 16, State 1, Line 1
The multi-part identifier "Tbl1005.TimeByDay" could not be bound.
14:39
@DForck42 - Also, what happens if you don't previously create your temp table like that, and just do SELECT .... INTO #temp FROM ....
@Lamak heh, same thing
@DForck42 but the SELECT works just fine, right?, so weird
@Lamak yes. hance why i'm baffeled by this
@DForck42 next step strip the query down join by join I guess - I think you may be hitting a bug you need to work around
whats your exact version?
Could the on right(res.ResourceNTAccount,len(res.ResourceNTAccount)-8)=ei.emUserName be causing this?
14:48
ok, this is just weird
if i remove either one, or both, fo these, it works: inner join ph.Tasks ta
on tt.taskname=ta.taTaskName
inner join ph.Employees ei
on right(res.ResourceNTAccount,len(res.ResourceNTAccount)-8)=ei.emUserName
BUT, removing the ph.Projects join does not make it work
brb
ok, i'm back
I think that ON the same as: ON ei.emUserName LIKE '%'+ResourceNTAccount
an you try that?
@ypercube fails just the same
@DForck42 Are there only tables there?, or are you using some views also?
@Lamak just tables
@ypercube it's not exactly the same
12 mins ago, by Jack Douglas
whats your exact version?
14:57
@JackDouglas didn't see that. prpt1 (where the sp is): Microsoft SQL Server 2008 (SP2) - 10.0.4000.0 (X64) Sep 16 2010 19:43:16 Copyright (c) 1988-2008 Microsoft Corporation Enterprise Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) (VM)
psql2 (where the data is coming from that's failing): Microsoft SQL Server 2008 R2 (RTM) - 10.50.1600.1 (X64) Apr 2 2010 15:48:46 Copyright (c) Microsoft Corporation Standard Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)
morning all
@bluefeet mornin
@DForck42 there's a SP2 for 2008R2
just found out that the mothership offshores all of their SQL Server DBA work.
and SP3 for 2008, if I'm reading correctly
if MS support is anything like Oracle's the first question the will ask will be whether you are fully patched
15:02
@DForck42 triggers?
FKs?
@swasheck none on the tables in the query
@swasheck they are all set
@jack @phil do you know or how can I find out, if CUBE and such is under the normal license or requires the OLAP license?
@rfusca you mean the SQL query
CUBE, ROLLUP, GROUPING SETS etc?
they are all standard
@JackDouglas yup. putting in a request to get these updated. we'll see how long that takes.
btw, thank you everyone for trying to help, i really appreciate it
2
@JackDouglas yup, thanks
 
2 hours later…
16:51
This has been flagged as 'not an answer':
0
A: Trouble Creating AG Listener: The WSFC Cluster could not bring the Network Name resource

rob wilkinsonI also encountered the same problem where I couldn't add the listener as part of the initial setup and also couldn't add it after either. I was configuring AG's between 2 VM's in the lab and had set up 2 NICs on different subnets on each server. When I disabled the 2nd NICs on each, I was able to...

Can anyone edit it into shape? If not what shall we do with it?
ok, so, i reworked the query a little bit. I turned the dbo.MSP_EpmResource section into a subquery that just selects the ResourceUID and ResourceNTAccount, but also strips off everything so that in my join clause on the ph.Employees table i only have to do res.SerouceNTAccount=ei.EMUserName
and it's working now
@DForck42 great stuff
though I'd be cautious - the plan might change from run to run
hence the bug might come back and bite you another time
 
1 hour later…
18:23
@JackDouglas yeah. i've got work orders put in to update all of the servers, but the guy that usually does those is out with a new kid, so it's gonna be a bit. This should hold for now though crosses fingers
19:17
@JackDouglas Done
 
2 hours later…
21:36
@Lamak: WHere did that came from? You are the only editor there :)
@ypercube I know
It was a rethorical question
;-)
I just don't understand why would I add an UPDATE there
and it's only wednesday
it's Thursday here
oh, well, that may explain what happened then
22:28
Oh, I'd love if we could tag questions anonymously. "NF violation" and "I'm smarter than the optimizer" would be cool.
5
0
Q: Combine a Table Hints INDEX and FORCESEEK with Two Joins Not On PK

BlamSee first query below. Can NOT combine table hint Index and forceseek with two joins and the joins are not on the PK. How to make the first query compile? Interesting - if just one join or the other then can combine index and forceseek hints - if the index is the PK then can combine 2 joins an...

22:54
@ypercube Also needs a tag
Yeah. Why my bike doesn't run if I remove both tires?
(the NF-violation was meant not for this, but for other questions)

« first day (645 days earlier)      last day (4519 days later) »