[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

wawang

12/24/2013 7:09:00 PM

&#12450;&#12513;&#12522;&#12459;&#12398;&#12491;&#12517;&#12540;&#12520;&#12540;&#12463;&#12539;&#12479;&#12452;&#12512;&#12474;&#32025;&#12398;&#38651;&#23376;&#29256;&#12399; <a href=http://www.taradistrict.org/>&#12467;&#12540;&a... &#36001;&#24067;</a> &#65298;&#65305;&#26085;&#12289;&#12450;&#12513;&#12522;&#12459;&#25919;&#24220;&#12364;&#27665;&#38291;&#12398;&#33322;&#31354;&#20250;&#31038;&#12395;&#23550;&#12375;&#12289;&#20013; <a href=http://www.taradistrict.org... &#36001;&#24067;</a> &#22269;&#12398;&#35373;&#23450;&#12375;&#12383;&#38450;&#31354;&#35672;&#21029;&#22287;&#20869;&#12434;&#39131;&#34892;&#12377;&#12427;&#38555;&#12289;&#12300;&#20107;&#21069;&#36890;&#22577;&#12434;&#32681;&#21209;&#20184;&#12369;&#12427;&#12301;&#12392;&#12377;&#12427; <a href=http://www.taradistrict.org/>http://www.taradistrict.org/... &#20013;&#22269;&#24403;&#23616;&#12395;&#24467;&#12358;&#12424;&#12358;&#25351;&#23566; <a href=http://www.dwgbc.org/>&#12465;&#12452;&#12488;&#12473;&#12506;&#12540;&a... &#36001;&#24067;</a> &#12377;&#12427;&#26041;&#37341;&#12434;&#22266;&#12417;&#12383;&#12392;&#22577;&#12376;&#12414;&#12375;&#12383;&#12290;&#12371;&#12428;&#12395;&#12388;&#12356;&#12390;&#12289;&#12450;&#12513;&#12522;&#12459;&#25919;&#24220;&#39640;&#23448;&#12399;&#12289;&#27665;&#38291;&#20154;&#12434; <a href=http://www.dwgbc.org/>&#12465;&#12452;&#12488;&#12473;&#12506;&#12540;&a... &#12450;&#12454;&#12488;&#12524;&#12483;&#12488;</a> &#24059;&#12365;&#36796;&#12416;&#20107;&#25925;&#12420;&#19981;&#28204;&#12398;&#20107; <a href=http://www.dwgbc.org/>http://www.dwgbc.org/... &#24907;&#12364;&#36215;&#12365;&#12427;&#12371;&#12392;&#12434;&#25080;&#24565;&#12375;&#12383;&#12383;&#12417;&#12392;&#12375;&#12390;&#12356;&#12414;&#12377;&#12290;&#19968;&#26041;&#12289;&#12450;&#12513;&#12522;&#12459;&#22269;&#21209;&#30465;&#12399;&#12289;&#12371;&#12358;&#12375;&#12383;&#26041; <a href=http://www.pumabasketball.c... &#12502;&#12540;&#12484;</a> &#37341;&#12399;&#12300;&#20013;&#22269;&#25919;&#24220;&#12364;&#30330;&#34920;&#12375;&#12383;&#20107;&#21069;&#36890;&#22577;&#12398;&#32681; <a href=http://www.pumabasketball.c... &#12502;&#12540;&#12484;</a> &#21209;&#20184;&#12369;&#12394;&#12393;&#12434;&#12450;&#12513;&#12522;&#12459;&#25919;&#24220;&#12392;&#12375;&#12390;&#25215;&#35582;&#12375;&#12383;&#12392;&#12356;&#12358;&#24847;&#21619;&#12391;&#12399;&#12394;&#12356;&#12301;&#12392;&#24375; <a href=http://www.pumabasketball.com/>http://www.pumabasketball.com/... &#35519;&#12375;&#12390;&#12356;&#12414;&#12377;&#12290;&#12414;&#12383;&#12289;&#22269;&#38450;&#32207;&#30465;&#12398;&#22577;&#36947;&#23448;&#12418;&#65298;&#65305;&#26085;&#12289;&#22768;&#26126;&#12434;&#30330;&#34920;&#12375;&#12289; <a href=http://www.eventranger.... &#12502;&#12540;&#12484;</a> &#12300;&#12450;&#12513;&#12522;&#12459;&#12399;&#12371;&#12398;&#31354;&#22495;&#12391;&#36890;&#24120;&#36890;&#12426;&#36557;&#20107;&#27963;&#21205;&#12434;&#34892;&#12387;&#12390;&#12362;&#12426;&#12289;&#20170;&#24460;&#12418;&#32154;&#12369;&#12390;&#12356;&#12367;&#12301;&#12392;&#12398;&#35469;&#35672;&#12434;&#31034;&#12375;&#12390;&#12356;&#12414;&#12377;&#12290;&#20013;&#22269;&#12364; <a href=http://www.eventranger.... &#12502;&#12540;&#12484;</a> &#23574;&#38307;&#35576;&#23798;&#65288;&#20013;&#22269;&#21517;&#12539;&#37347;&#39770;&#23798;&#65289;&#19978;&#31354;&#21608;&#36794;&#12434;&#21547;&#12416;&#26481;&#12471;&#12490;&#28023;&#12395;&#38450;&#31354;&#35672;&#21029;&#22287;&#12434;&#35373;&#23450;&#12375;&#12383;&#21839; <a href=http://www.eventranger.cc/>http://www.eventranger.cc/... &#38988;&#12434;&#12417;&#12368;&#12426;&#12289;&#65313;&#65326;&#65313;&#12507;&#12540;&#12523;&#12487;&#12451;&#12531;&#12464;&#12473;&#65308;9202.T&#65310;&#12392;&#26085;&#26412;&#33322;&#31354;&#65288;&#65322;&#65313;&#65324;&#65289;&#65308;9201.T&#65310;&#12399;&#20013;&#22269;&#24403;&#23616;&#12408;&#12398;&#39131;&#34892;&#35336;&#30011;&#25552;&#20986;&#12434;&#65298;&#65303;&#26085;&#12363;&#12425;&#21462;&#12426;&#27490;&#12417;&#12383;&#12290;

&#21516;&#31354;&#22495;&#20869;&#12434;&#36890;&#36942;&#12377;&#12427;&#36335;&#32218;&#12399;&#65322;&#65313;&#65324;&#12364;&#65297;&#26085;&#65297;&#65296;&#20415;&#12289;&#65313;&#65326;&#65313;&#12399;&#21516;&#65298;&#65303;&#20415;&#65288;&#36008; <a href=http://www.folk-note.com/>&#12450;&a... &#12502;&#12540;&#12484;</a> &#29289;&#20415;&#21547;&#12416;&#65289;&#12354;&#12427;&#12364;&#12289;&#12371;&#12428;&#12414;&#12391;&#12398;&#12392;&#12371;&#12429;&#20104;&#23450;&#36890;&#12426;&#36939;&#33322;&#12375;&#12390;&#12356;&#12427;&#12290;&#65322;&#65313;&#65324;&#12392;&#65313;&#65326;&#65313;&#12399;&#12289;&#20013;&#22269;&#25919;&#24220;&#12364;&#65298;&#65299;&#26085;&#12395;&#38450;&#31354;&#35672;&#21029;&#22287;&#12434;&#35373;&#23450;&#12375;&#12383;&#12371;&#12392;&#12434; <a href=http://www.folk-note.com/>ugg&#12502;&#12540;&#12484;&#28608;&#23433;... &#21463;&#12369;&#12289;&#21488;&#28286;&#12420;&#39321;&#28207;&#34892;&#12365;&#12394;&#12393;&#21516;&#31354;&#22495;&#20869;&#12434;&#36939; <a href=http://www.folk-note.com/>http://www.folk-note.com/... &#33322;&#12377;&#12427;&#33322;&#31354;&#27231;&#12395;&#12388;&#12356;&#12390;&#12289;&#20013;&#22269;&#24403;&#23616;&#12395;&#39131;&#34892;&#35336;&#30011;&#12398;&#25552;&#20986;&#12434;&#22987;&#12417;&#12390;&#12356;&#12383;&#12290;&#26085;&#26412;&#20596;&#12364;&#65298;&#65301;&#26085;&#12289;&#20013;&#22269;&#12398;&#31243;&#27704;&#33775;&#39376;&#26085;&#22823;&#20351;&#12395;&#25239;&#35696; <a href=http://www.biocoat-art.biz/>&#12450;&a... &#12502;&#12540;&#12484;</a> &#12375;&#12289;&#12371;&#12428;&#12414;&#12391;&#12398;&#12523;&#12540;&#12523;&#12434;&#36939;&#29992; <a href=http://www.biocoat-art.biz/>&#12450;&a... &#12502;&#12540;&#12484; &#12450;&#12454;&#12488;&#12524;&#12483;&#12488;</a> &#12375;&#12390;&#12356;&#12367;&#12392;&#36890;&#21578;&#12375;&#12383;&#12392;&#12371;&#12429;&#12289;&#31243;&#39376;&#26085;&#22823;&#20351;&#12399;&#12300;&#27665;&#38291;&#33322;&#31354;&#27231;&#12434;&#21547;&#12417; <a href=http://www.biocoat-art.biz/>http://www.biocoat-art.biz/... &#12390;&#39131;&#34892;&#12398;&#33258;&#30001;&#12434; <a href=http://www.18minutewash.com/>&#12467;&#12540;&a... &#12496;&#12483;&#12464;</a> &#22952;&#12370;&#12427;&#12418;&#12398;&#12391;&#12399;&#12394;&#12356;&#12301;&#12392;&#22238;&#31572;&#12290;&#22269;&#20132;&#30465;&#12399;&#39376;&#26085;&#22823;&#20351;&#12398;&#30330;&#35328;&#12363;&#12425;&#23433;&#20840;&#12364;&#25285;&#20445;&#12373;&#12428;&#12383;&#12392;&#21028;&#26029;&#12375;&#12289;&#65298;&#65302;&#26085;&#12289;&#39131;&#34892;&#35336; <a href=http://www.18minutewash.com/>&#12467;&#12540;&a... &#12496;&#12483;&#12464;</a> &#30011;&#12434;&#20013;&#22269;&#24403;&#23616;&#12395;&#25552;&#20986;&#12375;&#12394;&#12356;&#12424;&#12358;&#22269;&#20869;&#33322;&#31354;&#21508;&#31038;&#12408;&#35201;&#35531;&#12375;&#12383;&#12290;&#22269;&#20869;&#33322;&#31354;&#20250;&#31038;&#12391;&#27083;&#25104;&#12377;&#12427;&#26989;&#30028;&#22243;&#20307;&#12391;&#23550;&#24540;&#12434;&#26908;&#35342;&#12375;&#12383;&#32080;&#26524;&#12289;&#22269;&#12398;&#35201;&#35531;&#12395; <a href=http://www.18minutewash.com/>http://www.18minutewash.com/... &#24467;&#12356;&#12289;&#39131;&#34892;&#35336;&#30011;&#12398;&#25552;&#20986;&#12434;&#21462;&#12426; <a href=http://www.abqfamily.org/>&#12514;&#12531;&#12463;&#12524;&#12540;&a... &#24215;&#33303;</a> &#27490;&#12417;&#12427;&#12371;&#12392;&#12395;&#12394;&#12387;&#12383;&#12290;&#65322;&#65313;&#65324;&#12289;&#65313;&#65326;&#65313;&#12399;&#65298;&#65303;&#26085;&#12289;&#33258;&#31038;&#12454;&#12455;&#12502;&#12469;&#12452;&#12488;&#12395;&#32076; <a href=http://www.abqfamily.org/>&#12514;&#12531;&#12463;&#12524;&#12540;&a... &#24215;&#33303;</a> &#32239;&#12434;&#32057;&#20171;&#12290;&#38306;&#20418;&#24403;&#23616;&#12392;&#36899;&#25658;&#12375;&#12394;&#12364;&#12425;&#23433; <a href=http://www.abqfamily.org/>http://www.abqfamily.org/... &#20840;&#36939;&#33322;&#12395;&#21162;&#12417;&#12427;&#12392;&#12375;&#12390;&#12356;&#12427;&#12290;
3 Answers

v-wywang

5/30/2007 9:56:00 AM

0

Dear Roger,
Cool! Thanks for your clarify.

Apparent, the last part in the insert command return a new ID. Thus,
DataRowAction.Chang even fires.

>As that line was not present, the program worked well on single user , but
when more than one user
>were working with the program, the ids generated were the same for more
than one line and it caused
>primary key violations.

The solution for this issue is that you can set the AutoINcrementValue = -1
and the seed to -1. This way, the value submitted to the db will always be
negative, so the DB will always step in and assign it. Those way two
versions of the app won't ever step on each other. Actually, there are
many posts discussed on this issue. The best way is seting both
AutoINcrementValue and seed to -1.

Hope this helps. Please let me know if you meet any futher issue or have
anything unclear. I'm glad to assist you.
Have a great day,
Sincerely,
Wen Yuan.

Roger Tranchez

5/30/2007 1:17:00 PM

0

Hello, WenYuan ...

You said:

> The solution for this issue is that you can set the AutoINcrementValue = -1
> and the seed to -1

I think it is not necessary as long as my update command does not transmit
the id to the database because the database creates it an I retrieve it later:

INSERT INTO PETICIONS_TRESORERIA_LIQUIDACIONS (codtreballador, persona,
data, descripcio, import, liquidat) VALUES
(@codtreballador,@persona,@data,@descripcio,@import,@liquidat) SET @id
=(select scope_identity()) ...

Also, my application cannot crash for duplicate keys now...

Thank you,


Roger Tranchez
..NET 2005 and DB developer


"WenYuan Wang [MSFT]" wrote:

> Dear Roger,
> Cool! Thanks for your clarify.
>
> Apparent, the last part in the insert command return a new ID. Thus,
> DataRowAction.Chang even fires.
>
> >As that line was not present, the program worked well on single user , but
> when more than one user
> >were working with the program, the ids generated were the same for more
> than one line and it caused
> >primary key violations.
>
> The solution for this issue is that you can set the AutoINcrementValue = -1
> and the seed to -1. This way, the value submitted to the db will always be
> negative, so the DB will always step in and assign it. Those way two
> versions of the app won't ever step on each other. Actually, there are
> many posts discussed on this issue. The best way is seting both
> AutoINcrementValue and seed to -1.
>
> Hope this helps. Please let me know if you meet any futher issue or have
> anything unclear. I'm glad to assist you.
> Have a great day,
> Sincerely,
> Wen Yuan.
>
>

v-wywang

5/31/2007 8:05:00 AM

0

Hi Roger

Aha, it seems like you have figured out the root cause and everything works
fine on your side now. I'm glad to hear such nice news. We are truly glad
to assist. If you meet any further issue in ADO.net, please also feel free
to let us know. I'm standing by. Have a great day, thanks.

Sincerely,
Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.