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
 SQL Server 2005 Forums
 Transact-SQL (2005)
 ParseValues Script

Author  Topic 

starnold
Yak Posting Veteran

83 Posts

Posted - 2008-10-16 : 05:58:07
I have the below script that I am trying to run but keep getting an error. The data looks like the below:

ID SystemName KEY Value
1 miv3demo Discoverer_CoreOptions Selection,Cube,Chart
1 miv3demo Discoverer_PlugIns DecisionTree,Map

SELECT T.[ID],T.[SYSTEMNAME],T.[KEY],F.[VAL]
FROM USERCONFIG T
CROSS APPLY dbo.ParseValues(T.[VALUE],',')F

Msg 102, Level 15, State 1, Line 3
Incorrect syntax near '.'.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-10-16 : 06:46:09
its working for me. which tool you're using?
Go to Top of Page

starnold
Yak Posting Veteran

83 Posts

Posted - 2008-10-16 : 06:50:21
Microsoft SQL Server Management Studio 9.00.3042.00
Microsoft Analysis Services Client Tools 2005.090.3042.00
Microsoft Data Access Components (MDAC) 2000.086.3959.00 (srv03_sp2_rtm.070216-1710)
Microsoft MSXML 2.6 3.0 4.0 6.0
Microsoft Internet Explorer 7.0.5730.11
Microsoft .NET Framework 2.0.50727.1433
Operating System 5.2.3790
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-10-16 : 09:05:47
Which tool are you using when running the query below?

SELECT T.[ID],T.[SYSTEMNAME],T.[KEY],F.[VAL]
FROM USERCONFIG T
CROSS APPLY dbo.ParseValues(T.[VALUE],',') AS F


E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

elancaster
A very urgent SQL Yakette

1208 Posts

Posted - 2008-10-16 : 09:09:19
same problem as before then...?
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=112240

you never answered the question of your compatability setting?

Em
Go to Top of Page

starnold
Yak Posting Veteran

83 Posts

Posted - 2008-10-16 : 09:09:27
that never worked either :-( same error
Go to Top of Page
   

- Advertisement -