Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 6th, 2006, 02:19 PM
Registered User
 
Join Date: Aug 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default convert connstr from MySQL to MS SQL Server

Hi,

I am having trouble changing a connString for a friends website. It was developed with MySQL and our server has MS SQL Server 2000. Here is the old connstring.

var connString = "DRIVER={MySQL}; SERVER=209.132.240.96; DATABASE=gcem; USER=gcem; PASSWORD=emergency; OPTION=3;";

Here is the new connstring.

var connString = "Driver={SQL Native Client}; Server=SERVERNAMEHERE; Database=gcem; Integrated Security=SSPI;"

Does this look right?

Also will there be a problem recreating the data types in MS SQL Server 2000?

Thanks Matt

 
Old August 7th, 2006, 02:30 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

You can do this 2 ways, you can setup a DSN on your server and connect that way or you can use OLEDB such as this:

Dim conn
set conn = Server.CreateObject("ADODB.Connection")
conn.open "Provider=SQLOLEDB; Data Source = (local); Initial Catalog = Northwind; User Id = sa; Password="

hth.

[Edit]
Forgot to tell you, going from MySQL to MS Sql you shouldn't have a problem with the data types and such. (Don't take my word as fact, I have only limited experience with getting MySQL and MS SQL to play nice together as we only use MS SQL at work.)

"The one language all programmers understand is profanity."
 
Old August 15th, 2006, 02:24 PM
Registered User
 
Join Date: Aug 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Now I am getting an error in the log file the the server does not exist or the user is denied access.

Any help?

Thanks Matt

 
Old October 24th, 2007, 10:13 AM
Authorized User
 
Join Date: Dec 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
  Does anybody know to convert mysql db to sql server 2005 db using c# for web application?

Thanks in advance.

Sachin






Similar Threads
Thread Thread Starter Forum Replies Last Post
convert a SQL Statement from MS Access to a SQL Corey Access 6 March 28th, 2007 12:33 PM
MS ACCESS 2003 FRONTEND AND MS SQL SERVER 2005 DB mohankumar0709 SQL Server 2005 3 March 23rd, 2007 12:48 AM
I am trying to convert a MS Access Query to a SQL? WebLadyBug SQL Server ASP 3 March 9th, 2007 12:39 PM
Convert SQL to MS Access Corey Access 1 February 2nd, 2007 11:46 AM
how to convert ms access db to sql server method SQL Server 2000 1 March 11th, 2005 11:44 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.