Forum Replies Created

Viewing 14 posts - 16 through 29 (of 29 total)

  • RE: Error Handling

    I could only think you need to add error handling in your code

    Example: you can think of following code to handle the duplicate key issue

    BEGIN TRY

    CREATE UNIQUE CLUSTERED INDEX ix_tblname...

  • RE: Try Catch with Bulk Insert

    You have to include MAXERRORS option in your BULK INSERT statement.

    The default MAXERRORS value is 10.

    Since you have only one error, it was not caught by the TRY...

  • RE: odd execution plan.

    Yes, I know that column included in the select query also consider by Query Optimizer.

    however, if you see the second query's excution plan it uses the non clustered index...

  • RE: SELECT TOP

    Yes, the answer is "Ann". But when you say most of the time we would get “Ann” since the clustered index is created on “first name”.

    Why can’t we say...

  • RE: SQL Server 2005 for 64 bit version OS (Windows 7)

    Thank you, By the way can you tell me which edition (x86, 64-bit and 64-bitIA ) I should buy ?

    my system configuration is

    x64 Based PC

    Intel Core i5 CPU M...

  • RE: SQL Server 2005 for 64 bit version OS (Windows 7)

    So, You mean there is only one developer version that can be installed irrespective of 34 or 64 bit system.

  • RE: Last Day of any Month

    Try this !!

    SELECT CASE WHEN DAY(DATEADD(D,1,GETDATE()))=1 THEN 'MONTH END' ELSE 'NOT MONTH END' END AS PERIOD

    Hope this helps.

  • RE: What is the result of the following query

    good basic question.

    Declare @strSql varchar(2000)

    Set @strSql = ''

    Set @strSql = @strSql + 'Create table #tmp (id int)'

    Set @strSql = @strSql + 'Insert into #tmp(id) values (1) Select * from...

  • RE: Deadlock Errors

    Grant Fritchey

    usually we use maxdop option to optimize the performance.

    what will best solution without changing the maxdop option if we get this deadlock error.

    thanks !!

  • RE: Open Source Pay

    I would say don't disclose employee Pay information whilst employees must know the financial shape of the company

    my suggestion will be sum all employees annual pay and publish

  • RE: Cant show correct duplicate data using MAX function

    Max

    Returns the maximum value in the expression.

  • RE: Disabling an Index

    Hi,

    I don't think you can disable the idnex.

    instead you can drop and re create it.

    If your table contains huge no of records with clustered index created

    then re creating index...

  • RE: How SQL Server performs aggregation and sorting ?

    Hi

    You mean the Storage Engine pulls the data and send it to Query Processor

    then Query Processor will operate on the data to form the result (i.e) Group by...

  • RE: REGD SMALL QUERY OUTPUT

    create table #tmp(iden int identity(1,2) , id int, value varchar(15))

    create table #tmp1(iden int identity(2,2) , id int, value varchar(15))

    insert into #tmp values( 1 , 'a')

    insert into #tmp values( 2 ,...

Viewing 14 posts - 16 through 29 (of 29 total)