Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2008, 05:37 PM
Marcus
 
Posts: n/a
Default Connect to AS/400 from .NET

Hello!

I'm trying to write a VB.NET program that connects to a AS/400 Server.
I've tried almost everything, but it will not connect.
I've tried to set up a DSN using the Client Access ODBC-driver
(v8.00.04.08) but with no result. I've also tried a DSN-less
connection.
From VB.NET i'm using oleDbConnection to create the connection. If I
don't supply a provider in the connection string, the program hangs
saying that a provider is requiered.
I have tried using different providers IBMDA400, MSDASQL, DB2OLEDB.
Always with the same result: An unhandled exception of type
'System.InvalidOperationException' occurred in system.data.dll

Additional information: The 'IBMDA400' provider is not registered on
the local machine.

How do I register the IBMDA400 provider? Is there an other way to
connect? Is it possible to make a DSN-less connection?

Thanks!
Marcus Malmgren
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-26-2008, 05:38 PM
JB
 
Posts: n/a
Default Re: Connect to AS/400 from .NET

ISeries Access for Windows beta provides a .NET Framework Data Provider.
See the URL below

http://www-1.ibm.com/servers/eserver...dows/beta.html

I don't think this beta has gone live. It was updated on Feb 10, 2004.

HTH
JB


"Marcus" <marcus.malmgren@plastal.com> wrote in message
news:d4261158.0404010049.42f28640@posting.google.c om...
> Hello!
>
> I'm trying to write a VB.NET program that connects to a AS/400 Server.
> I've tried almost everything, but it will not connect.
> I've tried to set up a DSN using the Client Access ODBC-driver
> (v8.00.04.08) but with no result. I've also tried a DSN-less
> connection.
> From VB.NET i'm using oleDbConnection to create the connection. If I
> don't supply a provider in the connection string, the program hangs
> saying that a provider is requiered.
> I have tried using different providers IBMDA400, MSDASQL, DB2OLEDB.
> Always with the same result: An unhandled exception of type
> 'System.InvalidOperationException' occurred in system.data.dll
>
> Additional information: The 'IBMDA400' provider is not registered on
> the local machine.
>
> How do I register the IBMDA400 provider? Is there an other way to
> connect? Is it possible to make a DSN-less connection?
>
> Thanks!
> Marcus Malmgren



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-26-2008, 05:38 PM
DB2
 
Posts: n/a
Default Re: Connect to AS/400 from .NET

Hi Marcus,

I suggest you try with another ODBC driver, StarSQL
(www.starquest.com) might be a good option.

Bob


marcus.malmgren@plastal.com (Marcus) wrote in message news:<d4261158.0404010049.42f28640@posting.google. com>...
> Hello!
>
> I'm trying to write a VB.NET program that connects to a AS/400 Server.
> I've tried almost everything, but it will not connect.
> I've tried to set up a DSN using the Client Access ODBC-driver
> (v8.00.04.08) but with no result. I've also tried a DSN-less
> connection.
> From VB.NET i'm using oleDbConnection to create the connection. If I
> don't supply a provider in the connection string, the program hangs
> saying that a provider is requiered.
> I have tried using different providers IBMDA400, MSDASQL, DB2OLEDB.
> Always with the same result: An unhandled exception of type
> 'System.InvalidOperationException' occurred in system.data.dll
>
> Additional information: The 'IBMDA400' provider is not registered on
> the local machine.
>
> How do I register the IBMDA400 provider? Is there an other way to
> connect? Is it possible to make a DSN-less connection?
>
> Thanks!
> Marcus Malmgren

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-26-2008, 05:38 PM
Rich Wallace
 
Posts: n/a
Default Re: Connect to AS/400 from .NET

Here's a conn string I use to get to ours:

Private Const sConnStr As String = "Provider=IBMDA400.DataSource.1; " &
_
"User ID=zzz;Data Source=sysname;Protection Level=None; "
& _
"Transport Product=Client Access; " & _
"Force Translate=00037;Default Collection=zzz; " & _
"Convert Date Time To Char=TRUE;Password=xyzzyj"

