Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 SQL Syntax RESOLVED

Author  Topic 

Pinto
Aged Yak Warrior

590 Posts

Posted - 2005-12-13 : 05:52:39
Can anyone point me to a site which explains SQL syntax. ie I want to put brackets around a variable which holds a string of values for an IN clause.

Dim mySQLstr As String = "SELECT * from vweAvailableRooms where BD_RoomRef IN '"(" & Me.Session("RoomRefLogin") & ")"'"

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-12-13 : 06:09:23
What does mySQLstr have when printing its value?

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

Pinto
Aged Yak Warrior

590 Posts

Posted - 2005-12-13 : 06:11:53
Sorted it - thanks, and found a site

Dim mySQLstr As String = "SELECT * from vweAvailableRooms where BD_RoomRef IN ('" & Me.Session("RoomRefLogin") & "')"

http://www.aspexpress.com/tutorials/tutorial.asp?id=2
Go to Top of Page
   

- Advertisement -