Viewing 15 posts - 721 through 735 (of 1,156 total)
Suji,
You can use the System_User and HOSTNAME() function to return the logged in user and his host computer.
Your trigger should look something like this:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TRIGGER dbo.MyDeleteTriggerName
...
February 8, 2008 at 7:26 am
I could bever get the transfer job task to work in DTS, does it actually work in SSIS?
I haven't had any problems with the transfer jobs task. SSIS...
February 7, 2008 at 9:57 am
Sorry did not read your post in full; I missed automated. Why does this process need to be automated? Are you moving the jobs to another server? ...
February 7, 2008 at 8:00 am
George,
Open SSMS click on jobs and in the Object Explorer Details Windows you will see a list of jobs. You can highlight all the jobs and right click -->...
February 7, 2008 at 7:51 am
Good solution Jeff, simply amazing. 😉
February 7, 2008 at 7:44 am
Adam's post (I seem to recognize it from somewhere),
I got the string parser script from the script section of this site, I believe 😀
February 6, 2008 at 8:20 pm
I forgot to mention that the solution I posted operates one record at a time. As all of the previous posters have suggested you will need a looping mechanism...
February 6, 2008 at 2:23 pm
You could use a parse function with a select statement to do something like this.
Note: that this particular function strives off a numbers table which I have provided...
February 6, 2008 at 11:34 am
You can create a temp table, with an identity column and have it auto generate all the way down.
CREATE TABLE #tmp(
Row_ID BIGINT IDENTITY(1,1),
ID INT,
Col2 INT,
Col3 INT
)
INSERT INTO #tmp
SELECT ID,Col2,Col3
FROM MyTable
SELECT...
February 5, 2008 at 7:23 am
SQL Scripter is a free tool to dynamically create INSERT scripts. It works fast and well.
February 5, 2008 at 7:11 am
I'd suggest you use a nested table expression, meaning
select nestedTSel.*, [Monthly Pac] ....from ( select 'Monthly Pac' = CASEWHEN tPolicyBillPrem.POL_BILL_TYP_CD = '4' AND tPolicyA.POL_CSTAT_CD = '1' THEN tPolicyBillPrem.POL_SNDRY_AMTELSE 0END,'Annualized Premium'...
February 4, 2008 at 5:43 pm
This is actually much easier than you think just run the script as I have it below. This method works because you are converting all the floats to decimal(25,10)...
February 4, 2008 at 5:28 pm
Would it be wise to now change the Datatype
manually? I checked the table design, and noticed
the type is still set to float.
If I am understanding your correctly, you are saying...
February 4, 2008 at 1:29 pm
Unfortunately, you cannot use derived columns to compute on other columns in the same query. You would have to put the MontlyPac case statement in the then section of...
February 4, 2008 at 11:10 am
Viewing 15 posts - 721 through 735 (of 1,156 total)