Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-19-2007, 07:33 PM
js js is offline
Senior Member
 
Join Date: Jun 2007
Posts: 110
Default how to change codding MDB to SQL2000 database

Hi

i create a program which accept the data and save it to Access database(mdb) file. Every thing is completed.

but now i want to change the database. i want to use the SQL2000. what changes i have to made in program to work with SQL2000.

plz give me a example if you can.

thankx
Reply With Quote
  #2 (permalink)  
Old 07-20-2007, 01:05 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:how to change codding MDB to SQL2000 database

You must change the connection string

Code:
var conn = new ActiveXObject("ADODB.connection");
var db_name = "Driver={SQL Server};server=db_server_name_or_ip;database=database_name;uid=username;pwd=password";
conn.Open(db_name);
Reply With Quote
  #3 (permalink)  
Old 07-21-2007, 05:56 PM
js js is offline
Senior Member
 
Join Date: Jun 2007
Posts: 110
Default Re:how to change codding MDB to SQL2000 database

thankx

1.
suppose the IP address is 127.28.24.10
server name is SA
database name is myone
table is myWork

//********************

2.
AND IF THE DATABASE IS IN A SUB FOLDER OF 127.25.24.10 CLINT COMPUTER THEN HOW TO GET THE DATA


how to fit it in your code

Reply With Quote
  #4 (permalink)  
Old 07-22-2007, 11:25 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:how to change codding MDB to SQL2000 database

Code:
var conn = new ActiveXObject("ADODB.connection");
var db_name = "Driver={SQL Server};server=SA;database=myone;uid=username;pwd=password";
conn.Open(db_name);
Which directory the data files of the sql server are in does not matter, as the ado driver of sql server talks with the sql server daemon program.
Reply With Quote
  #5 (permalink)  
Old 07-22-2007, 11:37 AM
js js is offline
Senior Member
 
Join Date: Jun 2007
Posts: 110
Default Re:how to change codding MDB to SQL2000 database

thank you very much for reply

if the sql is in another computer where i will place the Ip address of the SQL database .
what is the format of the address(http:// ?)
suppose the ip address is 127.28.24.10

var conn = new ActiveXObject("ADODB.connection");
var db_name = "Driver={SQL Server};server=SA;database=myone;uid=username;pwd= password";
conn.Open(db_name);

*********

and if the access mdb database is in the Sub folder on a another computer . how to connected with it. what is the format of the address(http:// ?)

suppose the Ip address is 127.10.10.5
in drive C:\
in folder ABC
in Sub folder XYZ
the file name is DATA.MDB
Reply With Quote
  #6 (permalink)  
Old 07-22-2007, 11:54 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:how to change codding MDB to SQL2000 database

You can get more details about how to set the connection strings from the following links

http://www.connectionstrings.com/
http://www.sqlstrings.com/
http://www.codeproject.com/database/...ionstrings.asp
Reply With Quote
  #7 (permalink)  
Old 07-23-2007, 06:41 PM
js js is offline
Senior Member
 
Join Date: Jun 2007
Posts: 110
Default Re:how to change codding MDB to SQL2000 database

THANKX FOR REPLY

I THINK I AM UNABLE TO EXPLAIN MY REQUEST
THE PROBLEM IS NOT THE STRING.

THE PROBLEM IS THAT I AM NOT USETO WITH SQL2000. I AM GOOD WITH ACCESS(MDB).


ALL COMPUTERS NETWORING IS LAN
THE SQL2000 SERVER IS PLACED IN ANOTHER COMUTER AND THIS PROGRAM WILL SAVE THE DATA IN THE SQL2000 DATABASE.

SO WHERE AND HOW WILL I PLACE THE path OF THE SERVER COMPUTER.

PLEASE GIVE ME A EXAMPLE OF PERFECT WORK. I DO NOT KNOW WHERE I WILL PLACE THE PATH IN THAT STRING AND HOW TO IMPLEMETN IT

ar conn = new ActiveXObject("ADODB.connection");
var db_name = "Driver={SQL Server};server=SA;database=myone;uid=username;pwd= password";
conn.Open(db_name);

SUPPOSE:
IP=125.13.12.11
SERVER NAME IS B3Y8Z9
DATABASE IS MYDB
USER NAME IS SA
NO PASSWORD RIGHT NOW


NOW THAT TIME THE SQL2000 IS ON MY LOCAL COMPUTER. BUT WHEN THE PROJECT WILL OK THE IT WILL WORK WITH A ANOTHER COMPUTER'S SQL2000 DATABASE

PLEASE HELP ???
THANKX
Reply With Quote
  #8 (permalink)  
Old 07-24-2007, 11:29 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:how to change codding MDB to SQL2000 database

Code:
var conn = new ActiveXObject("ADODB.connection");
var db_name = "Driver={SQL Server};server=B3Y8Z9;database=MYDB;uid=SA;pwd=";
conn.Open(db_name);
Reply With Quote
  #9 (permalink)  
Old 07-24-2007, 07:05 PM
js js is offline
Senior Member
 
Join Date: Jun 2007
Posts: 110
Default Re:how to change codding MDB to SQL2000 database

IT WORK WELL ON LOCAL SQL DATABASE

BUT HOW TO CONNECT WITH REMOTE DATABASE OF SQL2000 FROM CLIENT

only tell me in your code
WHERE I WILL PLACE THE IP ADDRESS of the remote database
WHERE I WILL PLACE THE IP ADDRESS of the remote database
WHERE I WILL PLACE THE IP ADDRESS of the remote database
WHERE I WILL PLACE THE IP ADDRESS of the remote database
WHERE I WILL PLACE THE IP ADDRESS of the remote database
WHERE I WILL PLACE THE IP ADDRESS of the remote database
WHERE I WILL PLACE THE IP ADDRESS of the remote database

thankx ???
Reply With Quote
  #10 (permalink)  
Old 07-25-2007, 07:51 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:how to change codding MDB to SQL2000 database

var conn = new ActiveXObject("ADODB.connection");
var db_name = "Driver={SQL Server};server=125.13.12.11;database=MYDB;uid=SA;p wd=";
conn.Open(db_name);
Reply With Quote
Reply

Was this information helpful?    Yes No



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:27 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.