Viewing 8 posts - 31 through 38 (of 38 total)
TABLE AUDIT:
CREATE TABLE [dbo].[tblAudit](
[tableid] [nchar](10) NULL,
[employeeid] [nchar](10) NULL,
[tablename] [nvarchar](50) NULL,
[fieldname] [nvarchar](50) NULL,
[oldvalue] [nvarchar](200) NULL,
[newvalue] [nvarchar](200) NULL,
[changedate] [nvarchar](200) NULL,
[userid] [nvarchar](200) NULL,
[username] [nvarchar](200) ...
April 7, 2009 at 7:56 am
You're a sweetie. I did have a condition on the upd and del tables but removed to strip down code.
CREATE TABLE [dbo].[tblEmployeeId](
[EmployeeId] [nvarchar](100) NOT NULL,
[SSN4] [nchar](10) NOT NULL,
[SSN5]...
April 7, 2009 at 7:29 am
Hmmm! I never thought about that. Well right now I have to get it working and I'll have to remember to turn off trigger if batch update. Currently, the...
April 7, 2009 at 5:57 am
I am a vb.net programmer havee never had to use dynamic SQL or Triggers or cursors (and never been at a company which used them). So I am...
April 6, 2009 at 6:25 pm
I realized that error when I got from lunch. Corrected I still got the error:
Incorrect syntax near the keyword 'select'.
April 6, 2009 at 12:31 pm
This is what I come up with following examples on MSDN:
declare @tmpOldQuery nvarchar(200)
declare @ParamDef nvarchar(200)
declare @rtnVal nvarchar(200)
SELECT @tmpOldQuery = N'select @rtnVal = ...
April 6, 2009 at 11:36 am
Thank you. That helped. Now to put it back in context, how can I accomplish assigning the scalar value returned from the select statement to a variable:
set @mySQLString...
April 6, 2009 at 9:04 am
Viewing 8 posts - 31 through 38 (of 38 total)