Viewing 15 posts - 2,146 through 2,160 (of 3,233 total)
DECLARE @string varchar(100)
SET @string = '12345 Test Address Dr.'
SELECT LEFT(@String,CHARINDEX(' ', @string))
August 22, 2007 at 10:19 am
OK, so can you define in English exactly what you want? Are you looking for all numeric characters prior to the first blank character ' '? Or all numeric characters...
August 22, 2007 at 10:04 am
I'm sure you will find as many methods to do this as there are developers/DBAs, but this should work for you. Feel free to put this into a UDF for...
August 22, 2007 at 9:56 am
From a command prompt, run bcp -v to get your version number. Please post it.
August 17, 2007 at 3:51 pm
If you are running SQL Server on any account other than the system account, make sure that you've granted that user the 'lock pages in memory' right.
August 16, 2007 at 3:54 pm
That's a first! Well, you beat me to post # 3709.....![]()
August 12, 2007 at 10:01 pm
I agree Remi, the likeliness of this being a joke is quite high and Adam’s advice is not advice at all. I guess I just...
August 10, 2007 at 4:05 pm
Let's all continue this in the other thread please as it seems to be more productive.
August 10, 2007 at 3:52 pm
Adam,
I'm just curious here but why would he need to re-install SQL Server if he's only effected a user table? I can see if he were to have deleted...
August 10, 2007 at 3:51 pm
Please see my post in your other thread:
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=146&messageid=389804
August 10, 2007 at 3:30 pm
Ryan,
Although what you are attempting to do here is quite shocking, I’m not sure that deserves a...
August 10, 2007 at 3:27 pm
Terrence,
Your query may produce unwanted results. First of all, you don't need the self-join. How do I know this? Well, you are not using table B for any reason...
August 10, 2007 at 2:19 pm
Well, I totally agree with you assessment from your #2 in that since there is no CI and therefore no direct link to the data page, SQL Server scans...
August 10, 2007 at 1:59 pm
Well, if there are 3 addresses for the client, your query will return the client data along with the 3 different addresses, but I would not consider this duplicate data. ...
August 10, 2007 at 7:20 am
Viewing 15 posts - 2,146 through 2,160 (of 3,233 total)