Viewing 15 posts - 6,196 through 6,210 (of 15,381 total)
Not exactly sure what you are trying to do here but I will take a stab at it.
Your insert stored proc needs to have 2 insert statements.
insert Profiles
insert [Role]
I have...
November 26, 2013 at 7:52 am
You have been around here long enough to know we need more details to work with here.
To do this I would suspect you need to first split those values using...
November 26, 2013 at 7:43 am
It looks like you are trying to create a comma separated list of values? Check out this article. http://www.sqlservercentral.com/articles/71700/%5B/url%5D
November 26, 2013 at 7:38 am
Thanks Jeff that is awesome!!!!
November 26, 2013 at 7:30 am
Pretty sparse on details but I am pretty sure something like this will work.
select top 1 max(ID), max(FID), HC, vc, Max(sN), MAX(updateddate)
from SomeTable
group by hc, vc
If that doesn't work, please...
November 25, 2013 at 2:00 pm
Eliezer Pimentel (11/25/2013)
November 25, 2013 at 1:53 pm
Jeff Moden (11/25/2013)
Sean Lange (11/25/2013)
Kurt W. Zimmerman (11/25/2013)
Jeff Moden (11/24/2013)
Neither. I use dynamic SQL with two TOPs in dynamic SQL and get returns in less than 500 ms ...
November 25, 2013 at 10:39 am
Trainee SQL (11/25/2013)
Yeah in fact the code isn't gives me any progress could you help me in single code regarding how to compare the Tvp data with table data
user defined...
November 25, 2013 at 9:56 am
Nice easy question to start the week. I am rather shocked that 16% (101 people) at the time of this posting missed this one.
November 25, 2013 at 8:28 am
Trainee SQL (11/25/2013)
Actually my problem was how to compare the row data in the Type(TVP) with the row data of my table country_lkp
I don't see anything wrong with what you...
November 25, 2013 at 8:27 am
You can easily use a computed column for this.
create table #Something
(
CIDADE varchar(50),
VALOR int,
RJ_MES_JANEIRO as case when CIDADE = 'RIO DE JANEIRO' then Valor else 0 end
)
insert #Something
select 'RIO DE JANEIRO',...
November 25, 2013 at 8:09 am
Excellent job posting ddl. What I don't quite understand is where the issue is. I would recommend going away from the type of storage you are using with countryid. You...
November 25, 2013 at 8:04 am
KcV (11/25/2013)
Now a days i am converting my .net code in SP as much as possible. i am converting all sql queries to SPs to save data. all most all...
November 25, 2013 at 7:58 am
Kurt W. Zimmerman (11/25/2013)
Jeff Moden (11/24/2013)
Neither. I use dynamic SQL with two TOPs in dynamic SQL and get returns in less than 500 ms from a million row...
November 25, 2013 at 7:54 am
There is nowhere near enough information for much more than a wild guess. You need to provide a lot more details about the source file, the target tables and the...
November 25, 2013 at 7:40 am
Viewing 15 posts - 6,196 through 6,210 (of 15,381 total)