Forum Replies Created

Viewing 15 posts - 1,141 through 1,155 (of 1,162 total)

  • RE: T-SQL Join Help

    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

  • RE: Question on the wide card "%" in the "like" statement

    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'

  • RE: Inserting Data Based on Join Criteria

    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...

  • RE: Discrepancy in Round() function

    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...

  • RE: Date Formatting

    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...

  • RE: Odd SQLIOSIM Results

    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...

  • RE: KEEP COLLATION as it is

    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...

  • RE: Controlling the log size with large updates

    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...

  • RE: Controlling the log size with large updates

    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...

  • RE: Controlling the log size with large updates

    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...

  • RE: Error when creating column in existing database using SMO

    That looks like the outer exception, what's the inner exception?

  • RE: Error when creating column in existing database using SMO

    What's the inner exception when you use the code I posted? Definitely works in my environment

  • RE: Error when creating column in existing database using SMO

    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:

    ...

  • RE: Looking up Table Schema info

    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

  • RE: How to Rollback SP3 ?

    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...

Viewing 15 posts - 1,141 through 1,155 (of 1,162 total)