Viewing 15 posts - 11,431 through 11,445 (of 15,381 total)
jitendra.padhiyar (7/3/2012)
Sean Lange
Do you mean an identity? You can make an identity the primary key but just being an identity does not work because an identity can have duplicates.
That...
July 3, 2012 at 2:02 pm
No need for that. Here is some code that works perfectly in SQL.
;with Details(ChargeDescription, Charge, Weight)
as
(
select 'wrong address', 5.00, 2 union all
select 'wrong address', 5.00, 3 union all
select 'wrong weight',...
July 3, 2012 at 1:50 pm
jitendra.padhiyar (7/3/2012)
Sean Lange (7/3/2012)
July 3, 2012 at 1:41 pm
It makes sense if you think about it. You are talking about pushing modified rows contents to another database. Without a primary key how do you know which row is...
July 3, 2012 at 1:13 pm
SQLNube (7/3/2012)
July 3, 2012 at 1:03 pm
OK let's try it this way.
Here is the code you posted and I made the change to original insert to ExternalSource.
-- ===================
-- Source table & data
-- ===================
IF NOT EXISTS (SELECT...
July 3, 2012 at 12:21 pm
sqldba_newbie (7/3/2012)
Steve Jones - SSC Editor (7/3/2012)
July 3, 2012 at 11:14 am
That certainly helps but it is awfully confusing. You seem to have a mix between an EAV type of structure and an adjacency list. I have to admit that this...
July 3, 2012 at 11:05 am
I compiled all the separate query windows into a single larger script to make things easier. Please take a look and see if this is correct.
-- ===================
-- Source table &...
July 3, 2012 at 11:03 am
ryno-544382 (7/3/2012)
If you look at the source table (ExternalSource) you will see there are two Floor2 under locname2.
Now, a simple distinct will only return one Floor2 I.e.
Floor1
Floor2
However, based on the...
July 3, 2012 at 10:59 am
Hi and welcome to SSC! This is certainly possible but not without some details from your end. We need ddl, sample data and desired output. See the first link in...
July 3, 2012 at 10:15 am
This is called a cross tab query. Take a look at the links in my signature. Unless you know how many columns each group will have you are looking at...
July 3, 2012 at 10:10 am
This should get you started.
http://thavash.wordpress.com/2007/10/02/date-formatting-in-reporting-services-list-of-format-codes/%5B/url%5D
I have a table with fields containing time stored as float.
You would probably be better off if you can change this to an appropriate datatype, although...
July 3, 2012 at 10:06 am
Start with this from Gail. http://www.sqlservercentral.com/articles/SQLServerCentral/66909/%5B/url%5D
July 3, 2012 at 10:00 am
Viewing 15 posts - 11,431 through 11,445 (of 15,381 total)