"DB2" <db2team@hotmail.com> wrote in message
news:a78ec628.0404010819.59686693@posting.google.c om...
> Hi Marcus,
>
> I suggest you try with another ODBC driver, StarSQL
> (www.starquest.com) might be a good option.
>
> Bob
>
>
> marcus.malmgren@plastal.com (Marcus) wrote in message

news:<d4261158.0404010049.42f28640@posting.google. com>...
> > Hello!
> >
> > I'm trying to write a VB.NET program that connects to a AS/400 Server.
> > I've tried almost everything, but it will not connect.
> > I've tried to set up a DSN using the Client Access ODBC-driver
> > (v8.00.04.08) but with no result. I've also tried a DSN-less
> > connection.
> > From VB.NET i'm using oleDbConnection to create the connection. If I
> > don't supply a provider in the connection string, the program hangs
> > saying that a provider is requiered.
> > I have tried using different providers IBMDA400, MSDASQL, DB2OLEDB.
> > Always with the same result: An unhandled exception of type
> > 'System.InvalidOperationException' occurred in system.data.dll
> >
> > Additional information: The 'IBMDA400' provider is not registered on
> > the local machine.
> >
> > How do I register the IBMDA400 provider? Is there an other way to
> > connect? Is it possible to make a DSN-less connection?
> >
> > Thanks!
> > Marcus Malmgren



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-26-2008, 05:48 PM
Bill Fahey
 
Posts: n/a
Default Re: Connect to AS/400 from .NET

Marcus,

Another option would be to use an ADO.NET provider to access the
AS/400 instead of the OLE DB option. This would provide better
performance and allow you take advantage of the features in the .NET
framework (security, memory management).

DataDirect's Connect for .NET provides a 100% managed ADO.NET provider
that can access all flavors of DB2, including AS/400. There are also
no dependencies on DB2 database clients. Everything you need to
connect is in the provider as it uses DRDA to communicate with the
database. You can download a trial version from the Connect for .NET
jump page at:

http://www.datadirect.com/products/dotnet/index.ssp

This trial version is fully functional.

Hope this helps.

Bill Fahey
(bill dot fahey at datadirect dot com)

"Rich Wallace" <rich.wallace@minusthecannedmeat.jfsheadotcom> wrote in message news:<e5R7nxCGEHA.1396@TK2MSFTNGP11.phx.gbl>...
> Here's a conn string I use to get to ours:
>
> Private Const sConnStr As String = "Provider=IBMDA400.DataSource.1; " &
> _
> "User ID=zzz;Data Source=sysname;Protection Level=None; "
> & _
> "Transport Product=Client Access; " & _
> "Force Translate=00037;Default Collection=zzz; " & _
> "Convert Date Time To Char=TRUE;Password=xyzzyj"
>
> "DB2" <db2team@hotmail.com> wrote in message
> news:a78ec628.0404010819.59686693@posting.google.c om...
> > Hi Marcus,
> >
> > I suggest you try with another ODBC driver, StarSQL
> > (www.starquest.com) might be a good option.
> >
> > Bob
> >
> >
> > marcus.malmgren@plastal.com (Marcus) wrote in message

> news:<d4261158.0404010049.42f28640@posting.google. com>...
> > > Hello!
> > >
> > > I'm trying to write a VB.NET program that connects to a AS/400 Server.
> > > I've tried almost everything, but it will not connect.
> > > I've tried to set up a DSN using the Client Access ODBC-driver
> > > (v8.00.04.08) but with no result. I've also tried a DSN-less
> > > connection.
> > > From VB.NET i'm using oleDbConnection to create the connection. If I
> > > don't supply a provider in the connection string, the program hangs
> > > saying that a provider is requiered.
> > > I have tried using different providers IBMDA400, MSDASQL, DB2OLEDB.
> > > Always with the same result: An unhandled exception of type
> > > 'System.InvalidOperationException' occurred in system.data.dll
> > >
> > > Additional information: The 'IBMDA400' provider is not registered on
> > > the local machine.
> > >
> > > How do I register the IBMDA400 provider? Is there an other way to
> > > connect? Is it possible to make a DSN-less connection?
> > >
> > > Thanks!
> > > Marcus Malmgren

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-26-2008, 05:48 PM
Greg Low \(MVP\)
 
