ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 4th, 2003, 12:51 PM
listen2neilyoun listen2neilyoun is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 10 listen2neilyoun User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
moving code from one server to another - HUGE problem

i have this in the database section of devshed - but noone seems to know... so i'll put it in here now!

the link is here

i'm stumped!!

Reply With Quote
  #2  
Old September 4th, 2003, 06:54 PM
unatratnag unatratnag is offline
Average Intelligence
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Ohio/Chicago
Posts: 678 unatratnag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 22 sec
Reputation Power: 6
Send a message via AIM to unatratnag
background check:

are you using ODBC or strings to connect?

are these files being constantly replicated or are you just doing a one time migrate to another server?

Reply With Quote
  #3  
Old September 5th, 2003, 08:06 AM
listen2neilyoun listen2neilyoun is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 10 listen2neilyoun User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i think odbc. here's what my connections look like ( i'll put in multiple ones that have worked ).

and they won't be replicated, i'm just putting them there for operation alone on this server.

strconn="Provider=Microsoft.Jet.OLEDB.4.0;Data Source =" & accessDB & ";"
set aconn=Server.CreateObject("ADODB.Connection")
aconn.Open(strconn)

set arec=server.createobject("ADODB.Recordset")
set arecM=server.createobject("ADODB.command")


and here's another

set conn = Server.CreateObject("ADODB.Connection")
accessdb=server.mappath("Guestbook.mdb")
DSNtemp="Provider=Microsoft.Jet.OLEDB.4.0;Data Source =" & accessDB & ";"
conn.Open DSNtemp

Reply With Quote
  #4  
Old September 5th, 2003, 08:24 AM
unatratnag unatratnag is offline
Average Intelligence
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Ohio/Chicago
Posts: 678 unatratnag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 22 sec
Reputation Power: 6
Send a message via AIM to unatratnag
have you done a simple read query? Select * from table and see if you got any results?

Reply With Quote
  #5  
Old September 5th, 2003, 08:25 AM
listen2neilyoun listen2neilyoun is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 10 listen2neilyoun User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
yes - that's what i meant by this: "i can get the response.write commands to work, but not an insert command"

sorry

Reply With Quote
  #6  
Old September 5th, 2003, 08:29 AM
unatratnag unatratnag is offline
Average Intelligence
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Ohio/Chicago
Posts: 678 unatratnag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 22 sec
Reputation Power: 6
Send a message via AIM to unatratnag
if it's a one time move i'd create a .udl file and compare that to your current connection string.

after that, what error message are you getting? any?

Reply With Quote
  #7  
Old September 5th, 2003, 08:31 AM
listen2neilyoun listen2neilyoun is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 10 listen2neilyoun User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i'm not familiar with udl files - the message i'm getting is "insert into command error".

Reply With Quote
  #8  
Old September 5th, 2003, 08:34 AM
unatratnag unatratnag is offline
Average Intelligence
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Ohio/Chicago
Posts: 678 unatratnag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 22 sec
Reputation Power: 6
Send a message via AIM to unatratnag
uh oh, is this a SQL error? Print out your strSQL line and let's see the syntax.

Reply With Quote
  #9  
Old September 5th, 2003, 08:37 AM
listen2neilyoun listen2neilyoun is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 10 listen2neilyoun User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Microsoft JET Database Engine error '80040e14'

Syntax error in INSERT INTO statement.

/mailinglist/mail2.asp, line 20

Reply With Quote
  #10  
Old September 5th, 2003, 08:40 AM
unatratnag unatratnag is offline
Average Intelligence
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Ohio/Chicago
Posts: 678 unatratnag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 22 sec
Reputation Power: 6
Send a message via AIM to unatratnag
before that error, print out the actual sql line you created and are running aginst the DB is what i meant.

Reply With Quote
  #11  
Old September 5th, 2003, 08:55 AM
listen2neilyoun listen2neilyoun is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 10 listen2neilyoun User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
newfn = replace(request.form("First_Name"),chr(39),"")
newln = replace(request.form("Last_Name"),chr(39),"")
newem = replace(request.form("EMail_Address"),chr(39),"")
set conn = Server.CreateObject("ADODB.Connection")
accessdb=server.mappath("mailinglist.mdb")
DSNtemp="Provider=Microsoft.Jet.OLEDB.4.0;Data Source =" & accessDB & ";"
conn.Open DSNtemp
SQLstmt = "INSERT INTO list (first_name, last_name, e-mail)"
SQLstmt = SQLstmt & " VALUES ("
SQLstmt = SQLstmt & "'" & newfn & "',"
SQLstmt = SQLstmt & "'" & newln & "',"
SQLstmt = SQLstmt & "'" & newem & "'"
SQLstmt = SQLstmt & ")"

this exact code - works on another server... so the syntax is right for that server - when i move it here - it gives that error.... i've been stumped.

since we are basically chatting - i have aim on as: supimadam if you use aim

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > moving code from one server to another - HUGE problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT