« first day (2012 days earlier)      last day (2306 days later) » 
03:00 - 15:0015:00 - 23:00

3:11 AM
Hi I have a problem in Insert Select in SQL:
An explicit value for the identity column in table can only be specified when a column list is used and IDENTITY_INSERT is ON SQL Server
I also searched it in SO. The problem is I don't understand what it means.
the link that I've read: https://stackoverflow.com/questions/2005437/an-explicit-value-for-the-identity-column-in-table-can-only-be-specified-when-a-c

The best answer or liked answer:
SET IDENTITY_INSERT tableA ON
You have to make a column list for your INSERT statement:

INSERT Into tableA ([id], [c2], [c3], [c4], [c5] )
SELECT [id], [c2], [c3], [c4], [c5] FROM tableB
not like "INSERT Into tableA SELECT ........"

SET IDENTITY_INSERT tableA OFF
What I wanted to do is to Insert Select all table1 to table2_backup w/o calling all the columns manually
Hello?
 
 
2 hours later…
4:48 AM
.
 
5:07 AM
so
@EarvinNillCastillo Select is not needed
its probably what is throwing you off
So insert= add to table
select = read from table
what are you trying todo?
move one table to another?
 
@MoonEater916 yes
im creating script to transfer saved data to backup table
 
double check the structure of the tables
ensure all the field types match up
 
i create select table
the diff is the backup tb is saying that id isn't showing it as PK
 
Ya it sounds like your tables are not identical
@EarvinNillCastillo try DESCRIBE name_of_table;
and compare
 
5:26 AM
while the orig table is id showing PK
 
Pk is very important in databases.
Every table needs one
and should probably have a SK also
 
then i use alter table add prim key id. it says success.
 
try it again
additionaly it may be better if you get a GUI for your database
so you can see and even prebuild commands
theres afew like phpmyadmin
 
already changed the id to PK
An explicit value for the identity column in table 'ZKAccess.dbo.acc_monitor_log' can only be specified when a column list is used and IDENTITY_INSERT is ON.
 
make the identity column in 'ZKAccess.dbo.acc_monitor_log a regular (non-identity)
 
5:37 AM
Hi @MoonEater916, i tried manual insert select col and it works. but not insert select *
how to make that a regular non identity
 
remove the auto-increment property
 
morning folks
 
6:01 AM
@MoonEater916 let met tryt
 
6:56 AM
good morning
 
7:07 AM
Can someone take a look at my question here pls: stackoverflow.com/questions/47345320/…
 
Hi @HéctorÁlvarez
@user8124685 separate the issue
into 2 single issues
 
how?
 
how to move information from one table into anther
then do that twice
Use 2 inserts queries
also i need to see the table structure
it sounds like your combining 2 tables that are just not combinable
also @user8124685 you work for Gapinc also?
 
is it not possible to select something like:
SELECT c.c_title, p.p_name,
(SELECT id FROM `content` WHERE `content.title` like c.c_title) as content_parent
FROM `products` AS p
JOIN category_products AS c ON p.id = c.p_id
catgory and prodct are combined
but not content
no
content value is this but I dont know how do this in the same querie (SELECT id FROM content WHERE content.title like c.c_title) as content_parent
 
okay explain what you want to achieve
without all the noise
what fields do you need
 
7:18 AM
content.parent
 
why does LEFT JOIN not work?
the first answer looks legit
 
Also please show us DESCRIBE c.c_title; DESCRIBE p.p_name;
 
because for the field content.parent i cant select the id of the category from table category. the category are already filled inside content with different id. so I need select the id of the category from table content where the title is same as table category
I have an example in my question how the data will be filled in side my table after inserting data
 
@user8124685 For me i use the Admin GUI. Dump the table. edit and insert back in.
@HéctorÁlvarez knows more probably.
 
SELECT c.c_title, p.p_name
FROM `products` AS p
JOIN category_products AS c ON p.id = c.p_id this query gets me the right data
but for the content.parent I want (SELECT id FROM content WHERE content.title like c.c_title) as content_parent
I am trying to do this with on query
 
7:31 AM
SELECT c.c_title, p.p_name, content.id
FROM `products` AS p
JOIN category_products AS c ON p.id = c.p_id
INNER JOIN content ON content.title = c.c_title
why doesn't this work?
what error are you getting?
 
