Viewing 15 posts - 556 through 570 (of 902 total)
anthony.green (11/9/2012)
Jason-299789 (11/9/2012)
Eg.
SELECT distinct
pd.description
, convert(varchar(10),convert(datetime, pe.enc_timestamp, 103),103) enc_timestamp
, pd.icd9cm_code_id
, dsm.description
,...
November 9, 2012 at 5:00 am
Can you post the DDL and Sample data as well as expected results as this will help us help you with a solution.
November 9, 2012 at 4:54 am
Anthony's solution should work, or you could simply alias the converted field and reference that in the Order By
Eg.
SELECT distinct
pd.description
, convert(varchar(10),convert(datetime, pe.enc_timestamp, 103),103) enc_timestamp
, pd.icd9cm_code_id
, dsm.description
, pd.note
FROM...
November 9, 2012 at 4:52 am
I personally use a script to generate the drop constraints, this usually works and only needs tweaking
Select
'Alter Table ['+s.name+'].['+o.name+'] Drop Constraint ' +c.name
from sys.default_constraints c
JOIN sys.objects o on...
November 9, 2012 at 2:58 am
why are you doing this?
Are you looking to rename all the constraints or to change them?
November 9, 2012 at 12:45 am
The Dixie Flatline (11/9/2012)
select convert(varchar(6),convert(date,'01 Jan 1980'),12)
select convert(varchar(6),convert(date,'01 Jan 2000'),12)
The inner CONVERT function turns your string into a DATE character type. ...
November 9, 2012 at 12:36 am
You have some serious problems and the person responsible for dropping the century part of the date should be taken down a dark ally. (I've been reading too many of...
November 9, 2012 at 12:24 am
When I ran this in ssms
SELECT DATEADD(s, DATEDIFF(s, '1970-01-01 00:00:00', 1352325814), '1970-01-01 00:00:00')
I get an Arithmetic Overflow error reported.
And I cant for the life of me figure...
November 8, 2012 at 8:51 am
My personal favorite for SSAS is SQL SErver 2008 Analysis Services Unleashed,
This one goes into the architecture as well as basic cube design best principles, about half way it starts...
November 8, 2012 at 8:39 am
Personally, I would have the developers build release scripts for applying to the Test environment then hand them over with release notes to the DBA.
He then handles the release process,...
November 8, 2012 at 8:30 am
I tend to use -1 with Unknown as the description, and occasionally also use -2 with Undefined at Source.
The two are very different especially when loading data from 2...
November 8, 2012 at 8:21 am
but if you built a bridge table between the Address and Name that just contained the Surrogate keys from either side, effectively creating a Tuple wouldnt that work?
EG
CREATE TABLE...
November 8, 2012 at 8:16 am
Could you not use a Bridge/Factless Fact table to accomplish this rather than a straightforward snowflake type join?
Then with a Many to Many relationship through the Bridge/factless fact you should...
November 8, 2012 at 6:19 am
Hi Kavita,
Sorry the CTE didnt help on the client site due to having SQL 2000 installed, just file it away for future reference, and beat the client with a big...
November 8, 2012 at 4:46 am
Can you post the DDL for Site, OrderHeader and OrderDetail as we might then understand the problem a little better.
What is the process for entering data into the OrderHeader...
November 7, 2012 at 5:57 am
Viewing 15 posts - 556 through 570 (of 902 total)