Viewing 15 posts - 91 through 105 (of 334 total)
The following worked:
CREATE PROCEDURE [dbo].[Clone_Project]
(
@id int,
@count int
)
AS
BEGIN
DECLARE @rc int
DECLARE @i int
DECLARE @title varchar(2000)
BEGIN TRANSACTION
SELECT Project_Name, Project_Description, Project_Start_Date, Project_Due_Date, Project_Key_Contact, Project_Owner,
Project_Estimated_Days, Project_Est_Self_Study, Project_Est_Classroom, Project_Business_Strategy, Project_Multiple_Sponsor,
Project_Program_ID, Project_Indicator_ID, Project_Level_ID, Project_LifeCycle_ID,...
December 5, 2005 at 12:23 pm
The intent of the SP is to copy all the columns in the source row except for the Project_ID (identity column) and insert them into "n" new rows. Each new row would...
December 5, 2005 at 12:07 pm
I agree. Be default if you don't select a destination table in the Import wizard it defaults to a table name derived from the name of the source file or...
November 1, 2005 at 6:28 am
You could always write an ActiveX step prior to your transformation to read the original file and create a new file minus the header record. You would need to change...
November 1, 2005 at 6:20 am
You want the workflow as described in http://www.sqldts.com/default.aspx?218. This allows you to check for files and bypass the processing branch if there are no files present. The job will...
October 27, 2005 at 6:24 am
Note for next time: Post the calling VBScript as well. If I had seen your Connection.Execute statement I could have told you it was missing the adExecuteNoRecords. It didn't even...
October 21, 2005 at 8:29 am
Remember if you use the above technique and you have child tables you must update the records in the child tables with the new key prior to deleting the old...
October 21, 2005 at 8:26 am
The upsizing wizard has done a fair job for us with the following constraints in Access:
October 21, 2005 at 8:12 am
Why do all the conversions:
DECLARE @val1 decimal(4,0)
DECLARE @val2 decimal(4,0)
set @val=10005555
set @val1 = floor(@val/10000)
set @val2 = @val-(@val1*10000)
print 'V2:'+cast(@val2 as char(4))
V2:5555
October 13, 2005 at 6:47 am
...or a DTS job. Either way depending on what tools you know.
October 13, 2005 at 6:35 am
I agree with noeld. Perhaps something like:
(
@MeetingID INT,
@MeetingEventCategoryID CHAR(1),
@DelDays INT,
@econimpactdaystotal INT OUTPUT
)
AS
SET NOCOUNT ON
SET @econimpactdaystotal =
CASE @MeetingEventCategoryID
WHEN 'L' THEN @DelDays * 175
...
October 12, 2005 at 7:14 am
Assuming you are using CDOSYS to send your mail in your ActiveX script you can create HTML emails by using HTMLBody={text string with HTML markup} rather than TextBody. You can...
October 7, 2005 at 6:40 am
The easiest way to construct this package is the Enterprise Manager->All Tasks->Export Data Wizard. Select SQL as the source and Excel as the destination. ON the "Select Source Tables and Views" page...
October 7, 2005 at 6:32 am
The best way to ensure your insert runs smoothly is to name the source and target columns:
Insert into Table1 (col1, col2, col3...coln)
Select (cola, colb, colc...colz) from Table2
Making sure the columns...
October 7, 2005 at 6:09 am
Viewing 15 posts - 91 through 105 (of 334 total)