« first day (1834 days earlier)      last day (2484 days later) » 

user7912927
5:21 AM
gud mrng guys :)
 
5:54 AM
mornign guys
 
 
1 hour later…
7:06 AM
Morning
 
morning fellas, quick question - done a bit of googling and the msdn documents are confusing yesterdays dinner out of me.

-- retrieve the previously inserted customfieldviewid
declare @CustomFieldViewId as int;

insert into CustomFieldView([Name], CustomFieldOwnerId) Output @CustomFieldViewId
values ('Default', @OwnerId);

I do an insert within a trigger and all I'm trying to do is get the identity id saved to the variable to use in another insert further down the trigger.

This isn't working as the identity (or the variable that i try to save it to) is coming up as null.
https://stackoverflow.com/questions/10999396/how-do-i-use-an-insert-statements-output-clause-to-get-the-identity-value

Is the using a temporary table the only solution perhaps?
 
 
2 hours later…
9:02 AM
Morning guys
 
@Shaneis Morning
 
War
morning
 
hey @JARRRRG, that question has been answered, you still stuck?
 
Morning
 
Morning @War, @Sami, @CrashBandicoot
 
9:03 AM
@CrashBandicoot Morning
 
How's life @Shaneis @Sami @War?
 
Answer some questions :)
 
War
paid off the last of my other halfs engagement ring this morning
it was so pricey I decided to finance a chunk of it
 
Congrats:)
 
War
paying that off means the bank will lend us more now too (for mortgage stuff)
I found out that £30 a month in debt equates to £5,000 in max lend
 
9:06 AM
Sweet, congrats @War
 
300500
 
That's how much it cost?
 
War
Anyone else here use spotify?
 
3 mil?
 
Yeah
 
War
9:08 AM
eh?
 
Just joking
 
No, I'm talking here about mine
 
I'm against taking loans, unless you're 100% sure you can pay it back
 
War
In the C# chat room one of the guys suggested starting up a shared playlist
 
@War Nice idea
 
War
9:08 AM
we did that for a while ... it some pretty epic tunes on it
 
What are your top 3 songs atm?
 
War
Thought we could try it if enough people here use spotify
 
I'm going to bow myself out of that one, I'd just spam you all with Justin Bieber to piss you off :)
 
War
Imagine Dragons: Radioactive would definitely be in there :)
I love that track
 
9:09 AM
@Shaneis I actually like Justin Bieber's recent tracks
 
@War Yes!
 
War
and for some reason i'm in to Jessie J: Flashlight
which is odd
 
@CrashBandicoot yeah his last few have been catchy unfortunately
 
Have you guys heard of Section Boyz?
@Shaneis "unfortunately" xD
 
War
nope
 
9:11 AM
@CrashBandicoot haha at least I'm honest in my not liking ;)
also, nope.
 
I like Section Boyz - Trapping ain't dead
From 1:56 minutes
 
Yeah , John Wick Part 2
I like this film
 
@Shaneis - hey buddy just got an alert about your question to me earlier.
Yeah that's all sorted, working perfectly. Thank you however!
@War o/
 
9:27 AM
@JARRRRG glad to hear it man!
 
War
9:53 AM
@JARRRRG hi :)
 
 
1 hour later…
War
10:57 AM
why do i get all the hard problems
now i'm scanning build roots for assemblies and dynamically constructing appdomains to execute tests on
 
@War "You want something done, give it to a busy person"
 
War
Working with dependency graphs is horrible
 
@War working with developers are worse :P
 
War
not gonna deny that
we often get in to dev because humans make less sense to us than computers
 
@War @Shaneis youtu.be/Vt4Tq89R8u0
Hellow guys!
 
War
11:13 AM
@ARr0w quality tune :)
 
hey @ARr0w
 
what's up guys?
 
not a bad song man
 
Hi
Anyone keen to give some headsup I'm 40minutes before people arrive at work and I just realized the backup I'm restoring seems to take forever because postgresql is configured to replicate in stream
looks like the database I'm restoring is being replicated god knows where and instead of restoring in 2minutes. It takes forever.... How do I turn this off
Can I just kill the process
well looks like my backup finished.. except the size of the restored data is 400mb less than what's in the database
 
War
11:30 AM
eh?
 
11:41 AM
client's call. going. later
 
may be it's just indexes or something like that that just got flushed
it's probably a few things that take a while to load but probably huge block of data takes less time to load in the database, as far as I understand, wal is supposed to log all data before being sent so if it logs a lot of tiny chunk it will get slow because of the latency of replication but big block of data can be transfered fast and latency is less of a problem
 
Hi all
 
user7912927
11:58 AM
hey
 
user7912927
@LoïcFaure-Lacroix In the SQL Server Management Studio, to find out details of the active transaction, execute following command
DBCC opentran()
 
12:18 PM
@Nias hardly going to help with postgresql
 
 
5 hours later…
4:58 PM
Hello, I have a rather short question. I want to dynamically order a result from my database according to a evaluation with case when. My try looks like this but it does not even produce an error if I want to order by a non existing column....
pastebin.com/h4nUZYc7
Any help would ne so nice
 
5:48 PM
@JRsz This should work...
select * from entries order by 2 desc,
	(case when (1=1) then 4 else 7 end) desc;
 
unfortunatly it does not. Using the following query does not order it by the 4th column...
select * from entries order by 2 desc, (case when (1=1) then 4 end);
But I have found a solution which is not exactly like this but it works.
 
What does the working SQL look like?
 
