Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
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.
I am getting an error as Incorrect syntax near ".".Can some body helpHere is the code.I am trying to create stroed procedure
Create Procedure sp_GetFileList(@sFileids nvarchar(100))asselect b.Filename,b.FilePath,b.fileid,b.fsize,b.modifieddate, _a.softID,a.softName,a.displayName,a.Softpath,a.type from softwaredetails b,mstsoftware a where a.softid=b.softid and a.softid in (@sFieldids)
khtan
In (Som, Ni, Yak)
17689 Posts
Posted - 2007-03-19 : 09:28:13
try
select b.[Filename]
KH
danasegarane76
Posting Yak Master
242 Posts
Posted - 2007-03-19 : 09:32:01
Thanks Khan, Now the error is "Must declare the variable '@sFieldids'."
danasegarane76
Posting Yak Master
242 Posts
Posted - 2007-03-19 : 10:03:38
I got it.Sorry I have misspelled the declartion of the sFieldidsThanks to every one
danasegarane76
Posting Yak Master
242 Posts
Posted - 2007-03-20 : 00:04:03
Dear All , Now I am facing one problem.When I execute the sp using one varriable likesp_GetFilelist 1 ,it is working .But Now I want to call the sp with more than one arguments like'1','2'.But I am getting an error that so many arguments.How can I solve this problem