Viewing 15 posts - 5,716 through 5,730 (of 7,616 total)
Jeff Moden (10/14/2014)
It'll be interesting when an actual vendor name also contains dashes. 😛
In that case, presumably we would search first for a digit only, "%0-9%", then do the search...
October 14, 2014 at 8:14 am
SELECT Fulltext, Contract2,
Substring(Contract2, Contract3_Start, Contract3_Length) AS Contract3
FROM (
SELECT Fulltext From [Sonae].[dbo].[Images_Local]
) AS test_data
cross apply (
SELECT Substring(FullText, PATINDEX('%Contrato%',FullText), 50) as Contract2
) as...
October 13, 2014 at 3:45 pm
SELECT Fulltext, Contract2,
Substring(Contract2, Contract3_Start, Contract3_Length) AS Contract3
FROM (
SELECT 'Contrato Promocional 2010-241772 Descrico CDR TD' AS Fulltext UNION ALL
...
October 13, 2014 at 10:59 am
CELKO (10/10/2014)
Identity is as good, convenient, practical way of assigning something like a sequential Order#.
No it is not; we have the ANSI/ISO Standard CREATE SEQUENCE now....
October 13, 2014 at 8:54 am
CELKO (10/10/2014)
Again, who the hell has used tape for anything but backups in 20 years?! At least join the 1990s if you can't all the way to 2014!
...
October 10, 2014 at 1:40 pm
CELKO (10/10/2014)
Finally, we use lowercase for data types, because in SQL Server type names are case sensitive in many contexts. We do not want to cause unexpected future errors...
October 10, 2014 at 1:35 pm
CELKO (10/9/2014)
A competent professional in any trade would do it right without any special effort. Does a doctor think about stitches, or does he just do them? He would also...
October 9, 2014 at 6:52 pm
CELKO (10/9/2014)
1. You have many ISO-11179 violations. Do you have only one Employee, as you said? The correct name is “Personnel”; an abstract set of elements.
2. A procedure is...
October 9, 2014 at 1:05 pm
lawson2305 (10/9/2014)
Scott I wanted to add what does multiple data files provide? Is there a read on this somewhere?
Yes, plenty of people have investigated and written on this. ...
October 9, 2014 at 9:43 am
lawson2305 (10/8/2014)
October 8, 2014 at 1:10 pm
joepacelli (10/8/2014)
it's my identity column which is returning 0
I also tried Ident_current('dbo.jobid')
This returns the correct value
But, according to MSDN site
Be cautious about using IDENT_CURRENT...
October 8, 2014 at 1:03 pm
Luis Cazares (10/8/2014)
ScottPletcher (10/8/2014)
October 8, 2014 at 12:59 pm
Eirikur Eiriksson (10/3/2014)
datediff(day, convert(varchar,MANUFACTUREDDATE, 101),convert(varchar,getdate(), 103))
,it is comparing MM/DD/YYYY to DD/MM/YYYY, the only thing the convert does in the query is setting the format of the output...
October 8, 2014 at 11:29 am
@@ROWCOUNT must be captured immediately after the SQL statement or its value gets reset.
However, since you've added an OUTPUT clause, you can get the number of rows affected form that...
October 8, 2014 at 11:23 am
Hmm, seems to be that code would list the same customer, the "first" one, over and over rather than listing every individual customer in the state. Are you actually...
October 8, 2014 at 11:16 am
Viewing 15 posts - 5,716 through 5,730 (of 7,616 total)