Viewing 15 posts - 1 through 15 (of 17 total)
Here are my modifications.
The hours can't exceed 250...total.
Create Trigger check_work_hours
On Assignment
After
AS
UPDATE Assignment
SET workHours = workHours
IF EXISTS (Select SUM(workHours)
...
December 4, 2008 at 3:22 pm
Thanks for the help everyone.
November 29, 2008 at 10:25 pm
I am now referencing the parameter in the stored procedure as follows:
use master
GO
CREATE PROC spWhichTable
@ColumnName varchar(50)
AS
SELECT o.name as [Table], c.name as [Column]
FROM sys.tables o JOIN sys.columns c ON o.id...
November 29, 2008 at 4:33 pm
--The procedure was created ok:
CREATE PROC sp_WhichTable
@ColumnName varchar(50)
AS
SELECT o.name as [Table], c.name as [Column]
FROM SYSOBJECTS o JOIN SYSCOLUMNS c ON o.id = c.id
WHERE c.name like '%order%' AND o.xtype...
November 29, 2008 at 4:22 pm
--The procedure was created ok:
CREATE PROC sp_WhichTable
@ColumnName varchar(50)
AS
SELECT o.name as [Table], c.name as [Column]
FROM SYSOBJECTS o JOIN SYSCOLUMNS c ON o.id = c.id
WHERE c.name like '%order%' AND o.xtype...
November 29, 2008 at 2:52 pm
Nevermind, I got some results with this exec:
Exec spDateRange '20060501','20060530'
November 29, 2008 at 2:43 pm
I modified the parameter datatypes, stored procedure naming convention and added a rule to take into account the mindate = max date.
The procedure was created without errors.
If the parameters are...
November 29, 2008 at 2:37 pm
I made some modifications to the code but cont to get an error message when creating the procedure. Here is the latest code and my error.
CREATE PROCsp_DateRange
@DateMin DateTime =...
November 29, 2008 at 2:02 pm
ok, I added an imput parameter and removed the variable. I am still getting this error message when calling the procedure- Incorrect syntax near 'VendorID'.
CREATE PROC sp_WhichTable
@ColumnName varchar(50)
AS
SELECT o.name...
November 29, 2008 at 11:58 am
Its working now. 😀
Thanks for the help.
September 16, 2008 at 11:47 am
When I executed this query I received this error message:
Msg 8152, Level 16, State 14, Line 1
String or binary data would be truncated.
The statement has been terminated.
September 16, 2008 at 9:55 am
Is there a way to see the generated .Net code from SQL Server Studio?
I right click the table and see the script that SQL Server created for the INDIVIDUALS tabl...
September 16, 2008 at 8:33 am
Viewing 15 posts - 1 through 15 (of 17 total)