Viewing 15 posts - 706 through 720 (of 1,415 total)
CELKO (10/5/2016)
This is the fragment of the table
No, this is not a table at all. A table has to have a key.
From what I've experienced, a table in...
October 10, 2016 at 11:30 am
If you are inserting one "lock" row at a time, you can do the insert and then the latest lockid would be available with "scope_identity()". If you are not inserting...
October 10, 2016 at 11:16 am
nilknarf (9/22/2016)
select * from IDCARD where try_cast( barcode_comp as int ) is null;
and still get
Msg 245, Level 16, State 1, Line 1
Conversion failed when converting the varchar...
September 22, 2016 at 1:10 pm
I have reformatted this post to help SSC's team of experts assist the OP
(case when [ID_NUM] like 'AE%' then CONVERT([varchar],(111210000000.)+CONVERT([int],substring([ID_NUM],(3),(20)),(0)),(0))+right(CONVERT([varchar],CONVERT([int],substring(CONVERT([varchar],(((((case when CONVERT([int],substring(CONVERT([varchar],(111210000000.)+CONVERT([int],substring([ID_NUM],(3),(20)),(0)),(0)),(12),(1)),(0))*(2)>(9) then CONVERT([int],substring(CONVERT([varchar],(111210000000.)+CONVERT([int],substring([ID_NUM],(3),(20)),(0)),(0)),(12),(1)),(0))*(2)-(9) else CONVERT([int],substring(CONVERT([varchar],(111210000000.)+CONVERT([int],substring([ID_NUM],(3),(20)),(0)),(0)),(12),(1)),(0))*(2) end+case when CONVERT([int],substring(CONVERT([varchar],(111210000000.)+CONVERT([int],substring([ID_NUM],(3),(20)),(0)),(0)),(10),(1)),(0))*(2)>(9) then...
September 22, 2016 at 12:42 pm
Eric M Russell (9/22/2016)
September 22, 2016 at 12:39 pm
Steve Jones - SSC Editor (9/8/2016)
There have been a...
September 8, 2016 at 7:41 am
Jeff Moden (9/7/2016)
patrickmcginnis59 10839 (9/7/2016)
Jeff Moden (9/2/2016)
A lot of people will answer yes or no on this without clarifying and it could be a trick question. In my...
September 7, 2016 at 11:35 am
Jeff Moden (9/2/2016)
A lot of people will answer yes or no on this without clarifying and it could be a trick question. In my mind and in the...
September 7, 2016 at 9:04 am
ThomasRushton (7/27/2016)
Welcome to SQLServerCentral.com
A Microsoft SQL Server community of 1,863,531 DBAs, developers and SQL Server users
The spam does make me wonder how many of those 1.86M DBAs...
August 31, 2016 at 1:08 pm
Cloud7 (3/4/2015)
How do we know that our data are extracted from the service in the event of termination of cooperation?Is is a big mistake!
If you are worried about saving your...
August 31, 2016 at 6:34 am
Looks like you're getting there. Check out these queries! And as always, test the heck out of your work in a development environment! Don't forget databases that might have multiple...
August 25, 2016 at 8:11 am
GilaMonster (8/20/2016)
http://source.entelect.co.za/why-is-this-upsert-code-broken
Ok interesting that they suggested (partially) what I was thinking would work but with the XLOCK and HOLDLOCK hints. So is that suggesting that having the criteria in the...
August 20, 2016 at 12:53 pm
While I'm not sure about your stack of insert and update statements, maybe you could take advantage of the already existing "where" clause.
for instance:
insert into MySchema.MyCasesTable
...
August 20, 2016 at 7:43 am
David.Poole (8/8/2016)
When someone says "ok so what do I do?" We're pretty vague
That pretty much sums it up for me. No-one sets out to write bad software. ...
August 8, 2016 at 6:46 am
Viewing 15 posts - 706 through 720 (of 1,415 total)