Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-29-2008, 05:15 AM
Teri Welch
 
Posts: n/a
Default Access migration to SQL Server

Hello,

We maintain a VB6 front-end application using an Access 2000 database. All
code and forms are in VB6. The program also uses several queries/reports
defined in Access. For corporate reasons we must move to SQL Server right
away. Based on our configuration, we're hoping someone can give us a feel
for what's involved here. Since we're only using Access for the data we're
not sure what an "upsizing" would entail. Can someone point us in the right
direction, tell us the main gotchas, etc. Thanks a lot.

Teri Welch


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-29-2008, 05:15 AM
John Bell
 
Posts: n/a
Default Re: Access migration to SQL Server

Hi

If you are going to remove access completely your access queries will need
to be re-written as stored procedures or views and the reports rewritten in
(say) VB. Alternatively you can use an Access Data Project where most of the
code can remain the same.

The access upgrade wizard will migrate most things, although it can run into
problems if you are using something that is more complex.

I suggest that you create a test system and copy your database and
application onto it. Then you try the upgrade, and you will get a feel for
what is involved and how much can be easily migrated.

John

"Teri Welch" <trwlch@yahoo.com> wrote in message
news:xLuwd.5516$jn.1131@lakeread06...
> Hello,
>
> We maintain a VB6 front-end application using an Access 2000 database. All
> code and forms are in VB6. The program also uses several queries/reports
> defined in Access. For corporate reasons we must move to SQL Server right
> away. Based on our configuration, we're hoping someone can give us a feel
> for what's involved here. Since we're only using Access for the data we're
> not sure what an "upsizing" would entail. Can someone point us in the
> right
> direction, tell us the main gotchas, etc. Thanks a lot.
>
> Teri Welch
>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-29-2008, 05:15 AM
Ryan
 
Posts: n/a
Default Re: Access migration to SQL Server

There are a number of tools you can use to upsize the database, but in
my experience, I would tend to do this manually to ensure everything in
the structure is correct.

Your main issue will be with the queries as the syntax can be slightly
different to SQL. It's only subtle, but you would need to address this.

Personally, I would manually create the tables (inc indexes etc...)
then move the data using the import wizard and do any manipulation you
need to get this correctly into the tables. Then, I'd address each
query step by step in VB.

There shouldn't be too many issues (as a general statement). It may be
worthwhile looking at using views and stored procedures as these may
give you additional benefits.

What you will find is that once done, it's probably quicker and much
less likely to have issues with record locking as SQL handles this much
better.

With your reports, I would imagine you will leave these in Access, set
up an ODBC link to your SQL tables in access and call the reports
through VB as you will currently do. All you need to do is swap the
links over and it should be straight forward. You may do this and then
think about leaving the links in for the queries, but I would advise
not to on experience and for simplicity.

I'm sure if there are any specific problems, a number of people on this
NG will help, if not, try...

http://groups.google.com/groups?hl=e...ases.ms-access

Ryan


Teri Welch wrote:
> Hello,
>
> We maintain a VB6 front-end application using an Access 2000

database. All
> code and forms are in VB6. The program also uses several

queries/reports
> defined in Access. For corporate reasons we must move to SQL Server

right
> away. Based on our configuration, we're hoping someone can give us a

feel
> for what's involved here. Since we're only using Access for the data

we're
> not sure what an "upsizing" would entail. Can someone point us in the

right
> direction, tell us the main gotchas, etc. Thanks a lot.
>
> Teri Welch


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-29-2008, 05:15 AM
Steve Jorgensen
 
Posts: n/a
Default Re: Access migration to SQL Server


On Fri, 17 Dec 2004 08:34:55 -0000, "John Bell" <jbellnewsposts@hotmail.com>
wrote:

>Hi
>
>If you are going to remove access completely your access queries will need
>to be re-written as stored procedures or views and the reports rewritten in
>(say) VB. Alternatively you can use an Access Data Project where most of the
>code can remain the same.


I have to say it - bah! There - I said it.

Every single solitary time I've seen someone post on Usenet asking about
upsizing an Access database to SQL Server, the first response says something
about having to convert all your queries to views and stored procedures.
Frankly, that's not at all necessary, and a serious drain on time and money.

Access/DAO mostly does a fine job of translating queries of linked tables into
reasonable server-side SQL for execution, and it creates prepared statements
for parameter queries, so SQL Server won't have to keep recompiling each query
each time it sees it. Furthermore, Access is quite happy doing things like
using a named query parameter to look up a value from a form control and
allowing editing of values from multiple tables in a query with a join.