@HéctorÁlvarez i think you solved it
 
/me is surprised this works now...
I have been tricked...
 
7:54 AM
@MoonEater916 Do you mean the INNER JOIN?
 
I have no issues
i think you ment user8124685
 
nope, I'm wondering what surprises you
 
oh your italics
your don't ever use IRC do you?
wow
English is bad for me tonight.
You never used IRC did you?
 
8:12 AM
yes I did @MoonEater916
 
morning
 
@AndyK o/
 
depends on your definition of morning .....
\o
 
hey guys
 
@MoonEater916 oh you mean text formatting with inline markdown?
 
8:28 AM
ya
 
does this work?
 
oh it does... i don't know why there are 2 symbols to do the same action... looks stupid
*Maybe for this?*
 
one is italics and the other one is somthing else
 
nah, both are italics, but they seem to stack to output one character or the other
* and _
 
 
1 hour later…
9:54 AM
damn
I maybe too much of Rafael Nadal in spirit
battling every point
 
damn right
I guess nobody knows why the hell I'm getting a type mismatch
when I pass an array to a function as parameter in VB6
> VB6
*hiss*
 
vb = devil
 
True
I would whine about the lack of documentation, but it actually makes sense that there is none when it's been dead for 20 years
 
no doc here as well
 
logged on to a new bronze badge today :D
 
10:07 AM
@WhatsThePoint +1
 
cheers!
i keep trying to answer stuff, but people don't vote anything up
they don't mark their questions as answered and disappear
 
i got the revival badge
 
@HéctorÁlvarez it takes time and patience to answer
patience as there are a lot of peep who asked and leave
 
@AndyK I'm in no rush here, I'm not hunting for points or anything like that, just trying to help others
 
been upvoted twice in 2 days for this stackoverflow.com/questions/40445258/…
it was at 1 the last week
 
10:15 AM
sorry for being afk. I'll be around when im comfortable in this environment.
new*
office*
 
@ARr0w take all the time you need mate
 
thanks.
 
@ARr0w job 1st
 
@AndyK appreciated bro <3
 
fam and job 1st
the rest can come as a second
 
War
10:21 AM
morning all
i am now @Sami
 
@War \o
 
back from training
want to break somthing in frustration
just kidding
 
War
hi @AndyK
 
@War how was the weekend?
 
@MoonEater916 I saw the pre-edit, less controversial now, but better previously IMO
@War o/
 
10:25 AM
Just feel like if I put comments about arson that the NSA will come asking questions
 
@HéctorÁlvarez this is the addictive side of the site, the hunts for the points. That's why I've put the site on hold, until I feel more knowledgeable and until I've started a few projects
 
cause a panic
@AndyK have you tried xbox achievements... those are way worse...
 
why is the download process for sql developer so shitty?
 
@MoonEater916 I've stopped game playing a few years ago because it was addictive and not related to anything real
 
@AndyK well you apply technology to games. Starcraft 2 was highly pleasing and educational because you can make your own mini games.
 
10:29 AM
You clearly haven't tried Dark Souls... Oh look a new weapon with a different moveset! I'm going to make a new twink that rolls this with a perfect min/max PVP-meta-level, and a matching name
 
the platform uses a version of C++
 
"Sunbro #213872313"
 
@HéctorÁlvarez who knew abuse felt so damn good
 
@War I have a question
I think you can load for example an SQLit database as resource in your app
 
Theres a app?
 
10:37 AM
But can you use that db without extract it to hard drive?
 
@MoonEater916 abuse?
 
DarkSouls = Self Abuse
 
@AndyK Question closed
 
@MoonEater916 you are god damn right
 
@Sami can you give some context about what you were refering to, please?
 
10:42 AM
@AndyK Any applicaion has a resources
 
@Sami yes...? please elaborate
 
So, is it possible to load db into the resources, and use it at runtime, the app will load the db in memory, not in hard drive
 
@Sami it is a c# question, am I correct?
 
@Sami i seem to remember there was a clear text localized version of a DB that handled Sql Calls
terribly unpopular
wish i could remember the name
 
@AndyK not exactly, but it's about non-persistent memory files
try to use the db without etract it to the hard drive
 
10:46 AM
you guys aren't talking about noSQL, are you
 
