SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseSQL Development

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 ASP Free Forums Sponsor:
  #1  
Old March 22nd, 2005, 01:16 PM
slglassett's Avatar
slglassett slglassett is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: Pacific Grove, CA in beautiful Monterey
Posts: 200 slglassett User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 h 28 m 49 sec
Reputation Power: 5
Send a message via AIM to slglassett
this is an easy one

I have SQL code that extends two lines. Is there some way that I can put it in my code to let it know that it extends two lines? I am getting an error in my code right now, and I think that is causing it. Thanks.

Reply With Quote
  #2  
Old March 22nd, 2005, 01:59 PM
Memnoch's Avatar
Memnoch Memnoch is online now
Unholy Moderator
Click here for more information.
 
Join Date: Oct 2003
Location: In hell, where did you think?
Posts: 11,879 Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 3 Weeks 5 Days 18 h 10 m 33 sec
Reputation Power: 500
Post the code.

Maybe something like
Code:
strSql = "SELECT * "
strSq = strSql & "FROM TableName"

Reply With Quote
  #3  
Old March 22nd, 2005, 02:00 PM
slglassett's Avatar
slglassett slglassett is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: Pacific Grove, CA in beautiful Monterey
Posts: 200 slglassett User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 h 28 m 49 sec
Reputation Power: 5
Send a message via AIM to slglassett
sSQL="Update Results set BBUse = '"&BBUse &"',StudNum = '"&StudNum &"', S04 = '"& S04&"', Sp04 = '"& Sp04&"', W04 = '"&W04 &"', F05 = '"& F05&"', NA = '"&NA &"', Announce = '"&Announce &"', CInfo = '"&CourseInfo &"', CDoc = '"& CourseDoc&"', Links = '"&Links &"', Discuss = '"& Discussion&"', Quiz = '"&Quiz &"', UseEmail = '"& UseEmail&"', Chat = '"&Chat &"', Group = '"&Group&"', Grades = '"&Grades &"', Other1 = '"&Other1&"', Other2 = '"&Other2&"', CourseMat = '"&CourseMat&"', Features = '"&Features&"', NFeatures = '"&NFeatures&"', MFeatures = '"&MFeatures&"', BeginUse = '"&BeginUse&"', IDLPast = '"&IDLPast&"', IDLFuture = '"&IDLFuture&"', Assist1 = '"&Assist1&"', Assist2 = '"&Assist2&"', Assist3 = '"&Assist3&"', Assist4 = '"&Assist4&"', Assist5 = '"&Assist5&"', Assist6 = '"&Assist6&"', Assist7 = '"&Assist7&"', Assist8 = '"&Assist8&"', Problems = '"&Problems&"', BBmore = '"&BBmore&"', BBNoUse = '"&BBNoUse&"', Comments = '"&Comments&"', TAC = '"&TAC&"', Web = '"&Web&"', DigitalDrop '"&DigitalDrop&"', AssignTool = '"&AssignTool&"', TheName = '"&TheName&"',Assist9 = '"&Assist9&"', Phone = '"&Phone&"', EmailCon = '"&EmailCon&"' WHERE SurveyNum = "&SurveyNum&""

Reply With Quote
  #4  
Old March 23rd, 2005, 11:12 AM
MJoTaM MJoTaM is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: UK
Posts: 131 MJoTaM User rank is Private First Class (20 - 50 Reputation Level)MJoTaM User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 12 h 33 m 37 sec
Reputation Power: 5
Even do Memnoch gave you the correct answer.

Code:
sSQL="Update Results "
sSQL = sSQL &"set BBUse = '"&BBUse &"', "
sSQL = sSQL &"StudNum = '"&StudNum &"', "
sSQL = sSQL &"S04 = '"& S04&"', "
sSQL = sSQL &"Sp04 = '"& Sp04&"', " 
sSQL = sSQL &"W04 = '"&W04 &"', "
sSQL = sSQL &"F05 = '"& F05&"', "
sSQL = sSQL &"NA = '"&NA &"', " 
sSQL = sSQL &"Announce = '"&Announce &"', "
sSQL = sSQL &"CInfo = '"&CourseInfo &"', " 
sSQL = sSQL &"CDoc = '"& CourseDoc&"', " 
sSQL = sSQL &"Links = '"&Links &"', " 
sSQL = sSQL &"Discuss = '"& Discussion&"', " 
sSQL = sSQL &"Quiz = '"&Quiz &"', " 
sSQL = sSQL &"UseEmail = '"& UseEmail&"', "
sSQL = sSQL &"Chat = '"&Chat &"', " 
sSQL = sSQL &"Group = '"&Group&"', " 
sSQL = sSQL &"Grades = '"&Grades &"', "
sSQL = sSQL &"Other1 = '"&Other1&"', "
sSQL = sSQL &"Other2 = '"&Other2&"', "
sSQL = sSQL &"CourseMat = '"&CourseMat&"', "
sSQL = sSQL &"Features = '"&Features&"', "
sSQL = sSQL &"NFeatures = '"&NFeatures&"', "
sSQL = sSQL &"MFeatures = '"&MFeatures&"', "
sSQL = sSQL &"BeginUse = '"&BeginUse&"', " 
sSQL = sSQL &"IDLPast = '"&IDLPast&"', "
sSQL = sSQL &"IDLFuture = '"&IDLFuture&"', "
sSQL = sSQL &"Assist1 = '"&Assist1&"', "
sSQL = sSQL &"Assist2 = '"&Assist2&"', "
sSQL = sSQL &"Assist3 = '"&Assist3&"', "
sSQL = sSQL &"Assist4 = '"&Assist4&"', "
sSQL = sSQL &"Assist5 = '"&Assist5&"', "
sSQL = sSQL &"Assist6 = '"&Assist6&"', "
sSQL = sSQL &"Assist7 = '"&Assist7&"', "
sSQL = sSQL &"Assist8 = '"&Assist8&"', "
sSQL = sSQL &"Problems = '"&Problems&"', "
sSQL = sSQL &"BBmore = '"&BBmore&"', "
sSQL = sSQL &"BBNoUse = '"&BBNoUse&"', "
sSQL = sSQL &"Comments = '"&Comments&"', "
sSQL = sSQL &"TAC = '"&TAC&"', "
sSQL = sSQL &"Web = '"&Web&"', "
sSQL = sSQL &"DigitalDrop '"&DigitalDrop&"', "
sSQL = sSQL &"AssignTool = '"&AssignTool&"', "
sSQL = sSQL &"TheName = '"&TheName&"', "
sSQL = sSQL &"Assist9 = '"&Assist9&"', "
sSQL = sSQL &"Phone = '"&Phone&"', "
sSQL = sSQL &"EmailCon = '"&EmailCon&"' "
sSQL = sSQL &"WHERE SurveyNum = "&SurveyNum&""
Comments on this post
slglassett agrees!
__________________
A good friend will come and bail you out of jail...BUT a true friend will be sitting next to you saying, "Damn...that was fun!"
=-=-=-=-=-=-=-=-=-=-@|@-=-=-=-=-=-=-=-=-=-=-=-=--=
If the post was useful please click on the scales on the top rigth

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseSQL Development > this is an easy one


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



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

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





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