select * from entries order by 2 desc, (case when (1=1) then time end);
Apparently I can not use numbers
the problem is in my case I do not know the columnname
On thath note, do you know of a way of retrieving the column names from a table?
They are NOT in information_schame
I checked that
 
6:04 PM
@Alex Hey man o/
 
How about this? SHOW columns FROM your-table;
Hey Sami
How's it going?
 
I have tried this, but encountered this problem: stackoverflow.com/questions/44190723/…
which I could not solve
 
@Alex Perfect ;)
 
:)
SHOW columns FROM entries;
^ does that work?
 
it works but I need it as a string. To give you a little context: I am doing a blind sql injection for my university and therefore am very limited to what I can do
 
6:07 PM
 
Did someone answer your Q in Mysql room?
 
there is no one there
 
TehShrike is there , but
If I remember , he don't like pings
 
So this doesn't work?
select group_concat(column_name separator ', ')
from information_schema.columns
where table_name = 'mytable'
group by table_name
 
the query works, but I can not parse the result into a string directly in the query
And the problem with the second is that there is no information about this table in the information_schema database
 
6:11 PM
Are you fetching the data from PHP?
 
I only know the database and table name because I found a filename inside the information_schame which gives me the database and table
no
 
You mean array of string? no?
 
only a sql statement which I can modify by modifying a get parameter in my browser
no, one single array
are you familiar with blind sql injection?
 
About all I can say is looking at some cheat sheet, like this one: pentestmonkey.net/cheat-sheet/sql-injection/…
 
$names=array();
while ($row = mysql_fetch_row($result)) $names[]=$row[0];
mysql_free_result($result);
something like that?
 
6:13 PM
I have no PHP access
 
You can use something like curl to run an HTTP post/get: stackoverflow.com/questions/12655129/…
 
this is also not applicable in my situation
 
You may have to research it with some hackers then
 
I guess so. Dont know where to go though
but thank you for your efforts :)
 
Can you not first fetch the data, see what the column names are? Using select * from entries
Sure
 
6:21 PM
where exactly can I extract the column names inside the query?
I thought about this but could not figure that paert out
 
6:39 PM
@Alex I'm not very quick :(
 
6:50 PM
No worries
 
@Alex Now , I'm very quick :) - stackoverflow.com/a/44207526/6426692
 
+1 good answer
 
Thanx man ^_^
 
:) you're welcome
 
Do you know how I could make something like this work? select field from (show columns from entries);
 
6:56 PM
Seems like just me & you here @Alex
 
mysql> show columns from entries;
+---------+-------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+---------+-------------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| name | varchar(45) | YES | | NULL | |
| content | text | YES | | NULL | |
| time | int(11) | YES | | NULL | |
+---------+-------------+------+-----+---------+----------------+
 
Yeah, others must be off today
 
with this beeing the output from the subquery?
 
Well @Alex , I want to say:
ramadan kareem to all muslims
 
:)
Happy Ramadan to all our Muslim friends
5
 
6:58 PM
^ that's good :)
@JRsz He is there
in MySQL and relational databases, 1 min ago, by TehShrike
what are those numbers (2, 4, 7) supposed to represent?
Ping him now
 
Yup, best chance to get an answer
 
Thank you, I wrote my problem there :)
 
7:15 PM
@JRsz Wellcome , hope you got an answer
 
I hope so too, I am getting really deperate.
Tried everything I can think of
And thank you for notifying me
really appreciate this!
 
7:29 PM
SO is not good today
 
not really
 
Mybe
 
With some questions, I have great answers on SO. Others, not so much
It's almost like the right person needs to see it. Things get lost in the traffic
 
Mybe
@Alex Sometimes you post great answer
and you get 0 up-v
 
Yup. Seen that
If someone provides an answer to my question, I always upvote... whether I end up accepting it or not
When accepting an answer, I upvote it too
 
7:39 PM
See also that most of users see the rep of the poster first
 
That shouldn't matter. In fact, those with the lowest reps have sometimes provided my best answers
 
Yeah
but the most users have another point of view
Well , I'm in SO for 11 months
and I can't even invite a user or create a chat room
 
Keep at it. It'll get better
 
I'm fine here with my friends :)
 
We've got a cool group of people
 
7:43 PM
Yeah \o/
@Alex Should we celebrate?
Let's party
 
Let's throw a party so loud the folks from the other rooms bang on the walls for us to quiet down!
 
8:08 PM
MySQL query syntax for inserting data in a table where foreign key constraint is there..I mean for example say a table A(a_id(pk),name) and B(b_id, name,a_id(fk))..can i insert the a_id in table B automatically? any trigger for this?
 
8:23 PM
@DebasishChoudhury, is this what you're trying to do? stackoverflow.com/questions/30670207/…
 
@Alex Nvrm
 
No worries
 
@Alex Good
 
8:49 PM
@Alex lol how are you doing - stackoverflow.com/q/44209912/6426692
The first line in the question was : "How are you doing?"
 
9:05 PM
Hehehe!
 
@Alex hehehe yeah everyone can answer that Q
 
Easy rep points
 
The best answer with +3845 was , "Are you my doctor?" bhahaha
@Alex What time is it?
 
It's so late, I'm heading home!
Have a great weekend, Sami
 
@Alex Thnx my friend , Cya , take care when you go to home ;).
 
War
9:22 PM
@Sami is that even English?
Ok i guess the room is dead for the weekend now lol
Have a good weekend everyone
 
9:35 PM
Hey, anyone here?
 
9:54 PM
@ShubhamRajdhar
what do you want
 

« first day (1834 days earlier)      last day (2484 days later) »