close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Can i use database alias with dataasist?

Thread began 4/19/2010 5:17 pm by aaron5263 | Last modified 4/22/2010 6:27 am by Jason Byrnes | 1080 views | 5 replies |

aaron5263

Can i use database alias with dataasist?

will dataassist 2.0.6 recognize database alias names? It seems like it does not recognize them.

Sign in to reply to this post

Jason ByrnesWebAssist

No, it will not recognize alias names, only the original names that are assigned in the table.

Sign in to reply to this post

aaron5263

ok how do i get around this problem because im getting an error saying
Ambiguous column name. i have several tables joined together via left joins.
i made the mistake of naming column names the same in 2 tables.

Sign in to reply to this post

Jason ByrnesWebAssist

in the code that references the column name, you need to add the table name.

Send a copy of your page and I will show an example of what needs to be changed.

Sign in to reply to this post

aaron5263

like this ?

'comparison list additions
WADbSearch1_whereClause=BuildFilterString("products.master_cat","" & cStr( Request.QueryString("gauges") ) & "","","=",0,WADbSearch1_wildCard,WADbSearch1_dateSeparator,WADbSearch1_whereClause)
WADbSearch1_whereClause=BuildFilterString("products.catagory","" & cStr( Request.QueryString("auto") ) & "","AND","=",0,WADbSearch1_wildCard,WADbSearch1_dateSeparator,WADbSearch1_whereClause)
WADbSearch1_whereClause=BuildFilterString("products.sub_cat","" & cStr( Request.QueryString("gauge_size") ) & "","AND","=",0,WADbSearch1_wildCard,WADbSearch1_dateSeparator,WADbSearch1_whereClause)
WADbSearch1_whereClause=BuildFilterString("products.sub_cat_2","" & cStr( Request.QueryString("gauge_type") ) & "","AND","=",0,WADbSearch1_wildCard,WADbSearch1_dateSeparator,WADbSearch1_whereClause)



my table is products so i added this to the query and it seems to work. Anywhere else i need to change it? would be nice if next release 2.0.7 just included the table name in front of the query section of code.

Sign in to reply to this post

Jason ByrnesWebAssist

that should be all that needs to change.

I will add a feature request.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...