@Sami I don't know much about it. I can't help you on that one
for architecture, Hector and War will probably suiter for helping you
 
@AndyK Thanks man, at least you try to help and that is great
 
@Sami just trying ;)
 
;)
@HéctorÁlvarez You work with C# right?
 
@Sami that question is really hard to answer
that's my intention, yes
myworkspace is a conflux of Microsoft technlogies, ranging from C# to VB6
VB6
*hiss*
I broke the formatter :)
 
10:53 AM
Ok, let's say you have an ms-access or sqlite db, you load it to the .exe as a resource,
and you want to use this db without extract it to the hard drive, just directly load it in memory work on it
 
what's your platform
 
Windows
 
right, for an access database you either distribute the database file (mdb, accdb, whatever format) separately, and point to it from your program, or include it in your solution unpacked and use it directly
SQL can be embedded in your application, which is what you want (I assume)
 
I think the issue with the sql services
 
you can get that through nuget and it will do all the hard stuff for you
 
11:00 AM
@Sami your trying to be able to post a DB from like a usb stick?
where it can interface with a active program on the machine without services or install?
 
It's not about install
 
War
@AndyK not too bad mate .. .spent saturday playing factorio with Ashley and sunday watching TV mostly
 
just keep it in ram?
@war
@War Factorio is my crack
game is too addictive
 
War
@Sami yes I believe you can ... it's sort of designed to be a "light weight" implementation that you can push with your app
@MoonEater916 I know right!!! ... after the first 16 hours in a day you start to think ... should I really still be sat here?
 
Mybe MemoryStream can do it
 
War
11:06 AM
@Sami SQL Lite behaves just like connecting to an access db file
you just creat the file then it creates the "server" in process
 
@MoonEater916 Oh jesus I kept myself from buying that crap. Saw this guy who made a TV with transistors and wanted one too, spent 3 days playing the demo a long while ago, my brain was drooling... Awesome game, I'm telling you, I hate Minecraft but love that game!
 
You should play with me.
haha
 
@Sami did the link help you?
 
we can let our programmer minds interact and eventually hate eachother as we have logical issues with production
and blame eachother for updates
 
@MoonEater916 I have too many cracks right now to buy Factorio
 
11:09 AM
i have no time
i work a 12 hour shift 5 days a week
 
@MoonEater916 Dark Souls, Bloodborne, Diablo 2, Warcraft 3, the games I've bought but never cleared, I evne bought the $30 humble bundle!
 
Nah
 
I never touch MMOs. they are built on the idea of waisting time...
Almost time for me to go home
gitters
 
War
11:37 AM
I don't mind MMO's ... as long as they aren't pricey or require you to play a lot to cover the cost of playing like eve
I also hate it when they become pay to win
I put in a donation for the up and coming Dual Universe though ... it's like Eve meets Minecraft
so I get a free lifetime subscription to it
well worth it IMO
given how much I love space games that are free / cheap and love minecraft I think i'll enjoy it
planning to spend a few hours a day if possible streaming it
 
Like i said i work a 12 hour shift 5 days a week i go for high quality short play over the long haul
 
War
I still used to get in gmaing time when I was training for my career in IT
I did 10 to 12 hours at McDonalds, studied for at least 4 to 6 hours then did at least an hour of gaming
did that 6 days a week and died every sunday
I did that for about 3 years
now I can train on the job so I save a few hours there but also do have a life with the other half to be concerned with
but at least my working hours are usually 8 to 10 hours per day
 
I work in IT
they just purposely keep it short staffed. I guess they figure its cheaper to give tons of overtime than to higher someone.
Alot of times its mandatory
 
War
don't take the overtime for a while ... they will offer you more money to do it
that'll work to a point then they will get someone else on to help
 
I cant its mandatory
 
War
11:43 AM
mandatory overtime in your contract?
where do you live?
 
oh yes
California
 
War
ah ... if you were in the EU you could opt out at any point in time of any hours over 48
 
lol in the EU i would 2 week of vacation and more sick leave
 
War
US companies don't seem to believe in employees rights
@MoonEater916 4 weeks
 
here i get 2 weeks of vacation but i get rejected when i request it
 
