Viewing 15 posts - 49,066 through 49,080 (of 59,099 total)
You already have a true whole number function and it works well. The only problem is with how you tested it... you've passed a numeric value to the function...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 26, 2008 at 8:52 am
SQL Noob (7/25/2008)
if it wasn't for 64 bit SQL we would have to go to 64bit Oracle because the...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 26, 2008 at 8:05 am
Try this, Michael... It's not done yet, but it'll do what you want without hitting up xp_CmdShell....
CREATE PROCEDURE dbo.GetDirDetails
/**************************************************************************************************
Purpose:
Replacement code for the sp_GetFileDetails proc that was available in...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 25, 2008 at 8:46 pm
GSquared (7/25/2008)
Just tested it. Transactional replication from one instance to another. Updates, inserts, deletes, all transfer successfully (and immediately).
Truncate gets this error:
Msg 4711, Level 16, State...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 25, 2008 at 6:03 pm
Jonathan Kehayias (7/23/2008)
Perhaps in my attempt to demonstrate an overly simplistic TSQL Example, I made it far to simple. The OP wants to SELECT a value from any column...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 25, 2008 at 5:52 pm
Heh... with all the problems I've seen on forums with 64 bit technology and SQL Server, so far... I'm going to wait for SQL Server 2011 before I recommend 64...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 25, 2008 at 5:47 pm
How did you verify that? Is it just because you got a rows affected of 1? Perhaps there was only one row that met the condition?
What do you...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 25, 2008 at 4:46 am
Deee -Daah! (7/24/2008)
I was wondering if there is an alternative to running XP_cmdshell DIR.
Basically, I run xp_cmdshell to gather file info on a folder.
without using XP_cmdshell, is there other...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 25, 2008 at 4:31 am
su_kumar11 (7/25/2008)
The site you have given is not opening. SoSo
Please give me solution.
Try copying the URL and pasting it to the address window in your browser.
--Jeff Moden
Change is inevitable... Change for the better is not.
July 25, 2008 at 4:15 am
Untested, of course... 😉
DELETE dbo.abn_extract
FROM dbo.abn_extract E
INNER JOIN dbo.ABN_File_Header H
ON SUBSTRING(E.[Column 0], 1, 13) = H.Header_Id
SQL Server is one of the...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 25, 2008 at 4:06 am
avanish (7/24/2008)
Rather than writing comples queries .... yo u can use the ranking functions... in sql server 2005 for this purpose:)
Perfect... got a code example to go along with that...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 25, 2008 at 3:51 am
Just double checking... Was the mirror made using SQL Server Replication or (disk) hardware replication.
--Jeff Moden
Change is inevitable... Change for the better is not.
July 24, 2008 at 5:42 pm
Gary Noter (7/24/2008)
No, wait, if I implement this code, then can't waste my time with writing and waiting for WHILE loops...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 24, 2008 at 5:40 pm
I've found that nothing helps except a good ol' fashioned technical interview. I've had several people where references checked out great... old bosses gave rave reviews... former co-workers gave...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 24, 2008 at 5:37 pm
Thanks for the feedback, Hugo,
I explained why a merry-go-round scan is not possible for this in the article. I even demonstrated what a merry-go-round scan is... updates don't do...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 24, 2008 at 5:30 pm
Viewing 15 posts - 49,066 through 49,080 (of 59,099 total)