Viewing 15 posts - 166 through 180 (of 253 total)
A bit of google search gives the below ..
SP2 includes hotfixes of SQL Server 2008 SP1 Cumulative Update 1 to 8 only. Cumulative update package 1 for SQL Server 2008...
March 22, 2012 at 1:30 pm
Thanks Lynn,
I want to avoid such a scenario. I have a fix in CU4 (after SP1). So should I apply SP1 + CU1 to CU4 OR should I install SP2...
March 22, 2012 at 12:58 pm
Perry,
I get the same error.
Query-1:
select top 1* from TABLENAME where
isdate(DATEFIELD) = 1
and convert(datetime,DATEFIELD) < getdate()-120
and VARCHARFIELD in ('111111','222222')
Above query works fine. But when i include another value in...
March 10, 2012 at 8:59 pm
Thanks Lutz,
I will try to post the data maybe with some dummy values. I will get back to you after readying the dummy data.
March 10, 2012 at 10:02 am
For one set of load (which is monthly), I give a unique number say 1, for next load it wud be 2 and so on.. and i need to retrieve...
March 10, 2012 at 9:27 am
No Lutz, its still not resolved.
Sometimes ordering becomes,
A1 datetime1
B1 datetime1
C1 datetime1
A2 datetime2
B2 datetime2
C2 datetime2
D2 datetime2
E2 datetime2
D2 datetime1
E2 datetime1
March 10, 2012 at 8:48 am
Lutz,
Sorry missed it
bcp "select 'Col1', 'Col2', 'Col3','Date' union all select top 15 cast(Col1 as varchar(25)) as Col1,Col2,Col3,cast(DATE as varchar(25))as DATE from TABLENAME where SortOrder<>0 ORDER BY SortOrder asc" queryout D:\XXXX.xls...
March 10, 2012 at 8:18 am
Lutz,
bcp "select 'Col1', 'Col2', 'Col3','Date' union all select top 15 cast(Col1 as varchar(25)) as Col1,Col2,Col3,cast(DATE as varchar(25))as DATE from TABLENAME where SortOrder<>0" queryout D:\XXXX.xls -c -SXXXXXX -T
March 10, 2012 at 7:38 am
Lutz,
I order by DATE field, its default GETDATE. At one time, 5 records would be inserted, so all the 5 would be having same datetime value. Example data is...
March 10, 2012 at 7:05 am
1. First query returns the same error
2.
DECLARE @datefield VARCHAR(10)
select @datefield = CAST(DATEFIELD AS DATETIME) from TABLENAME select @datefield
returns only one record after which it returns same error. The one record...
March 10, 2012 at 5:09 am
Markus, thanks for the brief reply.
1. For Extended SP's, I go to Database Properties->Security-->
Roles-->Database Roles--> Public--> Properties-->Securables
Here, I see a number of Extended SP's. I had to select each one...
February 28, 2012 at 2:10 am
I would have to sanitize the code before posting :(...even then it would be difficult, anyway will check on that..
Thanks Ninja for reminding about the MERGE. 🙂
October 22, 2011 at 12:43 pm
Only one table is involved in the entire operation (case/update/bulk insert)
October 22, 2011 at 12:32 pm
Thanks for the immediate reply.
I would be checking for a value in a particular column and depending on the value.. i would be running update queries (different one for...
October 22, 2011 at 12:26 pm
Do we have any other way.. to fix this? The link has code which has BCC etc. which is not needed. A basic mail parameters are fine.
October 18, 2011 at 6:00 am
Viewing 15 posts - 166 through 180 (of 253 total)