Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
If a project is written in ASP.NET with database in sql server and we want to create the same project with database in access, are there many changes in the code beside the connection string?
  • Administrators
Posted (edited)

It really depends on how you are accessing the SQL server - if you are using stored procs (and you probably should) then depending on your version of access these may not be supported at all.

Also the way OleDb and Sql handle parametrised queries (you should be using these as well) is different and will need to be changed.

 

Without seeing any examples of your DB or .Net code though it is very difficult for anyone to offer any specific advice.

Edited by PlausiblyDamp

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

  • 4 weeks later...
Posted
If a project is written in ASP.NET with database in sql server and we want to create the same project with database in access' date=' are there many changes in the code beside the connection string?[/quote']

 

Your SQL statements will be different for your inserts and your searches

Read the Fovean Chronicles

Because you just can't spend your whole day programming!

Posted

But... Why?

If you want a copy for test/development you can use the same sql-server, just use another db in the same server. Or you can use a free version of sql server on your development computer.

If it's a production web project you better not use access since it's not intended to be used with multiple users.

 

Regards

/Kejpa

Posted
But... Why?

If you want a copy for test/development you can use the same sql-server, just use another db in the same server. Or you can use a free version of sql server on your development computer.

If it's a production web project you better not use access since it's not intended to be used with multiple users.

 

Regards

/Kejpa

 

You will find that all of the different sequential query language programs use different commands in their queries

 

For example, you can't use 'Top' in MySQL

 

The big thing that I have found in Access is that it handles date values differently, so you have to run two different types of queries to search for date.

Read the Fovean Chronicles

Because you just can't spend your whole day programming!

  • *Experts*
Posted

The main reason I see to want to move from SQL Server to Access if for portability. For example, to put your whole webserver on a laptop to take around and showoff (for product demos).

 

I would strongly suggest using MSDE in place of SQL Server for something like that. It's a bit harder to setup, but mimics SQL Server in every regard (it isn't LIKE SQL Server, it IS SQL Server) except number of connections. It would be a painless switch whereas going to Access is likely to NOT go smoothly.

 

-ner

"I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Posted

First of all, MSDE is dead, there is now the MS-Sqlserver Express.

 

Secondly, there is now article on a MS site that states anything near an end of access.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...