Viewing 15 posts - 451 through 465 (of 921 total)
declare @n varchar(40)
set @n = 'Johnson Sr., John Richard'
SELECT LEFT(@n,CHARINDEX(',',@n)-1) LastName,
PARSENAME(REPLACE(STUFF(@n,1,CHARINDEX(',',@n)+1,''),' ','.'),2) FirstName,
PARSENAME(REPLACE(STUFF(@n,1,CHARINDEX(',',@n)+1,''),' ','.'),1) MiddleName
--Jonathan
November 19, 2003 at 8:26 am
November 19, 2003 at 7:49 am
quote:
This statement will not work for dates that fall in the year 2000. Which is the best way to do for...
November 19, 2003 at 7:42 am
The best practice is to use stored procedures as command objects with parameter objects at the front end. This is fastest, most secure, and doesn't require any string conversions...
November 19, 2003 at 7:29 am
November 18, 2003 at 7:03 pm
quote:
Also note that you're going to cough up half your physical RAM to the OS. If your SQL box has 4GB...
November 18, 2003 at 6:57 pm
quote:
Thank you, Jonathan. You are right. The compatibility level is 65. What determines the compatibility level? What can be done to make...
November 18, 2003 at 2:12 pm
Why use UNION if you don't need to? A query like the one I posted will both perform better and be less wordy.
--Jonathan
November 18, 2003 at 1:30 pm
Check the compatibility level with sp_helpdb. If it's less than 80, you can't use collations on columns.
--Jonathan
November 18, 2003 at 12:47 pm
quote:
We are running SQL Server 2000, SP3 Standard Edition on Windows Server 2000 SP4 with 4 gig of memory and a 4...
November 18, 2003 at 12:39 pm
quote:
I was mistaken. We use this process for two main reasons:1. If we have to change NULL to NOT NULL
2. For SQL...
November 18, 2003 at 10:39 am
If you're using SQL Server 7 or SQL Server 2000, just use ALTER TABLE to add a new column.
--Jonathan
November 18, 2003 at 10:12 am
quote:
OK still can't get it to work. Here is a simular example of what I'm doing using the Northwind database.This is the...
November 18, 2003 at 7:24 am
SELECT YEAR(GETDATE())*1000+DATEPART(y,GETDATE())
--Jonathan
November 18, 2003 at 6:24 am
quote:
You don't say anything about the quality ofI work with a lot of crappy name & address info we get from...
November 18, 2003 at 5:45 am
Viewing 15 posts - 451 through 465 (of 921 total)