Friday, March 30, 2012
Increase field size AND linked tables
versus the current 11, but the message is that I can't do the modification
due to linked tables. I believe the modification must be done at the server
,
but I wouldn't know where to start. It would seem that it should be an easy
fix if someone could point me in the right direction. I hate to call the
tech guys out to open a couple windows and type 16. The database was done i
n
access converted to SQL.
ThanksDear rtucker913,
Please post DDL or any example which clarifies your request.
Thanks in advance,
"rtucker913" wrote:
> I would like to increase a field size to allow input of up to 16 character
s
> versus the current 11, but the message is that I can't do the modification
> due to linked tables. I believe the modification must be done at the serv
er,
> but I wouldn't know where to start. It would seem that it should be an ea
sy
> fix if someone could point me in the right direction. I hate to call the
> tech guys out to open a couple windows and type 16. The database was done
in
> access converted to SQL.
> Thankssql
Wednesday, March 28, 2012
Incorrect UnPivot metadata
Hi
When using unpivot transformation, what exactly this error denote
"Incorrect UnPivot metadata. In an UnPivot transform, all input columns with a PivotKeyValue that is set, and are pointing to the same DestinationColumn, must have metadata that exactly matches "
data on which i was trying unpivoting is -
Assume in your scenario, "Name" is set as a pass-thru column, and all other 4 columns point to a same destination column
Then the error suggests that you don't have the same exact datatype on Pd1, Pd2, Pd3, Pd4 (they need to be all I4, or all I2...etc)
Thanks
Wenyang
Friday, March 23, 2012
Incorrect syntax near .
I try to use stored procedure to do a search for Email column. But I always get a error "Incorrect syntax near '.'", when I input keyword like "ash11.tw." And if I put keyword without dot, it works fine. It seems like the dot caused the problem. But I dont know how to fix it. Can someone help me out? Thanks.
My where expression is following.
@.spWhereSearch = 'where cont.Email like "%' + @.Email + '%"'
Try this@.spWhereSearch = Where cont.Email Like "'% + @.Email + %'"|||
Probably try this
@.spWhereSearch = 'where cont.Email like %' + @.Email + '%'
|||Change the double quotes " in your where search to two single quotes '' and that should fix your issue.
|||Thanks for answering.
I have tried above three but they still dont work.
The error is still the same.
Does anyone have other suggestions?
|||If you show us the code then it would be more helpful. I dont see any reason why this would fail
@.spWhereSearch = Where cont.Email Like '% + @.Email + %'|||That line needs to look *exactly* like this (which was Motley's suggestion and is the resolution to your prolem):
@.spWhereSearch = 'where cont.Email like ''%' + @.Email + '%'''
|||
Thanks for replying. it works!!!
tmorton and Motley's suggestion is correct.
Thanks again.