If you convert all these things to views and stored procedures, you have to
figure out how to do things like bind forms to parameterized stored
procedures, and implement extra code and forms for editing that were never
needed before, etc. It's a huge, complex, error prone exercise that forces
you to add complexity and remove convinience in the UI, all for basically no
return on investment.

Now, you're going to say that sometimes Access does not do a good job of
producing the server-side SQL. Yup, that's true, so in -those- cases, using a
view and/or a stored procedure can be very beneficial. You're also going to
say that if you have multiple systems accessing the same back-end, you want to
make the database interactions consistent and centralize business logic. I
say, yes, but again, do that incrementally as needed for specific cases. If
you really need to centralize a -lot- of bunsiness logic, T-SQL is not a great
language for it anyway, and you probably should think about a 3-tier system
and dump the Access UI altogether.

>The access upgrade wizard will migrate most things, although it can run into
>problems if you are using something that is more complex.


Here's a case where I do recommend doing it the "hard way. I've never seen
the upsizing wizard do a particularly good job. For each table, you should be
deciding what should be your clustered index, whether you need a TIMESTAMP
field, checking for NULL in Boolean fields, etc.

>I suggest that you create a test system and copy your database and
>application onto it. Then you try the upgrade, and you will get a feel for
>what is involved and how much can be easily migrated.


An excellent suggestion - I agree.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-29-2008, 05:15 AM
John Bell
 
Posts: n/a
Default Re: Access migration to SQL Server

Hi Steve

I don't disagree with anything you said, but you seemed to have missed the
caveat in the first sentence, i.e. remove access all together and you don't
really have any choice.

John

"Steve Jorgensen" <nospam@nospam.nospam> wrote in message
news:kd26s0pl1p1s0dr38ah8gftbqu762cvles@4ax.com...
>
> On Fri, 17 Dec 2004 08:34:55 -0000, "John Bell"
> <jbellnewsposts@hotmail.com>
> wrote:
>
>>Hi
>>
>>If you are going to remove access completely your access queries will need
>>to be re-written as stored procedures or views and the reports rewritten
>>in
>>(say) VB. Alternatively you can use an Access Data Project where most of
>>the
>>code can remain the same.

>
> I have to say it - bah! There - I said it.
>
> Every single solitary time I've seen someone post on Usenet asking about
> upsizing an Access database to SQL Server, the first response says
> something
> about having to convert all your queries to views and stored procedures.
> Frankly, that's not at all necessary, and a serious drain on time and
> money.
>
> Access/DAO mostly does a fine job of translating queries of linked tables
> into
> reasonable server-side SQL for execution, and it creates prepared
> statements
> for parameter queries, so SQL Server won't have to keep recompiling each
> query
> each time it sees it. Furthermore, Access is quite happy doing things
> like
> using a named query parameter to look up a value from a form control and
> allowing editing of values from multiple tables in a query with a join.
>
> If you convert all these things to views and stored procedures, you have
> to
> figure out how to do things like bind forms to parameterized stored
> procedures, and implement extra code and forms for editing that were never
> needed before, etc. It's a huge, complex, error prone exercise that
> forces
> you to add complexity and remove convinience in the UI, all for basically
> no
> return on investment.
>
> Now, you're going to say that sometimes Access does not do a good job of
> producing the server-side SQL. Yup, that's true, so in -those- cases,
> using a
> view and/or a stored procedure can be very beneficial. You're also going
> to
> say that if you have multiple systems accessing the same back-end, you
> want to
> make the database interactions consistent and centralize business logic.
> I
> say, yes, but again, do that incrementally as needed for specific cases.
> If
> you really need to centralize a -lot- of bunsiness logic, T-SQL is not a
> great
> language for it anyway, and you probably should think about a 3-tier
> system
> and dump the Access UI altogether.
>
>>The access upgrade wizard will migrate most things, although it can run
>>into
>>problems if you are using something that is more complex.

>
> Here's a case where I do recommend doing it the "hard way. I've never
> seen
> the upsizing wizard do a particularly good job. For each table, you
> should be
> deciding what should be your clustered index, whether you need a TIMESTAMP
> field, checking for NULL in Boolean fields, etc.
>
>>I suggest that you create a test system and copy your database and
>>application onto it. Then you try the upgrade, and you will get a feel for
>>what is involved and how much can be easily migrated.

>
> An excellent suggestion - I agree.
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-29-2008, 05:15 AM
Steve Jorgensen
 
Posts: n/a
Default Re: Access migration to SQL Server

Yup - I'd say my knee was a bit quick on the jerk there <g>.

