Viewing 15 posts - 5,161 through 5,175 (of 7,187 total)
Identity property doesn't guarantee uniqueness. Did that query I posted return any rows?
John
August 9, 2011 at 8:02 am
Have you checked your data? Does the ID column have a unique constraint on it?
Does this return anything:
select ID, COUNT(*) from MyTable group by ID having COUNT(*) > 1
John
August 9, 2011 at 7:59 am
Ninja's_RGR'us (8/9/2011)
YOU'RE OUT OF ROOM OF THE DRIVE.THE END.
I'm not sure he is. If he were, I'd expect to see an error like this: Restore operation for database MyDB...
August 9, 2011 at 6:47 am
OK, so instead of saying SELECT *, say SELECT N'<TD>' + ISNULL( + '<p class="datarows">' + CONVERT(NVARCHAR(MAX),[eventtime ]),'<p class="datarowserror">Not Avail') + N'</p></TD>'
+N'<TD>' + ISNULL( + '<p class="datarows">' + CONVERT(NVARCHAR(MAX),[eventid]),'<p class="datarowserror">Not...
August 9, 2011 at 5:05 am
How are you restoring the database (GUI, T-SQL, third party), what command is being issued to do the restore, and what is the exact error message that you get?
Thanks
John
August 9, 2011 at 4:37 am
I think I'd do it by running the query in SQL and then using an Excel macro to change the name of the column.
John
August 8, 2011 at 8:51 am
Where are these results appearing - in SSMS, in an application, or in Reporting Services? This is the kind of thing that is best handled by the application (presentation)...
August 8, 2011 at 8:41 am
I don't think you can. I believe there's a utility (dtsutil?) that you can use to export a maintenance plan from one server to another, however.
John
August 5, 2011 at 7:26 am
cengland0 (8/4/2011)
Doctors in training
In the most junior hospital trainee post (Foundation Year 1) the basic starting salary is £22,412. This increases...
August 4, 2011 at 7:42 am
pwalter83 (8/4/2011)
August 4, 2011 at 7:34 am
OK, I think we've come as far as we can without your providing any table DDL and sample data. Please post the former in terms of CREATE TABLE statements,...
August 3, 2011 at 4:51 am
Iulian -207023 (8/3/2011)
or instead of :
ARRIVAL_SCHEDULE_DT <= dateadd(mm, 3, getdate())you can use this condition too:
datediff(mm, ARRIVAL_SCHEDULE_DT, getdate()) <= 3Iulian
I would advise against doing that, since it would make the condition...
August 3, 2011 at 4:18 am
Something like this?
SELECT <column list>
FROM MyTable
EXCEPT
SELECT <column list>
FROM MyTable
WHERE PORT_CD = 'BEZEE'
AND ARRIVAL_SCHEDULE_DT < dateadd(mm, 3, getdate())
John
August 3, 2011 at 4:10 am
You're probably going to have to do a bit of trial and error. Expand the Errors and Warnings category, and hover your cursor over each event for a description....
August 3, 2011 at 3:49 am
Viewing 15 posts - 5,161 through 5,175 (of 7,187 total)