Viewing 15 posts - 16 through 30 (of 32 total)
Try this...
CREATE TABLE #tempa
(
idcol INT IDENTITY(1,1),
NAME VARCHAR(100))
INSERT INTO #tempa (NAME)
SELECT 'ServerName1\Dev'
INSERT INTO #tempa (NAME)
SELECT 'SN1\Development'
INSERT INTO #tempa (NAME)
SELECT 'ABCD\1234'
SELECT SUBSTRING(NAME,1,CHARINDEX('\',NAME,1)-1) FROM #tempa
July 13, 2009 at 9:37 am
No problems. I have done several things like this recently so it was code i have used a lot. You will probably find it the same.
If you haven't already...
June 30, 2009 at 2:06 am
Good effort Lynn...thats much better :D.
Better to avoid the while loop wherever possible.
Ta
Matt
June 29, 2009 at 9:49 am
Not sure exactly what your after.
something like this might do the job for you though.
DECLARE @ID INT
DECLARE @Date1 DATETIME
DECLARE @Date2 DATETIME
DECLARE @MaxID INT
SET @ID = 1
SET @MaxID =...
June 29, 2009 at 9:31 am
sorry...value between the commas i meant...
June 29, 2009 at 9:17 am
Hi,
Assuming i have understood what you are trying to do correcty. I would suggest passing the Sproc a comma delimetered list of integers which you can seperate out and...
June 29, 2009 at 9:12 am
Thanks very much for taking the time to reply.
I have checked the properties in the server properties and the "maximum number of concurrent connections" is already set to 0.
Any...
May 22, 2009 at 6:50 am
Hi,
We are going to need more information than that really. Can you post the SQL that you are using please
Thanks
March 26, 2009 at 6:33 am
Hi,
I have written a procedure that will probably do the job. I have been unable to test it properly as i haven't got any jobs running during the day...
March 26, 2009 at 6:03 am
sorry..wrote another question, but then answered it myself! ignore this!
March 18, 2009 at 7:43 am
ok, firstly...thank you very much for the response and code. I read through the article on tally tables. Very interesting. Thank you. I can see why they are much better...
March 18, 2009 at 5:54 am
I can understand bits of the logic of what is going on, the actual code format etc that you are using to get the results, and how it is working!...
March 17, 2009 at 10:57 am
Thank you for taking the time to reply...The column currently holds NULL's
I literally have no idea what that peice of code that you have given me is doing...:blush:
Thank you though,...
March 17, 2009 at 10:10 am
Surely i would have to set up a trace that ran in the background all day looking for the specific details. Then dump these into a table manually at the...
March 10, 2009 at 6:47 am
I think that i have got this working. The server date is a couple of weeks off..this was throwing me off from thinking that it was returning old data!
Unfortunately i...
March 10, 2009 at 4:33 am
Viewing 15 posts - 16 through 30 (of 32 total)