Posts: n/a
Default Re: Connect to AS/400 from .NET

Yet another option is to have a local sql server (or msde) and set it up as
a linked server and then just access it via sql server :-)

HTH,

--
Greg Low (MVP)
MSDE Manager SQL Tools
www.whitebearconsulting.com

"Bill Fahey" <wjfahey@hotmail.com> wrote in message
news:779e6c65.0404210722.259eb26@posting.google.co m...
> Marcus,
>
> Another option would be to use an ADO.NET provider to access the
> AS/400 instead of the OLE DB option. This would provide better
> performance and allow you take advantage of the features in the .NET
> framework (security, memory management).
>
> DataDirect's Connect for .NET provides a 100% managed ADO.NET provider
> that can access all flavors of DB2, including AS/400. There are also
> no dependencies on DB2 database clients. Everything you need to
> connect is in the provider as it uses DRDA to communicate with the
> database. You can download a trial version from the Connect for .NET
> jump page at:
>
> http://www.datadirect.com/products/dotnet/index.ssp
>
> This trial version is fully functional.
>
> Hope this helps.
>
> Bill Fahey
> (bill dot fahey at datadirect dot com)
>
> "Rich Wallace" <rich.wallace@minusthecannedmeat.jfsheadotcom> wrote in

message news:<e5R7nxCGEHA.1396@TK2MSFTNGP11.phx.gbl>...
> > Here's a conn string I use to get to ours:
> >
> > Private Const sConnStr As String = "Provider=IBMDA400.DataSource.1;

" &
> > _
> > "User ID=zzz;Data Source=sysname;Protection

Level=None; "
> > & _
> > "Transport Product=Client Access; " & _
> > "Force Translate=00037;Default Collection=zzz; " & _
> > "Convert Date Time To Char=TRUE;Password=xyzzyj"
> >
> > "DB2" <db2team@hotmail.com> wrote in message
> > news:a78ec628.0404010819.59686693@posting.google.c om...
> > > Hi Marcus,
> > >
> > > I suggest you try with another ODBC driver, StarSQL
> > > (www.starquest.com) might be a good option.
> > >
> > > Bob
> > >
> > >
> > > marcus.malmgren@plastal.com (Marcus) wrote in message

> > news:<d4261158.0404010049.42f28640@posting.google. com>...
> > > > Hello!
> > > >
> > > > I'm trying to write a VB.NET program that connects to a AS/400

Server.
> > > > I've tried almost everything, but it will not connect.
> > > > I've tried to set up a DSN using the Client Access ODBC-driver
> > > > (v8.00.04.08) but with no result. I've also tried a DSN-less
> > > > connection.
> > > > From VB.NET i'm using oleDbConnection to create the connection. If I
> > > > don't supply a provider in the connection string, the program hangs
> > > > saying that a provider is requiered.
> > > > I have tried using different providers IBMDA400, MSDASQL, DB2OLEDB.
> > > > Always with the same result: An unhandled exception of type
> > > > 'System.InvalidOperationException' occurred in system.data.dll
> > > >
> > > > Additional information: The 'IBMDA400' provider is not registered on
> > > > the local machine.
> > > >
> > > > How do I register the IBMDA400 provider? Is there an other way to
> > > > connect? Is it possible to make a DSN-less connection?
> > > >
> > > > Thanks!
> > > > Marcus Malmgren



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-26-2008, 05:48 PM
Serge Rielau
 
Posts: n/a
Default Re: Connect to AS/400 from .NET

And loose all SQL optimizations because of teh linked access.
Happy joining
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-26-2008, 05:53 PM
Leon Katsnelson
 
Posts: n/a
Default Re: Connect to AS/400 from .NET

DB2 "Stinger" version of DB2 Connect provides both a native DB2 .NET Data
Provider to enable programming for ADO.NET interfaces and a set of DB2
add-ins for Visual Studio .NET to make this programming an natural
experience for Visual Studio .NET programmers. It fully supports
connectivity to DB2 for iSeries and building of complete applications
including client components and server objects such as stored procedures and
user defined functions. To get DB2 "Stinger" go to
http://www.ibm.com/db2/stinger and apply.

