Viewing 15 posts - 5,476 through 5,490 (of 8,731 total)
That's a lot to process without some sample data. You're doing procedural programming in SQL which is optimized for declarative programming. You seem to have more code than what you...
November 27, 2014 at 4:07 pm
antony-688446 (11/27/2014)
And I think SQL Server Central has more non-USA subscribers than USA. Asia is quite a big place....
I'm not sure about that. Forum posts get tend to decrease significantly...
November 27, 2014 at 3:49 pm
aaron.reese (11/27/2014)
CREATE TABLE dbo.DateConvert(
DB2Date AS VARCHAR(10),
CalendarDate AS DATE
)
INSERT INTO...
November 27, 2014 at 9:18 am
aaron.reese (11/27/2014)
that is a cool way to concatenate strings, much easier than FORXML and STUFF()
There are some problems with this method. For example, the order is not guaranteed and you...
November 27, 2014 at 8:56 am
Koen Verbeeck (11/27/2014)
kaspencer (11/27/2014)
November 27, 2014 at 8:49 am
Coalesce returns the first non-null value from a series of values in the same row. These values need to be included as parameters delimited by commas. eg. COALESCE(value1, value2, value3,...
November 27, 2014 at 8:37 am
Jeff Moden (11/25/2014)
How about it folks? There a 1.7 million of you out there. Can we get a few more votes on this important subject?...
November 26, 2014 at 7:09 pm
Those articles refer mainly to production dbs which need to be in excellent shape. I'm not recommending it but you might use it to generate light copies for development/testing environments....
November 26, 2014 at 6:49 pm
Jeff Moden (11/26/2014)
Jeff Moden (11/26/2014)
SQLRNNR (11/26/2014)
I decided to down vote this one. Everybody should just go to Oracle where they already have the functionality. (devil)😛
BWAAAA-HAAAAA-HAAAA!!!! I thought...
November 26, 2014 at 10:49 am
I really don't like this question because it could create wrong assumptions.
As Hugo said, option 1 could be faster if there are large possibilities of a fifth row existing....
November 26, 2014 at 10:39 am
Jampandu (11/26/2014)
we are planning to use above series as primary key instead of identity column.
I didn't read this part. Using this as a primary key won't give you any benefits....
November 26, 2014 at 10:05 am
I would keep an identity with seed and increment of 5. Based on that identity column, you could calculate the needed sequence. Note that with this formula, you can only...
November 26, 2014 at 9:50 am
I would still use an arithmetic formula instead of string manipulation.
CREATE FUNCTION ConvertLegacyIntToDate
(
@LegacyDate int
)
RETURNS TABLE WITH SCHEMABINDING AS
RETURN
SELECT CAST( CAST( 19000000 + oldDate AS CHAR(8)) AS date) as NewDate
Or I...
November 26, 2014 at 8:36 am
Date columns should use one of the available date data types (date, datetime, datetime2, etc). Those data types don't care about format. Different formats for input and display can be...
November 25, 2014 at 2:54 pm
Here's one possible solution. It creates a way to make a self join with the previous reportrundate for each invoiceno and invoicepart. Feel free to ask any questions that you...
November 25, 2014 at 2:30 pm
Viewing 15 posts - 5,476 through 5,490 (of 8,731 total)