473,320 Members | 1,993 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Re: Build a table with ASP.net

"egsdar" <eg****@discussions.microsoft.comwrote in message
news:6A**********************************@microsof t.com...
Hello, I have a code that I did in ASP and need to migrate to ASP.Net.
This
is my code in ASP 3.0:
OK, first things first: ASP.NET is *TOTALLY DIFFERENT* from ASP Classic. If
you're just moving from ASP Classic to ASP.NET, the worst mistake you can
make is to imagine that ASP.NET is the "next version" of ASP Classic. It
isn't - not even close...

As a general rule, there is no point whatsoever in even trying to "migrate"
your ASP Classic code to ASP.NET because the two systems share almost no
common ground. Microsoft published a migration tool with the very first
release of ASP.NET back in 2002, but it was an unmitigated disaster...

The best advice I can give you is to use this learning process as an
opportunity to re-engineer your ASP Classic app from the ground up and don't
even try to migrate. I would suggest that you get a copy of this:
http://www.amazon.com/Beginning-ASP-...5020020&sr=8-1
and work your way through it from beginning to end. It will cover everything
you need to know.
set conn=server.CreateObject ("ADODB.connection")
conn.Open ("Driver={MySQL ODBC 3.51
Driver};SERVER=localhost;DATABASE=proyectos;UID=ro ot;PWD=4116734")
Presumably, that's not your real connection string? I.e. you haven't just
published your database access credentials on a public forum...?

Also, what version of MySQL are you using? That will make a difference in
determining which connectivity method you use. If you're using version 5.x,
then you can take advantage of the native .NET data provider which means
that you don't need to use ODBC / OleDb:
http://dev.mysql.com/downloads/connector/net/5.2.html
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 26 '08 #1
0 1101

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Douglas Buchanan | last post by:
I am using the following code instead of a very lengthly select case statement. (I have a lot of lookup tables in a settings form that are selected from a ListBox. The data adapters are given a...
2
by: David Bradbury | last post by:
I currently have an iframe on a webpage into which users can insert content. They can further customise the text as I've included buttons such as Bold, Italic, Bullet point etc. This is done along...
7
by: Bing Wu | last post by:
Hi Folks, I have a very large table containing 170 million rows of coordinats: CREATE TABLE "DB2ADMIN"."COORDINATE" ( "FID" INTEGER NOT NULL , "AID" INTEGER NOT NULL , "X" REAL NOT NULL ,...
5
by: Ronny Sigo | last post by:
Hello all, I tried to define a table with 165 fields (most of them are date/time fields) Yet when saving the table definition Access gives me an error saying that I cannot have more than 255...
1
by: Amos | last post by:
Dear Sirs I am trying to build a cash flow software, first I thought to build one table for each cash and bank account, but talking to some people they suggested me to build one unique table for...
7
by: rednexgfx_k | last post by:
All, Problem Summary: I've running about 30 make table queries via VBA in Access 2000, and my database goes from 14,000k to over 2,000,000k. In addition, the longer the procedure runs, the...
10
by: whisher | last post by:
Hi. I'm not able to understand why this simple snippet doesn't work with IE. It works fine with FF and Opera 9. Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"...
0
by: Jerry | last post by:
Hi, I am getting a list text files and readig each of them and breaking down each file string into a number of varibles. I want to create each table, if it does not exist and add or update the...
2
by: Bogey | last post by:
Hi, I am newby in Xml I want to build a table that i can later manipulate in javascript The Sample.xml contains several Assay with varying number of sample; it looks like that <Assay...
3
by: randy.buchholz | last post by:
I'm trying to standardize a layout methodology for our agency and am looking for some guidance. Most of the applications are basic store and retrieve types, and extensively use a DetailsView type...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.