I cant seem to get the correct syntax for this procedure, I think it has to do with my quotes, i think i'm doing them right? Thanks in advance, appreciate it.
CREATE PROCEDURE PKUpdateF
@password as nvarchar(6),
@custno as nvarchar(6),
@sql as varchar(1024)
AS
set @sql = UPDATE OPENQUERY(tester, 'select password from test1.dbf where custno ='"+custno+"'')
set @sql = @sql + 'set password='"+@password"''
exec(@sql)
Software Engineer
Team Lead
damn bill gates, he has everything
CREATE PROCEDURE PKUpdateF
@password as nvarchar(6),
@custno as nvarchar(6),
@sql as varchar(1024)
AS
set @sql = UPDATE OPENQUERY(tester, 'select password from test1.dbf where custno ='"+custno+"'')
set @sql = @sql + 'set password='"+@password"''
exec(@sql)
Software Engineer
Team Lead
damn bill gates, he has everything