Viewing 10 posts - 1 through 10 (of 10 total)
Here's an article from the well-respected Andy Warren that proposes a security management solution that includes removing all permissions from the PUBLIC role:
http://www.sqlservercentral.com/columnists/awarren/sqlpermissionspublicrole.asp
March 29, 2005 at 9:56 am
a 'where' clause can not be used with a 'SET' statement, in your example, change the 'SET' to a 'SELECT' as follows:
declare @string char(32)
set @string = 'abxcxefg'
select @string = replace(@string,'x','')
where...
December 8, 2004 at 7:50 am
I should have noted that using the Bulk Insert approach involves the use of a "raw data" staging table with a single character field of length equal to the fixed record...
March 9, 2004 at 10:44 am
Bulk Insert with a FirstRow argument of 2 would work, as it does not make inaccurate assumptions like DTS does based on the characteristics of the first line of data.
E.G.
BULK INSERT table_name FROM...
March 9, 2004 at 8:17 am
Jonathan,
I agree about using 'STUFF' - in fact, when I went back to my code to copy it into my message, I realized that I had used 'STUFF', rather than...
December 8, 2003 at 12:42 pm
Yes, and here are my test cases. Note that if you reverse the ordering of the second case the results are reversed - revealing the obvious ... that character distribution...
December 8, 2003 at 9:25 am
For long strings with more than a small percentage of characters that must be stripped, the overhead of the PATINDEX and STUFF functions will degrade performance.
For these cases, a substantial...
November 27, 2003 at 2:04 pm
Re: data type conversion issues
Another approach to consider when importing data into SQL Server is to use a staging table with all varchar fields to hold the raw data. This...
October 3, 2003 at 1:06 pm
If your table has a primary key, say pkey, then the following set-based solution will get the first 10 records for each zipcode ordered by the primary key:
select *
fromzip z1
wherepkey...
August 20, 2003 at 12:07 pm
If you only need to keep the first record from a set of duplicates, you might want to create a unique index on the logical primary key fields with the...
June 19, 2003 at 10:20 am
Viewing 10 posts - 1 through 10 (of 10 total)