Need Help connecting to a view

Please support our MS SQL advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2005
Posts: 13
Reputation: blackraven is an unknown quantity at this point 
Solved Threads: 0
blackraven blackraven is offline Offline
Newbie Poster

Need Help connecting to a view

 
0
  #1
Dec 7th, 2005
Does anyone know how to connect to an MSSQL View in syntax. If you know please right back asap. I need this project done quick.
Thanks.
Reply With Quote Quick reply to this message  
Join Date: Nov 2005
Posts: 13
Reputation: blackraven is an unknown quantity at this point 
Solved Threads: 0
blackraven blackraven is offline Offline
Newbie Poster

Re: Need Help connecting to a view

 
0
  #2
Dec 7th, 2005
And another thing i am connect to MSSQL using PHP but dont worry if you know how to connect to the syntax way that would be great.

SELECT *
FROM vuBusiness_Licenses_Web_Engine

I tried connecting to it like this. The say way you would connect to a table ,but didnt work all that great is. So i need a way other then this one.

Thanks
Reply With Quote Quick reply to this message  
Join Date: Nov 2005
Posts: 13
Reputation: blackraven is an unknown quantity at this point 
Solved Threads: 0
blackraven blackraven is offline Offline
Newbie Poster

Re: Need Help connecting to a view

 
0
  #3
Jan 6th, 2006
I found out how exectly to connect to an mssql database or a view off of the mssql database. When connecting to a view you must place in all the column names that you are connecting too. If you do not do this it will select or query all no matter if you are searching for a specific name or whatever. After you do this u can connect to the view instead of table by just replacing the name of the table in your code to the name of the view. If you want to still connect to the table but replace the name with a name that you like. Just use the AS command between the column name of the table to the name u like.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the MS SQL Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC