Viewing 15 posts - 1,681 through 1,695 (of 3,543 total)
Ooops! sorry
Remove the a. in the first select from
SELECT DISTINCT CONVERT(char(6),DATEADD(year,10,a.Period),112),PolicyNumber
to
SELECT DISTINCT CONVERT(char(6),DATEADD(year,10,Period),112),PolicyNumber
December 12, 2006 at 8:16 am
At first guess and off the top of my head (untested)
CREATE TABLE #temp (Period char(6),PolicyNumber int)
INSERT INTO #temp (Period,PolicyNumber)
SELECT DISTINCT CONVERT(char(6),DATEADD(year,10,a.Period),112),PolicyNumber
FROM GE_Transaction
WHERE Status='A' AND DATEADD(year,10,EffectiveDate) >...
December 12, 2006 at 7:20 am
In EM (Enterprise Manager)
Right click on the database
Select All Tasks / Generate SQL Script
Click Show All
Select All Tables (or select individual tables if required)
Click Formatting (tab)
Deselect the Generate CREATE /...
December 12, 2006 at 6:57 am
Another way to identify chars above ascii 127 is to use the now famous numbers table
SELECT t.rowid, n.Number
FROM t
INNER JOIN [Numbers] n
ON n.Number <= LEN([column])
WHERE...
December 12, 2006 at 1:59 am
Depends on what 'foreign' means
You could try PATINDEX
PATINDEX('%[^!"#$%&''()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ\^_`abcdefghijklmnopqrstuvwxyz{|}~]%',somecolumn)
which will give you the first column where char above 127 is (except for control chars as cf/lf etc and [], but would...
December 11, 2006 at 6:58 am
![]() | And I'll be long dead. |
But your rants will be on this site for posterity
December 5, 2006 at 7:21 am
![]() | ...there is no way to "query between 18:00:00 and 06:00:00'... |
Oh yes you can
December 5, 2006 at 7:14 am
![]() | those queries are not returning the weired desired result |
Your right
Forgot...
November 24, 2006 at 3:24 am
So join the tables and transform the data, e.g
You have inserted your data into a temp table as one column and you wish to update a real table using this...
November 23, 2006 at 9:40 am
![]() | ...what do you mean by SET based UPDATES... |
e.g.
UPDATE
SET column = value, column = value
WHERE [condition]...
November 23, 2006 at 8:15 am
I would do it like this
SELECT REGISTER
FROM @Customers
WHERE (@customer IS NULL OR CUSTOMER = @customer)
AND (@id_city IS NULL OR @id_city = CITY)
AND(@id_country IS NULL OR @id_country...
November 23, 2006 at 8:09 am
Plus
1. The file spreadsheet file must exist
2. Each sheet referenced must exist
3. Each sheet must have the correct number of columns in row 1 (Header Row)
3. The data will be appended...
November 23, 2006 at 7:50 am
![]() | yes but i don't want to use DTS or SSIS |
The your only option is to
1. BULK INSERT data...
November 23, 2006 at 7:30 am
Not sure what you a really asking for, need better understanding of what you are trying to do.
If [iRecipientId] is not IDENTITY then you know the value anyway
November 23, 2006 at 7:15 am
Viewing 15 posts - 1,681 through 1,695 (of 3,543 total)