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.
| Author |
Topic |
|
Rigoberto
Starting Member
7 Posts |
Posted - 2011-04-15 : 11:45:06
|
I have this sql statementSelect * from TABLE1 as A , TABLE2 AS B where convert(char(30),A.Id) = B.Idhow can you see I have used the function Convert() to convert the Field A.Id to char, this is a Interger field, Field B.Id is Char, well the problem is when I run the Sql I am getting this error message quote: Incorrect syntax near '.'.
quote: If object_id('tempdb..#R0856History') is not null Drop table #R0856History
Anybody have an idea why I am getting this error message?Thanks in advaceRigo |
|
|
nigelrivett
Master Smack Fu Yak Hacker
3385 Posts |
Posted - 2011-04-15 : 11:55:11
|
| You are executing something else with that statement?==========================================Cursors are useful if you don't know sql.SSIS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
Rigoberto
Starting Member
7 Posts |
Posted - 2011-04-15 : 12:15:30
|
| Actually there are more fields of both Tables, although in my sample I have used Select * from |
 |
|
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2011-04-15 : 13:33:22
|
Without seeing the original statement we can't help. No, you're never too old to Yak'n'Roll if you're too young to die. |
 |
|
|
|
|
|