On Fri, 17 Dec 2004 17:05:26 -0000, "John Bell" <jbellnewsposts@hotmail.com>
wrote:

>Hi Steve
>
>I don't disagree with anything you said, but you seemed to have missed the
>caveat in the first sentence, i.e. remove access all together and you don't
>really have any choice.
>
>John
>
>"Steve Jorgensen" <nospam@nospam.nospam> wrote in message
>news:kd26s0pl1p1s0dr38ah8gftbqu762cvles@4ax.com.. .
>>
>> On Fri, 17 Dec 2004 08:34:55 -0000, "John Bell"
>> <jbellnewsposts@hotmail.com>
>> wrote:
>>
>>>Hi
>>>
>>>If you are going to remove access completely your access queries will need
>>>to be re-written as stored procedures or views and the reports rewritten
>>>in
>>>(say) VB. Alternatively you can use an Access Data Project where most of
>>>the
>>>code can remain the same.

>>
>> I have to say it - bah! There - I said it.
>>
>> Every single solitary time I've seen someone post on Usenet asking about
>> upsizing an Access database to SQL Server, the first response says
>> something
>> about having to convert all your queries to views and stored procedures.
>> Frankly, that's not at all necessary, and a serious drain on time and
>> money.
>>
>> Access/DAO mostly does a fine job of translating queries of linked tables
>> into
>> reasonable server-side SQL for execution, and it creates prepared
>> statements
>> for parameter queries, so SQL Server won't have to keep recompiling each
>> query
>> each time it sees it. Furthermore, Access is quite happy doing things
>> like
>> using a named query parameter to look up a value from a form control and
>> allowing editing of values from multiple tables in a query with a join.
>>
>> If you convert all these things to views and stored procedures, you have
>> to
>> figure out how to do things like bind forms to parameterized stored
>> procedures, and implement extra code and forms for editing that were never
>> needed before, etc. It's a huge, complex, error prone exercise that
>> forces
>> you to add complexity and remove convinience in the UI, all for basically
>> no
>> return on investment.
>>
>> Now, you're going to say that sometimes Access does not do a good job of
>> producing the server-side SQL. Yup, that's true, so in -those- cases,
>> using a
>> view and/or a stored procedure can be very beneficial. You're also going
>> to
>> say that if you have multiple systems accessing the same back-end, you
>> want to
>> make the database interactions consistent and centralize business logic.
>> I
>> say, yes, but again, do that incrementally as needed for specific cases.
>> If
>> you really need to centralize a -lot- of bunsiness logic, T-SQL is not a
>> great
>> language for it anyway, and you probably should think about a 3-tier
>> system
>> and dump the Access UI altogether.
>>
>>>The access upgrade wizard will migrate most things, although it can run
>>>into
>>>problems if you are using something that is more complex.

>>
>> Here's a case where I do recommend doing it the "hard way. I've never
>> seen
>> the upsizing wizard do a particularly good job. For each table, you
>> should be
>> deciding what should be your clustered index, whether you need a TIMESTAMP
>> field, checking for NULL in Boolean fields, etc.
>>
>>>I suggest that you create a test system and copy your database and
>>>application onto it. Then you try the upgrade, and you will get a feel for
>>>what is involved and how much can be easily migrated.

>>
>> An excellent suggestion - I agree.
>>

>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-29-2008, 05:18 AM
Teri Welch
 
Posts: n/a
Default Re: Access migration to SQL Server

Thanks for the replies from everyone.

1. How can we convert MS-Access import specs to SQL Server. We import many
data files from outside sources -- in both ASCII and Excel formats -- and
make heavy use of import specs within VB6 programs by invoking the
TransferText and TransferSpreadsheet functions.

2. Regarding reports, must we leave them in Access? We are inclined to
remove Access completely from the picture. Maybe that is too drastic and you
would advocate otherwise. But we question the performance of using Access
reports and the necessity to have Access open everytime a report is invoked
from within VB6. Plus, we have to keep Access installed. How can we create
the reports natively within SQL Server.

Thanks,
Teri Welch


