Viewing 15 posts - 1,516 through 1,530 (of 2,038 total)
Hi
You can use IDENTITY_INSERT to ON for the data migration. After this use DBCC CHECKIDENT to set the new seed value:
CREATE TABLE #T (Id INT IDENTITY(1, 1), Txt VARCHAR(50))
-- Allow...
April 7, 2009 at 11:06 am
Hi
Sorry for barging in... The huge advantage of the DATEADD method is that it can also be used to get the first day of year, first day of month, ......
April 7, 2009 at 10:37 am
Hi
Just a little oversight... Snipped of of GSquared's code:
@Username VARCHAR(255), -- < Here you missed the comma
@ret int output
😉
Greets
Flo
April 7, 2009 at 10:14 am
Chris Morris (4/7/2009)
jbuttery (4/7/2009)
Thanks for the replies guys. I'll try suggestions. I can do a SELECT, but not sure how to manipulate data and then insert.
Post the select, Flo will...
April 7, 2009 at 9:06 am
jbuttery (4/7/2009)
Col0(Identity)Col1 Col2 Col3 ...
April 7, 2009 at 7:22 am
Hi
So it's a problem with the rights. I'm not sure if your user account or the SQL Server Service account needs the rights for the server.
Hope somebody else has more...
April 7, 2009 at 6:50 am
Bob Hovious (4/6/2009)
Misconceived, it's only one international customer...
April 6, 2009 at 3:32 pm
Sure only one holiday column doesn't make much sense, but a holiday column for each country seems also not to be the complete solution.
First reason:
My customer want's to maintain the...
April 6, 2009 at 3:11 pm
Hi
I'm not sure if I got you, but I'll try...
Do you mean this?
INSERT INTO Mytable (col1, col2, col3, col4)
SELECT col1 + 1, col2 + 1, col3 +...
April 6, 2009 at 3:07 pm
Bob Hovious (4/6/2009)
I'm running around like a chicken with my head cut off today. I saw the word tally and assumed you were doing the query straight from...
April 6, 2009 at 2:46 pm
Bob Hovious (4/6/2009)
April 6, 2009 at 2:10 pm
Hi Bob
A CTE, as ordered:
; WITH
t1 (N) AS (SELECT 1 UNION ALL SELECT 2),
t2 (N) AS (SELECT t.N FROM t1, t1 t),
t3 (N) AS (SELECT t.N FROM t2, t2 t),
t4...
April 6, 2009 at 2:08 pm
Hi
Have a look to BOL for "bcp utility" this should be your solution.
Greets
Flo
April 6, 2009 at 1:58 pm
Hi
One "SELECT" too much... 😉
SELECT @tmpOldQuery = N'select @rtnVal = @fieldname1 from #Del where employeeid = 1'
Select @ParamDef = N'@fieldname1 nvarchar(200), @rtnVal nvarchar(200) OUTPUT'
@fldname = 'SSN4'
EXEC dbo.sp_executesql tmpOldQuery,
...
April 6, 2009 at 1:51 pm
Hi Kevin
Could you explain more detailed which error(s) you get. This works just fine:
CREATE PROCEDURE usp_TestCmdShell
AS
EXECUTE xp_cmdshell 'dir C:\'
GO
EXECUTE usp_TestCmdShell
Greets
Flo
April 6, 2009 at 1:46 pm
Viewing 15 posts - 1,516 through 1,530 (of 2,038 total)