--
Leon Katsnelson
Manager, DB2 Product Management and Planning

Want to do hands-on DB2 Stinger programming?
Attend Hands-On Programming - DB2 Application Development One Day
Educational Seminar
at the IDUG conference in Orlando on May 9.
http://conferences.idug.org/namerica...u_seminars.cfm

DB2 Stinger - The buzz of the database industry.
http://www.ibm.com/db2/stinger

"Greg Low (MVP)" <greglow@lowell.com.au> wrote in message
news:%23zbUOgCKEHA.3016@tk2msftngp13.phx.gbl...
> Yet another option is to have a local sql server (or msde) and set it up

as
> a linked server and then just access it via sql server :-)
>
> HTH,
>
> --
> Greg Low (MVP)
> MSDE Manager SQL Tools
> www.whitebearconsulting.com
>
> "Bill Fahey" <wjfahey@hotmail.com> wrote in message
> news:779e6c65.0404210722.259eb26@posting.google.co m...
> > Marcus,
> >
> > Another option would be to use an ADO.NET provider to access the
> > AS/400 instead of the OLE DB option. This would provide better
> > performance and allow you take advantage of the features in the .NET
> > framework (security, memory management).
> >
> > DataDirect's Connect for .NET provides a 100% managed ADO.NET provider
> > that can access all flavors of DB2, including AS/400. There are also
> > no dependencies on DB2 database clients. Everything you need to
> > connect is in the provider as it uses DRDA to communicate with the
> > database. You can download a trial version from the Connect for .NET
> > jump page at:
> >
> > http://www.datadirect.com/products/dotnet/index.ssp
> >
> > This trial version is fully functional.
> >
> > Hope this helps.
> >
> > Bill Fahey
> > (bill dot fahey at datadirect dot com)
> >
> > "Rich Wallace" <rich.wallace@minusthecannedmeat.jfsheadotcom> wrote in

> message news:<e5R7nxCGEHA.1396@TK2MSFTNGP11.phx.gbl>...
> > > Here's a conn string I use to get to ours:
> > >
> > > Private Const sConnStr As String =

"Provider=IBMDA400.DataSource.1;
> " &
> > > _
> > > "User ID=zzz;Data Source=sysname;Protection

> Level=None; "
> > > & _
> > > "Transport Product=Client Access; " & _
> > > "Force Translate=00037;Default Collection=zzz; " &

_
> > > "Convert Date Time To Char=TRUE;Password=xyzzyj"
> > >
> > > "DB2" <db2team@hotmail.com> wrote in message
> > > news:a78ec628.0404010819.59686693@posting.google.c om...
> > > > Hi Marcus,
> > > >
> > > > I suggest you try with another ODBC driver, StarSQL
> > > > (www.starquest.com) might be a good option.
> > > >
> > > > Bob
> > > >
> > > >
> > > > marcus.malmgren@plastal.com (Marcus) wrote in message
> > > news:<d4261158.0404010049.42f28640@posting.google. com>...
> > > > > Hello!
> > > > >
> > > > > I'm trying to write a VB.NET program that connects to a AS/400

> Server.
> > > > > I've tried almost everything, but it will not connect.
> > > > > I've tried to set up a DSN using the Client Access ODBC-driver
> > > > > (v8.00.04.08) but with no result. I've also tried a DSN-less
> > > > > connection.
> > > > > From VB.NET i'm using oleDbConnection to create the connection. If

I
> > > > > don't supply a provider in the connection string, the program

hangs
> > > > > saying that a provider is requiered.
> > > > > I have tried using different providers IBMDA400, MSDASQL,

DB2OLEDB.
> > > > > Always with the same result: An unhandled exception of type
> > > > > 'System.InvalidOperationException' occurred in system.data.dll
> > > > >
> > > > > Additional information: The 'IBMDA400' provider is not registered

on
> > > > > the local machine.
> > > > >
> > > > > How do I register the IBMDA400 provider? Is there an other way to
> > > > > connect? Is it possible to make a DSN-less connection?
> > > > >
> > > > > Thanks!
> > > > > Marcus Malmgren

>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:44 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
UnixAdminTalk.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636