Viewing 15 posts - 421 through 435 (of 670 total)
Rich,
unfortunately, there is no way of removing the indentity characteristic from the column. Catalog updates are not supported
February 9, 2011 at 9:16 am
Sean Lange (2/9/2011)
ummm that is the same example i already posted. 😀
Sorry about that, I posted it before I got your update. I'll edit mine out
February 9, 2011 at 9:08 am
The answer is it depends. I don't have your table layouts or sample data, so I don't know what the specifics are. What you can do is take...
February 9, 2011 at 9:08 am
*** Edited *** same example as Sean's
February 9, 2011 at 9:03 am
First of all, why would you want to drop all of the identity columns in the database? These are usually use as surrogate keys amd there may be other...
February 9, 2011 at 8:32 am
Try something like this:
declare @transaction table (WorkerID tinyint, TransactionDate smalldatetime, laborRate decimal (6,2))
insert into @transaction
select 1, '2011-01-03', 100 union all
select 1, '2011-01-04', 105 union all
select 1, '2011-01-05', 95 union...
February 9, 2011 at 8:26 am
The data you provided doesn't match your expected results. Try this:
declare @Propertymaster table(ID int,
PROPERTY_STATE char(2),
PROPERTY_COUNTY varchar(15))
insert into @Propertymaster
select 770885,'PA','Philadelphia' union all
select 778460,'AK','Anchorage' union all
select 778461,'CO','Douglas' union...
February 9, 2011 at 8:15 am
From BOL: Groups a selected set of rows into a set of summary rows by the values of one or more columns or expressions. One row is returned for each...
February 9, 2011 at 8:03 am
Jim,
without the table layouts and sample data, it's hard to give you code that will work. With that said, it looks like you are getting the Max(LaborRateID) instead of...
February 9, 2011 at 7:58 am
I don't have a 2000 test environment, but you can try this using XML
create table #T (
ID int ,
Val varchar(100));
insert into #T (ID, Val)
select 1 ,'A'...
January 28, 2011 at 11:02 am
Here's a generic dynamic sql statement to generate your pivot table. Keep in mind that if the list of distinct names is long, this will take a while to...
January 28, 2011 at 9:49 am
NOTE: The first code is much more efficient. Just based on the sample data the first had a scan count of 2 and logical reads of 2, while...
January 28, 2011 at 9:39 am
what have you tried? I won't provide the code right away, since it doesn't look like you've given it a try. Depending on the size of the table,...
January 28, 2011 at 7:08 am
wrong post
January 28, 2011 at 6:24 am
do you have any examples of what you are doing? It's easier if you provide code, sample data and expected results instead of some ambiguous urgent request
January 28, 2011 at 6:22 am
Viewing 15 posts - 421 through 435 (of 670 total)