Viewing 15 posts - 1,141 through 1,155 (of 1,162 total)
select t.* from #temp t
inner join (select ID,DEP from #temp
group by ID,DEP
having max()=0) t1 on t1.id=t.id and t1.dep=t.dep
September 15, 2009 at 3:30 am
Try the following for the values giving trouble and post the results:
select charindex('AB20',C), charindex('AB',C),charindex('20',C),C from T
It should indicate whether there's another character between the 'AB' and the '20'
September 15, 2009 at 3:18 am
It's difficult to be sure what you're after without posting the create table statements and giving some sample data (I'm sure someone will be along to post a link to...
September 14, 2009 at 10:32 am
It's because you're relying on an implicit conversion from a string to a decimal data type which SQL server will do to 2 decimal places by default, so you're losing...
September 14, 2009 at 6:38 am
Well the point is that SQL Server is the back-end and nicely formatting things is the job of the front-end. It's just not what SQL was designed for.
It's also beneficial...
September 14, 2009 at 3:41 am
Is the target IO duration the same in both cases?
With the default settings, that metric means the number of times a response went over 100ms and it slowed down...
September 11, 2009 at 8:49 am
Are you using the Import/Export Wizard to transfer from one db to another?
If so, the answer is to go to Edit Mappings... then Edit SQL... and change the create table...
May 7, 2009 at 10:32 am
In Simple recovery mode, the log space is recovered as soon as the transaction ends - this is a very lightweight process that only puts a pointer that the log...
April 30, 2009 at 2:27 am
Hi Ville,
No, you don't necessarily need the begin tran, commit tran. Take the shrinkfile out though, it's not required.
By definition, if the file can be shrunk, then the disk...
April 30, 2009 at 2:01 am
You shouldn't need to do a dbcc shrinkfile if you're in simple recovery mode - once each transaction commits, the log space will be available to be re-used for the...
April 29, 2009 at 10:41 am
That looks like the outer exception, what's the inner exception?
February 26, 2009 at 6:36 am
What's the inner exception when you use the code I posted? Definitely works in my environment
February 26, 2009 at 6:23 am
I'm assuming the table already exists? If so, you're doing this the wrong way as you're trying to create the table which will fail as the table already exists.
try:
...
February 26, 2009 at 6:15 am
If you're using sql 2005 (as I assume you are from where this is posted):
select schema_name(schema_id), name from sys.objects where type='U'
or
select schema_name(schema_id),name from sys.tables
February 20, 2009 at 10:15 am
I have to say, I haven't started rolling out SP3 yet, but unless it's changed significantly from SP2, rolling back aint pretty.
Effectively, the MS advice is uninstall/re-install SQL Server including...
February 17, 2009 at 10:20 am
Viewing 15 posts - 1,141 through 1,155 (of 1,162 total)