"Ryan" <ryanofford@hotmail.com> wrote in message
news:1103273150.975672.240020@z14g2000cwz.googlegr oups.com...
> There are a number of tools you can use to upsize the database, but in
> my experience, I would tend to do this manually to ensure everything in
> the structure is correct.
>
> Your main issue will be with the queries as the syntax can be slightly
> different to SQL. It's only subtle, but you would need to address this.
>
> Personally, I would manually create the tables (inc indexes etc...)
> then move the data using the import wizard and do any manipulation you
> need to get this correctly into the tables. Then, I'd address each
> query step by step in VB.
>
> There shouldn't be too many issues (as a general statement). It may be
> worthwhile looking at using views and stored procedures as these may
> give you additional benefits.
>
> What you will find is that once done, it's probably quicker and much
> less likely to have issues with record locking as SQL handles this much
> better.
>
> With your reports, I would imagine you will leave these in Access, set
> up an ODBC link to your SQL tables in access and call the reports
> through VB as you will currently do. All you need to do is swap the
> links over and it should be straight forward. You may do this and then
> think about leaving the links in for the queries, but I would advise
> not to on experience and for simplicity.
>
> I'm sure if there are any specific problems, a number of people on this
> NG will help, if not, try...
>
>

http://groups.google.com/groups?hl=e...ases.ms-access
>
> Ryan
>
>
> Teri Welch wrote:
> > Hello,
> >
> > We maintain a VB6 front-end application using an Access 2000

> database. All
> > code and forms are in VB6. The program also uses several

> queries/reports
> > defined in Access. For corporate reasons we must move to SQL Server

> right
> > away. Based on our configuration, we're hoping someone can give us a

> feel
> > for what's involved here. Since we're only using Access for the data

> we're
> > not sure what an "upsizing" would entail. Can someone point us in the

> right
> > direction, tell us the main gotchas, etc. Thanks a lot.
> >
> > Teri Welch

>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-29-2008, 05:18 AM
John Bell
 
Posts: n/a
Default Re: Access migration to SQL Server

Hi Teri

"Teri Welch" <trwlch@yahoo.com> wrote in message
news:s1hyd.8482$jn.4225@lakeread06...
> Thanks for the replies from everyone.
>
> 1. How can we convert MS-Access import specs to SQL Server. We import many
> data files from outside sources -- in both ASCII and Excel formats -- and
> make heavy use of import specs within VB6 programs by invoking the
> TransferText and TransferSpreadsheet functions.


You can use DTS to import from many different locations.
>
> 2. Regarding reports, must we leave them in Access? We are inclined to
> remove Access completely from the picture. Maybe that is too drastic and
> you
> would advocate otherwise. But we question the performance of using Access
> reports and the necessity to have Access open everytime a report is
> invoked
> from within VB6. Plus, we have to keep Access installed. How can we create
> the reports natively within SQL Server.


Reporting services is provided with SQL server, but this is probably not the
type of reporting you require. There may be some third party VB/ActiveX
component that will do a similar job as your current requirements.

>
> Thanks,
> Teri Welch
>


John

>
> "Ryan" <ryanofford@hotmail.com> wrote in message
> news:1103273150.975672.240020@z14g2000cwz.googlegr oups.com...
>> There are a number of tools you can use to upsize the database, but in
>> my experience, I would tend to do this manually to ensure everything in
>> the structure is correct.
>>
>> Your main issue will be with the queries as the syntax can be slightly
>> different to SQL. It's only subtle, but you would need to address this.
>>
>> Personally, I would manually create the tables (inc indexes etc...)
>> then move the data using the import wizard and do any manipulation you
>> need to get this correctly into the tables. Then, I'd address each
>> query step by step in VB.
>>
>> There shouldn't be too many issues (as a general statement). It may be
>> worthwhile looking at using views and stored procedures as these may
>> give you additional benefits.
>>
>> What you will find is that once done, it's probably quicker and much
>> less likely to have issues with record locking as SQL handles this much
>> better.
>>
>> With your reports, I would imagine you will leave these in Access, set
>> up an ODBC link to your SQL tables in access and call the reports
>> through VB as you will currently do. All you need to do is swap the
>> links over and it should be straight forward. You may do this and then
>> think about leaving the links in for the queries, but I would advise
>> not to on experience and for simplicity.
>>
>> I'm sure if there are any specific problems, a number of people on this
>> NG will help, if not, try...
>>
>>

> http://groups.google.com/groups?hl=e...ases.ms-access
>>
>> Ryan
>>
>>
>> Teri Welch wrote:
>> > Hello,
>> >
>> > We maintain a VB6 front-end application using an Access 2000

>> database. All
>> > code and forms are in VB6. The program also uses several

>> queries/reports
>> > defined in Access. For corporate reasons we must move to SQL Server

>> right
>> > away. Based on our configuration, we're hoping someone can give us a

>> feel
>> > for what's involved here. Since we're only using Access for the data

>> we're
>> > not sure what an "upsizing" would entail. Can someone point us in the

>> right
>> > direction, tell us the main gotchas, etc. Thanks a lot.
>> >
>> > Teri Welch

>>

>
>



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 03:06 PM.


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