War
11:45 AM
legally even in the US you are entitled to that
they can't refuse reasonable requests
I had that problem ... the way to deal with US bosses is to take a lot of sick leave
they forward it to HR and you then you have to have meetings that document why you're off
state the reason as "stress"
doctors will usually support you at any point if you need a note
legally they can't even fire you for that
and I believe the US has a similar 1 week minimum like in the EU
meaning you can self certify for a whole week whenever you want
 
well they will give me vacation time... but they chose when
 
War
and unless they can prove you're just blagging it they can't fire you
 
and it doesnt match up with anything i need
erm...want
 
War
sounds like you need to start looking for a new job
and get better at contract negotiations
I push like hell for decent contracts
in this job I brought my codebase with me and I retain all rights to it
so I get paid to work on my own codebase
but I don't get a lot of holiday ... only 20 days a year or something
 
pay is too good
 
War
11:49 AM
but a few months back I got told off (HR had a right go at me for not taking any hol in 2 years)
 
work is strait forward
fortune 500 company
im trying to switch into a different department
we will see how that goes
 
War
I wouldn't work for a fortune 500 company for any less than £150k a year
those guys are proper slave drivers
 
Well i like the structure
small companies manager will be disorganized and their mood and style has a big impact.
and your responsibilities are everywhere
 
War
that sounds like my job
 
I hated that
 
War
11:56 AM
I'm the architect, dev team lead, systems admin, network admin, 3rd line support, senior dev
just a few of the roles I do
 
boss would come down pissed off blame me for not doing something that I never done before.
 
War
given time i plan to hand off each of these roles to underlings
 
at my job if a boss ever did that it would be a big issue and management will set things strait
 
War
when I joined I took over from 1 junior dev ... now I have my own team
that's 2 years
 
@War You were sleepy yesterday?
When I ping you
 
War
11:58 AM
give it another 2 to 4 years I reckon I start to get a bit more hands off the dev side and just manage more
 
Anyone knows about a hex editor that autorefreshes files I'm looking at when modified from an external source?
I tried VSCode hexdump, but it's not the charm I'm looking for
 
War
@Sami yeh everyone needs a down day every now and then
 
2 min before i can go home!!!
GAH!!!
I WANT THIS SHIFT TO END
 
@War Spend 26H without sleeping those days
 
War
@Sami dude ... try sleeping next to a heavily pregnant woman with gall stones and SPD
I get about 3 hours sleep a night i'f i'm lucky (on a really good day)
something tells me after the baby drops it aint gonna change much either
 
12:00 PM
I sleep like a rock from all the work
i wake up with bruses where she was kicking me
 
War
yeh that's the only reason I get any sleep at all @MoonEater916
if I worked less i'd probably not be tired enough to get anything lol
maybe the odd power nap
 
I need full uninterrupted sleep
otherwise i dont work well
Coding is out of the question also
 
@War It's just for those days, cause I'm busy very very busy, after that I'll take a long long night :D
 
cleans up desk
 
War
@Sami I get about 1 long night a month ... a long night being about 5 hours sleep
I feel so refreshed after that
 
12:03 PM
Allright
good night everyone
@HéctorÁlvarez
 
LOL, I keep waking until 06:00 AM then sleep until 11:00 AM
(12 days like this)
 
War
lucky you
 
but the last 3 days, I never go to sleep
 
War
now you're just bragging
 
Ther is no bragging in this @War
It's stupid thing, is good?
Sure it's not good
I hate Algeria's interruptions.
They call themselve Algerian communications but the real is Algeria's interruptions
 
War
12:17 PM
lol ... sounds like British Twatish-coms
they rarely provide "unlimited broadband" that they love to advertise
usually provide "extremely limited by their impressively bad backbone" broadband
never met a happy BT customer
EVER
 
Yeah, they just steal our money for a bad services
 
12:36 PM
@MoonEater916 Good night, it's still 13:36 here in Spain
 
@HéctorÁlvarez Same here
 
 
2 hours later…
2:55 PM
hey @AndyK might be getting tasked on a python project at work
 
@WhatsThePoint woot for you
 
unix job scheduling
 
@WhatsThePoint your boss is smart
 
well if they see the power of python then they must be
 
crontabs anyone?
 
2:58 PM
only constraint is that its for a project to go hand in hand with my apprenticeship project, and wether or not that has to be in C# or not
 
03:00 - 15:0015:00 - 23:00

« first day (2012 days earlier)      last day (2306 days later) »